/* ===========================================================================
   SantéOffice : le site public

   Une seule feuille pour les pages de contenu et l'habillage commun (en-tête,
   pied), et l'habillage du parcours de rendez-vous des patients.

   DIRECTION (refonte « institutionnel premium », 22/11/2026) :
   « LA CLARTÉ D'UNE INSTITUTION, LA LUMIÈRE D'UNE JOURNÉE ».

   Le propriétaire veut une marque technologique de santé, institutionnelle,
   humaine, qui ne ressemble pas aux sites générés en série. Il a refusé deux
   fois le monde du logiciel appliqué au site (« administratif ») et le héros
   en deux colonnes à titre énorme et pilules (« trop IA »).

   Ce qui tient la page, et qu'un modèle n'a pas :
     · LA PHOTOGRAPHIE PORTE LA PAGE : en pleine largeur, jamais enfermée
       dans une carte ; le texte se pose sur un aplat franc à côté d'elle,
       jamais sur un voile qui l'éteint ;
     · LA JOURNÉE AVANCE : le récit de l'accueil va du matin au soir, et le
       fond de la page avec lui : la lumière blanche du matin, le clair de
       l'après-midi, la nuit du pilotage. C'est le seul geste « décoratif »
       du site, et il raconte quelque chose ;
     · LE LOGICIEL SE MONTRE COMME UN DOCUMENT : la capture réelle, posée
       dans la page avec une ombre longue et douce, angle presque droit,
       jamais inclinée, jamais dans un faux ordinateur ; sa légende dit que
       les données sont fictives ;
     · UNE VOIX POSÉE : Radio Canada Big en graisse 400, grande mais jamais
       criée, Public Sans pour lire. Pas d'intitulé en capitales au-dessus
       des titres, pas de pilule, pas d'icône décorative.

   CHANTIER « COULEUR » (22/11/2026, docs/correctifs/16-vitrine-couleur.md).
   Le propriétaire : « beau mais pas trop coloré, il respecte beaucoup le
   bleu-noir », et un héros lu comme un brouillard. Le parti pris, qui
   s'ajoute au précédent : « LA BLOUSE BLANCHE ET LES COULEURS DU MÉTIER ».
     · LA PAGE EST BLANCHE, L'ENCRE EST NEUTRE : on ne lit plus en bleu marine
       sur du gris-bleu. Le bleu nuit signe (le logo, le bouton principal, le
       soir, le pied) ; il n'est plus tout le site ;
     · CHAQUE ENVIRONNEMENT DE SANTÉ A SA COULEUR FRANCHE, la même dans le
       menu, sur l'accueil et sur sa page : le vert des cabinets médicaux, le
       soleil du dentaire, l'iris de l'ophtalmologie, le bleu des cliniques,
       le bissap des pharmacies (apps/vitrine/couleurs.py dit qui porte
       laquelle). Chacune se retrouve dans la photographie de son métier ;
     · LA COULEUR EST UN APLAT, JAMAIS UN VOILE NI UN DÉGRADÉ : le héros pose
       son texte sur un aplat en équerre autour de la photo, les écrans du
       logiciel se posent sur des champs de couleur, la journée se lit en
       quatre aplats, du soleil du matin à la nuit ;
     · PAS DE PASTEL PARTOUT : la version claire d'une couleur existe
       (`--c-clair`), le contenu livré ne s'en sert pas.

   Ce que la page REFUSE (brief, partie B.3) : les dégradés décoratifs, le
   verre dépoli, les halos, les fonds abstraits, les cartes arrondies
   répétées, les boutons en pilule, les icônes décoratives, les rangées de
   trois cartes, les titres géants en gras, la coupe mécanique « texte à
   gauche, image à droite ».

   Les valeurs de ce monde se décident ICI, dans le bloc de jetons qui suit.
   tokens.css reste chargé avant : les écrans dessinés du logiciel et le
   parcours de rendez-vous s'en servent.
   =========================================================================== */

:root {
  /* LA MARQUE : la nuit et le bleu du signe. Ils signent (le logo, le bouton
     principal, le pied, le chapitre du soir) ; ils ne sont plus TOUT le site. */
  --so-nuit: #0B2A5B;            /* le bouton principal, le signe (14,0:1 avec le blanc) */
  --so-nuit-profonde: #081B3A;   /* les grands aplats de nuit : le soir, le pied (17,4:1 avec le blanc) */
  --so-nuit-relief: #133A73;     /* un filet, un survol sur la nuit */
  --so-bleu: #1F6FD0;            /* le focus, les repères (4,9:1 sur blanc) */
  --so-bleu-fonce: #1759AE;      /* les liens dans le texte (6,8:1) */
  --so-bleu-clair: #8EC1FF;      /* les liens sur la nuit (9,1:1 sur la nuit profonde) */

  /* LES CINQ COULEURS DES ENVIRONNEMENTS DE SANTÉ (apps/vitrine/couleurs.py
     dit qui porte laquelle). Chacune a son APLAT, franc, sur lequel on écrit
     en blanc (à l'encre de nuit sur le soleil), et sa version CLAIRE, sur
     laquelle on écrit à l'encre. Contrastes mesurés (WCAG) :
       vert   #0E6B43 : blanc 6,6:1      · clair #D5EFDC : encre 14,5:1
       soleil #F6B92B : nuit 9,7:1       · clair #FDEBB5 : encre 15,0:1
       iris   #5A45B5 : blanc 7,1:1      · clair #E4DEFA : encre 13,6:1
       bleu   #1F6FD0 : blanc 4,9:1      · clair #D8E8FC : encre 14,2:1
       bissap #B3234E : blanc 6,4:1      · clair #FBDCE5 : encre 13,9:1 */
  --so-c-vert: #0E6B43;
  --so-c-vert-clair: #D5EFDC;
  --so-c-soleil: #F6B92B;
  --so-c-soleil-clair: #FDEBB5;
  --so-c-iris: #5A45B5;
  --so-c-iris-clair: #E4DEFA;
  --so-c-bleu: #1F6FD0;
  --so-c-bleu-clair: #D8E8FC;
  --so-c-bissap: #B3234E;
  --so-c-bissap-clair: #FBDCE5;

  /* Le rouge de bissap marque aussi ce qui est « maintenant » (6,4:1 sur blanc). */
  --so-bissap: #B3234E;
  --so-bissap-clair: #FF8FB0;    /* le même repère sur la nuit (8,0:1) */

  /* Le vert du signe WhatsApp, et lui seul (5,3:1 sur blanc). */
  --so-vert: #0A7A5A;
  --so-vert-clair: #6FDDB8;      /* sur la nuit */

  /* LES ENCRES DE LECTURE : neutres, à peine chaudes. Le texte courant en
     bleu marine sur fond pâle fatiguait la page entière ; on lit maintenant
     dans une encre qui ne tire sur aucune couleur, et la couleur est laissée
     aux aplats. */
  --so-papier: #FFFFFF;
  --so-chaux: #F5F5F2;           /* les parties calmes (les garanties, un groupe sur deux) */
  --so-titre: #15161A;           /* les titres sur le blanc (18,0:1) */
  --so-encre: #24262B;           /* le texte courant (15,3:1 sur blanc) */
  --so-encre-2: #575A61;         /* la légende, l'annotation (6,9:1 sur blanc, 6,3:1 sur la chaux) */
  --so-filet: #DEDEDA;           /* le trait qui sépare */
  --so-filet-fort: #8A8D94;      /* le bord d'un champ de saisie (3,4:1) */
  --so-sur-nuit: #FFFFFF;
  --so-sur-nuit-2: #C5D3EA;      /* le texte courant sur la nuit (11,6:1) */
  --so-filet-nuit: #2A4677;

  /* La couleur du bloc courant. Par défaut : la nuit du signe. Un bloc qui
     porte `data-so-couleur` la remplace (voir plus bas). `--c` l'aplat,
     `--c-sur` ce qu'on écrit dessus, `--c-clair` sa version claire. */
  --c: var(--so-nuit-profonde);
  --c-sur: #FFFFFF;
  --c-clair: var(--so-chaux);

  --so-fam-titre: "Radio Canada Big", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --so-fam-texte: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* L'échelle : une quarte, de la note au titre du héros. Grande, en
     graisse 400 : la taille fait la hiérarchie, pas le gras. */
  --so-t-heros: clamp(2.25rem, 1.55rem + 1.9vw, 3.125rem);
  --so-t-h1: clamp(2.125rem, 1.5rem + 2.4vw, 3.625rem);
  --so-t-h2: clamp(1.875rem, 1.35rem + 1.9vw, 3rem);
  --so-t-heure: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
  --so-t-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --so-t-chapo: clamp(1.125rem, 1.06rem + 0.25vw, 1.3125rem);
  --so-t-corps: 1.0625rem;
  --so-t-petit: 0.9375rem;
  --so-t-mini: 0.8125rem;

  --so-r: 3px;                   /* l'angle d'un bouton, d'un champ */
  --so-r-ecran: 8px;             /* l'angle d'un écran du logiciel */
  --so-ombre-ecran: 0 1px 3px rgba(8, 27, 58, 0.12), 0 28px 56px -18px rgba(8, 27, 58, 0.3);

  --so-mesure: 64ch;
  --so-largeur: 1320px;
  --so-gouttiere: 20px;
  --so-colonne: 24px;
  --so-espace-section: clamp(80px, 6vw + 44px, 168px);
  --so-haut-entete: 64px;
  --so-detente: cubic-bezier(0.16, 1, 0.3, 1);
}

/* La couleur d'un bloc : posée par le gabarit (`data-so-couleur`), jamais
   écrite en dur dans une règle. */
[data-so-couleur="vert"] { --c: var(--so-c-vert); --c-sur: #FFFFFF; --c-clair: var(--so-c-vert-clair); }
[data-so-couleur="soleil"] { --c: var(--so-c-soleil); --c-sur: var(--so-nuit-profonde); --c-clair: var(--so-c-soleil-clair); }
[data-so-couleur="iris"] { --c: var(--so-c-iris); --c-sur: #FFFFFF; --c-clair: var(--so-c-iris-clair); }
[data-so-couleur="bleu"] { --c: var(--so-c-bleu); --c-sur: #FFFFFF; --c-clair: var(--so-c-bleu-clair); }
[data-so-couleur="bissap"] { --c: var(--so-c-bissap); --c-sur: #FFFFFF; --c-clair: var(--so-c-bissap-clair); }
[data-so-couleur="nuit"] { --c: var(--so-nuit-profonde); --c-sur: #FFFFFF; --c-clair: var(--so-chaux); }

@media (min-width: 768px) {
  :root { --so-gouttiere: 32px; --so-colonne: 28px; }
}

@media (min-width: 1024px) {
  :root { --so-gouttiere: 48px; --so-colonne: 32px; --so-haut-entete: 76px; }
}

/* ----- Socle ------------------------------------------------------------ */

.so-site {
  margin: 0;
  background: var(--so-papier);
  color: var(--so-encre);
  font-family: var(--so-fam-texte);
  font-size: var(--so-t-corps);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

.so-site ::selection { background: var(--so-nuit); color: var(--so-papier); }
.so-site { caret-color: var(--so-bleu); accent-color: var(--so-nuit); }

.so-site img { max-width: 100%; display: block; }
.so-site img:not(.so-photo) { height: auto; }
.so-image { display: contents; }

.so-site a { color: var(--so-bleu-fonce); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.so-site a:hover { color: var(--so-titre); text-decoration-thickness: 2px; }

.so-site :focus-visible {
  outline: 2px solid var(--so-bleu);
  outline-offset: 3px;
}

/* Le lien d'évitement est un pavé d'encre : il garde son encre claire, que la
   couleur des liens du site lui retirait (bleu sur noir, 2,6:1). */
.so-site .sn-skip-link,
.so-site .sn-skip-link:hover { color: var(--texte-pave); }

.so-visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.so-wrap {
  width: 100%;
  max-width: var(--so-largeur);
  margin-inline: auto;
  padding-inline: var(--so-gouttiere);
}

.so-wrap--etroit { max-width: 880px; }

.so-section { padding-block: var(--so-espace-section); }
.so-section + .so-section:not(.so-section--nuit):not(.so-section--chaux):not(.so-section--serree) { padding-top: 0; }
.so-section--serree { padding-block: clamp(48px, 4vw, 72px) var(--so-espace-section); }

.so-section--chaux { background: var(--so-chaux); }
.so-section--chaux + .so-section--chaux { padding-top: 0; }

/* Une partie sur la version CLAIRE d'une couleur (`ton` = vert, soleil…) :
   on y lit à l'encre (13,6:1 au moins), les filets prennent l'encre. */
.so-section--claire { background: var(--c-clair); }
.so-section--claire .so-registre__ligne,
.so-section--claire .so-points li { border-color: rgba(21, 22, 26, 0.16); }
.so-section--claire .so-chapo,
.so-section--claire .so-registre__desc,
.so-section--claire .so-garanties__texte { color: var(--so-encre); }

.so-section--nuit {
  background: var(--so-nuit-profonde);
  color: var(--so-sur-nuit-2);
}

.so-section--nuit .so-h2,
.so-section--nuit .so-h3 { color: var(--so-sur-nuit); }
.so-section--nuit .so-chapo { color: var(--so-sur-nuit-2); }
.so-section--nuit :focus-visible { outline-color: var(--so-sur-nuit); }
.so-site .so-section--nuit a { color: var(--so-bleu-clair); }

/* Le titrage : grand, dit, pas crié. Graisse 400, interlignage serré. */
.so-h1,
.so-h2,
.so-h3 {
  margin: 0;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-weight: 400;
  text-wrap: balance;
}

.so-h1 { font-size: var(--so-t-h1); line-height: 1.06; letter-spacing: -0.024em; }
.so-h2 { font-size: var(--so-t-h2); line-height: 1.08; letter-spacing: -0.02em; }
.so-h3 { font-size: var(--so-t-h3); line-height: 1.25; letter-spacing: -0.005em; font-weight: 500; }

.so-chapo {
  margin: 20px 0 0;
  max-width: 54ch;
  font-size: var(--so-t-chapo);
  line-height: 1.55;
  color: var(--so-encre);
  text-wrap: pretty;
}

.so-chapo strong { color: var(--so-titre); font-weight: 600; }

.so-texte { max-width: var(--so-mesure); }
.so-texte p { margin: 0 0 1em; }
.so-texte p:last-child { margin-bottom: 0; }
.so-texte strong { color: var(--so-titre); }

/* L'intitulé facultatif d'un bloc (le propriétaire peut en écrire un) : en
   petit, en clair, jamais en capitales espacées. */
.so-intitule {
  margin: 0 0 14px;
  color: var(--so-encre-2);
  font-size: var(--so-t-petit);
}

.so-section--nuit .so-intitule { color: var(--so-sur-nuit-2); }

.so-entete-section { max-width: 760px; margin-bottom: clamp(40px, 4vw, 64px); }
.so-entete-section .so-chapo { margin-top: 18px; }

.so-note {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--so-encre-2);
  font-size: var(--so-t-petit);
  line-height: 1.55;
}

.so-legende {
  margin: 12px 0 0;
  color: var(--so-encre-2);
  font-size: var(--so-t-mini);
  line-height: 1.45;
}

/* Les points d'un récit : un trait court, pas une puce ronde. */
.so-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  max-width: 60ch;
}

.so-points li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--so-filet);
  line-height: 1.5;
}

.so-points li:last-child { border-bottom: 1px solid var(--so-filet); }

.so-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 14px;
  height: 2px;
  background: var(--so-nuit);
}

.so-section--nuit .so-points li,
.so-moment--nuit .so-points li { border-color: var(--so-filet-nuit); }
.so-section--nuit .so-points li::before,
.so-moment--nuit .so-points li::before { background: var(--so-bleu-clair); }

/* ----- Gestes ----------------------------------------------------------- */

.so-gestes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 32px 0 0;
}

.so-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--so-nuit);
  border-radius: var(--so-r);
  background: var(--so-nuit);
  color: var(--so-papier);
  font-family: var(--so-fam-texte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--so-detente), box-shadow 0.2s ease;
}

