@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }

:root {
  --noir: #111111; --noir-2: #1b1b1b; --or: #B8913A; --or-vif: #D4AF5A; --or-clair: #E9DDBF;
  --ivoire: #FAF7F0; --texte: #1d1d1d; --gris: #6b6b6b; --ligne: #E6E0D2; --rouge: #B3412E;
  --serif: "Cormorant", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
  --rayon: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--texte); background: var(--ivoire); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--or); }
button { font: inherit; }

/* Barre */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: rgba(17,17,17,0.96); backdrop-filter: blur(8px); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque img { height: 30px; width: auto; }
.marque span { color: var(--or); font-weight: 600; letter-spacing: 6px; font-size: 14px; }
.barre-titre { color: #cfcfcf; font-size: 13px; letter-spacing: .5px; }

/* Écrans */
.ecran { display: none; flex: 1; }
.ecran.actif { display: block; animation: apparition .6s cubic-bezier(.2,.7,.2,1); }
@keyframes apparition { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Accueil */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, #2a2416 0%, var(--noir) 55%); color: #fff; padding: 9vh 28px 10vh; text-align: center; min-height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero .sur { color: var(--or); letter-spacing: 4px; text-transform: uppercase; font-size: 12px; margin: 0 0 22px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 8vw, 96px); line-height: .98; margin: 0 0 28px; letter-spacing: -1px; }
.hero h1 em { color: var(--or-vif); font-style: italic; }
.accroche { max-width: 640px; color: #d6d6d6; font-size: 18px; margin: 0 auto 40px; }
.promesses { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 18px; margin: 0 auto 44px; }
.promesses div { text-align: left; border: 1px solid rgba(184,145,58,.35); border-radius: var(--rayon); padding: 18px 18px 16px; font-size: 14px; color: #bdbdbd; background: rgba(255,255,255,.02); }
.promesses strong { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.promesses .chiffre { font-family: var(--serif); color: var(--or); font-size: 30px; line-height: 1; display: block; margin-bottom: 8px; }
.discret { color: #8f8f8f; font-size: 13px; margin-top: 18px; }
.centre { text-align: center; }
.eclats { position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, rgba(212,175,90,.8), transparent 60%), radial-gradient(1px 1px at 28% 78%, rgba(212,175,90,.6), transparent 60%),
  radial-gradient(1.5px 1.5px at 66% 14%, rgba(212,175,90,.7), transparent 60%), radial-gradient(1px 1px at 84% 64%, rgba(212,175,90,.6), transparent 60%),
  radial-gradient(1.2px 1.2px at 45% 42%, rgba(212,175,90,.5), transparent 60%), radial-gradient(1px 1px at 92% 30%, rgba(212,175,90,.6), transparent 60%);
  animation: scintille 6s ease-in-out infinite alternate; }
@keyframes scintille { from { opacity: .35; } to { opacity: 1; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 28px; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.bouton.or { background: linear-gradient(135deg, var(--or-vif), var(--or)); color: #111; box-shadow: 0 6px 22px rgba(184,145,58,.28); }
.bouton.or:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(184,145,58,.38); }
.bouton.fantome { background: transparent; color: var(--gris); }
.bouton.fantome:hover { color: var(--texte); }
.bouton.grand { padding: 17px 38px; font-size: 17px; }
.bouton:disabled { opacity: .5; cursor: wait; }

/* Questionnaire */
.progression { height: 3px; background: var(--ligne); position: sticky; top: 58px; z-index: 10; }
.progression-barre { height: 100%; width: 0; background: linear-gradient(90deg, var(--or), var(--or-vif)); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.conteneur { max-width: 760px; margin: 0 auto; padding: 46px 24px 70px; }
.conteneur.large { max-width: 980px; }
.etape-entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.etape-num { color: var(--or); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0; }
#questionnaire h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 46px); line-height: 1.05; margin: 8px 0 10px; }
.intro { color: var(--gris); font-size: 17px; margin: 0 0 34px; }
.jauge-live { background: var(--noir); color: #fff; border-radius: 12px; padding: 8px 14px; font-size: 12px; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
.jauge-live span { color: #aaa; }
.jauge-live strong { color: var(--or-vif); font-size: 14px; text-align: right; }
.jauge-live .mini { grid-column: 1 / 3; height: 4px; background: #333; border-radius: 4px; margin-top: 6px; overflow: hidden; }
.jauge-live .mini i { display: block; height: 100%; width: 0; background: var(--or-vif); transition: width .4s; }

.champ { margin-bottom: 26px; animation: apparition .5s both; }
.champ > label, .champ > .question { display: block; font-weight: 600; margin-bottom: 8px; font-size: 16px; }
.champ .aide { color: var(--gris); font-size: 14px; margin: -2px 0 10px; }
.requis { color: var(--or); margin-left: 3px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid var(--ligne); border-radius: 10px; background: #fff; transition: border .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(184,145,58,.15); }
textarea { min-height: 110px; resize: vertical; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.choix { display: grid; gap: 10px; }
.choix.colonnes { grid-template-columns: 1fr 1fr; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; cursor: pointer; transition: border .2s, background .2s, transform .1s; }
.option:hover { border-color: #cdbf9c; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .coche { flex: none; width: 20px; height: 20px; border: 1.5px solid #c9c2b1; border-radius: 50%; display: grid; place-items: center; transition: all .2s; }
.option.carre .coche { border-radius: 6px; }
.option input:checked + .coche { background: var(--or); border-color: var(--or); }
.option input:checked + .coche::after { content: ""; width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.option.carre input:checked + .coche::after { width: 10px; height: 6px; background: none; border: 2px solid #fff; border-top: 0; border-right: 0; border-radius: 0; transform: rotate(-45deg) translate(1px, -1px); }
.option:has(input:checked) { border-color: var(--or); background: #FFFCF3; }
.option:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(184,145,58,.2); }

/* Échelles */
.legende-echelle { display: flex; justify-content: flex-end; gap: 6px; font-size: 11.5px; color: var(--gris); margin-bottom: 8px; }
.ligne-echelle { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.ligne-echelle .lib { font-weight: 500; }
.segments { display: flex; gap: 6px; }
.segments label { cursor: pointer; }
.segments input { position: absolute; opacity: 0; }
.segments span { display: grid; place-items: center; min-width: 98px; padding: 8px 6px; border-radius: 8px; border: 1.5px solid var(--ligne); background: #fff; font-size: 12.5px; color: var(--gris); text-align: center; transition: all .2s; line-height: 1.2; }
.segments label:hover span { border-color: #cdbf9c; }
.segments input:checked + span { background: var(--noir); color: var(--or-clair); border-color: var(--noir); }
.segments input:focus-visible + span { box-shadow: 0 0 0 4px rgba(184,145,58,.25); }
.accord span { min-width: 72px; }
.ligne-echelle.manquant .lib { color: var(--rouge); }
.champ.manquant .question, .champ.manquant > label { color: var(--rouge); }
.champ.manquant input[type=text], .champ.manquant input[type=email], .champ.manquant textarea { border-color: var(--rouge); }

.consentement { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 16px; font-size: 14px; color: #444; cursor: pointer; }
.consentement input { margin-top: 3px; accent-color: var(--or); width: 18px; height: 18px; flex: none; }
.pot { position: absolute; left: -9999px; }
.erreur-globale { color: var(--rouge); font-weight: 500; }
.navigation { display: flex; justify-content: space-between; margin-top: 34px; }

/* Analyse */
#analyse { background: var(--noir); }
.analyse { min-height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--or-clair); font-family: var(--serif); font-size: 26px; }
.anneau { width: 74px; height: 74px; border-radius: 50%; border: 2px solid #333; border-top-color: var(--or-vif); animation: tourne 1s linear infinite; margin-bottom: 26px; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* Résultat */
.sur.sombre { color: var(--or); letter-spacing: 4px; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0; }
.titre-resultat { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 52px); margin: 6px 0 30px; }
.grille-resultat { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px 28px; }
.etiquette { color: var(--or); letter-spacing: 2.5px; text-transform: uppercase; font-size: 11.5px; font-weight: 600; margin: 0 0 8px; }
.etiquette.clair { color: var(--or-vif); }
.niveau { font-family: var(--serif); font-size: 46px; font-weight: 600; margin: 0 0 18px; line-height: 1; }
.jauge { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--gris); }
.jauge strong { color: var(--texte); text-align: right; }
.piste { height: 8px; background: #EEE9DC; border-radius: 8px; overflow: hidden; }
.piste i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--or), var(--or-vif)); border-radius: 8px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.texte-niveau { color: #444; margin: 16px 0 0; font-size: 15px; }

.carte-style { perspective: 1400px; display: grid; min-height: 380px; }
.carte-style .face { grid-area: 1 / 1; border-radius: var(--rayon); padding: 26px 28px; backface-visibility: hidden; transition: transform .9s cubic-bezier(.3,.7,.2,1); background: radial-gradient(500px 300px at 90% 0%, #2c2516, var(--noir) 65%); color: #fff; }
.carte-style .recto { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.carte-style .verso { transform: rotateY(180deg); }
.carte-style.retournee .recto { transform: rotateY(-180deg); }
.carte-style.retournee .verso { transform: rotateY(0); }
.mystere { font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--or-vif); margin: 10px 0 24px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.96); } }
.style-nom { font-family: var(--serif); font-size: 40px; font-weight: 600; margin: 0; color: #fff; line-height: 1.05; }
.devise { font-family: var(--serif); font-style: italic; color: var(--or-clair); font-size: 19px; margin: 4px 0 16px; }
.verso dl { margin: 0; font-size: 14px; }
.verso dt { color: var(--or-vif); font-weight: 600; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 10px; }
.verso dd { margin: 2px 0 0; color: #e4e4e4; }
.parcours ul { margin: 6px 0 0; padding: 0; list-style: none; }
.parcours li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid #f1ede3; }
.parcours li:last-child { border-bottom: 0; }
.parcours li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--or); }
.actions-fin { text-align: center; margin: 34px 0 10px; }
.statut { color: var(--gris); font-size: 14px; margin-top: 14px; }
.statut.ok { color: #3c6e3a; }

/* Dialogue */
dialog { border: 0; border-radius: var(--rayon); max-width: 540px; padding: 28px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(17,17,17,.6); }
dialog h3 { font-family: var(--serif); font-size: 30px; margin: 0 0 12px; }
dialog p { font-size: 14px; color: #444; }

.pied { text-align: center; font-size: 12px; color: #8a8a8a; padding: 22px; border-top: 1px solid var(--ligne); }
.pied a { color: #8a8a8a; }

/* Mobile */
@media (max-width: 760px) {
  .barre { padding: 12px 18px; } .barre-titre { display: none; }
  .progression { top: 54px; }
  .promesses { grid-template-columns: 1fr; max-width: 360px; width: 100%; }
  .duo, .choix.colonnes, .grille-resultat { grid-template-columns: 1fr; }
  .ligne-echelle { grid-template-columns: 1fr; gap: 10px; }
  .segments { flex-wrap: wrap; }
  .segments label { flex: 1 1 45%; }
  .segments span { min-width: 0; width: 100%; }
  .accord label { flex: 1 1 18%; }
  .accord span { font-size: 11px; padding: 8px 2px; }
  .legende-echelle { display: none; }
  .jauge-live { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
