/* =====================================================================
   Dr Quéval — Médecine du sommeil à Calais
   Feuille de styles — approche mobile-first, accessible (WCAG AA)
   Palette : crème #ece6d5 · sauge vert #4f6147 (bandeaux) · sauge clair #bcc1b2
             · accent CTA sauge #565d49 · eyebrows/liens #3f4636 (monochrome)
   ===================================================================== */

/* ---------- 1. Variables de design ---------- */
:root {
  /* Palette reprise du site Hypnote (hypnote.fr) : crème + olive + bronze + brique.
     On conserve les anciens noms de variables (--bleu-nuit, --sable…) pour ne pas
     casser le reste de la feuille de styles ; seules les valeurs changent. */
  --bleu-nuit: #4f6147;        /* sauge vert moyen — bandeau, titres, en-tête, pied */
  --bleu-nuit-clair: #bcc1b2;  /* sauge clair (#BCC1B2) — teinte signature douce */
  --sable: #e6dfca;            /* sable Hypnote */
  --sable-clair: #efe7d2;      /* crème claire (sections alternées) */
  --blanc-casse: #f4eede;      /* crème la plus claire (cartes, surfaces hautes) */
  --bg-page: #ece6d5;          /* fond de page chaud */
  --terracotta: #565d49;       /* sauge profond (CTA) — assez foncé pour rester lisible AA */
  --terracotta-fonce: #3f4636; /* sauge très profond (survol, liens, eyebrows) */
  --bronze: #9d7f54;           /* doré Hypnote (accents secondaires) */
  --texte: #2a2823;            /* encre */
  --texte-doux: #5d574a;       /* encre douce */
  --bordure: #d4ccb8;          /* bordures chaudes */

  --police-titre: "Fraunces", Georgia, serif;
  --police-corps: "Inter Tight", system-ui, -apple-system, sans-serif;

  --rayon: 14px;
  --rayon-sm: 8px;
  --ombre: 0 10px 30px -12px rgba(42, 40, 35, 0.22);
  --ombre-douce: 0 4px 16px -8px rgba(42, 40, 35, 0.16);

  --max-largeur: 1120px;
  --max-narrow: 760px;
  --espace-section: clamp(3.5rem, 8vw, 6rem);

  --transition: 0.25s ease;
}

/* ---------- 2. Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* Décalage pour que les ancres ne passent pas sous l'en-tête fixe */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--police-corps);
  color: var(--texte);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: var(--terracotta-fonce);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---------- 3. Accessibilité : skip-link et focus ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--bleu-nuit);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--rayon-sm);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* Focus clavier visible et net partout */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--rayon-sm);
}

/* ---------- 4. Structure : conteneurs ---------- */
.container {
  width: 100%;
  max-width: var(--max-largeur);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 2.5rem);
}
.container.narrow {
  max-width: var(--max-narrow);
}

.section {
  padding-block: var(--espace-section);
}
.section-alt {
  background: var(--sable-clair);
}
.section-about {
  background: var(--bleu-nuit);
  color: var(--blanc-casse);
}

/* ---------- 5. Typographie ---------- */
h1,
h2,
h3 {
  font-family: var(--police-titre);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--bleu-nuit);
}
.section-about h2 {
  color: var(--sable);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bleu-nuit);
}

/* Section pédagogique « Comprendre l'apnée » — rythme de lecture aéré */
#apnee .lead {
  margin-bottom: 1.6rem;
}
#apnee p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
#apnee h3 {
  margin-top: 2.4rem;
  margin-bottom: 0.7rem;
}
.apnee-links {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 2;
}

/* Pages éditoriales (pages thématiques, articles) — rythme de lecture aéré */
.prose .lead {
  margin-bottom: 1.6rem;
}
.prose p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.8rem;
}
.prose h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.5rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1.4rem 1.2rem;
}
.prose li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}
.prose .callout,
.prose .info-list {
  margin: 2rem 0;
}
.prose .page-cta {
  margin: 2.4rem 0;
  text-align: center;
}
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
  color: var(--texte-doux, #6b6b6b);
}
.breadcrumb a {
  color: inherit;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-fonce);
  margin-bottom: 0.6rem;
}
.section-about .eyebrow {
  color: var(--sable);
}