.so-site a.so-btn { color: var(--so-papier); text-decoration: none; }
.so-site .so-btn:hover,
.so-site a.so-btn:hover {
  background: var(--so-nuit-relief);
  border-color: var(--so-nuit-relief);
  color: var(--so-papier);
  box-shadow: 0 8px 20px -10px rgba(8, 27, 58, 0.55);
}
.so-btn:active { transform: translateY(1px); box-shadow: none; }

.so-btn--trait,
.so-site a.so-btn--trait {
  background: transparent;
  color: var(--so-titre);
}

.so-site .so-btn--trait:hover,
.so-site a.so-btn--trait:hover { background: var(--so-nuit); color: var(--so-papier); }

.so-btn--clair,
.so-site a.so-btn--clair {
  background: var(--so-papier);
  border-color: var(--so-papier);
  color: var(--so-titre);
}

.so-site .so-btn--clair:hover,
.so-site a.so-btn--clair:hover {
  background: var(--so-chaux);
  border-color: var(--so-chaux);
  color: var(--so-titre);
}

/* Le lien d'un geste : souligné, et le trait s'étire au survol. */
.so-lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--so-titre);
  font-weight: 600;
}

.so-site a.so-lien {
  color: var(--so-titre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: text-underline-offset 0.25s var(--so-detente), color 0.2s ease;
}
.so-site a.so-lien:hover { color: var(--so-bleu-fonce); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.so-lien--fort { font-weight: 600; }

.so-section--nuit .so-lien,
.so-site .so-section--nuit a.so-lien,
.so-moment--nuit .so-lien,
.so-site .so-moment--nuit a.so-lien,
.so-site .so-appel a.so-lien { color: var(--so-sur-nuit); }

/* WhatsApp : le signe en vert, le texte comme un lien du site. */
.so-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--so-titre);
  font-weight: 600;
}

.so-site a.so-wa { color: var(--so-titre); text-decoration: none; }
.so-site a.so-wa:hover .so-wa__texte { text-decoration: underline; text-underline-offset: 0.22em; }
.so-wa-signe { flex: none; color: var(--so-vert); }
.so-wa__chiffres { font-variant-numeric: tabular-nums; white-space: nowrap; }

.so-site .so-appel a.so-wa,
.so-site .so-pied a.so-wa,
.so-site .so-section--nuit a.so-wa { color: var(--so-sur-nuit); }
.so-appel .so-wa-signe,
.so-pied .so-wa-signe,
.so-section--nuit .so-wa-signe { color: var(--so-vert-clair); }

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

.so-entete {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--so-titre);
  transition: transform 0.35s var(--so-detente), background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Sans héros, l'en-tête est une barre blanche, et la page commence dessous. */
.so-sans-heros .so-entete { position: relative; background: var(--so-papier); border-bottom: 1px solid var(--so-filet); }

/* Avec le script : l'en-tête reste à portée. Il se retire quand on descend
   (la page a la place), revient quand on remonte, en barre blanche. */
.js .so-entete { position: fixed; }
.js .so-sans-heros main { padding-top: calc(var(--so-haut-entete) + 34px); }
.js .so-entete.est-defile {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--so-filet), 0 10px 30px -18px rgba(8, 27, 58, 0.35);
}
.js .so-entete.est-cache { transform: translateY(-100%); }
.js .so-entete.est-defile .so-patients { display: none; }
/* Le menu ouvert sur téléphone garde la porte des patients en tête. */
.js .so-entete.est-defile.vitrine-header--menu-open .so-patients { display: block; }

.so-patients {
  font-size: var(--so-t-mini);
  border-bottom: 1px solid rgba(11, 42, 91, 0.12);
}

.so-patients .so-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px 10px;
  min-height: 34px;
  padding-block: 6px;
}

.so-patients__question { color: var(--so-encre-2); }
.so-site .so-patients a { color: var(--so-titre); font-weight: 600; }

.so-entete__ligne {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--so-haut-entete);
}

.so-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  color: var(--so-nuit);
  font-family: var(--so-fam-titre);
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.so-site a.so-logo { color: var(--so-nuit); text-decoration: none; }
.so-logo__marque { display: inline-flex; }
.so-logo__img { max-height: 40px; width: auto; }

.so-entete__panneau {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.so-nav { flex: 1 1 auto; }

.so-nav__liste {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vitrine-nav__item { position: relative; }

.vitrine-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--so-titre);
  font-family: var(--so-fam-texte);
  font-size: 0.9875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.so-site a.vitrine-nav__link { color: var(--so-titre); text-decoration: none; }

/* Le trait sous l'entrée : il naît au survol, il reste sur la page ouverte
   (en rouge de bissap : c'est « ici »). */
.vitrine-nav__link { position: relative; }
.vitrine-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--so-detente);
}
.vitrine-nav__link:hover::after { transform: scaleX(1); }
.vitrine-nav__link.is-active::after { transform: scaleX(1); height: 2px; background: var(--so-bissap); }

.vitrine-nav__icon { transition: transform 0.25s var(--so-detente); }
.vitrine-nav__link--trigger[aria-expanded="true"] .vitrine-nav__icon { transform: rotate(180deg); }

.vitrine-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  padding: 10px;
  background: var(--so-papier);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(8, 27, 58, 0.12), 0 22px 44px -18px rgba(8, 27, 58, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.25s var(--so-detente), visibility 0s linear 0.25s;
}

/* Sans script : la liste s'ouvre au survol et au focus. Avec : quand le
   bouton dit qu'elle est ouverte. */
html:not(.js) .vitrine-nav__item--dropdown:hover .vitrine-nav__dropdown,
html:not(.js) .vitrine-nav__item--dropdown:focus-within .vitrine-nav__dropdown,
.vitrine-nav__link--trigger[aria-expanded="true"] + .vitrine-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.25s var(--so-detente), visibility 0s;
}

.vitrine-nav__sous-liste { margin: 0; padding: 0; list-style: none; }
.vitrine-nav__sous-liste li:last-child:not(:first-child) { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--so-filet); }

.vitrine-nav__dropdown-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--so-titre);
  font-weight: 500;
  text-decoration: none;
}

.so-site a.vitrine-nav__dropdown-link { color: var(--so-titre); text-decoration: none; }
.vitrine-nav__dropdown-link { white-space: nowrap; }
/* La case de l'environnement : sa couleur, la même que sur sa page. */
.vitrine-nav__dropdown-link[data-so-couleur]::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 12px;
  background: var(--c);
}
.so-site a.vitrine-nav__dropdown-link:hover { background: var(--so-chaux); }
.so-site a.vitrine-nav__dropdown-link.is-active { box-shadow: inset 2px 0 0 var(--so-titre); background: var(--so-chaux); }

.so-entete__actions {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex: none;
}

