/* ============================================================
   REVELATION COUTURE — Feuille de styles principale (v3)
   Polices : Clash Display (titres) + Satoshi (corps)
   (Polices chargées via <link rel="stylesheet"> non bloquant dans le <head>)
============================================================ */

:root {
    --foret: #1B4332;
    --terre: #D66853;
    --terre-fonce: #B8442E;
    --ocre: #E9C46A;
    --sable: #F9F6F0;
    --nuit: #2D3142;
    --nuit-soft: #4A4E5C;

    /* Échelle typographique harmonieuse et fluide (Haute Couture) */
    --text-xs:   0.75rem;                       /* 12px : mentions, dates, micro-labels */
    --text-sm:   0.875rem;                      /* 14px : textes secondaires, formulaires */
    --text-base: 1rem;                          /* 16px : corps de texte principal */
    --text-lg:   clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem); /* ~17-19px : intro & chapeaux */
    --text-xl:   clamp(1.2rem,    0.5vw  + 1.05rem, 1.35rem);   /* ~19-21.6px : sous-titres enrichis */
    --text-2xl:  clamp(1.35rem,   0.8vw  + 1.15rem, 1.625rem);  /* ~21.6-26px : cartes majeures & statuts */
    --text-3xl:  clamp(1.75rem,   1.2vw  + 1.45rem, 2.15rem);   /* ~28-34.4px : chiffres clés & accents */
}

/* ---------- BASE ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Respect prefers-reduced-motion (désactive le scroll fluide) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
    background-color: var(--sable);
    color: var(--nuit);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.005em;
    padding-top: 5rem;
    font-size: var(--text-base);
}

/* ============================================================
   FOCUS VISIBLE (WCAG 2.4.7)
============================================================ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--terre-fonce);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Retire l'outline natif uniquement quand :focus-visible est supporté */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================
   TYPOGRAPHIE — Clash Display & Hiérarchie Modulaire
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Clash Display', sans-serif;
    color: inherit;
    text-wrap: balance;
}

h1 {
    font-weight: 700;
    font-size: clamp(2.1rem, 4.2vw + 0.5rem, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

h2 {
    font-weight: 600;
    font-size: clamp(1.65rem, 2.2vw + 0.6rem, 2.25rem);
    line-height: 1.22;
    letter-spacing: -0.005em;
}

h3, .card-title {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: clamp(1.125rem, 0.4vw + 1rem, 1.25rem); /* Juste milieu : ~18px à 20px */
    line-height: 1.35;
    letter-spacing: 0.005em;
}

h4 {
    font-weight: 600;
    font-size: clamp(1.0625rem, 0.4vw + 0.9rem, 1.25rem);
    line-height: 1.35;
    letter-spacing: 0.015em;
}

h5, h6 {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

p {
    text-wrap: pretty;
}

p, li, dd, dt {
    font-size: inherit;
}

/* ============================================================
   UTILITAIRES TYPOGRAPHIQUES
   (Coopération propre avec Tailwind sans bloquer le responsive)
============================================================ */
p.text-lg,
.lead,
.text-lead {
    font-size: var(--text-lg);
    line-height: 1.62;
}

.eyebrow,
.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

/* Sections éditoriales denses (ex: mentions légales) */
#mainContent > .space-y-10 section > h2 {
    font-size: clamp(1.25rem, 0.8vw + 1rem, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================================
   SKIP LINK (accessibilité)
============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.focus\:not-sr-only:focus {
    position: fixed;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav-link {
    position: relative;
    display: inline-block;
    transition: color 0.25s ease;
    font-weight: 500;
    padding: 0.25rem 0.1rem 0.4rem;
    color: inherit;
}

.nav-link:hover { color: var(--nuit); }

.nav-link.active {
    color: var(--terre-fonce);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--terre-fonce);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ============================================================
   MENU MOBILE
============================================================ */

/* Menu mobile transitions et animations */
#mobileMenu {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.3s  cubic-bezier(0.4, 0, 0.2, 1),
        transform  0.4s  cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height, opacity, transform;
}

@media (min-width: 1024px) {
    #mobileMenu { display: none; }
}

#mobileMenu.is-open {
    max-height: 80vh;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
}

#mobileMenu ul > li {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#mobileMenu.is-open ul > li {
    opacity: 1;
    transform: translateX(0);
}

#mobileMenu.is-open ul > li:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.is-open ul > li:nth-child(2) { transition-delay: 0.10s; }
#mobileMenu.is-open ul > li:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.is-open ul > li:nth-child(4) { transition-delay: 0.20s; }
#mobileMenu.is-open ul > li:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.is-open ul > li:nth-child(6) { transition-delay: 0.30s; }
#mobileMenu.is-open ul > li:nth-child(7) { transition-delay: 0.35s; }
#mobileMenu.is-open ul > li:nth-child(8) { transition-delay: 0.40s; }

#burger svg {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#burger[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

#mobileMenu a.active {
    color: var(--terre-fonce);
    font-weight: 600;
    position: relative;
}

#mobileMenu a.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.5rem;
    background: var(--terre-fonce);
    border-radius: 2px;
}

