/* Abbemo v2 — issu de la maquette C « Boussole ».
   L'accueil oriente : on dit ce qui nous amène, on lit un résumé, et le texte complet d'Amélie est une vraie page.
   Le logo devient une fenêtre : la montagne en haut, son reflet en dégradé sarcelle → indigo en dessous.

   Un seul système pour tout le site, pour que les pages se lisent d'un même geste :
   - un arrondi (--arrondi) pour les images et les encadrés ; la forme « pilule » est réservée à ce qui se clique ;
   - cinq tailles de texte (--t-…) ; les titres restent mesurés et le chapeau a la taille du texte ;
   - le sans (Jost) pour l'information, le serif italique (Newsreader) pour la seule voix d'Amélie (.voix) ;
   - une seule couleur sombre, l'indigo nuit : le choix de l'accueil, un bloc fort par page au plus, le lac du pied de page ;
   - trois sortes de blocs : l'encadré clair (.encadre), le bloc nuit (.bloc-nuit), et le texte nu, structuré par des filets. */

/* ---------- Polices, hébergées sur le site (aucune requête vers Google) ---------- */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(polices/jost-latin.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: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url(polices/jost-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url(polices/newsreader-italique-latin.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: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url(polices/newsreader-italique-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brume: #F0F3F1;
  --papier: #FAFBFA;
  --lichen: #DCE5E0;
  --pin: #1F3B36;
  --pin-doux: #4A5E59;
  --lac: #007A73;
  --sarcelle: #00A099;
  --crepuscule: #3B2F7A;
  --nuit: #221D4F;
  --nuit-texte: #ECEAF6;
  --nuit-doux: #BDB8DD;
  --menthe: #6FD0C6;
  --lavande: #B9AEF0;
  --filet: rgba(31, 59, 54, .16);
  --filet-nuit: rgba(236, 234, 246, .18);
  --degrade: linear-gradient(180deg, var(--sarcelle), var(--crepuscule));

  --sans: "Jost", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  /* Cinq tailles de texte, pas une de plus. Amélie trouvait les titres trop gros et les tailles trop nombreuses sur une même page. */
  --t-affiche: clamp(2.25rem, 2.2vw + 1.45rem, 3.25rem); /* le titre de chaque page */
  --t-titre: clamp(1.6rem, .9vw + 1.2rem, 2.1rem);       /* titres de section, le choix, le téléphone, la devise */
  --t-intertitre: 1.25rem;                               /* sous-titres, titres d'encadrés, prix, voix d'Amélie, menu mobile */
  --t-texte: 1.0625rem;                                  /* le texte courant */
  --t-petit: .95rem;                                     /* boutons, fil d'Ariane, notes, pied de page */

  --arrondi: 12px;
  --entete: 3.75rem;
  --gouttiere: 1.25rem;
  --respiration: 4rem;
  --largeur: 1240px;
  interpolate-size: allow-keywords;
}
@media (min-width: 900px) {
  :root { --t-texte: 1.125rem; --entete: 4.75rem; --gouttiere: clamp(1.5rem, 4vw, 3rem); --respiration: clamp(5rem, 7vw, 6.5rem); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(.menu-mobile.est-ouvert) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--brume);
  color: var(--pin);
  font-family: var(--sans);
  font-size: var(--t-texte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 122, 115, .15);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--t-affiche); letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: var(--t-titre); letter-spacing: -0.015em; }
h3 { font-size: var(--t-intertitre); font-weight: 500; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--lac); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--crepuscule); }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--crepuscule); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--entete) + 1rem); }

.wrap { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.insecable { white-space: nowrap; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: .5rem; background: var(--pin); color: var(--brume); padding: .75rem 1rem; z-index: 100; }
.lien-evitement:focus { left: .5rem; }

/* ---------- La voix d'Amélie : la seule mise en avant du site ---------- */

.voix {
  margin: 2.25rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  /* Le serif dessine plus petit que le sans à taille égale : on compense, sans créer de sixième taille. */
  font-size: calc(var(--t-intertitre) * 1.2);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--crepuscule);
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
  hyphens: manual;
}
.voix p { margin: 0; }