.so-entete__connexion {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.so-site a.so-entete__connexion { color: var(--so-titre); text-decoration: none; }
.so-site a.so-entete__connexion:hover { text-decoration: underline; }
.so-entete .so-btn { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

/* Sur un héros sombre (la page Sécurité), l'en-tête écrit en blanc tant
   qu'il est posé dessus. */
.so-heros-sombre .so-entete:not(.est-defile) { color: var(--so-sur-nuit); }
.so-heros-sombre .so-entete:not(.est-defile) .so-patients { border-color: rgba(255, 255, 255, 0.18); }
.so-heros-sombre .so-entete:not(.est-defile) .so-patients__question { color: var(--so-sur-nuit-2); }
.so-site.so-heros-sombre .so-entete:not(.est-defile) .so-patients a,
.so-site.so-heros-sombre .so-entete:not(.est-defile) a.so-logo,
.so-site.so-heros-sombre .so-entete:not(.est-defile) a.vitrine-nav__link,
.so-heros-sombre .so-entete:not(.est-defile) .vitrine-nav__link,
.so-site.so-heros-sombre .so-entete:not(.est-defile) a.so-entete__connexion { color: var(--so-sur-nuit); }
.so-site.so-heros-sombre .so-entete:not(.est-defile) .so-btn { background: var(--so-papier); border-color: var(--so-papier); color: var(--so-titre); }
.so-heros-sombre .so-entete:not(.est-defile) .so-logo__marque { --signe-bras: var(--signe-bleu-clair); --signe-centre: var(--so-papier); }
.so-heros-sombre .so-entete:not(.est-defile) .so-menu-bouton__barre { background: var(--so-sur-nuit); }
/* L'anneau de focus se lit sur l'aplat : blanc, pas le bleu du site. Dans la
   liste dépliée, qui est blanche, il reprend le bleu. */
.so-heros-sombre .so-entete:not(.est-defile) :focus-visible { outline-color: var(--so-sur-nuit); }
.so-heros-sombre .so-entete:not(.est-defile) .vitrine-nav__dropdown :focus-visible { outline-color: var(--so-bleu); }
.so-heros-couleur.so-heros-sombre .so-entete:not(.est-defile) .vitrine-nav__link.is-active::after { background: currentColor; }
/* Sur l'aplat de couleur du héros de l'accueil : le signe en blanc, son
   centre dans la nuit de la marque ; le bouton prend l'encre de la nuit. */
.so-heros-couleur.so-heros-sombre .so-entete:not(.est-defile) .so-logo__marque { --signe-bras: var(--so-papier); --signe-centre: var(--so-nuit-profonde); }
.so-heros-couleur.so-heros-sombre .so-entete:not(.est-defile) .so-patients__question { color: var(--so-sur-nuit); }

.so-menu-bouton {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.so-menu-bouton__barre {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--so-nuit);
  transition: transform 0.3s var(--so-detente);
}

.so-menu-bouton[aria-expanded="true"] .so-menu-bouton__barre:first-child { transform: translateY(4.5px) rotate(45deg); }
.so-menu-bouton[aria-expanded="true"] .so-menu-bouton__barre:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.so-voile { display: none; }

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .vitrine-nav__link { padding-inline: 9px; }
  .so-entete__panneau, .so-entete__ligne { gap: 16px; }
}

/* Sur tablette et téléphone, le panneau devient une page qui se déplie sous
   la barre : les entrées en grand, « Solutions » toujours déplié, les deux
   portes en bas. */
@media (max-width: 1023.98px) {
  .so-menu-bouton { display: inline-flex; }
  .so-entete__panneau { display: none; }

  .so-entete__panneau.is-open {
    position: fixed;
    top: var(--so-haut-entete-reel, var(--so-haut-entete));
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--so-gouttiere) calc(28px + env(safe-area-inset-bottom));
    background: var(--so-papier);
    overflow-y: auto;
    color: var(--so-titre);
  }

  .so-entete.vitrine-header--menu-open { background: var(--so-papier); color: var(--so-titre); }
  .so-site .so-entete.vitrine-header--menu-open a.so-logo { color: var(--so-titre); }
  .so-entete.vitrine-header--menu-open .so-logo__marque { --signe-bras: var(--signe-bleu); --signe-centre: var(--signe-encre); }
  .so-entete.vitrine-header--menu-open .so-menu-bouton__barre { background: var(--so-nuit); }

  /* Le panneau ouvert est blanc, même sur un héros sombre (l'aplat vert de
     l'accueil, la nuit de la Sécurité) : tout ce qui s'y écrit reprend
     l'encre. Sans cela, les entrées s'écrivaient en blanc sur le blanc. */
  .so-site.so-heros-sombre .so-entete.vitrine-header--menu-open .so-patients a,
  .so-site.so-heros-sombre .so-entete.vitrine-header--menu-open a.vitrine-nav__link,
  .so-heros-sombre .so-entete.vitrine-header--menu-open .vitrine-nav__link,
  .so-site.so-heros-sombre .so-entete.vitrine-header--menu-open a.so-entete__connexion { color: var(--so-titre); }
  .so-site.so-heros-sombre .so-entete.vitrine-header--menu-open a.so-logo { color: var(--so-nuit); }
  .so-heros-sombre .so-entete.vitrine-header--menu-open .so-patients__question { color: var(--so-encre-2); }
  .so-heros-sombre .so-entete.vitrine-header--menu-open .so-patients { border-color: var(--so-filet); }
  .so-heros-sombre .so-entete.vitrine-header--menu-open .so-logo__marque { --signe-bras: var(--signe-bleu); --signe-centre: var(--signe-encre); }
  .so-heros-sombre .so-entete.vitrine-header--menu-open .so-menu-bouton__barre { background: var(--so-titre); }
  .so-site.so-heros-sombre .so-entete.vitrine-header--menu-open .so-btn { background: var(--so-nuit); border-color: var(--so-nuit); color: var(--so-papier); }
  .so-heros-sombre .so-entete.vitrine-header--menu-open .vitrine-nav__link.is-active::after { background: var(--so-bissap); }
  .so-heros-couleur.so-heros-sombre .so-entete.vitrine-header--menu-open .so-logo__marque { --signe-bras: var(--signe-bleu); --signe-centre: var(--signe-encre); }
  .so-heros-couleur.so-heros-sombre .so-entete.vitrine-header--menu-open .so-patients__question { color: var(--so-encre-2); }

  .so-entete__panneau.is-open .so-nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .so-entete__panneau.is-open .vitrine-nav__item { border-bottom: 1px solid var(--so-filet); }
  .so-entete__panneau.is-open .vitrine-nav__link,
  .so-site .so-entete__panneau.is-open a.vitrine-nav__link {
    width: 100%;
    min-height: 56px;
    padding: 12px 0;
    color: var(--so-titre);
    font-family: var(--so-fam-titre);
    font-size: 1.375rem;
    font-weight: 400;
    background: none;
  }
  .so-entete__panneau.is-open .vitrine-nav__link::after { display: none; }
  .so-site .so-entete__panneau.is-open .is-active { text-decoration: underline; text-decoration-color: var(--so-bissap); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
  .so-entete__panneau.is-open .vitrine-nav__link--trigger { pointer-events: none; color: var(--so-encre-2); font-size: var(--so-t-petit); font-family: var(--so-fam-texte); min-height: 40px; }
  .so-entete__panneau.is-open .vitrine-nav__icon { display: none; }
  .so-entete__panneau.is-open .vitrine-nav__dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .so-site .so-entete__panneau.is-open a.vitrine-nav__dropdown-link {
    white-space: normal;
    min-height: 48px;
    padding: 8px 0;
    font-family: var(--so-fam-titre);
    font-size: 1.25rem;
    font-weight: 400;
  }
  .so-entete__panneau.is-open .so-entete__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
  }
  .so-site .so-entete__panneau.is-open a.so-entete__connexion { justify-content: center; min-height: 52px; border: 1px solid var(--so-nuit); border-radius: var(--so-r); color: var(--so-titre); }
  .so-entete__panneau.is-open .so-btn { min-height: 52px; }
}

html.vitrine-nav-open,
body.vitrine-nav-open { overflow: hidden; }

/* ----- La photographie, et sa légende ----------------------------------- */

.so-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadrage, 50% 50%);
  background: var(--so-chaux);
}

@media (max-width: 639.98px) {
  .so-photo { object-position: var(--cadrage-mobile, var(--cadrage, 50% 50%)); }
}

.so-figure { margin: 0; }
.so-figure .so-photo { aspect-ratio: 3 / 2; height: auto; }

/* ----- Le héros de l'accueil : l'aplat en équerre, la photo contre lui ---- */

/* AUCUN VOILE. L'en-tête et le texte se tiennent sur l'aplat de couleur du
   bloc (`--c`), en équerre autour de la photographie : elle garde toutes ses
   couleurs, jusqu'au bord de l'écran. La lisibilité vient de l'aplat (blanc
   sur le vert : 6,6:1), pas d'un brouillard posé sur l'image. */
.so-une {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--c);
  color: var(--c-sur);
}

.so-une__pan {
  padding: calc(var(--so-haut-entete) + 34px + clamp(28px, 6vw, 56px)) var(--so-gouttiere) clamp(40px, 7vw, 64px);
}

.so-une__texte { max-width: 560px; }

.so-une__marque { margin: 0 0 16px; color: var(--c-sur); font-size: var(--so-t-petit); }

.so-une__titre {
  margin: 0;
  color: var(--c-sur);
  font-family: var(--so-fam-titre);
  font-size: var(--so-t-heros);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.so-une__chapo {
  margin: 24px 0 0;
  max-width: 40ch;
  color: var(--c-sur);
  font-size: var(--so-t-chapo);
  line-height: 1.5;
  text-wrap: pretty;
}

.so-une__gestes { margin-top: 32px; }
.so-une :focus-visible { outline-color: var(--c-sur); }
.so-site .so-une a.so-lien { color: var(--c-sur); }

/* Téléphone : la photo dans son recadrage 4:5, en pleine largeur sous l'aplat. */
.so-une__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }

@media (min-width: 640px) and (max-width: 1023.98px) {
  .so-une__photo { aspect-ratio: 3 / 2; }
}

/* Grand écran : l'équerre. L'aplat tient la bande de l'en-tête et la colonne
   du texte ; la photo occupe tout le reste, à fond perdu à droite et en bas. */
@media (min-width: 1024px) {
  .so-une {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    min-height: clamp(600px, 90vh, 940px);
    min-height: clamp(600px, 90svh, 940px);
  }

  .so-une__pan {
    display: flex;
    align-items: center;
    padding-top: calc(var(--so-haut-entete) + 34px + 24px);
    padding-bottom: 56px;
    padding-left: max(var(--so-gouttiere), calc((100vw - var(--so-largeur)) / 2 + var(--so-gouttiere)));
    padding-right: clamp(32px, 4vw, 72px);
  }

  .so-une__photo { aspect-ratio: auto; margin-top: calc(var(--so-haut-entete) + 34px); }
  .so-une__photo .so-image { display: block; position: absolute; inset: 0; }
}

/* ----- Une entrée par métier, sous le héros ------------------------------- */

/* Une ligne, pas une rangée de pastilles ni une phrase à liens soulignés :
   chaque métier porte la case de sa couleur, la même que dans le menu
   « Solutions », et mène à sa partie du site. */
.so-entrees { border-bottom: 1px solid var(--so-filet); }

.so-entrees__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 28px;
  padding-block: 14px;
}

.so-entrees__titre { margin: 0; color: var(--so-encre-2); font-size: var(--so-t-petit); }

.so-specialites {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.so-specialites a,
.so-specialites span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
}

.so-site .so-specialites a { color: var(--so-titre); text-decoration: none; }
.so-site .so-specialites a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
.so-specialites span { color: var(--so-encre); }

.so-specialites a[data-so-couleur]::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--c);
  transition: transform 0.25s var(--so-detente);
}

.so-specialites a[data-so-couleur]:hover::before { transform: scale(1.3); }

@media (max-width: 639.98px) {
  .so-entrees__ligne { display: block; padding-block: 18px 10px; }
  .so-specialites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 4px; }
}

/* ----- La journée en quatre couleurs : ce qui suit le héros --------------- */

.so-jour { padding-block: clamp(64px, 6vw, 120px) clamp(56px, 5vw, 96px); }

.so-jour__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 48px;
  margin-bottom: clamp(28px, 3vw, 44px);
}

.so-jour__phrase { margin: 0; max-width: 21em; }
.so-jour__phrase p { margin: 0; }

.so-jour__heure {
  margin: 0 0 0.5em;
  color: var(--so-encre-2);
  font-size: var(--so-t-petit);
  font-variant-numeric: tabular-nums;
}

/* La bande : quatre aplats qui se touchent, un par chapitre, dans l'ordre de
   la lumière. Ni carte ni ombre ni angle : une bande de couleur, et chaque
   aplat mène à son chapitre. */
.so-jour__bande {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .so-jour__bande { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.so-jour__case { background: var(--c); }

.so-jour__lien {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: clamp(132px, 13vw, 196px);
  padding: 18px 20px 20px;
}

.so-site a.so-jour__lien { color: var(--c-sur); text-decoration: none; }
.so-site a.so-jour__lien:focus-visible { outline-color: var(--c-sur); outline-offset: -6px; }

.so-jour__chiffres {
  font-family: var(--so-fam-titre);
  font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  word-spacing: -0.22em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--so-detente);
}

.so-jour__lien:hover .so-jour__chiffres { transform: translateY(-6px); }
.so-jour__nom { font-weight: 600; }
.so-jour__lien:hover .so-jour__nom { text-decoration: underline; text-underline-offset: 0.22em; }

/* « En ce moment » : sur l'aplat de l'heure qu'il est à Dakar (la tête de
   page pose `data-so-moment` sur <html> ; sans script, rien ne s'affiche). */
.so-jour__maintenant {
  position: absolute;
  top: 16px;
  left: 20px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: var(--so-t-mini);
  font-weight: 600;
}

.so-jour__maintenant::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

[data-so-moment="matin"] [data-so-case="matin"] .so-jour__maintenant,
[data-so-moment="midi"] [data-so-case="midi"] .so-jour__maintenant,
[data-so-moment="apres-midi"] [data-so-case="apres-midi"] .so-jour__maintenant,
[data-so-moment="soir"] [data-so-case="soir"] .so-jour__maintenant { display: inline-flex; }

/* ----- Le moment : un chapitre de la journée ----------------------------- */

.so-moment { position: relative; padding-block: clamp(72px, 5vw + 36px, 136px); }

.so-moment__tete { max-width: 760px; margin-bottom: 32px; }
.so-moment__tete .so-h2 { max-width: 18em; }

/* L'heure : le repère du chapitre, en grand, en chiffres alignés. */
.so-moment__heure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 0 0 18px;
}

.so-moment__chiffres {
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: var(--so-t-heure);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  word-spacing: -0.22em;
}

/* « En ce moment » : seulement sur le chapitre de l'heure qu'il est. */
.so-moment__maintenant {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--so-bissap);
  font-size: var(--so-t-petit);
  font-weight: 600;
}

.so-moment__maintenant::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.so-moment.est-maintenant .so-moment__maintenant { display: inline-flex; }

.so-moment__texte .so-chapo { margin-top: 0; }
.so-moment__note { border-left: 1px solid var(--so-filet-fort); padding-left: 16px; }
.so-moment__ecrans { margin-top: 48px; }

/* Le champ d'un moment : l'aplat de sa couleur, derrière ses écrans. */
.so-moment__champ { padding: clamp(20px, 3vw, 40px) 0; }
.so-moment__champ .so-moment__ecrans { margin-top: 0; }
/* Un écran du logiciel est un APERÇU : réduit, jamais lisible ligne à ligne
   (demande du propriétaire du 22/11/2026). Il prouve, il n'explique pas. */
.so-moment__ecrans { max-width: 620px; }
.so-moment--comptoir .so-moment__ecrans { max-width: 620px; }
.so-aplat .so-moment__tete .so-h2,
.so-aplat .so-moment__chiffres,
.so-aplat .so-moment__maintenant { color: var(--c-sur); }

/* « panorama » : la photo en pleine largeur, sans voile. Dessous, le champ
   de couleur porte l'heure et le titre d'un côté, les écrans de l'autre, qui
   se posent sur l'aplat (jamais sur la photo : un onglet y devenait
   illisible), avec la phrase et le lien. */
.so-moment--panorama { padding-top: 0; }

.so-moment__plein {
  margin: 0;
  height: clamp(320px, 62vh, 720px);
}

.so-moment--panorama .so-moment__champ { padding-block: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px); }

