/**
 * Form Download Page Styles — PK Design System
 * Colors: #000 text, #fff bg, #a000ff accent
 * Fonts: PreciousKitchen (headings/CTA), GT-Super-Text-Regular (body/labels)
 */

/* ══════════════════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════════════════ */

.page-form-download {
    padding-top: 60px;
    padding-bottom: 100px;
    background-color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   CONTENU ÉDITORIAL
══════════════════════════════════════════════════════════════ */

.pk-kit-title {
    font-family: "PreciousKitchen", sans-serif;
    font-size: 2.8rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.15;
}

.title-underline {
    display: block;
    width: 60px;
    height: 5px;
    background-color: #a000ff;
    margin-bottom: 40px;
}

.pk-kit-intro {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.2rem;
}

.pk-kit-intro em {
    font-family: "GT-Super-Text-Italic", serif;
    font-style: normal;
}

.pk-kit-section-title {
    font-family: "PreciousKitchen", sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #000;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #a000ff;
}

.pk-kit-sub-title {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin-top: 24px;
    margin-bottom: 12px;
}

.pk-kit-body {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 19px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.pk-kit-list {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 19px;
    line-height: 1.7;
    color: #a000ff;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.pk-kit-list li {
    margin-bottom: 6px;
    color: #a000ff;
    font-size: 19px;
}

.pk-kit-list li strong {
    color: #000;
}

/* ── Tooltip abbréviations ── */

.pk-abbr {
    border-bottom: 1px dotted #a000ff;
    cursor: help;
    color: inherit;
}

#pk-tooltip {
    position: fixed;
    background: #fff;
    border: 2px solid #a000ff;
    border-bottom: 4px solid #a000ff;
    padding: 14px 18px;
    max-width: 360px;
    width: max-content;
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.pk-kit-violet {
    color: #a000ff !important;
}

.pk-kit-tags {
    color: #a000ff;
    font-style: italic;
}

.pk-kit-accroche {
    font-family: "GT-Super-Text-Italic", serif;
    font-size: 18px;
    line-height: 1.65;
    color: #000;
    border-left: 4px solid #a000ff;
    padding-left: 20px;
    margin: 40px 0;
}

/* ══════════════════════════════════════════════════════════════
   ACCORDÉONS NIVEAUX
══════════════════════════════════════════════════════════════ */

.pk-accordion {
    margin: 32px 0 40px;
}

.pk-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.pk-accordion-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.pk-accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 0;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: color 0.2s;
}

.pk-accordion-header:not(.collapsed) {
    border-left: 4px solid #a000ff;
    padding-left: 16px;
}

.pk-accordion-label {
    font-family: "PreciousKitchen", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    flex: 1;
}

.pk-accordion-tag {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #a000ff;
    padding: 2px 8px;
    flex-shrink: 0;
}

.pk-accordion-icon {
    font-size: 1.4rem;
    color: #a000ff;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 300;
    transition: transform 0.2s;
}

.pk-accordion-header:not(.collapsed) .pk-accordion-icon {
    transform: rotate(45deg);
}

.pk-accordion-body {
    padding: 8px 0 24px 0;
}

/* ══════════════════════════════════════════════════════════════
   BOUTON CTA — REJOINDRE LE MOUVEMENT
══════════════════════════════════════════════════════════════ */

.pk-cta-wrapper {
    margin: 40px 0 0;
}

.btn-pk-cta {
    display: block;
    width: 100%;
    background-color: #a000ff;
    color: #fff;
    border: 2px solid #a000ff;
    border-bottom: 4px solid #a000ff;
    border-radius: 0;
    padding: 18px 40px;
    font-family: "PreciousKitchen", sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.btn-pk-cta:hover,
.btn-pk-cta:focus {
    background-color: #fff;
    color: #a000ff;
    outline: none;
}

/* Fermé : forcer violet même si le bouton garde le :focus après le clic */
.btn-pk-cta[aria-expanded="false"]:focus,
.btn-pk-cta[aria-expanded="false"]:focus-visible {
    background-color: #a000ff;
    color: #fff;
    outline: none;
}

/* Ouvert : fond blanc explicite */
.btn-pk-cta[aria-expanded="true"] {
    background-color: #fff;
    color: #a000ff;
}

.cta-arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 0.85em;
}

.btn-pk-cta[aria-expanded="true"] .cta-arrow {
    transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   FORMULAIRE
══════════════════════════════════════════════════════════════ */

#form-reveal {
    border-top: 4px solid #a000ff;
    margin-top: 0;
}

.form-download-container {
    padding: 48px 0 20px;
}

.form-download-container .title {
    font-family: "PreciousKitchen", sans-serif;
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 12px;
    text-align: left;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-download-container .form-group {
    margin-bottom: 1.75rem;
}

.form-download-container label {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 13px;
    font-weight: normal;
    color: #555;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Inputs & selects ── */

.form-download-container .form-control {
    border: none;
    border-bottom: 2px solid #222;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 16px;
    color: #000;
    transition: border-color 0.2s ease;
    box-shadow: none;
}

.form-download-container .form-control:focus {
    border-bottom-color: #a000ff;
    box-shadow: none;
    background: transparent;
    outline: none;
}

.form-download-container .form-control.is-invalid {
    border-bottom-color: #dc3545;
}

.form-download-container .form-control.is-invalid:focus {
    border-bottom-color: #dc3545;
    box-shadow: none;
}

.form-download-container .form-control::placeholder {
    color: #bbb;
    font-style: italic;
}

/* ── Textarea ── */

.form-download-container textarea.form-control {
    resize: vertical;
    min-height: 110px;
    padding-top: 8px;
}

/* ── Select ── */

.form-download-container select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='%23000' d='M0 0l5 6 5-6z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 10px 6px;
    padding-right: 24px;
}

/* ── Radio buttons ── */

.pk-radio-group {
    margin-bottom: 2rem;
}

.pk-radio-group-label {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin-bottom: 16px;
    display: block;
}

.pk-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.pk-radio-option:first-of-type {
    border-top: 1px solid #eee;
}

.pk-radio-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #a000ff;
    flex-shrink: 0;
}

.pk-radio-option label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    color: #000;
}

