/* Lumos Services Financiers : pages de services */
:root {
    --bg-deep: #111118;
    --bg-card: #191922;
    --bg-elevated: #22222e;
    --gold-primary: #d4a853;
    --gold-light: #f0d090;
    --gold-dark: #b8943f;
    --gold-glow: rgba(212, 168, 83, 0.35);
    --text-primary: #f5f3f0;
    --text-secondary: rgba(245, 243, 240, 0.78);
    --text-muted: rgba(245, 243, 240, 0.55);
    --border-subtle: rgba(255, 255, 255, 0.10);
    --border-gold: rgba(212, 168, 83, 0.22);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --max: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.saut { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--gold-primary); color: var(--bg-deep); padding: .6rem 1rem; font-weight: 500; }
.saut:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.highlight { color: var(--gold-light); font-style: italic; }

/* ---------- Navigation ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 1.2rem 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease;
}
.site-nav.scrolled, body.menu-ouvert .site-nav {
    background: rgba(17, 17, 24, 0.94);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding-top: .85rem; padding-bottom: .85rem;
    box-shadow: 0 1px 0 var(--border-subtle);
}
.nav-left { display: flex; align-items: center; gap: 1.5rem; }

/* Fil de progression de lecture, sous la barre : même repère que sur
   l'accueil. La largeur est pilotée par un scaleX composité, pas par une
   propriété qui forcerait un recalcul de mise en page à chaque image. */
.barre-progres {
    position: absolute; left: 0; bottom: -1px;
    height: 2px; width: 100%;
    transform: scaleX(0); transform-origin: left;
    background: linear-gradient(90deg, rgba(212, 168, 83, .35), var(--gold-light));
    opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.site-nav.scrolled .barre-progres { opacity: 1; }

/* Montée des cartes à l'entrée dans l'écran. La classe est posée par
   commun.js : sans JavaScript, rien n'est masqué. */
.monte {
    opacity: 0; transform: translateY(22px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--delai, 0s);
}
.monte.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .monte { opacity: 1; transform: none; transition: none; }
}
.logo svg { height: 26px; width: auto; filter: drop-shadow(0 0 20px var(--gold-glow)); }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
/* Le menu porte une entrée de plus sur ces pages : on resserre aux largeurs
   de portable pour qu'aucun libellé ne se replie. */
/* Le libellé du chip tient sur une ligne ou disparaît : à deux lignes il
   déforme la barre. Même seuil que la page d'accueil. */
.portal-btn, .portal-btn .portal-text { white-space: nowrap; }

@media (max-width: 1560px) {
    .portal-btn .portal-text { display: none; }
    .portal-btn { padding: .5rem .7rem; }
}

@media (max-width: 1340px) {
    .nav-links { gap: 1.5rem; }
    .nav-links a { font-size: .76rem; letter-spacing: .09em; }
}
@media (max-width: 1270px) {
    .nav-links { gap: 1.05rem; }
    .nav-links a { font-size: .72rem; letter-spacing: .05em; }
    .nav-links a.nav-soumission { padding: .45rem .65rem; }
}
.nav-links a {
    color: var(--text-secondary); font-size: .8rem; font-weight: 400;
    letter-spacing: .14em; text-transform: uppercase; padding: .4rem 0; position: relative;
    white-space: nowrap; transition: color .3s ease;
}
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold-primary); transition: width .4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.portal-btn {
    display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem;
    border: 1px solid rgba(212, 168, 83, .28); background: rgba(212, 168, 83, .06); color: var(--gold-light);
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; transition: all .4s var(--ease);
}
.portal-btn:hover { background: rgba(212, 168, 83, .19); border-color: rgba(212, 168, 83, .85); color: var(--gold-light); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 6px; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--gold-primary); transition: transform .3s ease, opacity .3s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu {
    position: fixed; inset: 0; z-index: 99; background: var(--bg-deep);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
    padding: 5rem 1.5rem 2rem; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.7rem; letter-spacing: .06em; color: var(--text-primary); }
.mobile-menu a:hover { color: var(--gold-primary); }
.mobile-menu .portal-btn { font-family: 'Outfit', sans-serif; font-size: .8rem; margin-top: 1rem; padding: .9rem 2rem; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: var(--gold-dark); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--gold-light); }