.lead {
  font-size: 1.15rem;
  color: var(--texte-doux);
}
.section-about .lead,
.section-about p {
  color: #e8e6df;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* ---------- 6. Boutons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--police-corps);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition),
    box-shadow var(--transition), color var(--transition);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--ombre-douce);
}
.btn-primary:hover {
  background: var(--terracotta-fonce);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--bleu-nuit);
}
.btn-ghost:hover {
  background: rgba(63, 70, 54, 0.1);
  transform: translateY(-2px);
}

/* ---------- 7. En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 230, 213, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bleu-nuit);
}
.brand-icon {
  flex-shrink: 0;
  background: var(--bleu-nuit);
  border-radius: 50%;
  padding: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 600;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--texte-doux);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
}
.nav a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color var(--transition);
}
.nav ul a:hover {
  color: var(--terracotta);
}
.nav-cta {
  padding: 0.6rem 1.2rem;
}

/* Sous-menus déroulants de la navigation (élément <details> natif) */
.nav-sub {
  position: relative;
}
.nav-sub > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--texte);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
}
.nav-sub > summary::-webkit-details-marker {
  display: none;
}
.nav-sub > summary::after {
  content: "▾";
  font-size: 0.7em;
  transition: transform var(--transition);
}
.nav-sub[open] > summary::after {
  transform: rotate(180deg);
}
.nav-sub > summary:hover {
  color: var(--terracotta);
}
.nav-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 860px) {
  .nav-submenu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 230px;
    background: var(--blanc-casse);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-sm);
    box-shadow: var(--ombre);
    padding: 0.4rem;
    z-index: 200;
  }
  .nav-submenu li {
    white-space: nowrap;
  }
  .nav-submenu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--rayon-sm);
  }
  .nav-submenu a:hover {
    background: rgba(63, 70, 54, 0.08);
  }
}
@media (max-width: 859px) {
  .nav-sub > summary {
    padding: 0.9rem 0;
  }
  .nav-submenu {
    padding-left: 1rem;
  }
  .nav-submenu li:last-child {
    border-bottom: none;
  }
}

/* Plan du site (pied de page) */
.footer-sitemap {
  border-top: 1px solid rgba(236, 230, 213, 0.18);
  padding-top: 1.8rem;
  margin-top: 1rem;
}
.footer-sitemap-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sable);
  margin-bottom: 1rem;
}
.footer-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1.5rem;
}
.footer-sitemap a {
  color: var(--sable);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-sitemap a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--bleu-nuit);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- 8. Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--sable-clair) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--bleu-nuit);
  margin-bottom: 1.2rem;
}
.hero-name {
  display: block;
  /* Maintient le nom sur une seule ligne, en s'adaptant à la largeur de l'écran */
  white-space: nowrap;
  font-size: clamp(1.5rem, 6.2vw, 3.6rem);
}
.hero-h1-sub {
  display: block;
  font-size: 0.46em;
  font-weight: 400;
  color: var(--texte-doux);
  margin-top: 0.4rem;
  letter-spacing: 0;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--texte-doux);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texte-doux);
  font-size: 0.95rem;
}
.hero-place svg {
  color: var(--terracotta);
}
.hero-illustration {
  justify-self: center;
}
.hero-illustration img {
  width: min(100%, 440px);
  height: auto;
}

/* ---------- 9. Bloc À propos (narrow, fond bleu nuit) ---------- */
.section-about .lead {
  margin-top: 0.5rem;
}