#mobileMenu a.active.bg-terre-fonce {
    box-shadow: 0 0 0 3px rgba(184, 68, 46, 0.25);
}

#mobileMenu a.active.bg-terre-fonce::before { display: none; }

@media (prefers-reduced-motion: reduce) {
    #mobileMenu,
    #mobileMenu ul > li,
    #burger svg { transition: none !important; }
}

/* ============================================================
   FOOTER
============================================================ */
footer .font-display.text-ocre.uppercase {
    font-size: clamp(0.8125rem, 0.3vw + 0.75rem, 0.9375rem);
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* ============================================================
   REVEAL ON SCROLL (Progressive Enhancement)
   Visible par défaut (opacité 1) pour garantir la visibilité immédiate
   sur protocole local (file://), connexions lentes ou avant hydratation JS.
   L'animation douce ne s'active que lorsque JavaScript initialise .js-reveal.
============================================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-reveal .reveal:not(.in) {
    opacity: 0;
    transform: translateY(20px);
}

.js-reveal .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   CARTES & HOVERS
============================================================ */
.pack-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    border-color: var(--foret);
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.10);
}

.pack-card.excellence {
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.25);
}

/* ============================================================
   FILTRES GALERIE
============================================================ */
.filter-btn {
    transition: all 0.25s ease;
    color: var(--nuit);
}

.filter-btn:hover {
    border-color: var(--terre);
    color: var(--terre-fonce);
}

.filter-btn.active {
    background: var(--foret);
    color: white;
    border-color: var(--foret);
}

/* ============================================================
   FORMULAIRE — Choix paiement
============================================================ */
.radio-card input:checked + div {
    border-color: var(--terre-fonce);
    background: #FFF3ED;
    box-shadow: 0 0 0 4px rgba(184, 68, 46, 0.12);
}

.radio-card input:checked + div .check {
    opacity: 1;
    transform: scale(1);
}

.check {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s ease;
}

/* ============================================================
   CHAMPS DE FORMULAIRE
============================================================ */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--foret);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.10);
}

input, button, textarea, select { font-family: inherit; }

/* Champs invalides après tentative de soumission (exclut les dates) */
input:invalid:not(:placeholder-shown):not([type="date"]),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:focus) {
    border-color: #DC2626;
}

/* ============================================================
   SELECT PERSONNALISÉ (remplace le style natif du navigateur)
============================================================ */

select:hover {
    border-color: var(--foret);
}

select:focus {
    outline: none;
    border-color: var(--foret);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.10);
}

/* Style des options dans la liste déroulante */
select option {
    background: #ffffff;
    color: var(--nuit);
    padding: 0.75rem 1rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.95rem;
}

/* Option sélectionnée */
select option:checked {
    background: var(--foret);
    color: #ffffff;
    font-weight: 500;
}

/* Firefox — supprime le liseré natif au focus */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--nuit);
}

/* ============================================================
   DETAILS / SUMMARY (FAQ contact)
============================================================ */
details summary {
    list-style: none;
    cursor: pointer;
}

details summary::-webkit-details-marker {
    display: none;
}

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sable); }
::-webkit-scrollbar-thumb {
    background: var(--foret);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--nuit); }