/* ---------- Hero ---------- */
.page-hero { position: relative; padding: 10rem 0 5rem; overflow: hidden; isolation: isolate; }
.page-hero::before {
    content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -350px;
    background: radial-gradient(closest-side, rgba(212, 168, 83, .16), rgba(212, 168, 83, 0));
}
.page-hero::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.section-label {
    display: inline-flex; align-items: center; gap: 1rem;
    font-size: .74rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 1.4rem;
}
.section-label::before, .section-label::after { content: ''; width: 32px; height: 1px; background: var(--gold-primary); opacity: .4; }
.page-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.08; max-width: 16ch;
}
.page-hero .lead { margin-top: 1.6rem; max-width: 640px; font-size: 1.14rem; color: var(--text-secondary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.btn-gold, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: 1.05rem 2rem; font-size: .95rem; font-weight: 500; letter-spacing: .01em;
    border-radius: 2px; white-space: nowrap;
    transition: background .35s ease, border-color .35s ease, color .35s ease;
    /* Ces deux classes servaient uniquement à des liens. Sur un <button>, le
       navigateur impose son propre fond gris et sa propre police : sans ces
       lignes, un bouton « Retour » sort en bloc blanc. */
    font-family: inherit;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
/* Action principale : contour franc, fond à peine teinté. Aucun aplat doré. */
.btn-gold {
    background: rgba(212, 168, 83, .10);
    border: 1px solid rgba(212, 168, 83, .85);
    color: var(--gold-light);
}
.btn-gold:hover { background: rgba(212, 168, 83, .19); border-color: var(--gold-light); color: #fbf0d4; }
/* Action secondaire : contour neutre, pour qu'elle ne concurrence pas la principale. */
.btn-outline { border: 1px solid rgba(245, 243, 240, .20); color: var(--text-secondary); font-weight: 400; }
.btn-outline:hover { border-color: rgba(245, 243, 240, .42); color: var(--text-primary); background: rgba(255,255,255,.03); }

.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.atout { background: var(--bg-deep); padding: 1.4rem 1.6rem; }
.atout strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.35rem; color: var(--gold-light); line-height: 1.2; }
.atout span { font-size: .9rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section.alt { background: var(--bg-card); }
.section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; margin-bottom: 1.4rem; max-width: 22ch;
}
.section .intro { max-width: 720px; color: var(--text-secondary); font-size: 1.06rem; }
.section p + p { margin-top: 1rem; }
.prose { max-width: 760px; color: var(--text-secondary); }
.prose strong { color: var(--text-primary); font-weight: 500; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start; }

.check-list { display: grid; gap: .85rem; margin-top: 1.6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--text-secondary); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 7px;
    border-left: 1.5px solid var(--gold-primary); border-bottom: 1.5px solid var(--gold-primary); transform: rotate(-45deg);
}
.check-list strong { color: var(--text-primary); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.cards.trois { grid-template-columns: repeat(3, 1fr); }
.card {
    position: relative; overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 2.4rem; transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.card::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: linear-gradient(180deg, var(--gold-primary), var(--gold-light)); transition: height .6s var(--ease); }
.card:hover { border-color: var(--border-gold); }
.card:hover::before { height: 100%; }
.card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.65rem; line-height: 1.2; margin-bottom: .9rem; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: .98rem; }
.card .ideal { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); font-size: .9rem; color: var(--text-muted); }
.card .ideal b { color: var(--gold-light); font-weight: 500; }

.table-wrap { margin-top: 2.5rem; overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; font-size: .96rem; }
thead th { background: var(--bg-elevated); font-weight: 500; color: var(--gold-light); letter-spacing: .04em; }
tbody th { font-weight: 500; color: var(--text-primary); width: 28%; }
td { color: var(--text-secondary); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Démarche (séquence réelle) */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 3rem; }
.etape { counter-increment: etape; border-top: 1px solid var(--border-gold); padding-top: 1.4rem; }
.etape::before { content: '0' counter(etape); display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.4rem; color: rgba(212, 168, 83, .45); line-height: 1; margin-bottom: .8rem; }
.etape h3 { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 1rem; margin-bottom: .5rem; color: var(--text-primary); }
.etape p { font-size: .92rem; color: var(--text-muted); }

