/* ==========================================================================
   Clinique TDAH Montérégie : feuille de style
   Couleurs du logo : sarcelle #81D0CF, anthracite #3D4749, gris #787B7C
   ========================================================================== */

/* Polices hébergées avec le site (aucun appel à un service externe) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
/* Titres : Fraunces, une police à empattements aux formes douces */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
/* Zéro sans barre : Atkinson Hyperlegible dessine le zéro avec une barre oblique (« 10 ans », « 2160 $ »).
   Ces trois petits fichiers ne contiennent que le chiffre 0 de la police Figtree. Comme « Zero simple » passe
   avant Atkinson dans --police-texte et se limite à ce caractère (unicode-range), seul le zéro change. */
@font-face { font-family: "Zero simple"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-zero-400-normal.woff2") format("woff2"); unicode-range: U+30; }
@font-face { font-family: "Zero simple"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-zero-400-italic.woff2") format("woff2"); unicode-range: U+30; }
@font-face { font-family: "Zero simple"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-zero-700-normal.woff2") format("woff2"); unicode-range: U+30; }

:root {
  --sarcelle: #81D0CF;
  --sarcelle-texte: #276F6D;
  --sarcelle-fonce: #1D5654;
  --sarcelle-douce: #E6F5F4;
  --sarcelle-teinte: #EAF6F5;
  --sarcelle-photo: #CFE9E8;
  --anthracite: #3D4749;
  --encre: #2C3436;
  --encre-sur-sarcelle: #1F2B2A;
  --texte: #3D4749;
  --texte-doux: #566062;
  --fond: #FAFBFA;
  --surface: #FFFFFF;
  --ligne: #E3E9E8;
  --ligne-sombre: #56625F;
  --texte-sur-sombre: #D5DDDD;

  /* Trois rôles : les titres (Fraunces), les éléments d’interface comme le menu, les boutons
     et les étiquettes (Plus Jakarta Sans), puis le texte courant (Atkinson Hyperlegible) */
  --police-grands-titres: "Fraunces", Georgia, "Times New Roman", serif;
  --police-titres: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --police-texte: "Zero simple", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --largeur: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --espace-section: clamp(64px, 8vw, 112px);
  --rayon: 26px;
  --ombre: 0 18px 40px rgba(44, 52, 54, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: clamp(17px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--police-grands-titres);
  font-weight: 600;
  color: var(--encre);
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.14; letter-spacing: -0.015em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--sarcelle-texte); }
a:hover { color: var(--sarcelle-fonce); }
:focus-visible { outline: 3px solid var(--sarcelle-texte); outline-offset: 3px; border-radius: 6px; }

.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;
}

.lien-evitement {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--encre); color: #FFFFFF;
  font-family: var(--police-titres); font-weight: 700; text-decoration: none;
}
.lien-evitement:focus { top: 16px; color: #FFFFFF; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 860px; }

.pile { display: flex; flex-direction: column; gap: 18px; }
.pile--serree { gap: 12px; }
.pile--large { gap: 48px; }

.icone { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Barre d’information et en-tête
   -------------------------------------------------------------------------- */
.barre-info { background: var(--anthracite); color: #DCE3E3; font-size: 14px; }
.barre-info .conteneur {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  padding-block: 8px;
}
.barre-info span, .barre-info a {
  display: inline-flex; align-items: center; gap: 8px; color: #DCE3E3; text-decoration: none;
  overflow-wrap: anywhere;
}
.barre-info a { min-height: 32px; }
.barre-info a:hover { color: #FFFFFF; text-decoration: underline; }
.barre-info svg { color: var(--sarcelle); }

.entete { background: var(--surface); border-bottom: 1px solid var(--ligne); position: relative; z-index: 10; }
.entete .conteneur {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 28px; padding-block: 14px;
}
.entete__logo { display: flex; flex-shrink: 0; }
.entete__logo img { width: clamp(130px, 14vw, 172px); }
.entete__actions { display: flex; align-items: center; gap: 10px; }

.nav-principale ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.8vw, 28px);
}
.nav-principale a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--police-titres); font-weight: 600; font-size: 15px;
  color: var(--encre); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-principale a:hover { color: var(--sarcelle-texte); }
.nav-principale a[aria-current="page"] { color: var(--sarcelle-texte); border-bottom-color: var(--sarcelle); }

.bouton-menu {
  display: none; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px;
  border: 1.5px solid #C9D3D3; border-radius: 999px; background: var(--surface); color: var(--encre);
  font-family: var(--police-titres); font-weight: 700; font-size: 14px; cursor: pointer;
}

@media (max-width: 1149px) {
  .nav-principale { order: 3; flex: 1 1 100%; }
  .js .bouton-menu { display: inline-flex; }
  .js .nav-principale { display: none; }
  .js .nav-principale.est-ouverte { display: block; }
  .nav-principale ul { flex-direction: column; gap: 0; padding: 6px 0 4px; border-top: 1px solid var(--ligne); }
  .nav-principale li + li { border-top: 1px solid var(--ligne); }
  .nav-principale a { display: flex; min-height: 52px; font-size: 17px; border-bottom: 0; }
  .nav-principale a[aria-current="page"] { border-bottom: 0; }
}
.nav-principale__demande { display: none; }
@media (max-width: 520px) {
  .entete__actions .bouton--sombre { display: none; }
  .nav-principale .nav-principale__demande { display: block; }
  .nav-principale__demande a { color: var(--sarcelle-texte); }
}

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */
.boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--police-titres); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton--petit { min-height: 46px; padding: 10px 20px; font-size: 14px; }
.bouton--grand { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.bouton--primaire { background: var(--sarcelle); color: var(--encre-sur-sarcelle); }
.bouton--primaire:hover { background: #6CC4C3; color: var(--encre-sur-sarcelle); }
.bouton--sombre { background: var(--anthracite); color: #FFFFFF; }
.bouton--sombre:hover { background: var(--encre); color: #FFFFFF; }
.bouton--contour { background: var(--surface); border-color: #C9D3D3; color: var(--encre); }
.bouton--contour:hover { border-color: var(--anthracite); color: var(--encre); }
.bouton--contour-sombre { border-color: var(--anthracite); color: var(--encre); }
.bouton--contour-sombre:hover { background: var(--anthracite); color: #FFFFFF; }
.bouton--contour-clair { border-color: rgb(255 255 255 / 0.55); color: #FFFFFF; }
.bouton--contour-clair:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--encre); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px;
  font-family: var(--police-titres); font-weight: 700; font-size: 15px;
  color: var(--sarcelle-texte); text-decoration: none;
}
.lien-fleche:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--espace-section); }
.section--sombre { background: var(--anthracite); color: var(--texte-sur-sombre); }
.section--sombre h2, .section--sombre h3 { color: #FFFFFF; }
.section--sombre .surtitre { color: var(--sarcelle); }
.section--sombre .texte-doux { color: var(--texte-sur-sombre); }
.section--sombre .encadre { background: rgb(255 255 255 / 0.06); border-color: var(--ligne-sombre); }
.section--sombre .encadre strong { color: #FFFFFF; }
.section--sombre .encadre span, .section--sombre .encadre p { color: var(--texte-sur-sombre); }
.section--teinte { background: var(--sarcelle-teinte); }
.section--blanche { background: var(--surface); border-block: 1px solid var(--ligne); }
.section--sans-haut { padding-top: 0; }

.surtitre {
  font-family: var(--police-titres); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sarcelle-texte);
}
.chapeau { font-size: clamp(18px, 1.5vw, 20px); color: var(--texte-doux); max-width: 34em; }
.texte-doux { color: var(--texte-doux); }

.entete-section {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px;
}
.entete-section > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.entete-section > p { flex: 1 1 380px; min-width: 0; color: var(--texte-doux); }

.deux-colonnes { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 80px); }
.deux-colonnes > * { flex: 1 1 440px; min-width: 0; }
.deux-colonnes--haut { align-items: flex-start; }
.deux-colonnes--inverse { flex-wrap: wrap-reverse; }

[hidden] { display: none !important; }

.note {
  display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--texte-doux);
}
.note svg { margin-top: 3px; color: var(--sarcelle-texte); }

/* --------------------------------------------------------------------------
   Emplacements photo : remplacés par une vraie photo dès qu’elle est fournie
   -------------------------------------------------------------------------- */
.photo {
  position: relative; overflow: hidden; width: 100%;
  border-radius: var(--rayon); background-color: var(--sarcelle-photo);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--vide {
  display: flex; align-items: flex-end; padding: 16px;
  background-image: repeating-linear-gradient(135deg, rgba(61, 71, 73, 0.06) 0 2px, transparent 2px 16px);
}
.photo__etiquette {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); font-family: var(--police-titres); font-weight: 600;
  font-size: 13px; color: var(--anthracite);
}
.photo--haut-droite { align-items: flex-start; justify-content: flex-end; padding: 20px; }
.photo--sombre { background-color: var(--ligne-sombre); }
.photo--grise { background-color: #DCE4E4; }
.ratio-5-6 { aspect-ratio: 5 / 6; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* --------------------------------------------------------------------------
   Accueil : bandeau principal
   -------------------------------------------------------------------------- */
.accroche { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
/* Titre à gauche, présentation à droite sur grand écran; l’un sous l’autre ailleurs */
.accroche__texte { display: grid; gap: 26px; }
.accroche__titre, .accroche__intro { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
@media (min-width: 1000px) {
  .accroche__texte { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
}
/* L’illustration occupe toute la largeur et ses bords s’estompent dans le fond de la page */
.accroche__visuel { position: relative; margin-top: clamp(20px, 3vw, 40px); }
.accroche__visuel .photo {
  aspect-ratio: 2 / 1; border-radius: 0; background: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
@media (min-width: 760px) {
  .accroche__visuel .photo { aspect-ratio: 12 / 5; }
}

.pastille {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid #D6E8E7;
  font-family: var(--police-titres); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  color: var(--sarcelle-texte);
}
.pastille::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sarcelle); box-shadow: 0 0 0 4px var(--sarcelle-douce);
}

.surligne { background: linear-gradient(transparent 62%, #BFE7E6 62%, #BFE7E6 92%, transparent 92%) no-repeat; }
/* Dans le titre de l’accueil, « TDAH Montérégie » commence une nouvelle ligne */
.accroche__nom { display: block; }

.carte-flottante {
  position: relative; width: fit-content; max-width: 100%; margin-top: 8px;
  display: flex; flex-direction: column; gap: 12px; padding: 20px 22px;
  border-radius: 22px; background: var(--surface); box-shadow: var(--ombre);
}
.carte-flottante p { font-family: var(--police-titres); font-weight: 700; font-size: 15px; color: var(--encre); }
/* Sur grand écran, la carte se pose en bas à droite de l’illustration, sous la fin des rubans */
@media (min-width: 1100px) {
  .carte-flottante { position: absolute; right: 3%; bottom: -48px; max-width: 280px; margin-top: 0; }
}

/* Sur téléphone, l’illustration passe en bandeau tout en haut : le premier écran montre une image,
   puis le titre, le texte et les boutons. La barre du haut tient sur une ligne (le courriel reste
   au bas de chaque page), et la carte « À la clinique », qui répète la liste des services située
   juste en dessous, n’est pas affichée. */
@media (max-width: 759px) {
  .barre-info a[href^="mailto:"] { display: none; }
  .accroche { padding-top: 0; }
  .accroche > .conteneur { display: flex; flex-direction: column; }
  .accroche__visuel { order: -1; margin: 0 calc(var(--gouttiere) * -1) 14px; }
  .accroche__visuel .photo { aspect-ratio: 10 / 3; }
  .accroche__texte, .accroche__titre, .accroche__intro { gap: 16px; }
  .carte-flottante { display: none; }
  .pastille { gap: 8px; padding: 5px 12px 5px 8px; font-size: 12px; letter-spacing: 0; }
  .pastille::before { width: 8px; height: 8px; box-shadow: 0 0 0 3px var(--sarcelle-douce); }
}

.liste-coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.liste-coches li { display: flex; align-items: flex-start; gap: 10px; }
.liste-coches svg { margin-top: 4px; color: var(--sarcelle-texte); }
.liste-coches--petite { gap: 8px; font-size: 15px; color: #475153; }
.liste-coches--petite svg { margin-top: 3px; }
.section--sombre .liste-coches svg { color: var(--sarcelle); }

/* Bandeau d’engagements */
.engagements {
  list-style: none; margin: 0; padding: clamp(22px, 2.6vw, 30px) clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px 32px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--ligne);
}
.engagements li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.35; }
.engagements strong { display: block; font-family: var(--police-titres); font-size: 15px; color: var(--encre); }

.tuile-icone {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--sarcelle-douce); color: var(--sarcelle-texte);
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grille-cartes--petites { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }

.carte {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--ligne);
}
.carte .photo { border-radius: 0; }
.carte__corps { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.4vw, 30px); }
.carte__numero { font-family: var(--police-titres); font-weight: 800; font-size: 14px; color: var(--sarcelle-texte); }
.carte__corps > p:not(.carte__numero) { color: var(--texte-doux); }
.carte__corps .lien-fleche { margin-top: auto; padding-top: 8px; }
.carte__corps .tuile-icone { margin-bottom: 4px; }

/* Grille de trois cartes : une colonne sur téléphone, deux sur tablette (la dernière carte
   occupe alors toute la largeur), puis trois sur une seule rangée */
.grille-cartes--trois { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grille-cartes--trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille-cartes--trois > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .grille-cartes--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-cartes--trois > :last-child { grid-column: auto; }
}

/* Carte mise en vedette : le service phare de la clinique, l’évaluation du TDAH */
.carte--vedette {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  border-color: #BFE7E6; box-shadow: 0 10px 30px rgba(44, 52, 54, 0.08);
}
.carte--vedette .photo { height: 100%; min-height: 260px; aspect-ratio: 2 / 1; }
.carte--vedette .carte__corps { gap: 16px; padding: clamp(26px, 3.4vw, 44px); }
.carte--vedette h3 { font-size: clamp(26px, 2.6vw, 34px); }
.carte__corps > p.etiquette-expertise {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--sarcelle-douce);
  font-family: var(--police-titres); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  color: var(--sarcelle-texte);
}
.etiquette-expertise::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sarcelle); }

/* Carte anthracite, même allure que l’évaluation exhaustive de /tdah/
   (les quatre évaluations de la section « Nos services » de l’accueil) */
.carte--sombre { background: var(--anthracite); border-color: var(--anthracite); color: var(--texte-sur-sombre); }
.carte--sombre h3 { color: #FFFFFF; }
.carte--sombre .carte__corps > p { color: var(--texte-sur-sombre); }
.carte--sombre .carte__corps > p.etiquette-expertise { background: rgb(129 208 207 / 0.16); color: #A8E0DF; }
.carte--sombre .tuile-icone { background: rgb(129 208 207 / 0.16); color: var(--sarcelle); }
.carte--sombre .liste-coches { color: var(--texte-sur-sombre); }
.carte--sombre .liste-coches svg { color: var(--sarcelle); }
.carte--sombre .lien-fleche { color: var(--sarcelle); }
.carte--sombre :focus-visible { outline-color: var(--sarcelle); }

.encadre {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 22px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne);
}
.encadre strong { font-family: var(--police-titres); color: var(--encre); font-size: 16px; }
.encadre span, .encadre p { font-size: 16px; color: var(--texte-doux); }
/* Encadré sarcelle pâle (ce que comprennent les tarifs) */
.encadre--clair { background: var(--sarcelle-douce); border-color: var(--sarcelle-douce); }
.encadre--clair span, .encadre--clair p { color: var(--texte); }
/* Encadré clair sur fond anthracite (signes du TDAH) */
.section--sombre .encadre--clair { background: var(--sarcelle-douce); border-color: var(--sarcelle-douce); color: var(--texte); }
.section--sombre .encadre--clair h3, .section--sombre .encadre--clair strong { color: var(--encre); }
.section--sombre .encadre--clair span, .section--sombre .encadre--clair p { color: var(--texte); }
.section--sombre .encadre--clair .liste-coches svg { color: var(--sarcelle-texte); }
.section--sombre .encadre--clair h3 .tuile-icone { background: var(--surface); color: var(--sarcelle-texte); }
/* Encadré anthracite sur fond pâle, même allure que l’évaluation exhaustive de /tdah/
   (étapes de l’évaluation neuropsychologique, approches en psychothérapie, volets du coaching) */
.encadre--vedette {
  gap: 10px; padding: clamp(24px, 3vw, 32px);
  border-radius: var(--rayon); background: var(--anthracite); border-color: var(--anthracite);
}
.encadre--vedette strong { font-size: 20px; line-height: 1.3; color: #FFFFFF; }
.encadre--vedette span, .encadre--vedette p { color: var(--texte-sur-sombre); }
.encadre--vedette .etapes__duree {
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sarcelle);
}
/* Encadré pleine largeur dans une grille (coaching, section Psychothérapie de l’accueil) */
.encadre--large { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   Étapes
   -------------------------------------------------------------------------- */
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.etapes li { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--ligne); }
.etapes li:last-child { border-bottom: 0; }
.etapes h3 { font-size: 21px; line-height: 1.3; }
.etapes li > div { display: flex; flex-direction: column; gap: 6px; }
.section--sombre .etapes li { border-bottom-color: var(--ligne-sombre); }
.section--sombre .etapes li:last-child { border-bottom: 0; }
.etapes__numero {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--sarcelle); color: var(--encre-sur-sarcelle);
  font-family: var(--police-titres); font-weight: 800; font-size: 19px;
}
.etapes__duree { font-family: var(--police-titres); font-weight: 600; font-size: 14px; color: var(--sarcelle-texte); }
.section--sombre .etapes__duree { color: var(--sarcelle); }

/* --------------------------------------------------------------------------
   Suivis (accueil)
   -------------------------------------------------------------------------- */
.visuel-suivis { position: relative; padding-bottom: 28px; }
.visuel-suivis .photo { border-radius: 120px 32px 32px 32px; max-height: 560px; }
.etiquette-sombre {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 20px;
  background: var(--anthracite); color: #FFFFFF; box-shadow: var(--ombre);
  font-family: var(--police-titres); font-weight: 700; font-size: 15px;
}
.etiquette-sombre svg { color: var(--sarcelle); }
/* Sur un fond foncé, l’étiquette passe au blanc pour se détacher */
.section--sombre .etiquette-sombre { background: var(--surface); color: var(--encre); }
.section--sombre .etiquette-sombre svg { color: var(--sarcelle-texte); }

/* Portraits de l’équipe à l’accueil : trois par rangée sur téléphone et tablette, six sur grand écran.
   Chaque portrait mène à la fiche de la personne, à la page La clinique. */
.portraits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; }
.portraits a { display: flex; flex-direction: column; gap: 2px; color: var(--encre); text-decoration: none; }
.portraits a:focus-visible { border-radius: 18px; }
.portraits__photo { display: block; overflow: hidden; margin-bottom: 8px; border-radius: 18px; aspect-ratio: 4 / 5; background-color: #D5D5D5; }
.portraits__photo img { width: 100%; height: 100%; object-fit: cover; }
.portraits strong { font-family: var(--police-titres); font-weight: 700; font-size: 14px; line-height: 1.25; }
/* 13 px sur téléphone : « Neuropsychologue » tient ainsi sur une ligne dans une colonne étroite */
.portraits__role { font-size: 13px; line-height: 1.35; color: var(--texte-doux); hyphens: auto; overflow-wrap: break-word; }
.portraits a:hover strong { text-decoration: underline; }
@media (min-width: 560px) {
  .portraits { gap: 24px 16px; }
  .portraits strong { font-size: 16px; }
  .portraits__role { font-size: 15px; }
}
@media (min-width: 900px) {
  .portraits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Mosaïque de la clinique */
.mosaique { display: flex; flex-wrap: wrap; gap: 20px; }
.mosaique > .photo { flex: 2 1 480px; min-width: 0; min-height: 380px; }
.mosaique__colonne { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mosaique__colonne .photo { flex: 1; min-height: 320px; }

/* Carte de la clinique : lien vers l’itinéraire dans Google Maps */
.carte-acces { position: relative; flex: 1; display: flex; border-radius: var(--rayon); color: var(--encre); text-decoration: none; }
.carte-acces:focus-visible { border-radius: var(--rayon); }
.carte-acces .photo { background-color: #F1F3F4; }
.carte-acces__bouton {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre);
  font-family: var(--police-titres); font-weight: 700; font-size: 15px; color: var(--encre);
  transition: background-color 0.2s ease;
}
.carte-acces__bouton svg { color: var(--sarcelle-texte); }
.carte-acces:hover .carte-acces__bouton { background: var(--sarcelle); color: var(--encre-sur-sarcelle); }
.carte-acces:hover .carte-acces__bouton svg { color: var(--encre-sur-sarcelle); }
/* Mention exigée par les conditions d’utilisation de Google Maps */
.carte-acces__credit {
  position: absolute; right: 10px; bottom: 8px; padding: 1px 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.85); font-size: 11px; line-height: 1.5; color: var(--anthracite);
}

/* --------------------------------------------------------------------------
   Questions fréquentes
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); }
.faq__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq__liste { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 20px 0; font-family: var(--police-titres); font-weight: 700;
  font-size: clamp(17px, 1.4vw, 19px); color: var(--encre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--sarcelle-texte); }
.faq details[open] .plus-vertical { opacity: 0; }
.faq details p { margin: 0 0 22px; color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   Appel à l’action
   -------------------------------------------------------------------------- */
.appel {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch;
  border-radius: 32px; background: var(--sarcelle);
}
.appel::before {
  content: ""; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -220px;
  border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.28);
}
.appel__texte {
  position: relative; flex: 1 1 520px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(32px, 5vw, 64px);
}
.appel h2 { color: var(--encre-sur-sarcelle); font-size: clamp(30px, 3.6vw, 46px); }
.appel p { color: #22302F; max-width: 32em; }
.appel a:not(.bouton) { color: var(--encre-sur-sarcelle); font-weight: 700; overflow-wrap: anywhere; }
.appel .photo { position: relative; flex: 1 1 360px; min-height: 320px; border-radius: 0; background-color: #A9DCDB; }
.appel--sans-photo .appel__texte { flex-basis: 100%; }

/* --------------------------------------------------------------------------
   En-tête des pages intérieures
   -------------------------------------------------------------------------- */
.entete-page { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.entete-page::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -200px; top: -240px;
  border-radius: 50%; background: var(--sarcelle-douce);
}
.entete-page .conteneur { position: relative; }
.entete-page__texte { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.entete-page h1 { font-size: clamp(34px, 4.4vw, 56px); }
.entete-page__visuel { flex: 1 1 380px; }
.entete-page__visuel .photo { border-radius: 32px 32px 32px 100px; }
/* Une illustration (plutôt qu’une photo) se fond dans la page : son fond blanc disparaît et ses bords s’estompent */
.entete-page__visuel .photo--illustration {
  border-radius: 0; background: none; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
/* Sur grand écran, l’illustration déborde un peu de sa colonne pour paraître plus grande */
@media (min-width: 1000px) {
  .entete-page__visuel .photo--illustration { transform: scale(1.15); }
}

.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--texte-doux); }
.fil-ariane li + li::before { content: "/"; margin-right: 6px; color: #A3ADAD; }
.fil-ariane a { color: var(--texte-doux); display: inline-block; padding-block: 12px; margin-block: -12px; }

/* Sommaire de page */
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; }
.sommaire a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--ligne); color: var(--encre); text-decoration: none;
  font-family: var(--police-titres); font-weight: 600; font-size: 15px;
}
.sommaire a:hover { border-color: var(--sarcelle-texte); color: var(--sarcelle-texte); }

/* Texte courant */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose h3 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--sarcelle-texte); }
.section--sombre .prose li::marker { color: var(--sarcelle); }

/* Politique de confidentialité : étiquette des points que la clinique doit encore confirmer */
.a-confirmer {
  display: inline-block; padding: 1px 8px; border-radius: 6px; background: #FFE58A; color: #3D3200;
  font-family: var(--police-titres); font-size: 13px; font-weight: 700; vertical-align: 2px;
}
.politique h2 { margin-top: 28px; font-size: clamp(26px, 3.2vw, 34px); scroll-margin-top: 100px; }
.politique h3 { font-size: 19px; }
.prose .table-matieres { margin: 0; padding-left: 1.4em; columns: 2 240px; column-gap: 40px; }
.prose .table-matieres li { break-inside: avoid; margin-bottom: 6px; }
.prose .table-matieres a { display: inline-block; padding: 6px 0; }

.liste-deux-colonnes { columns: 2 260px; column-gap: 40px; }
.liste-deux-colonnes li { break-inside: avoid; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */
.tarif {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px);
  border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--ligne);
}
.tarif__entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tarif__prix { font-family: var(--police-grands-titres); font-weight: 600; font-size: clamp(28px, 3vw, 36px); color: var(--encre); letter-spacing: -0.015em; }
.tarif__prix small { font-family: var(--police-titres); font-size: 16px; font-weight: 600; color: var(--texte-doux); letter-spacing: 0; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Équipe
   -------------------------------------------------------------------------- */
/* auto-fill garde les colonnes vides : une carte seule (l’administration) reste de la même largeur que les autres */
.grille-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.membre {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--ligne);
}
.membre .photo { border-radius: 0; aspect-ratio: 4 / 5; }
/* Fiche ouverte à partir d’un portrait de l’accueil : elle se place sous le haut de l’écran et son contour passe au sarcelle */
.membre { scroll-margin-top: 24px; }
.membre:target { border-color: var(--sarcelle); box-shadow: 0 0 0 3px var(--sarcelle-douce); }
.membre .photo--vide { align-items: center; justify-content: center; }
.membre__initiales {
  display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--surface); color: var(--sarcelle-texte); font-family: var(--police-titres); font-weight: 800; font-size: 26px;
}
.membre__texte { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 22px; }
.membre:has(.membre__plus) .membre__texte { padding-bottom: 6px; }
.membre h3 { font-size: 18px; }
/* Diplômes en gras sur la ligne du nom, après une virgule : « Philippe-Olivier Harvey, M.Ps., Ph.D. » */
.diplomes { font-family: var(--police-titres); font-size: 0.875em; letter-spacing: 0; white-space: nowrap; }
.portraits .diplomes { font-size: inherit; }
.diplomes strong { font-weight: 800; }
.membre__mention { font-family: var(--police-titres); font-weight: 600; font-size: 14px; color: var(--texte-doux); }
.membre__role { font-size: 16px; color: var(--texte); }
.membre__clientele { font-size: 15px; color: var(--sarcelle-texte); }
/* Bouton « En savoir plus » : déroule la courte présentation sous la carte */
.membre__plus { padding: 0 20px 16px; }
.membre__plus summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-family: var(--police-titres); font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--sarcelle-texte);
  white-space: nowrap;
}
.membre__plus summary::-webkit-details-marker { display: none; }
.membre__plus summary:hover { text-decoration: underline; }
.membre__plus summary svg { flex: none; transition: transform 0.2s; }
.membre__plus[open] summary svg { transform: rotate(180deg); }
.membre__fermer, .membre__plus[open] .membre__ouvrir { display: none; }
.membre__plus[open] .membre__fermer { display: inline; }
.membre__plus p { margin: 4px 0 6px; font-size: 15px; line-height: 1.55; color: var(--texte-doux); hyphens: auto; overflow-wrap: break-word; }
/* Ouverture en douceur, là où le navigateur le permet */
@media (prefers-reduced-motion: no-preference) {
  .membre__plus { interpolate-size: allow-keywords; }
  .membre__plus::details-content { height: 0; overflow: clip; transition: height 0.25s ease, content-visibility 0.25s allow-discrete; }
  .membre__plus[open]::details-content { height: auto; }
}
/* Les cartes d’une même rangée partagent leurs lignes : les boutons restent alignés,
   et ouvrir une présentation ne déplace pas le bouton de la carte voisine */