/* ============================================================
   CITATIONS
============================================================ */
blockquote {
    font-family: 'Clash Display', sans-serif;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.quote-promoteur {
    font-size: 1.25rem; /* 20px sur mobile */
}

@media (min-width: 640px) {
    .quote-promoteur {
        font-size: 22px !important; /* 22px sur ordinateur */
        line-height: 1.625;
    }
}

.citation-author {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .citation-author { font-size: 1.4rem; }
}

/* ============================================================
   CHIFFRES
============================================================ */
[data-count] {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   BOUTONS
============================================================ */
a[class*="bg-terre-fonce"],
a[class*="bg-foret"],
a[class*="bg-ocre"],
a[class*="border-foret"],
a[class*="border-terre-fonce"],
button[type="submit"],
.filter-btn {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ============================================================
   PASTILLES NUMÉROTÉES
============================================================ */
.step-num {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================================
   GALERIE
============================================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    background: #EAEAEA;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    display: block;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--foret) 0%, var(--nuit) 100%);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 1.5rem;
}

/* ============================================================
   MARQUEE PARTENAIRES
============================================================ */
.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.marquee-track[data-ready="true"] {
    animation: marquee-scroll 30s linear infinite;
}

.marquee-set {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex-shrink: 0;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee-track:hover {
    animation-play-state: paused !important;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 180px;
}

.marquee-item img {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--set-width, 0px))); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none !important;
        justify-content: center;
        flex-wrap: wrap;
    }
    .marquee-set {
        padding-right: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (max-width: 640px) {
    .marquee-set {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }
    .marquee-track[data-ready="true"] {
        animation-duration: 22s;
    }
    .marquee-item {
        height: 60px;
        width: 140px;
    }
}

/* ============================================================
   CUSTOM SELECT (100% personnalisé, zéro dépendance)
============================================================ */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select.is-open {
    z-index: 50;
}

.custom-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.custom-select-trigger {
    width: 100%;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem !important;
    background: #ffffff;
    border: 1px solid rgba(27, 67, 50, 0.2);
    border-radius: 0.75rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem !important;
    color: var(--nuit);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: var(--foret);
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
    outline: none;
    border-color: var(--foret);
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.10);
}

.custom-select-trigger.is-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.custom-select-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-value.is-placeholder {
    color: var(--nuit-soft);
}

.custom-select-arrow {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--foret);
    transition: transform 0.25s ease;
}

.custom-select.is-open .custom-select-arrow {
    transform: rotate(180deg);
}

/* Liste déroulante */
.custom-select-options {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    max-height: 18rem;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(27, 67, 50, 0.15);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.15);
    z-index: 60;
    padding: 0.375rem;
    list-style: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s linear 0.2s;
}

.custom-select.is-open .custom-select-options {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s;
}

.custom-select-option {
    padding: 0.7rem 0.875rem;
    border-radius: 0.5rem;
    color: var(--nuit);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.custom-select-option:hover,
.custom-select-option.is-highlighted {
    background: var(--foret);
    color: #ffffff;
}

.custom-select-option[aria-selected="true"] {
    font-weight: 600;
    color: var(--terre-fonce);
}

.custom-select-option[aria-selected="true"]:hover,
.custom-select-option[aria-selected="true"].is-highlighted {
    color: #ffffff;
}

.custom-select-option[aria-selected="true"]::after {
    content: '✓';
    font-weight: 700;
    font-size: 0.85em;
    opacity: 0.9;
}

.custom-select-option.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-select-option[data-value=""] {
    color: var(--nuit-soft);
    font-style: italic;
}

/* Scrollbar de la liste */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(27, 67, 50, 0.25);
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .custom-select-options,
    .custom-select-arrow {
        transition: none !important;
    }
}

/* ============================================================
   CUSTOM DATE PICKER (100% personnalisé, zéro dépendance)
============================================================ */
.custom-date {
    position: relative;
    width: 100%;
}

.custom-date.is-open {
    z-index: 50;
}

.custom-date-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.custom-date-trigger {
    width: 100%;
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem !important;
    background: rgba(247, 245, 240, 0.4);
    border: 1px solid rgba(27, 67, 50, 0.2);
    border-radius: 0.75rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem !important;
    color: var(--nuit);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-date-trigger:hover {
    background: #ffffff;
    border-color: var(--terre-fonce);
}

.custom-date-trigger:focus-visible,
.custom-date.is-open .custom-date-trigger {
    outline: none;
    background: #ffffff;
    border-color: var(--terre-fonce);
    box-shadow: 0 0 0 3px rgba(214, 104, 83, 0.2);
}

.custom-date-trigger.is-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.custom-date-value {
    flex: 1;
}

.custom-date-value.is-placeholder {
    color: var(--nuit-soft);
}

.custom-date-icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--foret);
}

/* Popup */
.custom-date-popup {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    width: 20rem;
    max-width: min(20rem, calc(100vw - 2.5rem));
    background: #ffffff;
    border: 1px solid rgba(27, 67, 50, 0.15);
    border-radius: 0.875rem;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.15);
    z-index: 60;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s linear 0.2s;
}

.custom-date.is-open .custom-date-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s;
}