/* FAQ */
.faq { margin-top: 2.5rem; max-width: 860px; border-top: 1px solid var(--border-subtle); }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative;
    font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; font-weight: 500; line-height: 1.3; color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: 'Outfit', sans-serif; font-weight: 300; font-size: 1.6rem; color: var(--gold-primary); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-light); }
.faq .reponse { padding: 0 0 1.6rem; color: var(--text-secondary); max-width: 760px; }
.faq .reponse p + p { margin-top: .8rem; }

/* CTA */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: 6rem 0; text-align: center; border-top: 1px solid var(--border-subtle); }
.cta-band::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(212, 168, 83, .18), transparent 60%); }
.cta-band h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.12; max-width: 20ch; margin: 0 auto 1.2rem; }
.cta-band p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .details { margin-top: 1.8rem; font-size: .9rem; color: var(--text-muted); }

/* Liens connexes */
.connexes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.connexe { display: block; border: 1px solid var(--border-subtle); padding: 1.6rem 1.8rem; border-radius: 4px; transition: border-color .4s ease, background-color .4s ease; }
.connexe:hover { border-color: var(--border-gold); background: rgba(212, 168, 83, .04); }
.connexe strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.4rem; color: var(--text-primary); margin-bottom: .3rem; }
.connexe span { font-size: .9rem; color: var(--text-muted); }
.connexe em { display: inline-block; margin-top: .9rem; font-style: normal; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }

.avis { margin-top: 3rem; font-size: .85rem; color: var(--text-muted); max-width: 860px; }
.avis a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-subtle); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer .logo svg { height: 24px; margin-bottom: 1.4rem; }
.site-footer address { font-style: normal; color: var(--text-muted); font-size: .9rem; line-height: 1.8; }
.site-footer address a:hover { color: var(--gold-light); }
.site-footer h2 { font-family: 'Outfit', sans-serif; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-primary); margin-bottom: 1.1rem; }
.site-footer nav ul { display: grid; gap: .7rem; }
.site-footer nav a { color: var(--text-muted); font-size: .9rem; transition: color .3s ease; }
.site-footer nav a:hover { color: var(--gold-light); }
.social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border-gold); border-radius: 50%; color: var(--text-secondary); transition: all .3s ease; }
.social a:hover { color: var(--gold-light); border-color: var(--gold-primary); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); font-size: .8rem; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .site-nav { padding: .85rem 1.5rem; }
    .etapes { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
}
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .cards.trois, .connexes { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .wrap { padding: 0 1.4rem; }
    .logo svg { height: 22px; }
    .nav-left { gap: 1rem; }
    .portal-btn .portal-text { display: none; }
    .portal-btn { padding: .5rem .7rem; }
    .page-hero { padding: 7.5rem 0 3.5rem; }
    .page-hero .lead { font-size: 1.04rem; }
    .section-label { font-size: .66rem; letter-spacing: .28em; }
    .section-label::before, .section-label::after { display: none; }
    .hero-actions { flex-direction: column; }
    .btn-gold, .btn-outline { width: 100%; padding: 1rem 1.2rem; letter-spacing: .1em; }
    .atouts { grid-template-columns: 1fr; margin-top: 3rem; }
    .section, .cta-band { padding: 4.2rem 0; }
    .cards { grid-template-columns: 1fr; gap: 1rem; }
    .card { padding: 1.8rem 1.5rem; }
    .etapes { grid-template-columns: 1fr; gap: 0; }
    .etape { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: .6rem; padding: 1.2rem 0; }
    .etape::before { grid-row: span 2; font-size: 2rem; margin: 0; }
    .faq summary { font-size: 1.22rem; padding-right: 2.4rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.2rem; }
    .social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ajustements */
.connexe span { display: block; }
.prose ul + p, .check-list + p { margin-top: 1.4rem; }

/* Bouton Appeler fixe (mobile seulement) */
.appel-mobile { display: none; }
@media (max-width: 768px) {
    .appel-mobile {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(17, 17, 24, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(212, 168, 83, .22);
        transition: transform .35s ease, opacity .35s ease;
    }
    .appel-mobile a {
        display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
        padding: .95rem 1rem; white-space: nowrap; border-radius: 2px;
        background: rgba(212, 168, 83, .10);
        border: 1px solid rgba(212, 168, 83, .85); color: var(--gold-light);
        font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 500; letter-spacing: .01em;
        -webkit-tap-highlight-color: transparent;
    }
    .appel-mobile a:active { transform: scale(.98); }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
    body.menu-ouvert .appel-mobile { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
@media (max-width: 360px) {
    .appel-mobile a { font-size: .74rem; letter-spacing: .08em; }
}

/* ---------- Rappel de soumission en milieu de page ----------
   Les pages d'assurance sont longues : un lecteur convaincu à mi-parcours ne
   devrait pas avoir à redescendre jusqu'au bas pour agir. */
.rappel-soumission {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1.4rem; margin: 3.2rem 0 0; padding: 1.8rem 2rem;
    border: 1px solid var(--border-gold); border-radius: 3px;
    background: rgba(212, 168, 83, .04);
}
.rappel-soumission p { margin: 0; max-width: 46ch; color: var(--text-secondary); font-size: .98rem; }
.rappel-soumission strong { color: var(--gold-light); font-weight: 500; }
.rappel-soumission .btn-gold { flex: 0 0 auto; }

@media (max-width: 640px) {
    .rappel-soumission { flex-direction: column; align-items: stretch; text-align: center; padding: 1.6rem 1.3rem; }
    .rappel-soumission .btn-gold { justify-content: center; }
}

/* ---------- Bouton Soumission du menu ----------
   Même traitement que sur l'accueil : seule entrée du menu posée en bouton,
   pour que le menu soit identique d'une page à l'autre. */
.nav-links a.nav-soumission {
    color: var(--gold-light);
    background: rgba(212, 168, 83, .10);
    border: 1px solid rgba(212, 168, 83, .85);
    border-radius: 2px;
    padding: .5rem .9rem;
    white-space: nowrap;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.nav-links a.nav-soumission::after { display: none; }
.nav-links a.nav-soumission:hover {
    background: rgba(212, 168, 83, .19);
    border-color: var(--gold-light);
    color: #fbf0d4;
}

/* Masqué à l'œil, lu par les lecteurs d'écran. La règle vivait en double
   dans le calculateur ; elle est ici pour toutes les pages. */
.visuellement-cache {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================================================
   PAGE DE SOUMISSION — une question à la fois
   =========================================================================== */

/* La page est le formulaire. Le titre et les garanties tiennent sur deux
   lignes en haut ; tout le reste de l'écran appartient à la question. */
.soum-titre {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: .9rem;
}
.soum-titre .highlight { color: var(--gold-light); font-style: italic; }

.soum-bandeau {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.8rem;
    list-style: none;
    margin: 0 0 3rem;
    padding: 0;
}
.soum-bandeau li {
    position: relative;
    font-size: .76rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-left: 1.3rem;
}
.soum-bandeau li::before {
    content: '';
    position: absolute;
    left: 0; top: .42em;
    width: 7px; height: 7px;
    border: 1px solid var(--gold-primary);
    transform: rotate(45deg);
}

/* Assez haute pour que la question tienne dans l'écran à l'arrivée, sans
   forcer une hauteur fixe qui couperait les étapes les plus longues. */
.soum-section {
    padding-top: 7.5rem;
    min-height: 100svh;
}
.soum-section .breadcrumb { margin-bottom: 2.4rem; }

/* Une seule colonne, large : c'est le formulaire qui occupe la page. Pas
   d'encadré, pas de fond propre — il n'y a rien d'autre à l'écran dont il
   faudrait le distinguer. */
/* La colonne entière est centrée dans l'écran : fil d'Ariane, titre, garanties
   et formulaire. Alignée à gauche dans un conteneur lui-même centré, elle
   paraissait décalée sur un grand écran. */
/* La colonne suit la largeur du reste du site (--max, 1180 px) et se resserre
   d'elle-même sous cette valeur : sur un grand écran la page ne paraît plus
   étriquée à côté des autres. Le texte d'accompagnement, lui, garde une
   longueur de ligne lisible — une phrase de 1180 px se lit mal. */
.soum-section .wrap { max-width: var(--max); }
.soum-scene { max-width: var(--max); margin: 0 auto; }
.soum-aide { max-width: 104ch; }

/* --- progression ---------------------------------------------------------- */
.soum-progression { margin-bottom: 2.6rem; }

.soum-jauge {
    height: 2px;
    background: rgba(245, 243, 240, .1);
    border-radius: 2px;
    overflow: hidden;
}
.soum-jauge span {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width .5s cubic-bezier(.16, 1, .3, 1);
}

.soum-etiquettes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
}
.soum-etiquettes li {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .4s ease;
}
.soum-etiquettes li + li { text-align: center; }
.soum-etiquettes li:last-child { text-align: right; }
.soum-etiquettes li.active { color: var(--gold-light); }
.soum-etiquettes li.faite { color: var(--text-secondary); }

/* « Étape 1 sur 4 » existait en triple : la jauge, les quatre étiquettes et
   cette ligne disaient la même chose. On la garde pour les lecteurs d'écran,
   qui ont besoin de l'entendre à chaque changement, et on la retire de l'œil. */
.soum-compte {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- les étapes ----------------------------------------------------------- */
.soum-etape { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.soum-etape.active { display: block; animation: soumEntre .45s cubic-bezier(.16, 1, .3, 1); }

@keyframes soumEntre {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.soum-question:focus { outline: none; }

.soum-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.12;
    color: var(--text-primary);
    padding: 0;
    margin-bottom: .8rem;
}

.soum-aide {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.4rem;
}
.soum-aide a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.soum-aide a:hover { color: #fff; }

/* --- cartes de choix (étape 1) -------------------------------------------- */
.soum-choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }

.soum-carte { position: relative; display: block; cursor: pointer; }
.soum-carte input {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.soum-carte-corps {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    height: 100%;
    padding: 1.7rem 1.3rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    background: rgba(245, 243, 240, .015);
    transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}
.soum-carte-corps svg { width: 34px; height: 34px; color: var(--gold-primary); margin-bottom: .5rem; }
.soum-carte-corps strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 500; color: var(--text-primary); line-height: 1.15;
}
.soum-carte-corps span { font-size: .87rem; color: var(--text-secondary); line-height: 1.55; }

.soum-carte:hover .soum-carte-corps { border-color: rgba(212, 168, 83, .45); transform: translateY(-2px); }
.soum-carte input:checked + .soum-carte-corps {
    border-color: rgba(212, 168, 83, .85);
    background: rgba(212, 168, 83, .09);
}
.soum-carte input:focus-visible + .soum-carte-corps {
    outline: 2px solid var(--gold-primary); outline-offset: 3px;
}

/* --- champs --------------------------------------------------------------- */
/* Aucune largeur propre : tout occupe la colonne du formulaire. Un champ
   plus étroit que la jauge au-dessus laissait un vide à droite qui faisait
   croire à une deuxième colonne vide. */
.soum-champ { margin-bottom: 1.5rem; }
.soum-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.soum-champ label,
.soum-etiquette {
    display: block;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: .55rem;
}
.soum-facultatif {
    text-transform: none; letter-spacing: 0; font-size: .78rem;
    color: var(--text-muted); font-style: italic;
}

.soum-champ input,
.soum-champ select {
    width: 100%;
    padding: 1.15rem 1.2rem;
    background: rgba(17, 17, 24, .55);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color .3s ease, background-color .3s ease;
}
.soum-champ input:focus,
.soum-champ select:focus {
    outline: none;
    border-color: rgba(212, 168, 83, .8);
    background: rgba(17, 17, 24, .8);
}
.soum-champ input::placeholder { color: var(--text-muted); }
.soum-champ input[aria-invalid="true"],
.soum-champ select[aria-invalid="true"] { border-color: #c0603f; }

.soum-champ select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 15px;
    padding-right: 2.6rem;
}

/* --- bascule oui / non ---------------------------------------------------- */
.soum-bascule { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.soum-bascule label { margin: 0; cursor: pointer; }
.soum-bascule input { position: absolute; opacity: 0; width: 0; height: 0; }
.soum-bascule span {
    display: block; text-align: center;
    padding: .9rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-secondary);
    font-size: .95rem;
    transition: all .3s ease;
}
.soum-bascule label:hover span { border-color: rgba(212, 168, 83, .45); }
.soum-bascule input:checked + span {
    border-color: rgba(212, 168, 83, .85);
    background: rgba(212, 168, 83, .1);
    color: var(--gold-light);
}
.soum-bascule input:focus-visible + span { outline: 2px solid var(--gold-primary); outline-offset: 3px; }

/* --- erreurs -------------------------------------------------------------- */
.soum-erreur {
    margin-top: .2rem;
    color: #e0876a;
    font-size: .88rem;
}

/* --- récapitulatif -------------------------------------------------------- */
.soum-recap {
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border-subtle);
}
.soum-recap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.soum-recap li {
    font-size: .74rem;
    letter-spacing: .06em;
    color: var(--gold-light);
    padding: .4rem .75rem;
    border: 1px solid rgba(212, 168, 83, .28);
    border-radius: 2px;
    background: rgba(212, 168, 83, .05);
}

/* --- boutons -------------------------------------------------------------- */
.soum-boutons {
    display: flex;
    gap: .9rem;
    margin-top: 2.6rem;
    align-items: stretch;
}
.soum-boutons .btn-gold { flex: 1; justify-content: center; }
.soum-boutons .btn-outline { flex: 0 0 auto; }
.soum-boutons button[disabled] { opacity: .55; pointer-events: none; }

/* .btn-gold et .btn-outline posent display:inline-flex, qui l'emporte sur le
   display:none que le navigateur donne à [hidden]. Sans cette ligne, les trois
   boutons restent visibles en même temps. */
.soum-boutons button[hidden] { display: none !important; }

/* Piège à robots : hors de l'écran plutôt que display:none, que certains
   remplisseurs automatiques savent ignorer. */
#s-piege {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}

.soum-consentement {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: .4rem;
}
.soum-consentement a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.soum-consentement a:hover { color: #fff; }

/* --- confirmation --------------------------------------------------------- */
.soum-fini { text-align: center; padding: 2rem 0 1rem; }
.soum-fini svg { width: 46px; height: 46px; color: var(--gold-primary); margin-bottom: 1.2rem; }
.soum-fini h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 500; margin-bottom: .8rem; color: var(--text-primary);
}
.soum-fini p { color: var(--text-secondary); line-height: 1.8; max-width: 46ch; margin: 0 auto .8rem; }
.soum-fini-appel a { color: var(--gold-light); }

/* --- garanties sous la carte ---------------------------------------------- */

/* --- petits écrans -------------------------------------------------------- */
/* Sous 900 px, trois cartes côte à côte deviennent illisibles : elles
   s'empilent et passent en ligne, icône à gauche, sans la description. */
@media (max-width: 900px) {
    .soum-choix { grid-template-columns: 1fr; gap: .9rem; }
    .soum-carte-corps { flex-direction: row; align-items: center; gap: 1.1rem; padding: 1.3rem 1.4rem; }
    .soum-carte-corps svg { flex: 0 0 auto; margin-bottom: 0; width: 30px; height: 30px; }
    .soum-carte-corps strong { font-size: 1.4rem; }
    .soum-carte-corps span { display: none; }
}

@media (max-width: 720px) {
    .soum-duo { grid-template-columns: 1fr; gap: 0; }
    .soum-etiquettes li { font-size: .6rem; letter-spacing: .08em; }
    .soum-bandeau { gap: .45rem 1.2rem; margin-bottom: 2.2rem; }
    .soum-bandeau li { font-size: .7rem; letter-spacing: .1em; padding-left: 1.1rem; }
    .soum-boutons { flex-direction: column-reverse; }
    .soum-boutons .btn-outline { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .soum-etape.active { animation: none; }
    .soum-jauge span { transition: none; }
}