/* ---------- Boutons : au moins 48 px de haut, toujours en pilule ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--lac);
  background: var(--lac);
  color: #fff;
  font: 500 var(--t-petit) var(--sans);
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.bouton:hover { background: var(--crepuscule); border-color: var(--crepuscule); color: #fff; }
.bouton-contour { background: transparent; color: var(--pin); border-color: var(--filet); }
.bouton-contour:hover { background: var(--lichen); border-color: var(--lichen); color: var(--pin); }
.bouton-clair { background: var(--menthe); border-color: var(--menthe); color: var(--nuit); }
.bouton-clair:hover { background: #fff; border-color: #fff; color: var(--nuit); }
.lien-lire { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.lien-suite { margin: -.25rem 0 1.5rem; }

/* ---------- Listes : la puce en losange, reprise du logo ---------- */

.puces, .faits { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .5rem; }
.puces li, .faits li { display: flex; gap: .85rem; }
.puces li::before, .faits li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: .62em;
  rotate: 45deg;
  background: var(--degrade);
}
.puces .etc { color: var(--pin-doux); }
.puces .etc::before { visibility: hidden; }
@media (min-width: 600px) { .puces-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

/* ---------- Les trois sortes de blocs ---------- */

/* 1. L'encadré clair : ce qu'il faut savoir pour passer à l'action */
.encadre { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--arrondi); padding: 1.5rem; }

/* 2. Le bloc nuit : le moment fort d'une page, une fois au plus */
.bloc-nuit { margin: 0 0 1.75rem; padding: 1.5rem 1.75rem; border-radius: var(--arrondi); background: var(--nuit); color: var(--nuit-texte); }
.bloc-nuit h3 { margin-bottom: .5rem; color: #fff; }
.bloc-nuit p:last-child { margin-bottom: 0; }

/* 3. Le texte nu, structuré par des filets : rubriques, rangées, questions */
.rubriques { margin: 0 0 2rem; }
.rubriques > section, .rubriques > article { padding-block: 1.5rem; border-top: 1px solid var(--filet); }
.rubriques > :last-child { border-bottom: 1px solid var(--filet); }
.rubriques h3 { margin-bottom: .5rem; }
.rubriques p:last-child, .rubriques .puces:last-child, .rubriques .lien-suite:last-child { margin-bottom: 0; }
.rubriques .lien-suite { margin-top: .25rem; }

.rangees { margin: 0 0 2rem; }
.rangees div { padding: 1rem 0; border-top: 1px solid var(--filet); }
.rangees div:last-child { border-bottom: 1px solid var(--filet); }
.rangees dt { font-weight: 500; line-height: 1.35; }
.rangees dd { margin: .25rem 0 0; color: var(--pin-doux); }
@media (min-width: 640px) {
  .rangees div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; align-items: baseline; }
  .rangees dd { margin: 0; }
}

/* Un diplôme ou un certificat : un petit cerne, sans encadré */
.titre-obtenu { display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1.75rem; font-size: var(--t-petit); line-height: 1.5; color: var(--pin-doux); }
.titre-obtenu::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; border-radius: 50%; border: 1.5px solid var(--lac); box-shadow: inset 0 0 0 3px var(--brume), inset 0 0 0 4.5px var(--crepuscule); }

/* ---------- En-tête ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--entete);
  background: color-mix(in srgb, var(--brume) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.entete .wrap { height: 100%; display: flex; align-items: center; gap: 1rem; }
.marque { display: flex; align-items: center; min-height: 44px; }
.marque img { width: 128px; }
.nav-large { display: none; }
.bouton-entete { display: none; }
.bouton-menu {
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--filet);
  background: none;
  color: var(--pin);
  font: 500 var(--t-petit) var(--sans);
  cursor: pointer;
}
@media (min-width: 760px) {
  .bouton-entete { display: inline-flex; min-height: 44px; padding: .5em 1.2em; order: 3; }
}
@media (min-width: 1140px) {
  .marque img { width: 150px; }
  .bouton-menu { display: none; }
  .entete nav { margin-left: auto; }
  .nav-large { display: flex; align-items: baseline; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
  .nav-large a { color: var(--pin); text-decoration: none; font-size: var(--t-petit); padding-block: .4rem; border-bottom: 1.5px solid transparent; }
  .nav-large a:hover { color: var(--lac); }
  .nav-large a[aria-current] { color: var(--lac); border-bottom-color: currentColor; }
  /* Formation et supervision : un sous-menu qui s'ouvre au survol ou au clic. Le losange vide se remplit, comme tout ce qui s'ouvre sur place. */
  .nav-groupe { position: relative; }
  .nav-groupe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .9rem; }
  .nav-deroulant { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: var(--pin); font: inherit; font-size: var(--t-petit); line-height: inherit; cursor: pointer; }
  .nav-deroulant::after { content: ""; flex: none; width: 7px; height: 7px; rotate: 45deg; border: 1.5px solid currentColor; transition: background-color .2s; }
  .nav-deroulant:hover, .nav-groupe:hover .nav-deroulant { color: var(--lac); }
  .nav-deroulant[aria-expanded="true"]::after, .nav-groupe:hover .nav-deroulant::after { background: currentColor; }
  .nav-deroulant.est-actif { color: var(--lac); border-bottom-color: currentColor; }
  .sous-menu { position: absolute; top: calc(100% + .75rem); left: -1rem; min-width: 12rem; margin: 0; padding: .4rem; list-style: none; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--arrondi); box-shadow: 0 12px 30px rgba(31, 59, 54, .1); opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity .15s, translate .15s, visibility 0s .15s; }
  .nav-groupe:hover .sous-menu, .nav-deroulant[aria-expanded="true"] + .sous-menu { opacity: 1; visibility: visible; translate: 0; transition: opacity .15s, translate .15s; }
  .nav-large .sous-menu a { display: block; padding: .6rem .8rem; border: 0; border-radius: calc(var(--arrondi) - 4px); }
  .nav-large .sous-menu a:hover { background: var(--brume); }
  .nav-large .sous-menu a[aria-current] { background: var(--brume); font-weight: 500; }
}

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  background: var(--brume);
  padding: 0 var(--gouttiere) calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-mobile.est-ouvert { display: flex; animation: apparaitre .25s ease-out; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(-8px); } }
