/* Solka — feuille de style commune */
:root {
  --nuit: #10233A;
  --nuit-2: #1C3553;
  --soleil: #F6B40E;
  --soleil-clair: #FFE7A3;
  --ciel: #E3EDF5;
  --blanc: #FFFFFF;
  --fond: #F8FAFB;
  --texte: #10233A;
  --texte-2: #44566A;
  --trait: #C9D6E2;
  --erreur: #B3261E;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mesure: 68ch;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--nuit); text-underline-offset: 3px; }
a:hover { color: var(--nuit-2); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--mesure); }
.h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.conteneur { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--ciel { background: var(--ciel); }
.section--nuit { background: var(--nuit); color: var(--blanc); }
.section--nuit a { color: var(--soleil-clair); }
.intro { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro p { font-size: 1.15rem; color: var(--texte-2); }
.section--nuit .intro p { color: #C7D4E2; }

.lien-evitement { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--soleil); color: var(--nuit); z-index: 20; }
.lien-evitement:focus { left: 1rem; top: 1rem; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(248, 250, 251, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--nuit); font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 700; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--soleil); text-decoration-thickness: 3px; }
.menu-bouton { display: none; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); }
.bouton--soleil { background: var(--soleil); color: var(--nuit); }
.bouton--soleil:hover { background: #FFC533; color: var(--nuit); }
.bouton--contour { border-color: var(--nuit); color: var(--nuit); background: transparent; }
.bouton--contour:hover { background: var(--nuit); color: var(--blanc); }
.section--nuit .bouton--contour { border-color: var(--blanc); color: var(--blanc); }
.boutons { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Héros */
.heros { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.heros__soleil { position: absolute; width: clamp(360px, 52vw, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--soleil); right: -8vw; top: 55%; transform: translateY(-38%); z-index: 0; animation: lever 1.4s cubic-bezier(.2, .7, .2, 1) both; }
.heros__soleil::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 2px solid var(--soleil); opacity: .45; }
@keyframes lever { from { transform: translateY(10%); opacity: .2; } to { transform: translateY(-38%); opacity: 1; } }
.heros__grille { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heros__texte { display: grid; gap: 1.6rem; }
.heros__texte p { font-size: 1.25rem; color: var(--texte-2); }
.heros__faits { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .98rem; color: var(--texte-2); list-style: none; padding: 0; margin: 0; }
.heros__faits li::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--soleil); margin-right: .5rem; vertical-align: 1px; }

/* Carte d'exemple de diagnostic */
.diag { background: var(--nuit); color: var(--blanc); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1rem; box-shadow: 0 30px 60px -30px rgba(16, 35, 58, .55); }
.diag__titre { font-size: .95rem; color: #C7D4E2; }
.diag__question { background: var(--nuit-2); border-radius: 12px; padding: 1rem 1.1rem; font-size: 1.1rem; }
.diag__question small { display: block; color: #9FB2C6; font-size: .85rem; margin-bottom: .25rem; }
.diag__liste { background: var(--blanc); color: var(--nuit); border-radius: 12px; padding: .5rem 1.1rem; margin: 0; list-style: none; }
.diag__liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--trait); }
.diag__liste li:last-child { border-bottom: 0; font-weight: 700; }
.diag__absent { color: var(--erreur); font-weight: 700; }
.diag__note { font-size: .95rem; color: #C7D4E2; }

/* Canaux */
.canaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--nuit); }
.canal { padding: 2rem 2rem 0 0; display: grid; gap: .8rem; align-content: start; }
.canal + .canal { padding-left: 2rem; border-left: 1px solid var(--trait); }
.canal svg { width: 40px; height: 40px; color: var(--nuit); }
.canal p { color: var(--texte-2); }

/* Offres */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.offre { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.3rem; grid-template-rows: auto auto 1fr auto; }
.offre--phare { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
.offre__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.offre__badge { font-size: .85rem; font-weight: 700; background: var(--soleil); color: var(--nuit); border-radius: 999px; padding: .3rem .8rem; white-space: nowrap; }
.offre__prix { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; }
.offre__prix span { font-family: var(--body); font-weight: 400; font-size: 1.05rem; margin-left: .4rem; }
.offre ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.offre--phare .offre__desc { color: #C7D4E2; }
.offre__desc { color: var(--texte-2); }
.offres__note { margin-top: 1.5rem; color: var(--texte-2); }

/* Tableau comparatif */
.tableau-conteneur { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--r); background: var(--blanc); }
.tableau { width: 100%; border-collapse: collapse; min-width: 560px; }
.tableau th, .tableau td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau thead th { font-family: var(--display); font-size: 1.3rem; background: var(--ciel); }
.tableau tbody th { font-weight: 700; width: 46%; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }
.oui { font-weight: 700; }
.non { color: var(--texte-2); }

/* Étapes */
.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; counter-reset: etape; }
.etape { display: grid; gap: .7rem; align-content: start; border-top: 2px solid #3A5372; padding-top: 1.4rem; counter-increment: etape; }
.etape::before { content: counter(etape); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--soleil); }
.etape p { color: #C7D4E2; }

/* Bandeau spécialité */
.specialite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.specialite__texte { display: grid; gap: 1.2rem; }
.specialite__texte p { color: var(--texte-2); font-size: 1.1rem; }
.metiers { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.metiers li { border: 1.5px solid var(--nuit); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; }
.metiers li.actif { background: var(--nuit); color: var(--blanc); }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 860px; }
.faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r); padding: 0 1.4rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; padding: 1.2rem 2rem 1.2rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.3rem; color: var(--texte-2); }