@supports (grid-template-rows: subgrid) {
  .membre { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .membre__plus { align-self: start; }
}
/* Sur téléphone, deux portraits par rangée : la liste de l’équipe reste courte à parcourir */
@media (max-width: 559px) {
  .grille-equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .membre { border-radius: 18px; }
  .membre__texte { padding: 12px 12px 14px; gap: 2px; }
  .membre h3 { font-size: 16px; }
  .membre__mention { font-size: 14px; }
  .membre__role { font-size: 14px; line-height: 1.4; }
  .membre__clientele { font-size: 14px; line-height: 1.4; }
  .membre__plus { padding: 0 12px 8px; }
  .membre__plus summary { gap: 4px; font-size: 14px; }
  .membre__plus p { font-size: 14px; line-height: 1.5; }
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.formulaire { display: flex; flex-direction: column; gap: 28px; }
.formulaire fieldset {
  margin: 0; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--ligne);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.formulaire legend {
  float: left; width: 100%; padding: 0; margin-bottom: 4px;
  font-family: var(--police-titres); font-weight: 700; font-size: 20px; color: var(--encre);
}
.formulaire legend + * { clear: both; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .champ .libelle { font-family: var(--police-titres); font-weight: 600; font-size: 15px; color: var(--encre); }
.champ .aide { font-size: 14px; color: var(--texte-doux); }
.obligatoire { color: #A33A3A; }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="tel"],
.formulaire input[type="number"], .formulaire select, .formulaire textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #C9D3D3;
  background: #FFFFFF; font: inherit; font-size: 17px; color: var(--encre);
}
.formulaire textarea { min-height: 120px; resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus {
  outline: 3px solid rgba(39, 111, 109, 0.35); outline-offset: 0; border-color: var(--sarcelle-texte);
}
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.choix label {
  display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px;
  border-radius: 14px; border: 1.5px solid var(--ligne); background: var(--fond); cursor: pointer; font-size: 16px; line-height: 1.4;
}
.choix label:has(input:checked) { border-color: var(--sarcelle-texte); background: var(--sarcelle-douce); }
.choix input, .consentement input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--sarcelle-texte); }
.choix small { display: block; color: var(--texte-doux); font-size: 14px; }
.consentement { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; cursor: pointer; }
.champ-piege { display: none; }

/* --------------------------------------------------------------------------
   Coordonnées
   -------------------------------------------------------------------------- */
.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.coordonnee {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--ligne);
}
.coordonnee h2 { font-size: 19px; letter-spacing: 0; }
.coordonnee a { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.pied { padding: 64px 0 28px; background: var(--encre); color: #C3CCCC; font-size: 16px; }
.pied a { color: #E7ECEB; }
.pied a:hover { color: #FFFFFF; }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 56px; }
.pied__marque { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pied__marque img { width: 180px; }
.pied__marque p { max-width: 26em; }
.pied__colonne { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-style: normal; }
.pied__colonne h2 { margin-bottom: 6px; font-family: var(--police-titres); font-size: 16px; font-weight: 700; letter-spacing: 0; color: #FFFFFF; }
.pied__colonne ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pied__colonne a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; overflow-wrap: anywhere; }
.pied__colonne a:hover { text-decoration: underline; }
.pied__bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #47524F; font-size: 14px;
}
.pied__bas div { display: flex; flex-wrap: wrap; gap: 0 24px; }
.pied__bas a { display: inline-flex; align-items: center; min-height: 44px; }
.lien-icone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }

/* --------------------------------------------------------------------------
   Idées d’image : encadrés temporaires, à remplacer par une vraie image
   -------------------------------------------------------------------------- */
.idee-image {
  margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--rayon);
  border: 2px dashed #9FCFCE; background: var(--sarcelle-douce);
}
.idee-image__etiquette {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); font-family: var(--police-titres); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; color: var(--sarcelle-texte);
}
.idee-image figcaption { display: flex; flex-direction: column; gap: 8px; }
.idee-image strong { font-family: var(--police-titres); font-size: 18px; color: var(--encre); }
.idee-image span { font-size: 16px; color: var(--texte-doux); }
.idee-image__suggestions { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--texte-doux); }
.idee-image__suggestions li::marker { color: var(--sarcelle-texte); }
/* Le ratio sert de hauteur minimale : un long texte peut agrandir l’encadré */
.idee-image.ratio-4-3 { aspect-ratio: auto; min-height: min(420px, 75vw); }
.entete-page__visuel .idee-image { border-radius: 32px 32px 32px 100px; }

/* --------------------------------------------------------------------------
   Profil mis en valeur dans une page de service (ex. notre sexologue)
   -------------------------------------------------------------------------- */
.profil {
  display: grid; grid-template-columns: minmax(110px, 36%) 1fr; overflow: hidden;
  border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--ligne);
}
.profil__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; aspect-ratio: 4 / 5; }
.profil__texte { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.4vw, 26px); }
.profil__surtitre { font-family: var(--police-titres); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sarcelle-texte); }
.profil h3 { font-size: 22px; }
.profil__role { font-family: var(--police-titres); font-weight: 600; font-size: 15px; color: var(--texte-doux); }
.profil__texte > p:not([class]) { font-size: 16px; }
.profil .boutons { margin-top: 6px; }
@media (max-width: 559px) {
  .profil { grid-template-columns: 1fr; }
  .profil__photo { aspect-ratio: 4 / 3; max-height: 300px; }
}