.menu-mobile-haut { height: var(--entete); flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--filet); }
.menu-mobile ul { list-style: none; margin: 1rem 0 auto; padding: 0; }
.menu-mobile li a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--filet);
  color: var(--pin);
  text-decoration: none;
  font-size: var(--t-intertitre);
  font-weight: 300;
}
.menu-mobile-bas { display: grid; gap: .75rem; padding-top: 2rem; }
@media (min-width: 1140px) { .menu-mobile { display: none !important; } }

/* ---------- Accueil : le mot de bienvenue, la devise d'Amélie et le logo devenu fenêtre ---------- */

.accueil { padding-block: 1.5rem 0; overflow: hidden; }
.accueil-grille { display: grid; gap: 1.75rem; }
.accueil-sur { display: block; margin-bottom: .85rem; font-size: var(--t-texte); font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--lac); }
.voix.devise { margin: 1.1rem 0 1.4rem; font-size: var(--t-titre); line-height: 1.15; font-variation-settings: "opsz" 72; }
.accueil-intro { color: var(--pin-doux); max-width: 34rem; hyphens: manual; }
.accueil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.accueil-actions .bouton { flex: 1 1 100%; }
.accueil-appel { margin: 0; color: var(--pin-doux); }
.accueil-appel a { font-weight: 500; white-space: nowrap; }
/* Juste sous le premier écran : les agréments, sur une bande fine */
.accueil-confiance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 2.5rem;
  padding-block: 1.1rem 1.75rem;
  border-top: 1px solid var(--filet);
}
.accueil-confiance img { height: 30px; width: auto; mix-blend-mode: multiply; }
.accueil-confiance p { margin: 0; flex: 1 1 16rem; font-size: var(--t-petit); color: var(--pin-doux); line-height: 1.45; }

