/* Poppins hébergée sur le site (aucun appel à Google). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #F26A1B;
  --orange-fonce: #C9500D;
  --orange-pale: #FFE7D6;
  --noir: #141414;
  --blanc: #FAF8F5;
  --gris: #6B6B6B;
  --bord: #E7E2DB;
  --rouge: #D64545;
  --jaune: #E0A800;
  --vert: #2E8B57;
  --rayon: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--blanc);
  color: var(--noir);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 5;
  background: rgba(250, 248, 245, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bord);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo svg { height: 36px; width: auto; display: block; }
.progression { flex: 1; min-width: 200px; }
.progression-texte { font-size: 13px; color: var(--gris); margin-bottom: 4px; }
.barre { height: 6px; background: var(--bord); border-radius: 99px; overflow: hidden; }
.barre-remplie { height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width .3s ease; }

.contenu { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; outline: none; }
.pied { text-align: center; font-size: 13px; color: var(--gris); padding: 24px 16px; border-top: 1px solid var(--bord); }

/* Typographie */
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(22px, 4.5vw, 28px); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.sous-titre { color: var(--gris); font-size: 17px; margin-top: 12px; }
.accent { color: var(--orange); }
.surtitre { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-fonce); margin-bottom: 8px; }

/* Accueil */
.accueil .points { list-style: none; display: grid; gap: 10px; margin: 28px 0; }
.accueil .points li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; }
.accueil .points b { display: block; }
.puce { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-pale); display: grid; place-items: center; font-size: 17px; }
.petit { font-size: 13px; color: var(--gris); margin-top: 14px; }

/* Boutons */
.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .1s ease, background .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-principal { background: var(--orange); color: var(--noir); }
.btn-principal:hover { background: #F47D35; }
.btn-principal:disabled { opacity: .4; cursor: not-allowed; }
.btn-secondaire { background: transparent; color: var(--noir); border: 1.5px solid var(--bord); }
.btn-secondaire:hover { border-color: var(--noir); }
.btn:focus-visible, input:focus-visible + .option-carte, select:focus-visible, input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="tel"]:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

/* Questions */
.domaine-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.domaine-titre .puce { width: 44px; height: 44px; font-size: 22px; }
fieldset.question { border: 0; margin-top: 28px; }
fieldset.question legend { font-weight: 600; font-size: 17px; margin-bottom: 12px; }
.options { display: grid; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-carte {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--bord); border-radius: 12px; padding: 13px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.option-carte:hover { border-color: #C9C2B8; }
.option-carte::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #BDB5AA; background: #fff;
  transition: all .15s ease;
}
.option input:checked + .option-carte { border-color: var(--orange); background: #FFF6EF; }
.option input:checked + .option-carte::before { border-color: var(--orange); background: radial-gradient(circle, var(--orange) 0 5px, #fff 6px); }

/* Formulaire contact */
.formulaire { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: 1fr 1fr; }
.champ { display: grid; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-weight: 500; font-size: 15px; }
.champ .facultatif { color: var(--gris); font-weight: 400; font-size: 13px; }
.champ input, .champ select {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--bord); border-radius: 10px; background: #fff; color: var(--noir); width: 100%;
}
.champ input[aria-invalid="true"] { border-color: var(--rouge); }
.erreur { color: var(--rouge); font-size: 13px; min-height: 0; }
.case { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; background: #fff; border: 1px solid var(--bord); border-radius: 12px; padding: 14px; }
.case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.mention { grid-column: 1 / -1; font-size: 13px; color: var(--gris); }
.mention a { color: inherit; }

/* Résultats */
.resultat-tete { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--bord); border-radius: 20px; padding: 28px; margin-top: 20px; }
.anneau { position: relative; width: 150px; height: 150px; }
.anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-valeur { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.anneau-valeur b { font-size: 42px; line-height: 1; letter-spacing: -.02em; }
.anneau-valeur span { display: block; font-size: 13px; color: var(--gris); }
.niveau { display: inline-block; font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.niveau.rouge { background: #FBE3E3; color: #A12A2A; }
.niveau.orange { background: var(--orange-pale); color: #9A3E08; }
.niveau.jaune { background: #FFF3C9; color: #7A5C00; }
.niveau.vert { background: #DDF2E5; color: #1E6B40; }

.bloc { background: #fff; border: 1px solid var(--bord); border-radius: 20px; padding: 24px; margin-top: 20px; }
.radar-et-barres { display: grid; gap: 20px; }
.radar { width: 100%; max-width: 440px; height: auto; margin: 0 auto; display: block; }
.radar text { font-family: inherit; font-size: 11px; fill: var(--gris); }
.barres { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.barre-domaine .ligne { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; gap: 8px; }
.barre-domaine .ligne b { font-weight: 600; }
.barre-domaine .piste { height: 8px; background: #F0ECE6; border-radius: 99px; overflow: hidden; }
.barre-domaine .plein { height: 100%; border-radius: 99px; }
.plein.rouge { background: var(--rouge); } .plein.orange { background: var(--orange); }
.plein.jaune { background: var(--jaune); } .plein.vert { background: var(--vert); }

.priorites { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.priorites li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 14px; background: var(--blanc); border: 1px solid var(--bord); }
.priorites .num { width: 30px; height: 30px; border-radius: 50%; background: var(--noir); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.priorites h3 { font-size: 16px; margin-bottom: 4px; }
.priorites p { font-size: 15px; color: #333; }

.appel { background: var(--noir); color: #fff; border-radius: 20px; padding: 28px; margin-top: 20px; }
.appel h2 { color: #fff; }
.appel p { color: #D9D9D9; margin-top: 8px; }
.appel .btn { margin-top: 18px; }
.lien-discret { background: none; border: 0; color: var(--gris); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; margin-top: 18px; }
.statut-envoi { font-size: 14px; color: var(--gris); margin-top: 14px; }

@media (max-width: 640px) {
  .formulaire { grid-template-columns: 1fr; }
  .resultat-tete { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px; }
  .barres { grid-template-columns: 1fr; }
  .actions .btn { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Champ piège anti-robots : invisible pour les humains */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