/* Appel final */
.appel { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem; align-items: center; }
.appel p { color: #C7D4E2; font-size: 1.15rem; margin-top: 1rem; }

/* Formulaire */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__infos { display: grid; gap: 1.2rem; }
.contact__infos p { color: var(--texte-2); font-size: 1.1rem; }
.contact__coord { display: grid; gap: .4rem; font-weight: 700; }
.formulaire { background: var(--blanc); border: 1px solid var(--trait); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.2rem; }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 700; }
.champ label span { font-weight: 400; color: var(--texte-2); }
.champ input, .champ select, .champ textarea { font: inherit; min-height: 52px; padding: .7rem 1rem; border: 1.5px solid #8FA3B7; border-radius: 10px; background: var(--blanc); color: var(--texte); width: 100%; }
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--soleil); outline-offset: 1px; border-color: var(--nuit); }
.champ--double { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; display: grid; }
.champ__erreur { color: var(--erreur); font-size: .95rem; min-height: 1.2em; }
.champ--invalide input, .champ--invalide select { border-color: var(--erreur); }
.pot-de-miel { position: absolute; left: -9999px; }
.case { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--texte-2); }
.case input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--nuit); flex: none; }
.formulaire__envoi { width: 100%; }
.formulaire__statut { font-weight: 700; }

/* Pages de texte */
.texte-legal { display: grid; gap: 1.2rem; max-width: 780px; }
.texte-legal h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.texte-legal p, .texte-legal li { color: var(--texte-2); }
.texte-legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