.so-moment__champ-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.so-moment--panorama .so-moment__tete { margin-bottom: 0; }

/* Le texte d'un moment posé sur son champ prend l'encre du champ. */
.so-aplat .so-moment__texte { margin-top: 20px; }
.so-aplat .so-moment__texte .so-chapo,
.so-aplat .so-moment__texte .so-legende,
.so-aplat .so-moment__texte .so-note { color: var(--c-sur); }
.so-aplat .so-moment__texte .so-chapo { font-size: var(--so-t-corps); }
.so-site .so-aplat .so-moment__texte a.so-lien { color: var(--c-sur); }
.so-aplat .so-points li { border-color: currentColor; }
.so-aplat .so-points li::before { background: currentColor; }
.so-moment--panorama { padding-bottom: 0; }

@media (min-width: 1024px) {
  .so-moment__champ-grille {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--so-colonne);
    align-items: start;
  }
  .so-moment--panorama .so-moment__tete { padding-right: 16px; }
  .so-moment--panorama .so-moment__tete .so-h2 { font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.5rem); }
}

/* « dossier » : la photo debout dans la marge, le récit dans la colonne
   large, et les écrans sur leur champ, à fond perdu vers le bord de la page. */
.so-moment--dossier { overflow-x: clip; }

.so-moment--dossier .so-moment__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.so-moment--dossier .so-moment__photo { margin: 0; }
.so-moment--dossier .so-moment__photo .so-photo { aspect-ratio: 4 / 5; height: auto; }

.so-moment--dossier .so-moment__champ {
  margin-top: 48px;
  margin-inline: calc(var(--so-gouttiere) * -1);
  padding: clamp(20px, 3vw, 40px) var(--so-gouttiere);
}

@media (min-width: 1024px) {
  .so-moment--dossier .so-moment__corps {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--so-colonne) * 2);
    align-items: start;
  }
  .so-moment--dossier .so-moment__photo { position: sticky; top: calc(var(--so-haut-entete) + 24px); }
  .so-moment--dossier.so-moment--sans-photo .so-moment__colonne { grid-column: 1 / -1; }
  /* Sans photo, le champ garde la mesure d'un écran : une capture étirée sur
     toute la page devient une affiche. */
  .so-moment--dossier.so-moment--sans-photo .so-moment__champ { max-width: 920px; padding-right: 40px; }
  .so-moment--dossier.so-moment--sans-photo .so-moment__champ::after { display: none; }
  /* Le champ part de la colonne et file jusqu'au bord droit de la fenêtre. */
  .so-moment--dossier .so-moment__champ { margin-inline: 0; padding: 40px 0 40px 40px; }
  .so-moment--dossier .so-moment__champ::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 50vw;
    background: var(--c);
  }
}

/* « comptoir » : le titre et le texte côte à côte, une bande photographique
   panoramique, puis le champ de couleur en pleine largeur, contre la photo,
   où les écrans se posent. */
.so-moment--comptoir { padding-bottom: 0; }

.so-moment--comptoir .so-moment__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1024px) {
  .so-moment--comptoir .so-moment__corps {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: calc(var(--so-colonne) * 2);
    align-items: end;
  }
}

.so-moment__bande {
  margin: clamp(48px, 5vw, 80px) 0 0;
}

.so-moment__bande .so-photo {
  height: clamp(300px, 46vh, 560px);
}

.so-moment__bande figcaption { position: absolute; }
.so-moment__bande { position: relative; }
.so-moment__bande figcaption.so-wrap { left: 0; right: 0; bottom: 100%; padding-bottom: 8px; }
.so-moment__bande figcaption .so-legende { display: block; margin: 0; }

.so-moment--comptoir .so-moment__champ { padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 80px); }
.so-moment--comptoir .so-moment__ecrans { position: relative; z-index: 1; margin-inline: auto; }
.so-moment--comptoir .so-moment__tete { margin-bottom: 0; }
.so-moment--comptoir.so-moment--sans-photo .so-moment__champ { margin-top: 56px; }

@media (max-width: 767.98px) {
  .so-moment__bande .so-photo { height: auto; aspect-ratio: 3 / 2; }
}

/* « nuit » : le pilotage du soir, sur la nuit profonde. Les écrans mènent ;
   le titre, le texte et la photo tiennent la marge. */
.so-moment--nuit {
  background: var(--so-nuit-profonde);
  color: var(--so-sur-nuit-2);
}

.so-moment--nuit .so-h2,
.so-moment--nuit .so-moment__chiffres { color: var(--so-sur-nuit); }
.so-moment--nuit .so-chapo { color: var(--so-sur-nuit-2); }
.so-moment--nuit .so-note { color: var(--so-sur-nuit-2); border-color: var(--so-filet-nuit); }
.so-moment--nuit .so-legende { color: var(--so-sur-nuit-2); }
.so-moment--nuit .so-moment__maintenant { color: var(--so-bissap-clair); }
.so-moment--nuit :focus-visible { outline-color: var(--so-sur-nuit); }
.so-site .so-moment--nuit a { color: var(--so-bleu-clair); }

.so-moment--nuit .so-moment__corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.so-moment--nuit .so-moment__photo { margin: 40px 0 0; }
.so-moment--nuit .so-moment__photo .so-photo { aspect-ratio: 4 / 5; height: auto; max-height: 520px; }

@media (min-width: 1024px) {
  .so-moment--nuit .so-moment__corps {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--so-colonne) * 2);
    align-items: start;
  }
  .so-moment--nuit .so-moment__ecrans { margin-top: 0; position: sticky; top: calc(var(--so-haut-entete) + 24px); }
  .so-moment--nuit .so-moment__photo { max-width: 360px; }
}

/* ----- L'écran du logiciel : un document posé dans la page ---------------- */

.so-ecran { margin: 0; }

.so-ecran__cadre {
  position: relative;
  overflow: hidden;
  border-radius: var(--so-r-ecran);
  background: var(--so-papier);
  box-shadow: var(--so-ombre-ecran);
}

.so-ecran--capture img { width: 100%; height: auto; }

.so-ecran--maquette .so-maquette { border: 0; border-radius: 0; }

.so-ecran__legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 14px 0 0;
  color: var(--so-encre-2);
  font-size: var(--so-t-mini);
  line-height: 1.45;
}

.so-moment--nuit .so-ecran__legende,
.so-section--nuit .so-ecran__legende { color: var(--so-sur-nuit-2); }
.so-moment--nuit .so-ecran__cadre,
.so-section--nuit .so-ecran__cadre { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }

.so-ecran__pause,
.so-ecran__agrandir {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--so-titre);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.so-ecran__pause[hidden],
.so-ecran__agrandir[hidden] { display: none; }

/* « Agrandir » : un bouton posé sur l'angle de la capture. */
.so-ecran__agrandir {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--so-r);
  background: var(--so-nuit);
  color: var(--so-papier);
  font-size: var(--so-t-mini);
  text-decoration: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.25s var(--so-detente);
}

.so-ecran__cadre:hover .so-ecran__agrandir,
.so-ecran__agrandir:focus-visible { opacity: 1; transform: none; }

@media (hover: none) {
  .so-ecran__agrandir { opacity: 1; transform: none; }
}

.so-moment--nuit .so-ecran__pause { color: var(--so-sur-nuit); }

/* La capture en grand : une fenêtre native (`<dialog>`), Échap la ferme. */
.so-loupe {
  width: min(1920px, 96vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--so-r-ecran);
  background: var(--so-papier);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.so-loupe::backdrop { background: rgba(8, 27, 58, 0.82); }
.so-loupe img { display: block; width: 100%; height: auto; }

.so-loupe__fermer {
  position: sticky;
  top: 0;
  float: right;
  margin: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--so-r);
  background: var(--so-nuit);
  color: var(--so-papier);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ----- L'explorateur : plusieurs écrans, un à la fois --------------------- */

.so-explorateur__onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 0 20px;
  padding: 0;
}

.so-explorateur__onglets[hidden] { display: none; }

.so-explorateur__onglet {
  position: relative;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--so-filet);
  border-radius: var(--so-r);
  background: var(--so-papier);
  color: var(--so-titre);
  font: inherit;
  font-size: var(--so-t-petit);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.so-explorateur__onglet:hover { border-color: var(--so-nuit); }

.so-explorateur__onglet[aria-selected="true"] {
  border-color: var(--so-nuit);
  background: var(--so-nuit);
  color: var(--so-papier);
}

.so-moment--nuit .so-explorateur__onglet,
.so-section--nuit .so-explorateur__onglet { background: transparent; border-color: var(--so-filet-nuit); color: var(--so-sur-nuit); }
.so-moment--nuit .so-explorateur__onglet:hover,
.so-section--nuit .so-explorateur__onglet:hover { border-color: var(--so-sur-nuit-2); }
.so-moment--nuit .so-explorateur__onglet[aria-selected="true"],
.so-section--nuit .so-explorateur__onglet[aria-selected="true"] { background: var(--so-papier); border-color: var(--so-papier); color: var(--so-titre); }

.so-explorateur__panneau + .so-explorateur__panneau { margin-top: 48px; }

.so-explorateur__titre-seul {
  margin: 0 0 14px;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: var(--so-t-h3);
}

.so-moment--nuit .so-explorateur__titre-seul,
.so-section--nuit .so-explorateur__titre-seul { color: var(--so-sur-nuit); }

.so-explorateur__texte {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--so-encre);
  font-size: var(--so-t-petit);
  line-height: 1.55;
}

.so-moment--nuit .so-explorateur__texte,
.so-section--nuit .so-explorateur__texte { color: var(--so-sur-nuit-2); }

/* Avec le script : un panneau à la fois, le titre redondant s'efface (il est
   dans l'onglet), et le changement se fait en fondu. */
.js .so-explorateur.est-pret .so-explorateur__panneau + .so-explorateur__panneau { margin-top: 0; }
.js .so-explorateur.est-pret .so-explorateur__titre-seul { display: none; }
.js .so-explorateur.est-pret .so-explorateur__panneau[hidden] { display: none; }

@keyframes so-fondu {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .so-explorateur.est-pret .so-explorateur__panneau.vient-douvrir { animation: so-fondu 0.45s var(--so-detente) both; }
}

/* ----- Le champ de couleur : l'aplat derrière les écrans du logiciel ------- */

/* Un écran du logiciel ne flotte plus sur du blanc ou du gris : il se pose
   sur un aplat franc, la couleur de son chapitre ou de son métier. Tout ce
   qui s'écrit sur le champ (onglets, légende, phrase) prend l'encre du champ. */
.so-aplat {
  position: relative;
  background: var(--c);
  color: var(--c-sur);
}

.so-aplat .so-ecran__legende,
.so-aplat .so-explorateur__texte,
.so-aplat .so-explorateur__titre-seul,
.so-aplat .so-ecran__pause { color: var(--c-sur); }
.so-aplat :focus-visible { outline-color: var(--c-sur); }
.so-aplat .so-ecran__cadre { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 30px 60px -22px rgba(0, 0, 0, 0.45); }

.so-aplat .so-explorateur__onglet { background: transparent; border-color: var(--c-sur); color: var(--c-sur); }
.so-aplat .so-explorateur__onglet:hover { background: var(--c-sur); color: var(--c); }
.so-aplat .so-explorateur__onglet[aria-selected="true"] { background: var(--c-sur); border-color: var(--c-sur); color: var(--c); }

/* Le bouton inversé : sur un aplat, le bouton prend l'encre de l'aplat pour
   fond et l'aplat pour encre (vert sur blanc 6,6:1 ; soleil sur nuit 9,7:1). */