.pk-radio-title {
    font-family: "PreciousKitchen", sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    line-height: 1.3;
}

.pk-radio-tag {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a000ff;
}

/* ── Checkboxes ── */

.form-download-container .form-check {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-download-container .form-check-input {
    position: static;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
    margin-left: 0;
    cursor: pointer;
    border: 2px solid #222;
    border-radius: 0;
    accent-color: #a000ff;
    flex-shrink: 0;
}

.form-download-container .form-check-label {
    cursor: pointer;
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    margin-left: 0;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

.form-download-container .form-check-label a {
    color: #a000ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-download-container .form-check-label a:hover {
    color: #7800cc;
}

/* ── Submit button — miroir inversé de .btn-pk-cta ── */

.btn-pk-submit {
    display: block !important;
    width: 100% !important;
    background-color: #fff !important;
    color: #a000ff !important;
    border: 2px solid #a000ff !important;
    border-bottom: 4px solid #a000ff !important;
    border-radius: 0 !important;
    padding: 18px 40px !important;
    font-family: "PreciousKitchen", sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: normal !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-align: center !important;
    line-height: inherit !important;
    transition: background-color 0.2s, color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.btn-pk-submit:hover,
.btn-pk-submit:focus {
    background-color: #a000ff !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-pk-submit:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.btn-pk-submit * {
    font-family: "PreciousKitchen", sans-serif !important;
}

/* ── Messages ── */

#form-messages {
    margin-bottom: 24px;
}

#form-messages .alert {
    border-radius: 0;
    padding: 14px 20px;
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 15px;
    border-left: 4px solid;
    line-height: 1.6;
}

#form-messages .alert-success {
    background-color: rgba(0, 210, 160, 0.1);
    border-color: #00d2a0;
    color: #00695c;
    border-left-color: #00d2a0;
}

#form-messages .alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    color: #721c24;
    border-left-color: #dc3545;
}

/* ── Helper text ── */

.text-danger {
    color: #dc3545;
}

.text-muted {
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 13px;
    color: #888;
}

/* ── Spinner ── */

.spinner-border-sm {
    margin-left: 8px;
}

/* ── Validation feedback ── */

.invalid-feedback {
    display: block;
    margin-top: 4px;
    font-family: "GT-Super-Text-Regular", serif;
    font-size: 13px;
    color: #dc3545;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .pk-kit-title {
        font-size: 2rem;
    }

    .pk-kit-section-title {
        font-size: 1.3rem;
    }

    .page-form-download {
        padding-top: 40px;
    }

    .form-download-container .btn-primary {
        width: 100%;
        text-align: center;
    }

    .btn-pk-cta {
        font-size: 1rem;
        padding: 16px 20px;
    }
}