/* Pied de page */
.pied { background: var(--nuit); color: #C7D4E2; padding-block: 3rem; }
.pied__grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.pied .logo { color: var(--blanc); }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied a { color: #C7D4E2; }
.pied__bas { margin-top: 2rem; font-size: .9rem; }

/* Mobile */
@media (max-width: 900px) {
  .heros__grille, .specialite, .contact, .appel { grid-template-columns: 1fr; }
  .heros__soleil { top: 18%; right: -30vw; opacity: .9; }
  .canaux { grid-template-columns: 1fr; border-top: 0; }
  .canal, .canal + .canal { padding: 1.6rem 0; border-left: 0; border-top: 1px solid var(--trait); }
  .offres { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-bouton { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1rem; border: 2px solid var(--nuit); border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--nuit); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--fond); border-bottom: 1px solid var(--trait); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav.ouvert { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--trait); }
  .nav .bouton { margin-top: 1rem; border-bottom: 0; }
}
@media (max-width: 560px) {
  .etapes { grid-template-columns: 1fr; }
  .champ--double { grid-template-columns: 1fr; }
  .offre__prix { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heros__soleil { animation: none; transform: translateY(-38%); }
}

/* ===== Version enrichie : design et interactivité ===== */
.section--soleil { background: #FFF3CC; }
.entete.defile { box-shadow: 0 10px 30px -20px rgba(16, 35, 58, .45); }
.bouton { transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }

/* Héros : rayons autour du soleil */
.heros__soleil::before { content: ""; position: absolute; inset: -22%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(246, 180, 14, .28) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%, #000 68%, transparent 70%);
  mask: radial-gradient(circle, transparent 52%, #000 53%, #000 68%, transparent 70%);
  animation: rayons 60s linear infinite; }
@keyframes rayons { to { transform: rotate(360deg); } }
.heros h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }

/* Démonstration de recherche */
.recherche { background: var(--blanc); border-radius: 24px; padding: clamp(1.2rem, 2.6vw, 1.8rem); display: grid; gap: 1rem;
  box-shadow: 0 40px 80px -40px rgba(16, 35, 58, .6), 0 0 0 1px rgba(16, 35, 58, .08); }
.recherche__barre { display: flex; align-items: center; gap: .7rem; border: 2px solid var(--nuit); border-radius: 999px; padding: .8rem 1.1rem; font-weight: 700; min-height: 54px; }
.recherche__barre svg { width: 22px; height: 22px; flex: none; }
.recherche__curseur { width: 2px; height: 1.2em; background: var(--nuit); animation: clignote 1s steps(1) infinite; margin-left: -2px; }
@keyframes clignote { 50% { opacity: 0; } }
.bascule { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--ciel); border-radius: 999px; padding: 4px; justify-self: start; }
.bascule__btn { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--nuit); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 44px; }
.bascule__btn[aria-pressed="true"] { background: var(--nuit); color: var(--blanc); }
.resultats { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; position: relative; }
.resultat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--fond); border: 1px solid var(--trait); counter-increment: rang; }
.resultats { counter-reset: rang; }
.resultat__nom { font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.resultat__nom::before { content: counter(rang); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ciel); font-size: .85rem; }
.resultat__info { font-size: .92rem; color: var(--texte-2); text-align: right; }
.resultat--vous { border: 2px dashed #9FB2C6; }
.resultat--vous .resultat__info { color: var(--erreur); font-weight: 700; }
.recherche.avec .resultat--vous { background: var(--soleil); border: 2px solid var(--soleil); }
.recherche.avec .resultat--vous .resultat__nom::before { background: var(--nuit); color: var(--blanc); }
.recherche.avec .resultat--vous .resultat__info { color: var(--nuit); }
.recherche__note { font-size: .88rem; color: var(--texte-2); }
.resultats.cache .resultat { opacity: 0; transform: translateY(8px); }
.resultat { transition: opacity .35s ease, transform .35s ease, background-color .3s ease; }

/* Test de visibilité */
.test__grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.test__intro { position: sticky; top: 110px; }
.test__questions, .score { background: var(--nuit-2); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; }
.question { border: 0; padding: 0 0 1.1rem; margin: 0; border-bottom: 1px solid #34506F; display: grid; gap: .8rem; }
.question legend { font-weight: 700; font-size: 1.08rem; padding: 0; margin-bottom: .8rem; }
.choix { display: flex; flex-wrap: wrap; gap: .6rem; }
.choix label { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid #5B7593; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; min-height: 44px; }
.choix input { accent-color: var(--soleil); width: 18px; height: 18px; }
.choix label:has(input:checked) { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); font-weight: 700; }
.test__erreur { color: var(--soleil-clair); font-weight: 700; min-height: 1.2em; }
.score { justify-items: start; }
.score__jauge { width: 170px; height: 170px; transform: rotate(-90deg); }
.score__fond { fill: none; stroke: #34506F; stroke-width: 10; }
.score__valeur { fill: none; stroke: var(--soleil); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1); }
.score__cercle { position: relative; width: 170px; height: 170px; }
.score__nombre { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--blanc) !important; }
.score__nombre small { font-size: 1.1rem; font-family: var(--body); font-weight: 400; margin-left: .2rem; }
.score p { color: #C7D4E2; }
.score__priorites { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; color: var(--blanc); }

/* Calculateur */
.calcul { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.calcul__panneau { background: var(--blanc); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); display: grid; gap: 1.6rem; box-shadow: 0 30px 60px -40px rgba(16, 35, 58, .5); }
.curseur { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: baseline; }
.curseur label { font-weight: 700; }
.curseur output { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.curseur input { grid-column: 1 / -1; width: 100%; accent-color: var(--nuit); height: 28px; }
.calcul__resultats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; background: var(--nuit); color: var(--blanc); border-radius: 16px; padding: 1.4rem; }
.calcul__resultats p:last-child { color: #C7D4E2; font-size: .92rem; }
.calcul__chiffre { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--soleil); line-height: 1.1; }
.calcul__note { font-size: .9rem; color: var(--texte-2); }

/* Offres : relief au survol */
.offre { transition: transform .2s ease, box-shadow .2s ease; }
.offre:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -35px rgba(16, 35, 58, .55); }

@media (max-width: 900px) {
  .test__grille, .calcul { grid-template-columns: 1fr; }
  .test__intro { position: static; }
  .calcul__resultats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .heros__soleil::before, .recherche__curseur { animation: none; }
  .resultat, .score__valeur, .bouton, .offre { transition: none; }
}
[hidden] { display: none !important; }

/* Correctifs de rendu */
.section--nuit .bouton--soleil, .section--nuit .bouton--soleil:hover { color: var(--nuit); }
.resultat__nom::before { flex: none; }
.heros__soleil::before { inset: -16%; }
@media (max-width: 900px) {
  .heros__soleil { width: 340px; top: auto; bottom: -140px; right: -140px; transform: none; animation: none; }
  .heros__soleil::before { display: none; }
}