.so-btn--sur,
.so-site a.so-btn--sur { background: var(--c-sur); border-color: var(--c-sur); color: var(--c); }
.so-site .so-btn--sur:hover,
.so-site a.so-btn--sur:hover { background: var(--c-sur); border-color: var(--c-sur); color: var(--c); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

/* ----- Les environnements de santé : cinq métiers, cinq couleurs ---------- */

.so-entete-section--large { max-width: 900px; }

.so-envs { display: grid; gap: clamp(32px, 5vw, 56px); }

/* Sans script, et sur téléphone : la photo du métier, et son aplat dessous. */
.so-env { display: grid; gap: 0; }

.so-env__photo { margin: 0; overflow: hidden; }
.so-env__photo .so-photo { aspect-ratio: 4 / 3; height: auto; }

.so-env__texte {
  position: relative;
  padding: 22px 24px 24px;
  background: var(--c);
  color: var(--c-sur);
}

.so-env__nom {
  margin: 0;
  font-family: var(--so-fam-titre);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.so-site a.so-env__lien { color: inherit; text-decoration: none; }
.so-site a.so-env__lien:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.so-site a.so-env__lien:focus-visible { outline-color: currentColor; }

.so-env__desc { margin: 12px 0 0; max-width: 52ch; line-height: 1.55; }

.so-env__suite {
  margin: 14px 0 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Toute la ligne d'un environnement se clique (le lien du nom la couvre). */
.so-env__lien::after { content: ""; position: absolute; inset: 0; }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .so-env { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
  .so-env__photo .so-photo { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .so-env__texte { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
}

/* Sur grand écran, avec le script : la liste à gauche, la scène à droite, et
   rien entre les deux. Chaque métier porte la CASE de sa couleur ; celui que
   l'on survole (ou atteint au clavier) devient un aplat de cette couleur, qui
   touche sa photographie. Sans script, chaque métier garde sa photo à côté
   de son aplat. */
@media (min-width: 1024px) {
  .so-env { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .so-env__photo .so-photo { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .so-env__texte { display: flex; flex-direction: column; justify-content: center; padding: 40px; }

  .js .so-envs {
    position: relative;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0;
    min-height: clamp(540px, 68vh, 720px);
    align-content: stretch;
  }

  .js .so-env { display: block; grid-column: 1; }

  .js .so-env__photo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: calc(100% * 7 / 12);
    opacity: 0;
    transition: opacity 0.6s var(--so-detente);
  }

  .js .so-env__photo .so-photo { min-height: 0; transform: scale(1.03); transition: transform 1.2s var(--so-detente); }
  .js .so-env.est-actif .so-env__photo { opacity: 1; }
  .js .so-env.est-actif .so-env__photo .so-photo { transform: none; }

  .js .so-env__texte {
    display: block;
    height: 100%;
    padding: 20px 28px 20px 56px;
    background: transparent;
    color: var(--so-titre);
    border-top: 1px solid var(--so-filet);
    transition: background-color 0.35s var(--so-detente), color 0.2s ease;
  }

  .js .so-env:last-child .so-env__texte { border-bottom: 1px solid var(--so-filet); }

  /* La case du métier : la même que dans le menu « Solutions ». */
  .js .so-env__texte::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--c);
    transition: background-color 0.35s var(--so-detente);
  }

  .js .so-env.est-actif .so-env__texte { background: var(--c); color: var(--c-sur); border-top-color: var(--c); }
  .js .so-env.est-actif + .so-env .so-env__texte { border-top-color: transparent; }
  .js .so-env.est-actif .so-env__texte::before { background: var(--c-sur); }
  .js .so-env__nom { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); }
  .js .so-env__desc { display: none; margin-top: 10px; font-size: var(--so-t-petit); }
  .js .so-env__suite { display: none; }
  .js .so-env.est-actif .so-env__desc,
  .js .so-env.est-actif .so-env__suite { display: block; }
}

/* ----- L'index des fonctions : des colonnes de texte ---------------------- */

.so-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 var(--so-colonne);
}

.so-index__famille { padding: 24px 0 28px; border-top: 1px solid var(--so-titre); }

.so-index__nom {
  margin: 0;
  font-family: var(--so-fam-titre);
  font-size: var(--so-t-h3);
  font-weight: 400;
  line-height: 1.2;
}

.so-site .so-index__nom a { color: var(--so-titre); text-decoration: none; }
.so-site .so-index__nom a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.so-index__texte { margin: 12px 0 0; color: var(--so-encre-2); font-size: var(--so-t-petit); line-height: 1.6; }

@media (min-width: 640px) { .so-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .so-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .so-index { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ----- Les publics : un index, pas trois cartes -------------------------- */

.so-publics { border-top: 1px solid var(--so-titre); }

.so-public {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--so-filet);
}

.so-public__titre { margin: 0; font-family: var(--so-fam-titre); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 400; line-height: 1.1; }
.so-site a.so-public__lien { color: var(--so-titre); text-decoration: none; }
.so-public__lien::after { content: ""; position: absolute; inset: 0; }
.so-public__texte { margin: 0; color: var(--so-encre); max-width: 56ch; }
.so-public__suite { margin: 0; color: var(--so-titre); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.so-public:hover .so-public__titre { color: var(--so-bleu-fonce); }
.so-public__photo { overflow: hidden; }
.so-public__photo .so-photo { aspect-ratio: 3 / 2; height: auto; }

@media (min-width: 1024px) {
  .so-public { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); align-items: baseline; }
  .so-public--photo { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr); align-items: center; }
  .so-public__suite { justify-self: end; }
}

/* ----- Le registre des fonctions ---------------------------------------- */

.so-groupe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }

@media (min-width: 1024px) {
  .so-groupe--visuel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--so-colonne) * 2); align-items: start; }
  .so-groupe--visuel .so-groupe__visuel { position: sticky; top: calc(var(--so-haut-entete) + 24px); }
}

.so-groupe__visuel { display: grid; gap: 32px; }
.so-groupe__ecrans.so-aplat { padding: clamp(20px, 2.6vw, 36px); }
.so-groupe__photo { margin: 0; }
.so-groupe__photo .so-photo { aspect-ratio: 3 / 2; height: auto; }

.so-registre { border-top: 1px solid var(--so-titre); }

.so-registre__ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--so-filet);
}

.so-registre__nom {
  margin: 0;
  color: var(--so-titre);
  font-family: var(--so-fam-texte);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.so-site .so-registre__nom a { color: var(--so-titre); }
.so-registre__desc { margin: 0; color: var(--so-encre); line-height: 1.6; max-width: 64ch; }
.so-registre__image { margin-top: 12px; aspect-ratio: 16 / 7; height: auto; }

.so-section--nuit .so-registre { border-color: var(--so-sur-nuit-2); }
.so-section--nuit .so-registre__ligne { border-color: var(--so-filet-nuit); }
.so-section--nuit .so-registre__nom,
.so-site .so-section--nuit .so-registre__nom a { color: var(--so-sur-nuit); }
.so-section--nuit .so-registre__desc { color: var(--so-sur-nuit-2); }

/* Sans visuel, la liste se range sur deux colonnes : nom, puis texte. */
@media (min-width: 1024px) {
  .so-groupe:not(.so-groupe--visuel) .so-registre__ligne { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--so-colonne); }
}

/* ----- Les garanties ---------------------------------------------------- */

.so-garanties-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

@media (min-width: 1024px) {
  .so-garanties-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--so-colonne) * 2); }
  .so-garanties-grille .so-entete-section { margin-bottom: 0; }
}

.so-garanties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--so-colonne); margin: 0; }

@media (min-width: 640px) { .so-garanties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.so-garanties__case { padding: 24px 0 28px; border-top: 1px solid var(--so-titre); }
.so-garanties__titre { margin: 0; color: var(--so-titre); font-family: var(--so-fam-titre); font-size: var(--so-t-h3); font-weight: 400; line-height: 1.2; }
.so-garanties__texte { margin: 10px 0 0; color: var(--so-encre); line-height: 1.6; }
.so-garanties__image { margin-bottom: 16px; aspect-ratio: 3 / 2; height: auto; }

/* ----- Bandeau (la porte des patients) ------------------------------------ */

.so-bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 28px 0;
  border-top: 1px solid var(--so-titre);
  border-bottom: 1px solid var(--so-filet);
}

/* Avec une couleur, le bandeau est un aplat : la porte des patients s'ouvre
   sur le soleil. */
.so-bandeau[data-so-couleur] {
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 48px);
  border: 0;
  background: var(--c);
  color: var(--c-sur);
}
.so-bandeau[data-so-couleur] .so-bandeau__titre,
.so-bandeau[data-so-couleur] .so-bandeau__texte { color: var(--c-sur); }
.so-bandeau[data-so-couleur] :focus-visible { outline-color: var(--c-sur); }
.so-bandeau[data-so-couleur] .so-btn--trait,
.so-site .so-bandeau[data-so-couleur] a.so-btn--trait { background: var(--c-sur); border-color: var(--c-sur); color: var(--c); }
.so-site .so-bandeau[data-so-couleur] a.so-btn--trait:hover { background: var(--c-sur); color: var(--c); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

.so-bandeau__titre { margin: 0; color: var(--so-titre); font-family: var(--so-fam-titre); font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem); font-weight: 400; line-height: 1.15; }
.so-bandeau__texte { margin: 8px 0 0; max-width: 62ch; color: var(--so-encre); }

/* ----- L'appel final : un pan de couleur posé sur la photo ---------------- */

.so-appel {
  position: relative;
  background: var(--c);
  color: var(--c-sur);
  isolation: isolate;
}

.so-appel__photo { margin: 0; height: clamp(460px, 78vh, 820px); }

.so-appel__place { padding-block: var(--so-espace-section); }

.so-appel--photo .so-appel__place {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(32px, 6vh, 72px);
}

.so-appel__pan {
  max-width: 640px;
  padding: clamp(32px, 4vw, 56px);
  background: var(--c);
}

.so-appel:not(.so-appel--photo) .so-appel__pan { padding: 0; max-width: 900px; }

.so-appel .so-h2,
.so-appel .so-chapo { color: var(--c-sur); }
.so-appel :focus-visible { outline-color: var(--c-sur); }
.so-site .so-appel a.so-lien,
.so-site .so-appel a.so-wa { color: var(--c-sur); }
.so-appel .so-wa-signe { color: var(--c-sur); }

@media (max-width: 767.98px) {
  .so-appel--photo .so-appel__photo { height: auto; aspect-ratio: 4 / 5; }
  .so-appel--photo .so-appel__place { position: static; padding: 0; }
  .so-appel--photo .so-appel__pan { max-width: none; padding: 40px var(--so-gouttiere) 56px; }
}

/* ----- Le héros d'une page ---------------------------------------------- */

.so-heros-page { position: relative; }

/* Avec une photo : la photographie en pleine largeur, le cartouche blanc
   sur son bord bas. */
.so-heros-page--photo .so-heros-page__photo {
  margin: 0;
  height: clamp(440px, 72vh, 820px);
  height: clamp(440px, 72svh, 820px);
}

.so-heros-page__cartouche-place { position: relative; z-index: 1; }

.so-heros-page__cartouche {
  max-width: 780px;
  margin-top: clamp(-220px, -18vh, -120px);
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px) 0 0;
  background: var(--so-papier);
  box-shadow: calc(var(--so-gouttiere) * -1) 0 0 var(--so-papier);
}

.so-heros-page--droite .so-heros-page__cartouche { margin-left: auto; padding-left: clamp(24px, 3.4vw, 56px); padding-right: 0; box-shadow: var(--so-gouttiere) 0 0 var(--so-papier); }

/* Le cartouche de la couleur de la page : un aplat franc sur le bord de la
   photo, et le texte dans l'encre de l'aplat. */
.so-heros-page--couleur .so-heros-page__cartouche {
  padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px);
  background: var(--c);
  color: var(--c-sur);
  box-shadow: none;
}
.so-heros-page--couleur .so-heros-page__cartouche .so-h1,
.so-heros-page--couleur .so-heros-page__cartouche .so-chapo,
.so-heros-page--couleur .so-heros-page__cartouche .so-heros-page__rubrique { color: var(--c-sur); }
.so-heros-page--couleur .so-heros-page__cartouche :focus-visible { outline-color: var(--c-sur); }
.so-site .so-heros-page--couleur .so-heros-page__cartouche a.so-lien,
.so-site .so-heros-page--couleur .so-heros-page__cartouche a.so-wa { color: var(--c-sur); }
.so-heros-page--couleur .so-heros-page__cartouche .so-wa-signe { color: var(--c-sur); }
.so-heros-page--couleur.so-heros-page--droite .so-heros-page__cartouche { padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3.4vw, 56px); box-shadow: none; }
.so-heros-page--couleur .so-sommaire { margin-top: clamp(28px, 3vw, 44px); }

.so-heros-page__rubrique { margin: 0 0 16px; color: var(--so-encre-2); font-size: var(--so-t-petit); }

.so-heros-page__cartouche .so-chapo { margin-top: 24px; }

@media (max-width: 767.98px) {
  .so-heros-page--photo .so-heros-page__photo { height: auto; aspect-ratio: 4 / 5; max-height: 70svh; }
  .so-heros-page__cartouche { margin-top: -48px; padding: 28px 20px 0 0; }
}

/* Sans photo : un héros typographique, le titre et l'introduction côte à
   côte. L'en-tête est posé dessus. */
.so-heros-page--texte {
  padding-top: calc(var(--so-haut-entete) + 34px + clamp(56px, 8vw, 120px));
  padding-bottom: clamp(56px, 6vw, 96px);
}

.so-heros-page__texte {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.so-heros-page--texte .so-chapo { margin-top: 0; }

@media (min-width: 1024px) {
  .so-heros-page__texte { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--so-colonne) * 2); align-items: start; }
  .so-heros-page--texte .so-heros-page__suite { padding-top: 0.6em; }
}

.so-heros-page--nuit { background: var(--so-nuit-profonde); color: var(--so-sur-nuit-2); }
.so-heros-page--nuit .so-h1 { color: var(--so-sur-nuit); }
.so-heros-page--nuit .so-chapo,
.so-heros-page--nuit .so-heros-page__rubrique { color: var(--so-sur-nuit-2); }
.so-heros-page--nuit :focus-visible { outline-color: var(--so-sur-nuit); }

.so-heros-page__ecrans { margin-top: clamp(48px, 6vw, 88px); }

/* Le sommaire de la page : une ligne de liens sous le héros. */
.so-sommaire { margin-top: clamp(40px, 4vw, 64px); }
.so-heros-page--nuit .so-sommaire { margin-top: clamp(48px, 5vw, 80px); }

.so-sommaire .so-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--so-filet);
}

