/* Site Quiterie Nutrition V03. Jetons du design system Quiterie Nutrition V01, écarts 7.3 appliqués. */

/* Polices auto-hébergées, sous-ensemble latin, licence SIL OFL (fonts/OFL.txt) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Arimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/arimo-400.woff2") format("woff2"); }
@font-face { font-family: "Arimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/arimo-700.woff2") format("woff2"); }
@font-face { font-family: "Dancing Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dancing-script-400.woff2") format("woff2"); }

:root {
  --fond: #fffbf7;
  --surface: #ffffff;
  --texte: #0f3818;
  --corps: #2b2a26;
  --structure: #4a7f52;
  --accent: #96702a;
  --secondaire: #6e6c63;
  --manuscrite: #7a9245;
  --f-man: "Dancing Script", cursive;
  --f-titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-texte: "Arimo", Arial, sans-serif;
  --ombre-carte: 0 8px 24px rgba(19, 71, 28, 0.08);
  --ombre-barre: 0 -8px 24px rgba(19, 71, 28, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--corps); font-family: var(--f-texte); font-size: 18px; line-height: 1.6; }
@media (min-width: 1024px) { body { font-size: 19px; } }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--texte); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--texte); outline-offset: 2px; }
.pied :focus-visible { outline-color: var(--fond); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Structure */
.page { min-height: 100vh; padding-bottom: 88px; }
@media (min-width: 1024px) { .page { padding-bottom: 0; } }
.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.col { display: flex; flex-direction: column; }
.g2 { gap: 8px; } .g3 { gap: 12px; } .g4 { gap: 16px; } .g5 { gap: 24px; } .g6 { gap: 32px; } .g7 { gap: 48px; }
.debut { align-items: flex-start; }
.lecture { max-width: 680px; }
.centre { text-align: center; margin-left: auto; margin-right: auto; }
.section { padding-top: 64px; }
@media (min-width: 1024px) { .section { padding-top: 96px; } }
.solo { max-width: 680px; margin: 0 auto; }

.grille { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .duo > .s1-12 { grid-column: 1 / 3; }
}
@media (min-width: 1024px) {
  .grille { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
  .s1-4 { grid-column: 1 / 5; } .s1-5 { grid-column: 1 / 6; } .s1-6 { grid-column: 1 / 7; } .s1-7 { grid-column: 1 / 8; }
  .s1-12 { grid-column: 1 / 13; } .s2-6 { grid-column: 2 / 7; } .s2-12 { grid-column: 2 / 13; }
  .s5-11 { grid-column: 5 / 12; } .s6-12 { grid-column: 6 / 13; } .s7-11 { grid-column: 7 / 12; }
  .s7-12 { grid-column: 7 / 13; } .s3-10 { grid-column: 3 / 11; } .s8-12 { grid-column: 8 / 13; } .s9-12 { grid-column: 9 / 13; }
  .centre-v { align-self: center; } .haut { align-self: start; }
  .mobile-seul { display: none !important; }
}
@media (max-width: 1023px) { .bureau-seul { display: none !important; } }

/* Typographie */
.accroche { font-family: var(--f-man); font-weight: 400; font-size: 44px; line-height: 1.15; color: var(--texte); }
.t1, .t2, .t3 { font-family: var(--f-titre); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--texte); }
.t1 { font-size: 30px; line-height: 1.1; }
.t2 { font-size: 24px; line-height: 1.15; }
.t3 { font-size: 19px; line-height: 1.2; }
.question { font-family: var(--f-titre); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--texte); }
.chapo { font-size: 20px; line-height: 1.5; }
.chiffre { font-family: var(--f-texte); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--texte); }
.mention { font-size: 15px; line-height: 1.5; color: var(--secondaire); }
.gras { font-weight: 700; color: var(--texte); }
/* Messages clés : taille et couleur au-dessus du texte courant */
.message { font-family: var(--f-titre); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--texte); }
.message-xl { font-family: var(--f-titre); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--texte); }
.ocre { color: var(--accent); }
.chapo .fort { font-weight: 700; color: var(--texte); }
@media (min-width: 1024px) {
  .message { font-size: 32px; }
  .message-xl { font-size: 52px; }
}
@media (min-width: 1024px) {
  .accroche { font-size: 64px; }
  .t1 { font-size: 44px; } .t2 { font-size: 30px; } .t3 { font-size: 20px; } .question { font-size: 20px; }
  .chapo { font-size: 22px; } .chiffre { font-size: 40px; }
}
.titre-section { display: flex; flex-direction: column; gap: 16px; }
.filet { display: block; width: 76px; height: 2px; background: var(--accent); }
a.chiffre { text-decoration: none; }
a.chiffre:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Pictogrammes */
.picto { width: 24px; height: 24px; fill: var(--structure); flex: none; }
.picto-s { width: 20px; height: 20px; }
.ligne-picto { display: flex; align-items: center; gap: 16px; min-height: 48px; }