.losange { order: -1; position: relative; margin: 0 auto; width: min(72vw, 360px); aspect-ratio: 1; }
.losange-contour { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.losange-contour polygon { fill: none; stroke: url(#degrade-marque); stroke-width: .3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.8s .2s cubic-bezier(.3, .6, .3, 1) forwards; }
.losange-cadre { position: absolute; inset: 7%; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.moitie { position: absolute; left: 0; right: 0; height: 49%; overflow: hidden; }
/* Cadrage calculé sur la photo (1200 × 1812) : l'horizon du losange tombe au pied des cairns (71 % de la hauteur),
   la pointe montre le ciel au-dessus des sommets (40 %). Le reflet repart de la même ligne, à l'envers. */
.moitie img { position: absolute; left: -2.3%; width: 104.6%; max-width: none; height: auto; }
.moitie-haut { top: 0; animation: lever 1.5s cubic-bezier(.2, .7, .2, 1) both; }
.moitie-haut img { top: -129%; }
.moitie-bas { bottom: 0; animation: refleter 1.5s .3s cubic-bezier(.2, .7, .2, 1) both; }
.moitie-bas img { top: -92.9%; transform: scaleY(-1); filter: url(#ondulation) grayscale(1) brightness(1.2) contrast(.85); }
.moitie-bas::after { content: ""; position: absolute; inset: 0; background: var(--degrade); mix-blend-mode: multiply; opacity: .85; }
@keyframes lever { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes refleter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes tracer { to { stroke-dashoffset: 0; } }

@media (min-width: 600px) {
  .accueil-actions .bouton { flex: none; }
}
@media (min-width: 900px) {
  .accueil { padding-top: clamp(3rem, 5vw, 4.5rem); }
  .accueil-grille { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .losange { order: 0; width: 100%; max-width: 520px; margin: 0 auto; }
  .accueil-confiance { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .moitie-haut, .moitie-bas { animation: none; }
  .losange-contour polygon { animation: none; stroke-dashoffset: 0; }
  .moitie-bas img { filter: url(#ondulation-fixe) grayscale(1) brightness(1.2) contrast(.85); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--respiration); }
.section-lichen { background: var(--lichen); }   /* une seule bande teintée : le rendez-vous, d'où sort la forêt */
.section-filet { border-top: 1px solid var(--filet); }
.section > .wrap > h2, .section-titre { margin-bottom: 1.5rem; }
.lead { color: var(--pin-doux); max-width: 34rem; margin: 0 0 2rem; }

/* ---------- Qu'est-ce qui vous amène ? Le moment fort de l'accueil, sur fond nuit ---------- */

.section-nuit { background: var(--nuit); color: var(--nuit-texte); }
.section-nuit a:not(.bouton) { color: var(--menthe); }
.section-nuit .bouton-contour { color: var(--nuit-texte); border-color: var(--filet-nuit); }
.section-nuit .bouton-contour:hover { background: rgba(236, 234, 246, .1); border-color: rgba(236, 234, 246, .4); color: #fff; }

.choix { display: flex; flex-direction: column; }
.choix-entete { margin-bottom: 2rem; }
.choix-entete p { color: var(--nuit-doux); margin: 1rem 0 0; max-width: 34rem; }
.choix h3 { border-top: 1px solid var(--filet-nuit); font-size: inherit; font-weight: inherit; }
.choix-item:last-of-type h3 { border-bottom: 1px solid var(--filet-nuit); }
.choix-item:last-of-type:has([aria-expanded="true"]) h3 { border-bottom: 0; }
.choix-bouton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 64px;
  padding: .85rem 0;
  border: 0;
  background: none;
  color: var(--nuit-texte);
  font: 300 var(--t-titre)/1.1 var(--sans);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color .25s;
}
/* Le repère en losange : vide au repos, rempli du dégradé du logo une fois choisi. Il n'existe que sur ce qui s'ouvre. */
.choix-bouton::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  rotate: 45deg;
  border: 1.5px solid currentColor;
  transition: rotate .3s, background-color .3s, border-color .3s;
}
.choix-bouton:hover { color: #fff; }
.choix-bouton[aria-expanded="true"]::after { rotate: 225deg; border-color: transparent; background: linear-gradient(135deg, var(--menthe), var(--lavande)); }
.choix-bouton[aria-expanded="true"] .choix-mot {
  background: linear-gradient(90deg, var(--menthe), var(--lavande));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Un sujet choisi : les autres s'effacent (pas quand seul « Et bien d'autres choses » est ouvert) */
.choix:has(.choix-item:not(.choix-item-autres) [aria-expanded="true"]) .choix-bouton[aria-expanded="false"] { color: color-mix(in srgb, var(--nuit-texte) 52%, transparent); }
.choix:has(.choix-item:not(.choix-item-autres) [aria-expanded="true"]) .choix-bouton[aria-expanded="false"]:hover { color: var(--nuit-texte); }
/* Le dernier choix ouvre la liste : il parle avec la voix d'Amélie */
.choix-item-autres .choix-mot { font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "opsz" 48; }

.choix-panneau { display: grid; gap: 1.25rem; padding: .25rem 0 2rem; }
.choix-panneau[hidden] { display: none; }
.choix-panneau:not([hidden]) { animation: deplier .35s ease-out; }
@keyframes deplier { from { opacity: 0; translate: 0 -6px; } }
.choix-titre { margin: 0 0 .5rem; font-weight: 500; color: #fff; }
.choix-texte p:not(.choix-titre) { color: var(--nuit-texte); max-width: 34rem; }
.choix-actions { display: grid; gap: .65rem; margin-top: 1.25rem; }
.choix-panneau .duo { aspect-ratio: 16 / 9; }

@media (min-width: 600px) {
  .choix-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
}
@media (min-width: 900px) {
  .choix { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .choix-entete { grid-column: 1; margin-bottom: 2.5rem; }
  .choix-item { display: contents; }
  .choix h3 { grid-column: 1; }
  .choix-item:last-of-type:has([aria-expanded="true"]) h3 { border-bottom: 1px solid var(--filet-nuit); }
  .choix-panneau { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: calc(var(--entete) + 2rem); margin: 0; padding: 0; }
  .choix-panneau .duo { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) { .choix-panneau:not([hidden]) { animation: none; } }

/* Les photos des thématiques, teintées aux couleurs du logo, avec retenue : un même paysage intérieur, quelle que soit la source */
.duo { position: relative; margin: 0; overflow: hidden; border-radius: var(--arrondi); background: linear-gradient(160deg, #5A8C88, #5F5A8A); isolation: isolate; }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.97); mix-blend-mode: luminosity; }

/* ---------- Amélie en bref (accueil) ---------- */

.portrait { display: grid; gap: 2.5rem; }
.portrait-photo { margin: 0; border-radius: var(--arrondi); overflow: hidden; }
.portrait-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.role { font-weight: 500; color: var(--lac); margin: 1rem 0 .75rem; }
.portrait-texte > p:not(.role) { color: var(--pin-doux); max-width: 34rem; }
.portrait-texte h2 { margin-bottom: 1.25rem; }
.portrait-texte .voix { margin: 1.5rem 0 1.75rem; }
@media (min-width: 900px) {
  .portrait { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .portrait-court .portrait-photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
}

/* ---------- Le cabinet : les vraies photos du lieu, en couleur ---------- */

.photo-lieu { margin: 0; overflow: hidden; border-radius: var(--arrondi); background: var(--lichen); }
.photo-lieu img { width: 100%; height: 100%; object-fit: cover; }
/* Une mosaïque compacte : la salle en grand, puis trois vues plus petites */
.cabinet { display: grid; gap: 1.75rem; }
.cabinet-texte h2 { margin-bottom: 1rem; }
.cabinet-texte p { margin: 0 0 .25rem; color: var(--pin-doux); }
.mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.mosaique .photo-lieu { aspect-ratio: 1; }
.mosaique .photo-lieu:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 760px) {
  .mosaique { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2 / 1; }
  .mosaique .photo-lieu, .mosaique .photo-lieu:first-child { aspect-ratio: auto; }
  .mosaique .photo-lieu:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaique .photo-lieu:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
}
@media (min-width: 900px) {
  .cabinet { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .mosaique { max-width: 44rem; justify-self: end; width: 100%; }
}

/* ---------- Séances, tarifs, questions (accueil) ---------- */

.seances { display: grid; gap: 3rem; }
.seances h2 { margin-bottom: 1rem; }
.seances .lead { margin-bottom: 1.75rem; }
.tarifs { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; }
.tarifs tr { border-top: 1px solid var(--filet); }
.tarifs tr:last-child { border-bottom: 1px solid var(--filet); }
.tarifs th, .tarifs td { padding: 1rem 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.tarifs th { font-weight: 500; line-height: 1.35; }
.tarifs-age { display: block; font-size: var(--t-petit); font-weight: 400; color: var(--pin-doux); }
.tarifs td { color: var(--pin-doux); padding-left: 1rem; }
.tarifs td:last-child { text-align: right; color: var(--pin); font-size: var(--t-intertitre); font-weight: 300; white-space: nowrap; }
.seances-actions { display: grid; gap: .75rem; }
@media (min-width: 600px) { .seances-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .seances { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
}

.faq h2 { margin-bottom: 1.5rem; }
.question { border-top: 1px solid var(--filet); }
.question:last-child { border-bottom: 1px solid var(--filet); }
.question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 60px;
  padding-block: .9rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.question summary::-webkit-details-marker { display: none; }
/* Le même losange que le choix de l'accueil : il signale ce qui s'ouvre sur place */
.question summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  rotate: 45deg;
  border: 1.5px solid var(--lac);
  transition: rotate .3s, background-color .3s;
}
.question[open] summary::after { rotate: 225deg; background: var(--lac); }
.question summary:hover { color: var(--lac); }
.question::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.question[open]::details-content { block-size: auto; }
.reponse { padding-bottom: 1.25rem; color: var(--pin-doux); max-width: 40rem; }
.reponse p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .question::details-content { transition: none; } }

/* ---------- Aussi chez Abbemo ---------- */

.approches { list-style: none; margin: 0; padding: 0; display: grid; }
.approches li { padding-block: 1.5rem; border-top: 1px solid var(--filet); display: flex; flex-direction: column; }
.approches li:last-child { border-bottom: 1px solid var(--filet); }
.approches h3 { margin-bottom: .5rem; }
.approches p { color: var(--pin-doux); margin-bottom: .5rem; }
@media (min-width: 860px) {
  .approches { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
  .approches li, .approches li:last-child { padding: 0 2.5rem; border: 0; border-left: 1px solid var(--filet); }
  .approches li:first-child { padding-left: 0; border-left: 0; }
  .approches .lien-lire { margin-top: auto; }
}

/* ---------- Engagements (portrait) ---------- */

.engagements { display: grid; gap: 2rem; }
.engagements .voix { margin: 1.5rem 0 0; max-width: 16em; }
@media (min-width: 900px) {
  .engagements { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
}

/* ---------- Actualités ---------- */

/* Le prochain événement dans le bloc nuit, les autres séparés par des filets. boussole.js les range selon la date du jour. */
.agenda > :not([hidden]) ~ * { margin-top: 3rem; }
.lecture-texte .agenda h2 { margin: 0 0 1.25rem; }
.agenda .bloc-nuit { margin-bottom: 0; }
.agenda .bloc-nuit h2 { color: #fff; }
.evenement time { display: block; font-weight: 500; color: var(--lac); margin-bottom: .35rem; }
.lecture-texte .evenement h3 { margin: 0 0 .25rem; }
.evenement p { max-width: 34rem; margin-bottom: .25rem; }
.evenement .evenement-lieu { margin-bottom: .75rem; color: var(--pin-doux); }
.bloc-nuit .evenement time, .bloc-nuit .evenement a { color: var(--menthe); }
.bloc-nuit .evenement .evenement-lieu { color: var(--nuit-doux); }
[data-groupe="fait"] .lien-lire { display: none; }
.lecture-texte .agenda + .reseaux { padding-top: 0; border-top: 0; }
.lecture-texte .reseaux { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--filet); }
.reseaux ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.reseaux a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* ---------- Rendez-vous et réservation OneDoc ---------- */

.rdv { display: grid; gap: 2.5rem; }
.rdv-photo { margin: 0; }
.rdv-photo img { width: 112px; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 50%; }
.rdv h2 { margin-top: 1.25rem; }
.rdv .voix { margin: .75rem 0 1.25rem; }
.telephone { display: inline-block; margin-top: .5rem; font-size: var(--t-titre); font-weight: 300; line-height: 1.1; color: var(--pin); text-decoration: none; white-space: nowrap; }
.telephone:hover { color: var(--lac); }
.courriel { display: flex; align-items: center; min-height: 44px; }
.rdv address { font-style: normal; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--filet); color: var(--pin-doux); }
.rdv address a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
/* Sur téléphone, le calendrier prend toute la largeur : OneDoc est à l'étroit en dessous de 360 px */
.reservation { margin-inline: calc(var(--gouttiere) * -1); padding: 1.5rem .5rem .75rem; border-radius: 0; border-inline: 0; }
.reservation h3, .reservation > p { padding-inline: calc(var(--gouttiere) - .5rem); }
.reservation h3 { margin-bottom: .35rem; }
.reservation > p { color: var(--pin-doux); font-size: var(--t-petit); margin-bottom: 1rem; }
.reservation:focus-visible { outline-offset: 4px; }
.od-widget { display: block; width: 100%; height: 560px; border: 0; border-radius: var(--arrondi); background: var(--papier); }
.reservation .reservation-secours { margin: .75rem 0 0; }
@media (min-width: 900px) {
  .rdv { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); grid-template-areas: "photo resa" "texte resa"; gap: 0 clamp(3rem, 6vw, 6rem); align-items: start; }
  .rdv-photo { grid-area: photo; }
  .rdv-texte { grid-area: texte; }
  .reservation { grid-area: resa; margin: 0; padding: 1.75rem 1.25rem 1.25rem; border: 1px solid var(--filet); border-radius: var(--arrondi); }
  .reservation h3, .reservation > p { padding-inline: .5rem; }
  .rdv-photo img { width: 140px; }
  /* Formation et supervision : pas de calendrier, la photo et le contact côte à côte */
  .rdv-pros { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo texte"; align-items: center; }
  .rdv-pros h2 { margin-top: 0; }
}

/* ---------- Pages de lecture : le texte complet d'Amélie, avec ce qu'il faut pour passer à l'action ---------- */

.lecture { padding-block: 1.75rem var(--respiration); }
.fil ol { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .5rem; font-size: var(--t-petit); color: var(--pin-doux); }
/* Le séparateur ferme l'étape précédente : à la ligne, il ne reste jamais seul en début de ligne */
.fil li:not(:last-child)::after { content: "›"; margin-left: .5rem; }
.fil a { color: var(--pin-doux); }
.fil a:hover { color: var(--lac); }
.lecture .role { margin: 1.25rem 0 0; }
/* Formation / Supervision : deux onglets pour passer d'une page à l'autre */
.onglets { display: inline-flex; gap: .25rem; margin: 0 0 1.5rem; padding: .25rem; border: 1px solid var(--filet); border-radius: 999px; }
.onglet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border-radius: 999px; color: var(--pin); font-size: var(--t-petit); font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.onglet:hover { background: var(--lichen); color: var(--pin); }
.onglet[aria-current] { background: var(--lac); color: #fff; }

/* Sur téléphone : titre, image, texte, puis l'encadré pratique. Sur grand écran : le texte à gauche, le reste à droite. */
.lecture-grille { display: grid; gap: 2rem; }
.lecture-cote { display: contents; }
.lecture-cote > * { order: 3; }
.lecture-cote > .lecture-image, .lecture-cote > .lecture-photo, .lecture-cote > .sommaire-page { order: 1; }
.lecture-texte { order: 2; max-width: 38rem; line-height: 1.7; }
.lecture-image { aspect-ratio: 16 / 10; }
.lecture-photo img { aspect-ratio: 4 / 3; }

.chapeau { margin: 0 0 1.25rem; }
.lecture-texte h2 { margin: 3rem 0 1.25rem; }
.lecture-texte > h2:first-child, .lecture-texte > section:first-child h2 { margin-top: 0; }
.lecture-texte > section + section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--filet); }
.lecture-texte h3 { margin: 2rem 0 .6rem; }
.lecture-texte .rubriques h3, .lecture-texte .bloc-nuit h3 { margin-top: 0; }
.lecture-texte > .voix:last-child, .lecture-texte > section > .voix:last-child { margin-bottom: 0; }

.pratique-titre { margin: 0 0 1rem; font-size: var(--t-intertitre); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.pratique { container-type: inline-size; }
.pratique .faits { margin-bottom: 1.25rem; font-size: var(--t-petit); }
.pratique-actions { display: grid; gap: .6rem; margin-bottom: .5rem; }
@container (min-width: 360px) { .pratique-actions { grid-template-columns: 1.4fr 1fr; } }

/* Le sommaire des pages longues : la section en cours est marquée du losange plein */
.sommaire-page ul { list-style: none; margin: 0; padding: 0; }
.sommaire-page a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding-block: .35rem; border-top: 1px solid var(--filet); color: var(--pin); text-decoration: none; line-height: 1.3; }
.sommaire-page a::before { content: ""; flex: none; width: 8px; height: 8px; rotate: 45deg; border: 1.5px solid color-mix(in srgb, var(--pin) 30%, transparent); transition: background-color .2s, border-color .2s; }
.sommaire-page a:hover { color: var(--lac); }
.sommaire-page a[aria-current] { color: var(--lac); font-weight: 500; }
.sommaire-page a[aria-current]::before { border-color: transparent; background: var(--degrade); }

.agrements { display: flex; gap: 1.25rem; align-items: center; margin: 0 0 1rem; }
.agrements img { height: 36px; width: auto; mix-blend-mode: multiply; }

/* Les quatre aspects autour du losange */
.holistique { margin: .5rem 0 1.5rem; max-width: 30rem; }
.holistique svg { display: block; width: 100%; height: auto; overflow: visible; }
.holistique circle { fill: var(--crepuscule); }
.holistique text { font-family: var(--sans); font-size: 16px; fill: var(--pin); }
.holistique .centre { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--crepuscule); }

@media (min-width: 900px) {
  .lecture { padding-top: 2.5rem; }
  .lecture-grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: auto 1fr; column-gap: clamp(3rem, 7vw, 7rem); row-gap: 2.5rem; align-items: start; }
  .lecture-tete, .lecture-texte { grid-column: 1; }
  .lecture-cote { display: grid; gap: 1.5rem; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--entete) + 2rem); }
  .lecture-image { aspect-ratio: 4 / 3; }
}

/* ---------- La chronologie du portrait : chaque étape ajoute un cerne, comme un arbre qui grandit ---------- */

.chronologie { list-style: none; margin: 2rem 0 0; padding: 0; }
.chronologie > li { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1.25rem; padding-bottom: 2.25rem; }
/* Le tronc : un filet relie les cernes d'une étape à l'autre */
.chronologie > li:not(:last-child)::before { content: ""; position: absolute; left: calc(3.25rem / 2); top: 3.75rem; bottom: .5rem; border-left: 1px solid var(--filet); }
.lecture-texte .chronologie h3 { margin: .7rem 0 .6rem; }
.chronologie .puces { margin-bottom: 1.25rem; }
.chronologie > li > div > :last-child { margin-bottom: 0; }
.anneaux { width: 100%; height: auto; overflow: visible; }
.anneaux g { stroke: url(#degrade-marque); }
.anneaux circle { fill: var(--crepuscule); }
.anneaux .recent { stroke-width: 2.8; }
.js .anneaux path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chronologie > li.est-visible .anneaux path { animation: tracer 1s cubic-bezier(.3, .6, .3, 1) forwards; animation-delay: calc(var(--i) * 140ms); }
@media (min-width: 600px) { .chronologie > li { grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1.5rem; } .chronologie > li:not(:last-child)::before { left: 2rem; top: 4.4rem; } .lecture-texte .chronologie h3 { margin-top: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .js .anneaux path { stroke-dashoffset: 0; animation: none !important; } }

/* ---------- Au bas d'une thématique : les autres, comme des liens (rien ne s'ouvre ici) ---------- */

.autres-themes h2 { margin-bottom: 1.5rem; }
.liste-themes { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-themes li { border-top: 1px solid var(--filet); }
.liste-themes li:last-child { border-bottom: 1px solid var(--filet); }
.liste-themes a { display: block; padding-block: .95rem; font-size: var(--t-intertitre); font-weight: 300; line-height: 1.2; text-decoration: none; }
.liste-themes a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .liste-themes { grid-template-columns: 1fr 1fr; column-gap: clamp(3rem, 6vw, 6rem); }
  .liste-themes li:nth-last-child(2) { border-bottom: 1px solid var(--filet); }
}

/* ---------- Passage d'une page à l'autre : la page monte comme un panneau, la photo du sujet la suit ---------- */

@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: .2s ease-in both disparaitre; }
::view-transition-new(root) { animation: .4s .05s cubic-bezier(.2, .8, .2, 1) both monter; }
@keyframes disparaitre { to { opacity: 0; } }
@keyframes monter { from { opacity: 0; translate: 0 28px; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Pied de page : la forêt se reflète dans un lac de nuit, comme le losange de l'accueil ---------- */

.pied { background: var(--nuit); color: var(--nuit-texte); }
.foret { display: block; width: 100%; height: clamp(130px, 21vw, 300px); background: linear-gradient(180deg, var(--lichen) 50%, var(--nuit) 50%); }
.foret .reflet-foret { filter: url(#ondulation-fixe); }
.pied .wrap { padding-block: 3rem calc(2rem + var(--barre, 0px)); }
.pied-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.pied-titre { margin: 0 0 .5rem; font-weight: 500; color: #fff; }
.pied-liens { list-style: none; margin: 0; padding: 0; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 40px; padding-block: .3rem; color: var(--nuit-doux); text-decoration: none; line-height: 1.3; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-adresse { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--filet-nuit); font-style: normal; line-height: 1.65; color: var(--nuit-doux); }
.pied-adresse strong { font-weight: 500; color: #fff; }
.pied-adresse a { color: inherit; }
.pied-bas { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--filet-nuit); font-size: var(--t-petit); color: var(--nuit-doux); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.pied-bas a { color: inherit; }
.pied-bas a + a { margin-left: 1.25rem; }
@media (min-width: 900px) {
  .pied-colonnes { grid-template-columns: 1fr 1fr .8fr 1.3fr; gap: 3rem; }
  .pied-adresse { grid-column: auto; padding-top: 0; border-top: 0; }
}

/* ---------- Barre d'action mobile : appeler ou réserver, toujours sous le pouce ---------- */

.barre-rdv {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: .6rem;
  padding: .65rem var(--gouttiere) calc(.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--brume) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--filet);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.barre-rdv.est-visible { transform: none; visibility: visible; transition: transform .3s ease; }
body { --barre: 76px; }
@media (min-width: 900px) {
  .barre-rdv { display: none; }
  body { --barre: 0px; }
}
@media (prefers-reduced-motion: reduce) { .barre-rdv { transition: none; } }