.so-heros-page--nuit .so-sommaire .so-wrap { border-color: var(--so-filet-nuit); }
.so-sommaire__titre { margin: 0; color: var(--so-encre-2); font-size: var(--so-t-petit); }
.so-heros-page--nuit .so-sommaire__titre { color: var(--so-sur-nuit-2); }
.so-sommaire ul { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.so-site .so-sommaire a { display: inline-flex; align-items: center; min-height: 44px; color: var(--so-titre); font-weight: 600; text-decoration: none; }
.so-site .so-sommaire a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.so-site .so-heros-page--nuit .so-sommaire a { color: var(--so-sur-nuit); }

/* ----- Tarifs ------------------------------------------------------------ */

/* Les offres : la grille suit leur NOMBRE (`data-nb`). Jamais une offre seule
   sur sa ligne : cinq tiennent sur une ligne en grand écran, en trois et deux
   sur un écran moyen. */
.so-offres {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--so-titre);
}

.so-offre {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--so-filet);
}

@media (min-width: 768px) {
  .so-offres { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .so-offre { grid-column: span 3; padding-inline: 24px; border-left: 1px solid var(--so-filet); }
  .so-offre:nth-child(odd) { padding-left: 0; border-left: 0; }
  .so-offres[data-nb="1"] .so-offre { grid-column: span 6; padding-left: 0; border-left: 0; }
  .so-offres[data-nb="3"] .so-offre,
  .so-offres[data-nb="6"] .so-offre,
  .so-offres[data-nb="5"] .so-offre:nth-child(-n+3) { grid-column: span 2; padding-left: 24px; border-left: 1px solid var(--so-filet); }
  .so-offres[data-nb="3"] .so-offre:nth-child(3n+1),
  .so-offres[data-nb="6"] .so-offre:nth-child(3n+1),
  .so-offres[data-nb="5"] .so-offre:first-child { padding-left: 0; border-left: 0; }
  .so-offres[data-nb="5"] .so-offre:nth-child(4) { padding-left: 0; border-left: 0; }
  .so-offres[data-nb="5"] .so-offre:nth-child(5) { padding-left: 24px; border-left: 1px solid var(--so-filet); }
}

@media (min-width: 1280px) {
  .so-offres[data-nb="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .so-offres[data-nb="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .so-offres[data-nb="4"] .so-offre,
  .so-offres[data-nb="5"] .so-offre,
  .so-offres[data-nb="5"] .so-offre:nth-child(-n+3) { grid-column: span 1; padding-left: 22px; padding-right: 22px; border-left: 1px solid var(--so-filet); }
  .so-offres[data-nb="4"] .so-offre:nth-child(n+2),
  .so-offres[data-nb="5"] .so-offre:nth-child(n+2) { padding-left: 22px; border-left: 1px solid var(--so-filet); }
  .so-offres[data-nb="4"] .so-offre:first-child,
  .so-offres[data-nb="5"] .so-offre:first-child { padding-left: 0; border-left: 0; }
}

.so-offre__intitule { margin: 0 0 12px; color: var(--so-bissap); font-weight: 600; font-size: var(--so-t-petit); }
.so-offre__nom { margin: 0; color: var(--so-titre); font-family: var(--so-fam-titre); font-size: var(--so-t-h3); font-weight: 500; line-height: 1.2; }

/* Le prix : le nombre en grand, la monnaie et la période en petit, dessous.
   Ni l'un ni l'autre ne se coupe : « 45 000 » ne laisse pas « F CFA » seul. */
.so-offre__prix { margin: 18px 0 0; color: var(--so-titre); }
.so-offre__montant {
  display: block;
  font-family: var(--so-fam-titre);
  font-size: clamp(1.875rem, 1.5rem + 1.1vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.so-offre__unite { display: block; margin-top: 6px; color: var(--so-encre-2); font-size: var(--so-t-petit); white-space: nowrap; }
.so-offre__prix--libre { font-family: var(--so-fam-titre); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; }
.so-offre__cabinets { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--so-filet); font-weight: 600; color: var(--so-titre); }
.so-offre__texte { margin: 10px 0 0; color: var(--so-encre); font-size: var(--so-t-petit); line-height: 1.55; }
.so-offre__modules { margin: 14px 0 0; color: var(--so-encre); font-size: var(--so-t-petit); }
.so-offre__liste { margin: 14px 0 0; padding: 0; list-style: none; color: var(--so-encre); font-size: var(--so-t-petit); }
.so-offre__liste li { padding: 6px 0; border-top: 1px solid var(--so-filet); }
.so-offre__geste { margin: auto 0 0; padding-top: 24px; }
.so-offre__geste .so-btn { white-space: nowrap; }

/* Un geste pour toutes les offres : il ne se répète pas sous chacune. */
.so-offres__geste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; margin-top: 36px; }
.so-offres__geste .so-gestes { margin: 0; }
.so-offres__geste .so-note { margin: 0; max-width: 46ch; }

.so-comparaison { margin-top: clamp(56px, 6vw, 96px); }
.so-comparaison .so-h3 { margin-bottom: 20px; }
.so-comparaison__defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.so-comparaison__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--so-t-petit); }
.so-comparaison__table th,
.so-comparaison__table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--so-filet); }
.so-comparaison__table thead th { color: var(--so-titre); font-weight: 600; border-bottom: 1px solid var(--so-titre); }
.so-comparaison__table tbody th { color: var(--so-titre); font-weight: 500; }
.so-comparaison__prix { white-space: nowrap; font-variant-numeric: tabular-nums; }
.so-comparaison__periode { display: block; color: var(--so-encre-2); font-size: var(--so-t-mini); }
.so-comparaison__communs { margin: 20px 0 0; max-width: 78ch; color: var(--so-encre-2); font-size: var(--so-t-petit); line-height: 1.6; }
.so-comparaison__communs--seul { margin-top: clamp(40px, 4vw, 64px); padding-top: 20px; border-top: 1px solid var(--so-filet); color: var(--so-encre); font-size: var(--so-t-corps); }
.so-oui { color: var(--so-titre); font-weight: 600; }
.so-non { color: var(--so-encre-2); }

.so-devis {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 1024px) {
  .so-devis { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: calc(var(--so-colonne) * 2); align-items: start; }
}

.so-devis__facteurs { margin: 0; border-top: 1px solid var(--so-titre); }
.so-devis__facteurs div { padding: 20px 0; border-bottom: 1px solid var(--so-filet); }
.so-devis__facteurs dt { color: var(--so-titre); font-family: var(--so-fam-titre); font-size: var(--so-t-h3); line-height: 1.2; }
.so-devis__facteurs dd { margin: 8px 0 0; color: var(--so-encre); }

/* Ce dont un devis se compose : les modules du registre, par famille. La
   famille tient la marge, ses modules la colonne large. Les métiers sont une
   bande d'aplats, chacun dans la couleur de son environnement : le même motif
   que la journée de l'accueil. */
.so-tarifs + .so-composition { padding-top: 0; }

.so-famille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--so-titre);
}

.so-famille__texte { margin: 10px 0 0; max-width: 38ch; color: var(--so-encre-2); font-size: var(--so-t-petit); line-height: 1.55; }

@media (min-width: 1024px) {
  .so-famille { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--so-colonne); align-items: start; }
}

.so-modules { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--so-colonne); }
@media (min-width: 640px) { .so-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.so-modules__ligne { padding: 0 0 18px; }
.so-modules dt { color: var(--so-titre); font-weight: 600; }
.so-modules dd { margin: 4px 0 0; color: var(--so-encre); font-size: var(--so-t-petit); line-height: 1.55; }
.so-modules__demande { color: var(--so-encre-2); }
/* La liste réduite aux noms (22/11/2026) : une puce de liste, pas de description. */
.so-modules--noms { list-style: none; padding: 0; }
.so-modules--noms .so-modules__ligne { padding: 0 0 10px; color: var(--so-titre); font-weight: 600; }

.so-metiers { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .so-metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .so-metiers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.so-metier { min-height: 148px; padding: 18px 18px 20px; background: var(--c); color: var(--c-sur); }
.so-metier__nom { margin: 0; font-family: var(--so-fam-titre); font-size: 1.1875rem; line-height: 1.2; }
.so-metier__texte { margin: 10px 0 0; font-size: var(--so-t-mini); line-height: 1.5; }

.so-deroule__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .so-deroule__grille { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--so-colonne); align-items: start; }
  .so-deroule .so-entete-section { margin-bottom: 0; }
}

/* ----- Questions --------------------------------------------------------- */

.so-faq-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

@media (min-width: 1024px) {
  .so-faq-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(var(--so-colonne) * 2); }
  .so-faq-grille .so-entete-section { margin-bottom: 0; }
}

.so-faq { border-top: 1px solid var(--so-titre); }
.so-faq details { border-bottom: 1px solid var(--so-filet); }

.so-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 48px 16px 0;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.so-faq summary::-webkit-details-marker { display: none; }

/* Le signe qui dit ouvert ou fermé : deux traits, l'un tourne. */
.so-faq summary::before,
.so-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--so-nuit);
  transition: transform 0.3s var(--so-detente);
}

.so-faq summary::after { transform: rotate(90deg); }
.so-faq details[open] summary::after { transform: rotate(0deg); }
.so-faq summary:hover { color: var(--so-bleu-fonce); }
.so-faq__reponse { padding: 0 48px 24px 0; max-width: 70ch; }
.so-faq__reponse p { margin: 0; line-height: 1.65; }

/* ----- Contact ------------------------------------------------------------ */

.so-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }

@media (min-width: 1024px) {
  .so-contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: calc(var(--so-colonne) * 3); align-items: start; }
}

.so-contact__aside { display: grid; gap: 40px; }

.so-etapes { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: etape; }

.so-etapes li {
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--so-filet);
  counter-increment: etape;
}

.so-etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.so-contact__patient { padding-top: 24px; border-top: 1px solid var(--so-titre); }
.so-contact__patient-titre { margin: 0; color: var(--so-titre); font-family: var(--so-fam-titre); font-size: var(--so-t-h3); font-weight: 400; }
.so-contact__patient p { margin: 10px 0 0; }

.so-formulaire__tete { margin-bottom: 28px; }
.so-formulaire__tete p { margin: 10px 0 0; color: var(--so-encre-2); font-size: var(--so-t-petit); }

.so-champs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 24px; }

@media (min-width: 640px) {
  .so-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-champ--plein { grid-column: 1 / -1; }
}

.so-aplat label { display: block; margin-bottom: 8px; color: var(--so-titre); font-weight: 600; font-size: var(--so-t-petit); }
.so-champ__facultatif { color: var(--so-encre-2); font-weight: 400; }

.so-champ input,
.so-champ textarea,
.so-champ select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--so-filet-fort);
  border-radius: var(--so-r);
  background: var(--so-papier);
  color: var(--so-encre);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.so-champ textarea { min-height: 160px; resize: vertical; }

.so-champ input:hover,
.so-champ textarea:hover { border-color: var(--so-nuit); }

.so-champ input:focus,
.so-champ textarea:focus {
  outline: 0;
  border-color: var(--so-nuit);
  box-shadow: 0 0 0 3px rgba(31, 111, 208, 0.25);
}

.so-champ__erreur { margin: 8px 0 0; color: var(--so-bissap); font-size: var(--so-t-petit); font-weight: 600; }

.so-erreurs {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--so-bissap);
  border-radius: var(--so-r);
  color: var(--so-bissap);
  font-weight: 600;
}

.so-erreurs p { margin: 0; }

.so-formulaire__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.so-formulaire__pied small { color: var(--so-encre-2); font-size: var(--so-t-mini); }

/* ----- Blocs génériques de l'éditeur ----------------------------------- */

.so-prose { max-width: var(--so-mesure); }
.so-prose h2, .so-prose h3 { color: var(--so-titre); font-family: var(--so-fam-titre); font-weight: 400; line-height: 1.2; }
.so-prose .so-h2 { margin-bottom: 24px; }
.so-prose p { margin: 0 0 1em; line-height: 1.7; }
.so-prose ul, .so-prose ol { padding-left: 1.3em; }
.so-prose li { margin-bottom: 0.4em; }
.so-prose--centre { margin-inline: auto; }

.so-image-bloc { margin: 0; }
.so-image-bloc img { width: 100%; }
.so-image-bloc figcaption { margin-top: 10px; font-size: var(--so-t-mini); color: var(--so-encre-2); }

.so-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

@media (min-width: 1024px) {
  .so-colonnes { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; }
}

.so-encart { border-top: 1px solid var(--so-titre); padding-top: 16px; }
.so-encart img { width: 100%; margin-bottom: 16px; }

.so-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.so-galerie figure { margin: 0; }
.so-galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.so-galerie figcaption { padding-top: 8px; font-size: var(--so-t-mini); color: var(--so-encre-2); }

.so-temoignages { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--so-titre); }
.so-temoignage { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--so-filet); }
.so-temoignage blockquote { margin: 0 0 12px; max-width: 56ch; font-family: var(--so-fam-titre); font-size: var(--so-t-h3); color: var(--so-titre); }
.so-temoignage figcaption { color: var(--so-encre-2); font-size: var(--so-t-petit); }