/* Boutons et liens */
.btn-p, .btn-s, .btn-clair {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 14px;
  font-family: var(--f-texte); font-weight: 700; font-size: 19px; line-height: 1.1;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-p { background: var(--accent); color: var(--surface); border: 0; }
.btn-p:hover { color: var(--surface); text-decoration: underline; }
.btn-s { background: var(--surface); color: var(--texte); border: 1.5px solid var(--texte); }
.btn-s:hover { text-decoration: underline; }
.btn-clair { background: var(--surface); color: var(--texte); border: 0; }
.btn-clair:hover { color: var(--texte); text-decoration: underline; }
@media (min-width: 1024px) { .btn-p, .btn-s, .btn-clair { font-size: 20px; } }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  color: var(--texte); font-family: var(--f-texte); font-size: inherit; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer;
}

/* Cartes */
.carte { background: var(--surface); border-radius: 24px; box-shadow: var(--ombre-carte); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.carte-offre { padding: 32px 24px; gap: 20px; }
@media (min-width: 1024px) { .carte { padding: 32px; } .carte-offre { padding: 40px 32px; } }
.pastille {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--accent);
  color: var(--accent); font-family: var(--f-texte); font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
}
.prix { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.compris { display: flex; flex-direction: column; gap: 12px; }
.compris li { display: flex; gap: 16px; align-items: flex-start; }
.compris .picto { margin-top: 3px; }

/* Étapes numérotées */
.etapes { display: flex; flex-direction: column; gap: 32px; }
.etapes li { display: flex; gap: 16px; align-items: flex-start; }
.disque {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--structure); color: var(--surface);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-texte); font-weight: 700; font-size: 20px;
}
.etapes .col { padding-top: 10px; }

/* Portrait : rectangle vertical 4:5, coins arrondis, plus de cercle */
.portrait { width: 100%; max-width: 300px; aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; object-position: 50% 30%; box-shadow: var(--ombre-carte); flex: none; }
@media (min-width: 1024px) { .portrait { max-width: none; } }

/* Récit de Catherine : la journée en quatre moments */
.journee { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.moment { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--structure); }
.heure { font-family: var(--f-titre); font-weight: 700; font-size: 28px; line-height: 1; color: var(--accent); white-space: nowrap; }
@media (min-width: 1024px) {
  .journee { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .moment { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0 0; }
  .heure { font-size: 44px; }
}
.citation { border: 0; margin: 0; padding: 0; }
.portrait-vide {
  background: var(--surface); border: 1.5px dashed var(--secondaire);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  font-size: 15px; line-height: 1.4; color: var(--secondaire);
}
.portrait-col { display: flex; justify-content: flex-start; }
.illustration { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }

/* Questions fréquentes */
.faq { display: flex; flex-direction: column; gap: 16px; }
.faq details { background: var(--surface); border-radius: 24px; box-shadow: var(--ombre-carte); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 20px 24px; cursor: pointer; border-radius: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .tri { width: 28px; height: 28px; fill: var(--structure); flex: none; transition: transform 150ms cubic-bezier(0.2, 0, 0, 1); }
.faq details[open] .tri { transform: rotate(180deg); }
.faq .reponse { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 16px; }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label { font-size: 18px; line-height: 1.4; }
.champ input {
  width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--secondaire); border-radius: 12px;
  background: var(--surface); color: var(--corps); font-family: var(--f-texte); font-size: 20px; line-height: 1.4;
}
.champ input.en-erreur { border: 2px solid var(--texte); }
.case { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 18px; line-height: 1.5; }
.case input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--texte); cursor: pointer; }
.erreur-msg { display: flex; gap: 8px; align-items: flex-start; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--texte); }
.erreur-msg .picto { fill: var(--accent); margin-top: 1px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirmation:focus, .resultat h3:focus { outline: none; }

/* Questionnaire */
.bande { background: var(--surface); margin-top: 64px; padding: 64px 0; }
@media (min-width: 1024px) { .bande { margin-top: 96px; padding: 96px 0; } }
.qz-question { border: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.qz-question legend { padding: 0; margin-bottom: 14px; display: flex; gap: 10px; }
.qz-num { color: var(--structure); flex: none; }
.choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choix label {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 6px; border: 1.5px solid var(--secondaire); border-radius: 12px;
  background: var(--surface); font-size: 18px; line-height: 1.2; text-align: center; cursor: pointer;
}
.choix label.sel { border: 3px solid var(--texte); font-weight: 700; background: var(--fond); }
.choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choix label:has(input:focus-visible) { outline: 3px solid var(--texte); outline-offset: 2px; }
/* Repli sans :has(), classe posée par questionnaire.js */
.choix label.focus-js { outline: 3px solid var(--texte); outline-offset: 2px; }
.choix .coche { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; fill: var(--texte); }
.qz-separateur { height: 1px; background: var(--structure); width: 76px; }
.cache { display: none !important; }
/* Résultat du questionnaire : panneau foncé, seule surface foncée hors pied de page */
.resultat { background: var(--texte); color: var(--fond); border-radius: 24px; padding: 40px 24px; }
.resultat .t2, .resultat .message-xl { color: var(--surface); }
.resultat .mention, .resultat .lien-fleche { color: var(--fond); }
.resultat :focus-visible { outline-color: var(--fond); }
.resultat-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .resultat { padding: 64px; }
  .resultat-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; }
}