/* Header */
.custom-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.custom-date-nav {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(27, 67, 50, 0.15);
    border-radius: 0.5rem;
    color: var(--foret);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.custom-date-nav:hover {
    background: var(--foret);
    color: #ffffff;
    border-color: var(--foret);
}

.custom-date-nav svg {
    width: 1rem;
    height: 1rem;
}

.custom-date-title,
.custom-date-selectors {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nuit);
}

/* Weekdays */
.custom-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
    margin-bottom: 0.375rem;
}

.custom-date-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--nuit-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0;
}

/* Days grid */
.custom-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.125rem;
}

.custom-date-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.875rem;
    color: var(--nuit);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    padding: 0;
}

.custom-date-day:hover:not(:disabled) {
    background: rgba(27, 67, 50, 0.1);
}

.custom-date-day.is-other-month {
    color: var(--nuit-soft);
    opacity: 0.45;
}

.custom-date-day.is-today {
    font-weight: 700;
    color: var(--terre-fonce);
}

.custom-date-day.is-today::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background: var(--terre-fonce);
    border-radius: 50%;
}

.custom-date-day.is-selected,
.custom-date-day.is-selected:hover {
    background: var(--foret);
    color: #ffffff;
    font-weight: 600;
}

.custom-date-day.is-selected.is-today {
    color: #ffffff;
}

.custom-date-day.is-selected.is-today::after {
    background: #ffffff;
}

.custom-date-day:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Footer */
.custom-date-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.custom-date-btn,
.custom-date-action {
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--foret);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-date-btn:hover,
.custom-date-action:hover {
    background: rgba(27, 67, 50, 0.08);
}

.custom-date-btn.is-primary,
.custom-date-action.is-primary {
    font-weight: 700;
    color: var(--terre-fonce);
}

@media (prefers-reduced-motion: reduce) {
    .custom-date-popup { transition: none; }
}

/* ============================================================
   MINI-SELECT (pour le header du date picker)
============================================================ */
.mini-select,
.custom-date-header-select {
    position: relative;
    display: inline-block;
}

.mini-select-trigger,
.custom-date-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nuit);
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-transform: capitalize;
    white-space: nowrap;
}

.mini-select-trigger:hover,
.mini-select.is-open .mini-select-trigger,
.custom-date-header-btn:hover,
.custom-date-header-select.is-open .custom-date-header-btn {
    background-color: rgba(27, 67, 50, 0.08);
}

.mini-select-trigger:focus-visible,
.custom-date-header-btn:focus-visible {
    outline: 2px solid var(--terre-fonce);
    outline-offset: 2px;
}

.mini-select-value {
    pointer-events: none;
}

.mini-select-arrow,
.custom-date-header-arrow {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--foret);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mini-select.is-open .mini-select-arrow,
.custom-date-header-select.is-open .custom-date-header-arrow {
    transform: rotate(180deg);
}

.mini-select-options,
.custom-date-header-menu {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 9rem;
    max-height: 14rem;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(27, 67, 50, 0.15);
    border-radius: 0.625rem;
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.15);
    z-index: 70;
    padding: 0.3rem;
    list-style: none;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0s linear 0.15s;
}

.mini-select.is-open .mini-select-options,
.custom-date-header-select.is-open .custom-date-header-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0s;
}

.mini-select-option,
.custom-date-header-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    color: var(--nuit);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
    text-transform: capitalize;
    white-space: nowrap;
}

.mini-select-option:hover,
.mini-select-option.is-highlighted,
.custom-date-header-item:hover {
    background: var(--foret);
    color: #ffffff;
}

.mini-select-option[aria-selected="true"],
.custom-date-header-item[aria-selected="true"] {
    font-weight: 600;
    color: var(--terre-fonce);
}

.mini-select-option[aria-selected="true"]:hover,
.mini-select-option[aria-selected="true"].is-highlighted,
.custom-date-header-item[aria-selected="true"]:hover {
    color: #ffffff;
}

.mini-select-options::-webkit-scrollbar,
.custom-date-header-menu::-webkit-scrollbar { width: 6px; }
.mini-select-options::-webkit-scrollbar-track,
.custom-date-header-menu::-webkit-scrollbar-track { background: transparent; }
.mini-select-options::-webkit-scrollbar-thumb,
.custom-date-header-menu::-webkit-scrollbar-thumb {
    background: rgba(27, 67, 50, 0.25);
    border-radius: 3px;
}

/* ============================================================
   FOOTER (Haute Couture — Structure & Espacements Garantis)
============================================================ */
.site-footer {
    position: relative;
    background-color: var(--nuit);
    color: #ffffff;
    margin-top: 4rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-accent-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--foret) 0%, var(--ocre) 50%, var(--terre-fonce) 100%);
}