.so-media { position: relative; aspect-ratio: 16 / 9; }
.so-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.so-carte iframe { width: 100%; border: 0; }

.so-reseaux { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; }
.so-site .so-reseaux a { display: inline-flex; align-items: center; min-height: 44px; color: var(--so-titre); font-weight: 600; }

.so-etiquettes { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--so-encre-2); font-size: var(--so-t-petit); }

.so-partage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }

@media (min-width: 1024px) {
  .so-partage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
}

.so-vitrine-points { margin: 24px 0 0; padding-left: 1.2em; }

/* Le visuel d'un bloc « texte et image » de l'éditeur : la photo, puis
   l'écran, l'une sous l'autre. Jamais l'une sur l'autre. */
.so-appui { display: grid; gap: 28px; }
.so-appui .so-photo { aspect-ratio: 3 / 2; height: auto; }

/* ----- Pied --------------------------------------------------------------- */

.so-pied {
  padding-block: clamp(64px, 6vw, 104px) 32px;
  background: var(--so-nuit-profonde);
  color: var(--so-sur-nuit-2);
  font-size: var(--so-t-petit);
}

.so-pied :focus-visible { outline-color: var(--so-sur-nuit); }

.so-pied__tete {
  display: grid;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--so-filet-nuit);
}

@media (min-width: 1024px) {
  .so-pied__tete { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: calc(var(--so-colonne) * 2); }
}

.so-pied__marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--so-sur-nuit);
  font-family: var(--so-fam-titre);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.so-site a.so-pied__marque { color: var(--so-sur-nuit); text-decoration: none; }
.so-pied__signe { display: inline-flex; --signe-bras: var(--signe-bleu-clair); --signe-centre: var(--so-papier); }
.so-pied__phrase { margin: 0; max-width: 52ch; color: var(--so-sur-nuit-2); font-size: var(--so-t-corps); line-height: 1.6; }

.so-pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px var(--so-colonne);
  padding-block: 40px;
}

@media (min-width: 640px) { .so-pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .so-pied__grille { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 7fr)); grid-template-columns: 5fr 3fr 2fr 2fr; } }

.so-pied__titre { margin: 0 0 14px; color: var(--so-sur-nuit); font-weight: 600; }
.so-pied__liste { margin: 0; padding: 0; list-style: none; }
.so-pied__liste li + li { margin-top: 2px; }
.so-site .so-pied a { color: var(--so-sur-nuit-2); text-decoration: none; }
.so-site .so-pied a:hover { color: var(--so-sur-nuit); text-decoration: underline; text-underline-offset: 0.22em; }
.so-pied__liste a { display: inline-flex; align-items: center; min-height: 40px; }
.so-pied__demo { margin: 0 0 8px; }
.so-site .so-pied__demo a { color: var(--so-sur-nuit); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.so-pied__reseaux { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; }

.so-pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--so-filet-nuit);
  color: var(--so-sur-nuit-2);
  font-size: var(--so-t-mini);
}

/* ----- WhatsApp, quand les gestes du haut ne sont plus à l'écran --------- */

.so-wa-suit { display: none; }

.so-suit .so-wa-suit {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--so-bandeau-bas, 0px) + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--so-r);
  background: var(--so-nuit-profonde);
  box-shadow: 0 12px 30px -10px rgba(8, 27, 58, 0.55);
  color: var(--so-sur-nuit);
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.3s var(--so-detente), visibility 0s linear 0.3s;
}

.so-site .so-suit .so-wa-suit,
.so-site.so-suit .so-wa-suit { color: var(--so-sur-nuit); text-decoration: none; }
.so-suit .so-wa-suit .so-wa-signe { color: var(--so-vert-clair); }
.so-suit--visible .so-wa-suit { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.3s var(--so-detente), visibility 0s; }
.so-suit .so-wa-suit:focus-visible { outline-color: var(--so-nuit); }

@media (max-width: 639.98px) {
  .so-suit .so-wa-suit { right: 12px; left: auto; padding: 10px 14px; }
  .so-suit .so-wa-suit .so-wa__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* ----- Bandeau cookies et aperçu --------------------------------------- */

.so-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--so-papier);
  /* L'encre est dite ICI : dans le parcours de rendez-vous, l'ancienne feuille
     (vitrine.css) donnait au bandeau une encre claire faite pour un fond
     sombre, et le texte se lisait à 1,7:1 sur ce blanc. */
  color: var(--so-encre);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 -1px 0 var(--so-filet), 0 -16px 40px -24px rgba(8, 27, 58, 0.4);
  padding-block: 14px;
}

.so-cookies[hidden],
.so-cookies.is-dismissed { display: none; }
.so-cookies .so-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.so-cookies__texte { margin: 0; flex: 1 1 320px; font-size: var(--so-t-petit); }
.so-cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.so-cookies .so-btn { min-height: 44px; padding: 8px 16px; }

.so-apercu {
  position: relative;
  z-index: 61;
  padding: 10px var(--so-gouttiere);
  background: var(--so-nuit);
  color: var(--so-sur-nuit);
  font-size: var(--so-t-petit);
}

/* ----- Le parcours de rendez-vous des patients ---------------------------- */
/* Ses formulaires gardent leurs feuilles (vitrine.css, vitrine-pro.css),
   écrites avec les jetons du logiciel. On ne les réécrit pas : sous ces deux
   conteneurs, et là seulement, on donne aux jetons les valeurs du site. Le
   parcours prend ainsi la palette, les angles et la police du site sans
   qu'une ligne de sa logique ni de son balisage ne bouge. Les écrans
   dessinés du logiciel, eux, ne sont jamais dans ces conteneurs : ils
   gardent les jetons du logiciel. */
.so-site .vitrine-hero,
.so-site .vitrine-section {
  --rayon: var(--so-r);
  --fond-case: var(--so-papier);
  --fond-intitule: var(--so-papier);
  --texte: var(--so-nuit);
  --texte-faible: var(--so-encre);
  --texte-annotation: var(--so-encre-2);
  --bord: var(--so-filet-fort);
  --bord-fort: var(--so-nuit);
  --etat-acquis: var(--so-nuit);
  --etat-acquis-fond: var(--so-papier);
  --v-ink: var(--so-nuit);
  --v-muted: var(--so-encre-2);
  --v-border: var(--so-filet-fort);
  --v-bg: var(--so-papier);
  --v-sand: var(--so-papier);
  --v-card: var(--so-papier);
  --v-primary: var(--so-nuit);
  --v-primary-dark: var(--so-bleu-fonce);
  --v-primary-light: var(--so-papier);
  --v-orange: var(--so-nuit);
  --v-orange-light: var(--so-papier);
  --v-display: var(--so-fam-titre);
  color: var(--so-encre);
}

/* Le bouton d'envoi tant qu'il attend la case de consentement : il doit se
   LIRE (son libellé gris sur l'aplat plein ne se lisait pas). */
.so-site .vitrine-btn--primary:disabled,
.so-site .vitrine-btn--primary[aria-disabled="true"],
.so-site .vitrine-btn--primary:disabled:hover,
.so-site .vitrine-btn--primary[aria-disabled="true"]:hover {
  background: var(--so-filet);
  border-color: var(--so-filet);
  color: var(--so-encre-2);
}

.so-site .vitrine-hero { border-bottom: 1px solid var(--so-filet); }
.so-site .vitrine-hero h1 { font-family: var(--so-fam-titre); font-weight: 400; color: var(--so-titre); letter-spacing: -0.015em; }

/* Une ancre (#matin, #clinique…) ne s'arrête pas sous l'en-tête collant. */
.so-site [id] { scroll-margin-top: calc(var(--so-haut-entete) + 32px); }

/* Les boutons pleins du parcours gardent leur encre blanche : la couleur des
   liens du site (bleu) la leur retirait, bleu sur nuit, 2:1. */
.so-site a.vitrine-cabinet-card__cta,
.so-site a.vitrine-btn--primary,
.so-site a.vitrine-cabinet-card__cta:hover,
.so-site a.vitrine-btn--primary:hover { color: var(--so-papier); }

/* Le parcours n'a pas de héros photographique : sa bannière se pose sous la
   barre de l'en-tête, sur la chaux, et ses formulaires gardent leur matière. */
.so-site .v-booking-hero { background: var(--so-chaux); border-bottom: 0; }
.so-site .vitrine-hero h1 { font-size: var(--so-t-h1); line-height: 1.08; letter-spacing: -0.022em; }

/* ===========================================================================
   LE MOUVEMENT
   Un seul moment écrit : l'ouverture du héros (la photo se pose, le titre
   monte). Ensuite, ce qui bouge répond au récit : les écrans du logiciel se
   posent quand on arrive à eux, les photos des moments se découvrent, la
   scène des environnements change de photo, l'agenda dessiné vit. Rien ne
   bouge sans raison, et RIEN n'est caché en attendant un script : chaque
   état de départ ne vaut que sous le drapeau `js` (posé en tête de page), et
   tout s'arrête quand le visiteur demande moins de mouvement.
   =========================================================================== */

@keyframes so-respire {
  from { transform: scale(1.06); }
  to { transform: none; }
}

@keyframes so-monte {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes so-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes so-tampon {
  0% { transform: scale(1.5) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .so-une__photo .so-photo { animation: so-respire 2.4s var(--so-detente) both; }
  .js .so-une__texte > * { animation: so-monte 0.9s var(--so-detente) both; }
  .js .so-une__texte > :nth-child(2) { animation-delay: 0.08s; }
  .js .so-une__texte > :nth-child(3) { animation-delay: 0.16s; }
  .js .so-une__texte > :nth-child(4) { animation-delay: 0.24s; }

  .js .v-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--so-detente), transform 1s var(--so-detente); }
  .js .v-reveal.est-vu { opacity: 1; transform: none; }
  .js .v-reveal--photo { opacity: 1; transform: none; clip-path: inset(8% 0 0 0); transition: clip-path 1.3s var(--so-detente); }
  .js .v-reveal--photo.est-vu { clip-path: inset(0 0 0 0); }

  .so-rdv[data-etat] { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease; }
  .so-rdv.vient-de-changer .so-tampon { animation: so-tampon 0.45s var(--so-detente) both; }
  .so-vente.vient-de-changer { animation: so-arrive 0.5s ease both; }
}

@media (prefers-reduced-motion: reduce) {
  .so-site *, .so-site *::before, .so-site *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .so-ecran__pause { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

/* ===========================================================================
   LES ÉCRANS DESSINÉS DU LOGICIEL
   Des écrans du logiciel, dessinés en HTML et CSS : aucune donnée réelle.
   À l'INTÉRIEUR, ils gardent la matière de l'outil (ses filets, ses
   intitulés, ses tampons, ses chiffres tabulaires : les jetons de tokens.css)
   pour que le visiteur voie ce qu'il aura. Le CADRE est celui d'un document
   glissé dans un reportage : un trait d'encre, l'angle droit, aucune ombre.
   =========================================================================== */

.so-maquette {
  --m-filet: var(--filet);
  margin: 0;
  background: var(--papier);
  border: 1px solid var(--so-nuit);
  border-radius: var(--so-r);
  font-family: var(--fam-parole);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--encre);
  overflow: hidden;
  container-type: inline-size;
}

.so-maquette__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--filet-fort);
  background: var(--trame);
  font-weight: 600;
}

.so-maquette__barre span:last-child { font-family: var(--fam-valeur); font-weight: 500; color: var(--encre-2); font-size: 0.75rem; }

.so-maquette__corps { padding: 12px; }

.so-v { font-family: var(--fam-valeur); font-variant-numeric: tabular-nums; }

.so-tampon {
  display: inline-block;
  padding: 4px 4px;
  border: 1.5px solid currentColor;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.so-tampon--acquis { color: var(--bleu); }
.so-tampon--afaire { color: var(--rouge); }
.so-tampon--neutre { color: var(--encre-2); }

/* — La journée : trois services et un comptoir, côte à côte. — */

.so-journee { font-size: 0.8125rem; }

.so-journee__grille {
  display: grid;
  grid-template-columns: 48px repeat(4, minmax(0, 1fr));
  grid-template-rows: 48px repeat(8, 52px);
}

.so-journee__tete {
  padding: 6px 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--filet-fort);
  border-left: 1px solid var(--filet);
  background: var(--papier);
}