/* ---------- 10. Sections "split" (adulte / enfant) ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.split-icon {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sable);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-alt .split-icon {
  background: #fff;
}
.split-body h2 {
  margin-bottom: 1rem;
}
.split-body p {
  color: var(--texte-doux);
  margin-bottom: 1rem;
}

/* Encadré "Wegovy" */
.callout {
  background: #fff;
  border-left: 4px solid var(--terracotta);
  border-radius: var(--rayon-sm);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
  box-shadow: var(--ombre-douce);
}
.section-alt .callout {
  background: var(--blanc-casse);
}
.callout h3 {
  margin-bottom: 0.6rem;
}
.callout p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* ---------- 11. Tags / badges de motifs ---------- */
.tags-label {
  font-weight: 600;
  color: var(--bleu-nuit);
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}
.tags li {
  background: var(--bleu-nuit);
  color: var(--sable);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

/* ---------- 12. Étapes (déroulement) ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--blanc-casse);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--ombre-douce);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50%;
}
.step h3 {
  margin-bottom: 0.3rem;
}
.step p {
  color: var(--texte-doux);
  margin: 0;
}

/* ---------- 13. Cartes (examens) ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
}
.card {
  background: var(--blanc-casse);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 2rem;
  box-shadow: var(--ombre-douce);
  transition: transform var(--transition), box-shadow var(--transition);
}
.section-alt .card {
  background: #fff;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
}
.card-icon {
  margin-bottom: 1rem;
}
/* Carte cliquable (lien vers une fiche PDF) */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--terracotta-fonce);
}
.card-link:hover .card-cta svg {
  transform: translateX(3px);
}
.card-cta svg {
  transition: transform var(--transition);
}
.card h3 {
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--texte-doux);
  margin: 0;
}

/* Note de remboursement sous les cartes d'examens */
.examens-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.8rem;
  padding: 1rem 1.3rem;
  background: var(--blanc-casse);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--rayon-sm);
  color: var(--texte-doux);
}
.examens-note svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- 14. FAQ (accordéon natif <details>) ---------- */
.faq {
  display: grid;
  gap: 0.8rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--bleu-nuit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
/* Chevron dessiné en CSS, pivote à l'ouverture */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-answer {
  padding: 0 1.5rem 1.3rem;
}
.faq-answer p {
  color: var(--texte-doux);
  margin: 0;
}

/* ---------- 15. Listes d'infos (tarifs / contact) ---------- */
.info-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.info-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.info-list svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.info-list a {
  color: var(--terracotta-fonce);
}

/* ---------- 16. Contact (grille infos + carte) ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.contact-info .btn {
  margin-top: 1.8rem;
}
.contact-map iframe {
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  width: 100%;
}

/* ---------- 17. Pied de page ---------- */
.site-footer {
  background: var(--bleu-nuit);
  color: #d7dbe4;
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-name {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  color: var(--sable);
  margin-bottom: 0.3rem;
}
.footer-legal p {
  color: #dbe0d2;
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--sable);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: #d3d9c8;
}
.footer-disclaimer {
  max-width: 460px;
}

/* ---------- 17 bis. Bouton flottant "Je souhaite une consultation" ---------- */
.floating-cta {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--police-corps);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(86, 93, 73, 0.5);
  transition: transform var(--transition), background-color var(--transition);
}
.floating-cta:hover {
  background: var(--terracotta-fonce);
  transform: translateY(-2px);
}
.floating-cta svg {
  flex-shrink: 0;
}
/* Sur très petit écran, on n'affiche que l'icône pour ne pas masquer le contenu */
@media (max-width: 520px) {
  .floating-cta span {
    display: none;
  }
  .floating-cta {
    padding: 0.9rem;
  }
}