.site-footer .footer-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 4.5rem;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 640px) {
    .site-footer .footer-container {
        padding-top: 3rem;
        padding-bottom: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* En-têtes de colonnes élégants */
.site-footer h3,
.site-footer .footer-heading {
    font-family: 'Clash Display', sans-serif;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    color: var(--ocre);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--ocre);
}

/* ============================================================
   PAGE INSCRIPTION (Haute Couture — Formulaire d'élite)
============================================================ */
.upload-dropzone {
    border: 2px dashed rgba(27, 67, 50, 0.22);
    border-radius: 1.25rem;
    padding: 1.6rem 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-dropzone:hover {
    border-color: var(--terre-fonce);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(184, 68, 46, 0.14);
}

.upload-dropzone.has-file {
    border-color: var(--foret);
    border-style: solid;
    background: linear-gradient(180deg, #f0fdf4 0%, rgba(27, 67, 50, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.08);
}

.upload-dropzone.has-file .file-icon-box {
    background-color: rgba(27, 67, 50, 0.12);
    color: var(--foret);
    transform: scale(1.08);
}

#stepperContainer {
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    box-shadow: 0 4px 20px rgba(45, 49, 66, 0.04);
}

#stepIndicator1, #stepIndicator2, #stepIndicator3 {
    min-height: 44px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-couture {
    height: 3rem !important;
    min-height: 3rem !important;
    max-height: 3rem !important;
    box-sizing: border-box !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-couture:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(184, 68, 46, 0.12);
}

/* Animation 3 points de chargement sobre & moderne */
.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 24px;
    vertical-align: middle;
}

.loading-dots span:not(.sr-only) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
    animation: dots-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes dots-bounce {
    0%, 80%, 100% {
        transform: scale(0.35);
        opacity: 0.35;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.timeline-step {
    position: relative;
    padding-left: 2.25rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.75rem;
    bottom: -1.25rem;
    width: 2px;
    background: rgba(27, 67, 50, 0.15);
}

.timeline-step:last-child::before {
    display: none;
}

/* ============================================================
   STYLES D'IMPRESSION OFFICIELS (Attestation & Reçu A4)
============================================================ */
@media print {
    header, nav, footer, #siteHeader, #siteFooter, #siteNav,
    #stepperContainer, #formAlertBox, #fusionPayAction,
    #manualPaymentInfo, .filter-btn,
    button:not(#printReceiptBtn), a[href^="https://wa.me"], #printReceiptBtn {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #111827 !important;
        padding-top: 0 !important;
        font-size: 11pt !important;
    }

    @page {
        size: A4 portrait;
        margin: 1.5cm;
    }

    #successState {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    #paymentSummaryBox {
        border: 2px solid #1B4332 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        padding: 24px !important;
        max-width: 100% !important;
        margin-top: 20px !important;
        box-shadow: none !important;
    }

    #paymentSummaryBox::before {
        content: "RÉVÉLATION COUTURE 8ᵉ ÉDITION (2026-2027) — ATTESTATION OFFICIELLE DE CANDIDATURE";
        display: block;
        font-weight: bold;
        font-size: 13pt;
        color: #1B4332;
        border-bottom: 2px solid #1B4332;
        padding-bottom: 12px;
        margin-bottom: 16px;
        text-align: center;
        letter-spacing: 0.04em;
    }

    #paymentSummaryBox::after {
        content: "Document officiel à conserver précieusement pour les délibérations de janvier 2027 et l'accès aux masterclass. Révélation Couture — Lomé, Togo — WhatsApp assistance : +228 92 10 76 11";
        display: block;
        font-size: 8.5pt;
        color: #4b5563;
        border-top: 1px dashed #9ca3af;
        padding-top: 12px;
        margin-top: 20px;
        text-align: center;
        font-style: italic;
    }
}

/* Boutons d'action dossier sponsoring (largeur unifiée à 270px) */
.btn-dossier-action {
    width: 270px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Cartes de sélection des catégories de concours (Couture Flou, Homme, Dame) */
.category-radio-card {
    transition: all 0.2s ease;
}
.category-radio-card:hover {
    border-color: rgba(184, 68, 46, 0.45);
}
.category-radio-card:has(input:checked),
.category-radio-card.selected {
    border-color: #B8442E !important;
    background-color: rgba(184, 68, 46, 0.05) !important;
    box-shadow: 0 4px 14px rgba(184, 68, 46, 0.12) !important;
}
.category-radio-card:has(input:checked) span.font-display,
.category-radio-card.selected span.font-display {
    color: #B8442E !important;
}