.so-journee__tete strong { display: block; font-size: var(--t-annot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-journee__tete span { color: var(--encre-3); font-size: 0.75rem; }
.so-journee__tete--vide { border-left: 0; }

.so-journee__heure {
  height: 52px;
  padding: 4px 8px 0 0;
  border-bottom: 1px solid var(--trame-forte);
  text-align: right;
  color: var(--encre-3);
  font-family: var(--fam-valeur);
  font-size: var(--t-micro);
}

.so-journee__col {
  position: relative;
  grid-row: 2 / span 8;
  border-left: 1px solid var(--filet);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, var(--trame-forte) 51px, var(--trame-forte) 52px);
}

.so-rdv {
  position: absolute;
  left: 4px;
  right: 4px;
  padding: 4px 6px;
  border: 1px solid var(--bleu);
  background: var(--bleu-trame);
  overflow: hidden;
}

.so-rdv b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-rdv i { display: block; font-style: normal; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-rdv .so-tampon { margin-top: 3px; padding: 1px 4px; line-height: 1.3; }

/* L'état d'un rendez-vous se lit sur `data-etat`, que le script fait
   avancer : attendu, arrivé, en soins, fini. Le tampon dit l'état en toutes
   lettres ; la couleur ne fait que confirmer. */
.so-rdv[data-etat="attendu"],
.so-rdv[data-etat="arrive"] { background: var(--papier); border-color: var(--filet-fort); }
.so-rdv[data-etat="fini"] { background: var(--papier); border-style: dashed; border-color: var(--filet); color: var(--encre-3); }
.so-rdv[data-etat="fini"] i { color: var(--encre-3); }
.so-rdv .so-tampon:empty { display: none; }
.so-rdv[data-etat="soins"] .so-tampon { color: var(--bleu); }
.so-rdv[data-etat="arrive"] .so-tampon { color: var(--encre-2); }
.so-vente[hidden] { display: none; }
.so-vente .so-v { white-space: nowrap; }

.so-vente {
  position: absolute;
  left: 6px;
  right: 6px;
  padding: 4px 8px;
  border-top: 1px solid var(--filet);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

/* Dans un cadre étroit (un téléphone, une colonne), l'agenda ne garde que
   deux services : c'est la largeur de l'écran dessiné qui décide, pas celle
   de la fenêtre. */
/* Quatre colonnes dans un cadre moyen : tout se resserre d'un cran. */
@container (max-width: 639.98px) {
  .so-journee__grille { grid-template-columns: 40px repeat(4, minmax(0, 1fr)); }
  .so-journee__tete { padding: 6px; }
  .so-journee__tete strong { font-size: var(--t-micro); }
  .so-journee__heure { padding-right: 4px; }
  .so-vente { display: block; left: 4px; right: 4px; padding: 4px 6px; }
  .so-vente span { display: block; }
  .so-vente span:first-child { color: var(--encre-2); font-size: var(--t-micro); }
}

@container (max-width: 459.98px) {
  .so-journee__grille { grid-template-columns: 44px repeat(2, minmax(0, 1fr)); }
  .so-journee__tete--c3, .so-journee__tete--c4,
  .so-journee__col--c3, .so-journee__col--c4 { display: none; }
}

/* — La salle d'attente : le mur. — */

.so-mur { background: var(--fond-pave); color: var(--texte-pave); border-color: var(--fond-pave); }
.so-mur .so-maquette__barre { background: var(--fond-pave-relief); border-color: var(--bord-pave); color: var(--texte-pave); }
.so-mur .so-maquette__barre span:last-child { color: var(--texte-pave-faible); }

.so-mur__appel { padding: 20px 20px; border-bottom: 1px solid var(--bord-pave); }
.so-mur__appel span { display: block; color: var(--texte-pave-faible); font-size: 0.8125rem; }
.so-mur__appel strong { display: block; margin-top: 4px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.1; letter-spacing: -0.02em; }

.so-mur__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.so-mur__file { padding: 12px 20px 12px; }
.so-mur__file + .so-mur__file { border-left: 1px solid var(--bord-pave); }
.so-mur__file .so-mur__nom { margin: 0 0 8px; font-size: 0.8125rem; color: var(--texte-pave-faible); font-weight: 600; }
.so-mur__file ol { margin: 0; padding: 0; list-style: none; }
.so-mur__file li { display: flex; gap: 8px; padding: 4px 0; border-top: 1px solid var(--fond-pave-relief); font-size: 0.9375rem; }
.so-mur__file li .so-v { color: var(--texte-pave-faible); width: 1.5em; }

/* — Lignes de tableau réglé (dossier, caisse, stock, comptoir). — */

.so-lignes { width: 100%; border-collapse: collapse; }
.so-lignes th { padding: 4px 8px; background: var(--trame); text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--encre-2); border-bottom: 1px solid var(--filet); }
.so-lignes td { padding: 8px 8px; border-bottom: 1px solid var(--trame-forte); vertical-align: top; }
.so-lignes .so-num { text-align: right; font-family: var(--fam-valeur); font-variant-numeric: tabular-nums; white-space: nowrap; }
.so-lignes tfoot td { border-top: 2px solid var(--encre); border-bottom: 0; font-weight: 700; }

.so-case-m { border: 1px solid var(--filet); margin-bottom: 8px; }
.so-case-m__int { display: block; padding: 4px 8px; background: var(--trame); font-size: var(--t-micro); font-weight: 600; color: var(--encre-2); }
.so-case-m__val { display: block; padding: 4px 8px; }
.so-case-m--ligne { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.so-case-m--ligne > div + div { border-left: 1px solid var(--filet); }

.so-alerte {
  margin: 8px 0;
  padding: 8px 8px;
  border: 1.5px solid var(--rouge);
  color: var(--encre);
}

.so-alerte .so-tampon { color: var(--rouge); margin-bottom: 4px; }
.so-alerte p { margin: 4px 0 0; color: var(--encre-2); }

.so-signature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--filet);
  color: var(--encre-2);
}

.so-faux-bouton {
  display: inline-block;
  padding: 4px 8px;
  border: 1.5px solid var(--bleu);
  color: var(--bleu);
  font-weight: 600;
  white-space: nowrap;
}

.so-faux-bouton--plein { background: var(--bleu); color: var(--papier); }

.so-scan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  margin-bottom: 8px;
  border: 1.5px solid var(--bleu);
  font-family: var(--fam-valeur);
  font-size: 0.75rem;
}

.so-scan::before { content: ""; width: 14px; height: 10px; background: repeating-linear-gradient(90deg, var(--encre) 0 1px, transparent 1px 3px); flex-shrink: 0; }

.so-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.so-services > div { padding: 8px 12px; }
.so-services > div + div { border-left: 1px solid var(--filet); }
.so-services b { display: block; }
.so-services span { color: var(--encre-3); font-size: 0.75rem; }
.so-services .is-courant { background: var(--bleu-trame); }

/* — Une maquette n'est jamais plus large que son conteneur. — */
.so-maquette table { table-layout: auto; }

@media (max-width: 639.98px) {
  .so-maquette { font-size: 0.75rem; }
  .so-maquette__corps { padding: 8px; }
  .so-lignes th, .so-lignes td { padding: 4px 4px; }
}

/* Placement explicite : la colonne des heures et les quatre colonnes de
   service ne doivent rien laisser au placement automatique. */
.so-journee__heure { grid-column: 1; }
.so-journee__col--c1 { grid-column: 2; }
.so-journee__col--c2 { grid-column: 3; }
.so-journee__col--c3 { grid-column: 4; }
.so-journee__col--c4 { grid-column: 5; }

.so-maquette__barre span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-maquette__barre span:first-child { min-width: 0; }
.so-maquette__barre span:last-child { flex-shrink: 0; }



/* ===========================================================================
   Repris de la couche UX commune du produit : le lien d'évitement et les
   messages flottants. Le site public ne charge plus cette feuille commune ;
   il en garde ces deux composants, à l'identique.
   =========================================================================== */

.sn-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: var(--pas-2) var(--pas-3);
  font-size: var(--t-annot);
  font-weight: 600;
  /* LE LIEN D'ÉVITEMENT N'EST PAS UNE PLACE DE LA MARQUE.
     Il apparaît au clavier, une fraction de seconde, pour une personne qui
     cherche à atteindre le contenu — et il portait la couleur du cabinet.
     Avec un rouge pur, la meilleure encre possible y tenait 4,21:1 ; avec un
     gris moyen, 4,48:1. C'était la DERNIÈRE paire du produit sous le seuil,
     et elle ne devait rien à la marque : c'est un affordance du monde, donc
     un PAVÉ — de l'encre, du texte clair, et la garantie qui va avec. */
  color: var(--texte-pave);
  background: var(--fond-pave);
  border-radius: var(--rayon);
  text-decoration: none;
}
.sn-skip-link:focus {
  left: max(12px, env(safe-area-inset-left));
  top: max(0px, env(safe-area-inset-top));
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid var(--bord);
  outline-offset: 2px;

  /* il ne paraît qu'au clavier, mais il se clique : la cible du monde */
  min-height: var(--l-cible);
  display: inline-flex;
  align-items: center;
}

/* ── Toasts flottants (INTRANET — bas droite, 7 s) ── */
.sn-toast-region {
  position: fixed;
  z-index: 10050;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--pas-2);
  width: min(22.5rem, calc(100vw - 2rem));
  pointer-events: none;
}

.sn-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--pas-2);
  width: 100%;
  padding: 0.75rem var(--pas-3) var(--pas-3);
  border-radius: var(--rayon);
  font-size: var(--t-annot);
  line-height: 1.45;
  border: 1px solid transparent;
  overflow: hidden;
  animation: sn-toast-in 0.32s ease forwards;
}

.sn-toast--enter {
  animation: none;
  opacity: 0;
  transform: translateX(1.25rem);
}

.sn-toast--leaving {
  animation: sn-toast-out 0.28s ease forwards;
}

.sn-toast__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-top: 0.0625rem;
}

.sn-toast__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-right: 0.25rem;
}

.sn-toast__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.125rem -0.125rem 0 0;
  padding: 0;
  border: none;
  border-radius: var(--rayon);
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.sn-toast__close:hover {
  opacity: 1;
  background: var(--fond-intitule);
}

.sn-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.28;
  transform-origin: left center;
  animation: sn-toast-progress 7s linear forwards;
}

.sn-toast--success {
  background: var(--etat-acquis-fond);
  color: var(--etat-acquis);
  border-color: var(--etat-acquis);
}

.sn-toast--error {
  background: var(--fond-case);
  color: var(--etat-afaire);
  border-color: var(--etat-afaire);
}

.sn-toast--warning {
  background: var(--fond-intitule);
  color: var(--texte-faible);
  border-color: var(--bord-fort);
}

.sn-toast--info {
  background: var(--etat-acquis-fond);
  color: var(--etat-acquis);
  border-color: var(--etat-acquis);
}

@keyframes sn-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sn-toast-in {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sn-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(1.25rem);
  }
}

@keyframes sn-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-toast,
  .sn-toast--enter,
  .sn-toast--leaving,
  .sn-toast__progress {
    animation: none !important;
  }
  .sn-toast--enter {
    opacity: 1;
    transform: none;
  }
}

/* ===========================================================================
   DEUX COMPOSITIONS D'INFORMATION (pages Cliniques et Pharmacies)
   =========================================================================== */

/* L'organigramme : l'établissement, puis ses cabinets, reliés par un trait.
   Le trait dit « dépend de » ; il n'est pas un décor. */
.so-organigramme__racine {
  max-width: 560px;
  padding: 24px 28px;
  background: var(--c);
  color: var(--c-sur);
}

.so-organigramme__racine .so-organigramme__nom { color: var(--c-sur); }

.so-organigramme__nom {
  margin: 0;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: var(--so-t-h3);
  font-weight: 400;
  line-height: 1.2;
}

.so-organigramme__texte { margin: 8px 0 0; font-size: var(--so-t-petit); line-height: 1.55; }

.so-organigramme__branches {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  border-left: 1px solid var(--so-nuit);
  margin-left: 28px;
}

.so-organigramme__branche {
  position: relative;
  padding: 24px 0 24px 24px;
  border-bottom: 1px solid var(--so-filet);
}

.so-organigramme__branche::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 38px;
  width: 40px;
  height: 1px;
  background: var(--so-nuit);
}

.so-organigramme__branche .so-organigramme__texte { color: var(--so-encre); }

@media (min-width: 1024px) {
  .so-organigramme__branches {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0 var(--so-colonne);
    margin: 40px 0 0;
    padding: 40px 0 0;
    border-left: 0;
    border-top: 1px solid var(--so-titre);
  }
  .so-organigramme__racine { margin-left: 0; }
  .so-organigramme { position: relative; }
  .so-organigramme__branches::before {
    content: "";
    position: absolute;
    left: 28px;
    top: -40px;
    width: 1px;
    height: 40px;
    background: var(--so-nuit);
  }
  .so-organigramme__branche { padding: 24px 0 0; border-bottom: 0; border-top: 0; }
  .so-organigramme__branche::before { left: 0; top: -40px; width: 1px; height: 40px; }
}

/* La suite de gestes : numérotée, parce que l'ordre compte. */
.so-gestes-suite { margin: 0; padding: 0; list-style: none; counter-reset: geste; border-top: 1px solid var(--so-titre); }

.so-gestes-suite__pas {
  position: relative;
  padding: 22px 0 22px 64px;
  border-bottom: 1px solid var(--so-filet);
  counter-increment: geste;
}

.so-gestes-suite__pas::before {
  content: counter(geste);
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--so-titre);
  font-family: var(--so-fam-titre);
  font-size: 2.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.so-gestes-suite__nom { margin: 0; color: var(--so-titre); font-family: var(--so-fam-texte); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.so-gestes-suite__texte { margin: 6px 0 0; color: var(--so-encre); line-height: 1.6; max-width: 56ch; }

/* Le champ piège des formulaires publics (lot 0 des mini-sites) : hors de l'écran,
   jamais vu, jamais atteint au clavier. */
.so-piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