/* ---------- 17 ter. Auto-questionnaires ---------- */
/* Bloc questionnaire intégré dans une section (adulte / enfant) */
.quiz-inline {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--bordure);
}
.quiz-inline > h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.quiz-inline > p {
  color: var(--texte-doux);
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}
.quiz-list {
  display: grid;
  gap: 0.8rem;
}
.quiz-block {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
}
.quiz-block > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
}
.quiz-block > summary::-webkit-details-marker {
  display: none;
}
.quiz-title {
  font-weight: 600;
  color: var(--bleu-nuit);
  font-size: 1.05rem;
}
.quiz-meta {
  font-size: 0.85rem;
  color: var(--texte-doux);
}
.quiz-form {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--bordure);
}
.quiz-intro {
  color: var(--texte-doux);
  font-size: 0.98rem;
  margin: 1.2rem 0 0.5rem;
}
.quiz-q {
  border: none;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--bordure);
}
.quiz-q legend {
  font-weight: 500;
  color: var(--texte);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0;
  margin-bottom: 0.7rem;
}
.quiz-q-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sable);
  color: var(--bleu-nuit);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
}
.quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 2.1rem;
}
/* Chaque option = "puce" cliquable */
.quiz-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  background: var(--blanc-casse);
  transition: border-color var(--transition), background-color var(--transition);
}
.quiz-opt:hover {
  border-color: var(--bleu-nuit-clair);
}
.quiz-opt input {
  accent-color: var(--terracotta);
  margin: 0;
}
/* Surlignage de l'option sélectionnée (navigateurs modernes) */
.quiz-opt:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(86, 93, 73, 0.16);
  font-weight: 500;
}
.quiz-actions {
  margin-top: 1.4rem;
}
.quiz-result {
  margin-top: 1.4rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--rayon);
  border-left: 5px solid var(--bordure);
  background: var(--sable-clair);
}
.quiz-result .btn {
  margin-top: 0.8rem;
}
.quiz-score {
  font-size: 1.1rem;
}
.quiz-verdict-title {
  font-family: var(--police-titre);
  font-size: 1.3rem;
  color: var(--bleu-nuit);
  margin-top: 0.2rem;
}
.quiz-disclaimer {
  font-size: 0.82rem;
  color: var(--texte-doux);
  margin-top: 0.8rem;
}
/* Variantes de résultat (vert = ok, ambre = vigilance, orange = consultation conseillée) */
.quiz-result--ok {
  border-left-color: var(--terracotta);
  background: rgba(86, 93, 73, 0.14);
}
.quiz-result--warn {
  border-left-color: #9a7b2e;
  background: rgba(154, 123, 46, 0.1);
}
.quiz-result--alert {
  border-left-color: #a85e2a;
  background: rgba(168, 94, 42, 0.1);
}
.quiz-result--info {
  border-left-color: var(--bronze);
  background: var(--sable-clair);
}
.quiz-noscript {
  margin-top: 1rem;
  padding: 1rem 1.3rem;
  background: var(--sable-clair);
  border-radius: var(--rayon-sm);
  color: var(--texte-doux);
}

/* ---------- 17 quater. Page Notices patients ---------- */
.notice-search-wrap {
  margin: 1.5rem 0 0.5rem;
}
.notice-search {
  width: 100%;
  max-width: 460px;
  padding: 0.8rem 1.1rem;
  font-family: var(--police-corps);
  font-size: 1rem;
  color: var(--texte);
  background: #fff;
  border: 1.5px solid var(--bordure);
  border-radius: 999px;
}
.notice-search:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}
.notice-cat {
  margin-top: 2.8rem;
}
.notice-cat h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bordure);
}
.notice-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.notice-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  text-decoration: none;
  color: var(--texte);
  box-shadow: var(--ombre-douce);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.notice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ombre);
  border-color: var(--terracotta);
}
.notice-card .notice-ic {
  flex-shrink: 0;
  color: var(--terracotta);
}
.notice-card .notice-title {
  font-weight: 600;
  color: var(--bleu-nuit);
  line-height: 1.3;
}
.notice-card .notice-type {
  font-size: 0.8rem;
  color: var(--texte-doux);
  margin-top: 2px;
}
.notice-empty {
  margin-top: 2rem;
  color: var(--texte-doux);
}
@media (min-width: 640px) {
  .notice-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px) {
  .notice-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- 18. Animation d'apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   19. RESPONSIVE — points de rupture (mobile-first → tablette → desktop)
   ===================================================================== */

/* Tablette et + : navigation horizontale visible */
@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .split {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
  }
  .split-reverse {
    grid-template-columns: 1fr auto;
  }
  .split-reverse .split-icon {
    order: 2;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
  }
}

/* Mobile : menu repliable */
@media (max-width: 859px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blanc-casse);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    padding: 1rem clamp(1.2rem, 5vw, 2.5rem) 1.5rem;
    /* Replié par défaut */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--transition), opacity var(--transition);
  }
  .nav.is-open {
    max-height: 85vh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav ul li {
    border-bottom: 1px solid var(--bordure);
  }
  .nav ul a {
    display: block;
    padding: 0.9rem 0;
  }
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
  /* Animation du hamburger en croix quand le menu est ouvert */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- 20. Préférence "réduire les animations" ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