/* En-tête */
.entete { background: var(--fond); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logotype {
  font-family: var(--f-man); font-size: 28px; line-height: 1; color: var(--texte); text-decoration: none;
  min-width: 200px; min-height: 48px; display: inline-flex; align-items: center; white-space: nowrap;
}
@media (min-width: 1024px) { .logotype { font-size: 34px; } }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 18px; color: var(--texte); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.btn-menu {
  min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--texte);
  background: var(--surface); color: var(--texte); font-family: var(--f-texte); font-weight: 700; font-size: 18px; cursor: pointer;
}
.menu-mobile { padding: 8px 0 24px; border-top: 1px solid var(--structure); }
.menu-mobile a { display: flex; align-items: center; min-height: 56px; font-size: 20px; text-decoration: none; }
.menu-mobile a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; gap: 28px; }
  .btn-menu, .menu-mobile { display: none !important; }
}

/* Pied de page, écarts 7.3 n° 1 et 2 */
.pied { background: var(--texte); color: var(--fond); border-radius: 24px 24px 0 0; margin-top: 64px; padding: 64px 0 32px; }
@media (min-width: 1024px) { .pied { margin-top: 96px; padding: 80px 0 40px; } }
.pied a { color: var(--fond); }
.pied .t3 { color: var(--surface); }
.pied .picto { fill: var(--fond); }
.pied .mention { color: var(--fond); }
.encart { border: 1.5px solid var(--fond); border-radius: 24px; padding: 24px; }
@media (min-width: 1024px) { .encart { padding: 32px; } }
.pied-bas { border-top: 1px solid var(--fond); margin-top: 48px; padding-top: 24px; }

/* Barre d'appel, sous 1024 px */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); box-shadow: var(--ombre-barre);
  padding: 12px 20px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px;
}
.barre .btn-p, .barre .btn-s { padding: 0 12px; }
.barre .btn-p { flex-direction: column; gap: 3px; }
.barre-num { font-weight: 700; font-size: 15px; line-height: 1.1; } /* charte V03 : téléphone toujours en gras */
.barre > :only-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .barre { display: none; } }

/* Ajouts de production */
[hidden] { display: none !important; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 16px; top: -200px; z-index: 30; display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--surface); color: var(--texte);
  font-weight: 700; box-shadow: var(--ombre-carte);
}
.evitement:focus { top: 12px; }
main:focus, [tabindex="-1"]:focus { outline: none; }

/* Sous 360 px : le mot ACCOMPAGNEMENT et l'en-tête débordaient à 320 px */
@media (max-width: 359px) {
  .t1 { font-size: 25px; }
  .entete-in { gap: 8px; }
}

/* Styles en ligne de la maquette, passés en classes pour la politique de sécurité du contenu */
.taille-18 { font-size: 18px; }
.marge-h8 { padding-top: 8px; }
.aligne-haut { align-items: flex-start; }
.aligne-centre { align-items: center; }
.decale-3 { margin-top: 3px; }
.max-880 { max-width: 880px; }
.auto-debut { align-self: flex-start; }