/* --------------------------------------------------------------------------
   Page TDAH
   -------------------------------------------------------------------------- */
/* En-tête : deux photos superposées (l’étudiante, puis le bureau qui déborde en médaillon) */
.duo-photos { position: relative; padding: 0 0 clamp(56px, 8vw, 96px) clamp(40px, 7vw, 88px); }
.duo-photos .duo-photos__secondaire {
  position: absolute; left: 0; bottom: 0; width: 52%;
  border-radius: 24px 24px 24px 60px; border: 6px solid var(--fond); box-shadow: 0 14px 34px rgba(44, 52, 54, 0.18);
}

/* Signes chez l’adolescent et chez l’adulte, sur fond anthracite */
.signes h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 6px; }
.section--sombre .signes .tuile-icone { background: rgb(129 208 207 / 0.16); color: var(--sarcelle); }
.section--sombre .note, .section--sombre .note svg { color: var(--texte-sur-sombre); }

/* Graphique des sphères de vie : le TDAH au centre, les sphères autour */
.spheres {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.spheres li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne);
  font-size: 15px; line-height: 1.35; color: var(--texte-doux);
}
.spheres strong { font-family: var(--police-titres); font-size: 16px; color: var(--encre); }
.spheres .tuile-icone { width: 40px; height: 40px; border-radius: 12px; }
.spheres__centre { grid-column: 1 / -1; order: -1; }
.spheres li.spheres__centre {
  align-items: center; justify-content: center; text-align: center;
  background: var(--anthracite); border-color: var(--anthracite); color: var(--texte-sur-sombre);
}
.spheres__centre strong { font-size: 24px; color: #FFFFFF; }
@media (min-width: 640px) {
  .spheres { grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
  .spheres__centre { grid-column: 2; grid-row: 2; order: 0; }
  .spheres li.spheres__centre { border-radius: 50%; aspect-ratio: 1; box-shadow: 0 0 0 10px var(--sarcelle-douce); }
}

/* Ce qui peut ressembler au TDAH */
.imitations {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--rayon); background: var(--sarcelle-douce);
}
.imitations h3 { font-size: 20px; }
.imitations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.imitations li {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  border-radius: 18px; background: var(--surface); font-size: 15px; line-height: 1.4; color: var(--texte-doux);
}
.imitations li strong { display: block; margin-bottom: 2px; font-family: var(--police-titres); font-size: 16px; color: var(--encre); }
.imitations .tuile-icone { background: var(--anthracite); color: var(--sarcelle); }

/* Évaluation exhaustive, sur fond anthracite */
.exhaustive {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--rayon); background: var(--anthracite); color: var(--texte-sur-sombre);
}
.exhaustive h3 { font-size: 20px; color: #FFFFFF; }
.exhaustive .surtitre { font-size: 12px; color: var(--sarcelle); }
.exhaustive .liste-coches { color: var(--texte-sur-sombre); }
.exhaustive .liste-coches svg { color: var(--sarcelle); }

/* Image détourée (fond transparent) : ni cadre ni fond, l’image entière reste visible */
.photo--detouree { aspect-ratio: 1; border-radius: 0; background: none; overflow: visible; }
.photo--detouree img { object-fit: contain; }

/* Les quatre traitements, sur fond anthracite ; chaque carte reprend la couleur de son médaillon */
.traitements {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px;
}
.traitements li {
  --accent: var(--sarcelle);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px 22px; border-radius: 22px; background: var(--anthracite);
  font-size: 15px; line-height: 1.5; color: var(--texte-sur-sombre);
  box-shadow: 0 12px 28px rgba(44, 52, 54, 0.14);
}
.traitements li::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent); }
.traitements li.traitements--coaching { --accent: #E8B44A; }
.traitements li.traitements--psychotherapie { --accent: #E98E78; }
.traitements li.traitements--accommodements { --accent: #5B9DBA; }
.traitements .tuile-icone { background: rgb(255 255 255 / 0.08); color: var(--accent); }
.traitements strong { font-family: var(--police-titres); font-size: 18px; color: #FFFFFF; }
.traitements p { margin: 0; }
.traitements .lien-fleche { margin-top: auto; padding-top: 4px; color: var(--accent); }
/* Texte du lien un peu plus pâle que le médaillon, pour rester lisible sur l’anthracite */
.traitements li.traitements--psychotherapie .lien-fleche { color: #F2A896; }

/* ==========================================================================
   Animations subtiles
   Chaque bloc est numéroté et peut être retiré seul. Tout mouvement est réservé
   aux appareils qui n’ont pas demandé de réduire les animations, et les effets
   de survol aux écrans qui ont une souris (pas de survol sur un écran tactile).
   ========================================================================== */

/* 1. Cartes cliquables qui se soulèvent au survol, et flèches qui avancent.
      Toute la carte mène à sa page (le lien « En savoir plus » couvre la carte). */
.carte { position: relative; }
.carte .lien-fleche::after,
.traitements .lien-fleche::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (hover: hover) {
  .carte:hover, .traitements li:has(.lien-fleche):hover { box-shadow: 0 18px 40px rgba(44, 52, 54, 0.13); }
  .carte:hover .lien-fleche, .traitements li:hover .lien-fleche { text-decoration: underline; }
}
@media (prefers-reduced-motion: no-preference) {
  .carte, .traitements li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .lien-fleche .icone, .bouton .icone { transition: transform 0.2s ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .carte:hover, .traitements li:has(.lien-fleche):hover { transform: translateY(-4px); }
  .lien-fleche:hover .icone, .bouton:hover .icone,
  .carte:hover .lien-fleche .icone, .traitements li:hover .lien-fleche .icone { transform: translateX(4px); }
}

/* 2. Photos qui s’agrandissent très légèrement dans leur cadre au survol */
@media (prefers-reduced-motion: no-preference) {
  .carte .photo img, .carte-acces .photo img, .portraits__photo img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .carte:hover .photo img, .carte-acces:hover .photo img, .portraits a:hover .portraits__photo img { transform: scale(1.04); }
}

/* 3. Menu principal (grand écran) : un trait sarcelle s’étire sous le lien survolé */
@media (min-width: 1150px) {
  .nav-principale a { position: relative; border-bottom: 0; }
  .nav-principale a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--sarcelle); transform: scaleX(0); transform-origin: left;
  }
  .nav-principale a:hover::after, .nav-principale a[aria-current="page"]::after { transform: scaleX(1); }
}
@media (min-width: 1150px) and (prefers-reduced-motion: no-preference) {
  .nav-principale a::after { transition: transform 0.25s ease; }
}

/* 4. Questions fréquentes : la réponse se déroule et le « + » devient « − » */
.faq summary .plus-vertical { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
  .faq summary .plus-vertical { transition: transform 0.3s ease, opacity 0.3s ease; }
  .faq details[open] .plus-vertical { transform: rotate(90deg); }
}

/* 5. Menu du téléphone : il se déroule en fondu et son icône devient un X */
.bouton-menu path { transform-box: fill-box; transform-origin: center; }
.bouton-menu[aria-expanded="true"] path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.bouton-menu[aria-expanded="true"] path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .bouton-menu path { transition: transform 0.25s ease, opacity 0.2s ease; }
}
@media (max-width: 1149px) and (prefers-reduced-motion: no-preference) {
  .js .nav-principale.est-ouverte { animation: menu-deroule 0.25s ease-out; }
}
@keyframes menu-deroule { from { opacity: 0; transform: translateY(-8px); } }

/* 6. Passage en fondu d’une page à l’autre (navigateurs récents; ailleurs, rien ne change) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }
}

/* 7. Accueil : le haut de la page apparaît en douceur, puis « TDAH » se surligne.
      Tout est en place en un peu moins d’une seconde. */
@media (prefers-reduced-motion: no-preference) {
  .accroche__titre > *, .accroche__intro > * { animation: entree-douce 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .accroche__titre > :nth-child(2) { animation-delay: 0.08s; }
  .accroche__intro > :nth-child(1) { animation-delay: 0.16s; }
  .accroche__intro > :nth-child(2) { animation-delay: 0.24s; }
  .accroche__visuel { animation: fondu 0.8s ease 0.15s both; }
  .carte-flottante { animation: entree-douce 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both; }
  .accroche .surligne { animation: surligner 0.6s ease-out 0.4s both; }
}
@keyframes entree-douce { from { opacity: 0; transform: translateY(16px); } }
@keyframes fondu { from { opacity: 0; } }
@keyframes surligner { from { background-size: 0% 100%; } }

/* 8. Blocs qui apparaissent en glissant légèrement vers le haut au fil du défilement.
      Le script animations.js choisit les blocs, puis retire ces classes une fois l’apparition terminée. */
@media (prefers-reduced-motion: no-preference) {
  .js .apparition { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .apparition.est-visible { opacity: 1; transform: none; }
}
@media print {
  .js .apparition { opacity: 1 !important; transform: none !important; }
}
