/* Groupe médical Saint Sauveur — feuille de style du site
   Bleu roi nuit (façade, logo) · turquoise (bâton d'Esculape) · pierre et calcaire chauds (la pierre du logo)
   · rouge des croix réservé aux urgences. Titres Fraunces (serif humaniste), textes Inter.
   Signature : photos en arche. Sections alternant clair (calcaire/pierre) et profond (nuit). */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/polices/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/polices/fraunces-italique.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/polices/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Constantes de marque */
  --nuit: #0a1640;
  --nuit-2: #10205a;
  --nuit-3: #060d29;
  --roi: #2343b8;
  --turquoise: #3cc8cf;
  --turquoise-fonce: #0b6d76;
  --croix: #d7262e;
  --sur-nuit: #f4f1ea;
  --sur-nuit-doux: #b9c2dc;
  --trait-nuit: rgb(255 255 255 / 0.14);
  /* Surfaces claires (thème) */
  --calcaire: #f8f6f1;
  --pierre: #ebe7de;
  --pierre-2: #dcd6ca;
  --surface: #ffffff;
  --encre: #0e1838;
  --doux: #4f5a74;
  --trait: #d9d3c6;
  --accent-texte: #2343b8;
  --turquoise-texte: #0b6d76;
  --ombre: 0 30px 60px -36px rgb(10 22 64 / 0.55);
  /* Typo et grille */
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur: 76rem;
  --gouttiere: clamp(1rem, 4vw, 2.75rem);
  --rayon: 1.25rem;
  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --calcaire: #0b1433;
    --pierre: #0f1a40;
    --pierre-2: #1a2756;
    --surface: #131f4a;
    --encre: #edf0f7;
    --doux: #aab4cc;
    --trait: #26335f;
    --accent-texte: #9db2ff;
    --turquoise-texte: #6fdde2;
    --nuit: #070f2e;
    --nuit-2: #0d1a4a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --calcaire: #0b1433;
  --pierre: #0f1a40;
  --pierre-2: #1a2756;
  --surface: #131f4a;
  --encre: #edf0f7;
  --doux: #aab4cc;
  --trait: #26335f;
  --accent-texte: #9db2ff;
  --turquoise-texte: #6fdde2;
  --nuit: #070f2e;
  --nuit-2: #0d1a4a;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--calcaire);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-texte); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.015em; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--accent-texte); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
.enveloppe { max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.sur {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.78rem/1.2 var(--texte); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--turquoise-texte); margin-bottom: 1rem;
}
.sur::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.chapeau { color: var(--doux); font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 40rem; margin-top: 1.1rem; }
.doux { color: var(--doux); }
.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1rem; background: var(--surface); color: var(--encre); border-radius: 0.6rem; }
.evitement:focus { top: 1rem; }

/* Croix (rappel des croix rouges de la façade) */
.croix { display: inline-block; width: 1rem; height: 1rem; flex: none; background: var(--croix);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.croix.grande { width: 2.5rem; height: 2.5rem; }
.croix.petite { width: 1.1rem; height: 1.1rem; }

/* Boutons */
.bouton {
  --fond-b: var(--roi); --texte-b: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--fond-b); color: var(--texte-b);
  font: 600 1rem/1.2 var(--texte); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: transform 0.25s var(--sortie), box-shadow 0.25s var(--sortie), background-color 0.2s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgb(10 22 64 / 0.6); }
.bouton:active { transform: translateY(0); }
.bouton-clair { --fond-b: var(--turquoise); --texte-b: #04122e; }
.bouton-clair:hover { --fond-b: #67dade; }
.bouton-contour { --fond-b: transparent; --texte-b: var(--sur-nuit); border-color: rgb(255 255 255 / 0.4); }
.bouton-contour:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); }
.lien-fleche { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--accent-texte); min-height: 2.75rem; }
.lien-fleche span { transition: transform 0.25s var(--sortie); }
.lien-fleche:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .bouton, .lien-fleche span { transition: none; } .bouton:hover { transform: none; } }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 22 64 / 0.92);
  background: color-mix(in srgb, var(--nuit) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--trait-nuit); color: var(--sur-nuit);
}
.entete-ligne { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.marque img { width: 2.6rem; height: auto; background: #fff; border-radius: 50%; padding: 1px; }
.marque b { display: block; font: 600 1.15rem/1.1 var(--titre); }
.marque small { display: block; font-size: 0.78rem; color: var(--sur-nuit-doux); letter-spacing: 0.02em; white-space: nowrap; }
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--sur-nuit); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: 0.5rem; background: linear-gradient(var(--turquoise), var(--turquoise)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--sortie); }
.nav a:hover { background-size: 100% 2px; }
.bouton-appel { --fond-b: var(--turquoise); --texte-b: #04122e; min-height: 2.75rem; padding: 0.55rem 1.1rem; }
@media (max-width: 62rem) { .nav { display: none; } }
@media (max-width: 30rem) { .bouton-appel span { display: none; } .bouton-appel { width: 2.9rem; padding: 0; } .marque small { font-size: 0.72rem; } }

/* HERO */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgb(60 200 207 / 0.16), transparent 60%),
    radial-gradient(50rem 40rem at 0% 100%, rgb(35 67 184 / 0.45), transparent 60%),
    var(--nuit);
  color: var(--sur-nuit);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.hero-trame { position: absolute; z-index: -1; width: min(70rem, 140vw); right: -18rem; top: -14rem; fill: none; stroke: rgb(255 255 255 / 0.06); stroke-width: 1.2; }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pastille-dispo {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  border: 1px solid rgb(60 200 207 / 0.45); border-radius: 999px; background: rgb(60 200 207 / 0.1);
  font-size: 0.9rem; font-weight: 600; color: #c9f3f5;
}
.point { position: relative; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #4be3a0; }
.point::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4be3a0; animation: onde 2.2s var(--sortie) 3; }
@keyframes onde { to { transform: scale(3); opacity: 0; } }
.hero-sur { margin-top: 1.6rem; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sur-nuit-doux); font-weight: 600; }
.hero h1 { margin-top: 0.8rem; font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; }
.hero h1 em { display: block; color: var(--turquoise); }
.hero-lead { margin-top: 1.5rem; max-width: 33rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: #dde3f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero .lien-fleche { margin-top: 0.75rem; color: #c9f3f5; }
.hero-raccourcis { list-style: none; padding: 1.4rem 0 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--trait-nuit); }
.hero-raccourcis a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.95rem; border-radius: 999px;
  color: var(--sur-nuit); text-decoration: none; font-size: 0.93rem; background: rgb(255 255 255 / 0.07); border: 1px solid var(--trait-nuit);
  transition: background-color 0.2s, border-color 0.2s;
}
.hero-raccourcis a:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.3); }

.hero-visuel { position: relative; }
.arche { margin: 0; overflow: hidden; border-radius: 999px 999px var(--rayon) var(--rayon); background: var(--nuit-2); box-shadow: var(--ombre); }
.hero .arche { aspect-ratio: 1 / 0.95; border-radius: 48% 48% var(--rayon) var(--rayon) / 40% 40% var(--rayon) var(--rayon); }
.hero .arche img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity 0.45s ease, transform 6s var(--sortie); }
.hero .arche img.change { opacity: 0; }
.hero-visuel:hover .arche img { transform: scale(1.03); }
.hero-legende { margin-top: 0.85rem; font: italic 400 1rem/1.3 var(--titre); color: var(--sur-nuit-doux); min-height: 1.3em; }
.vitrine-choix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.85rem; }
.vitrine-choix button {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer; color: var(--sur-nuit-doux);
  font: 500 0.78rem/1.2 var(--texte); text-align: left; min-height: 2.75rem;
}
.vitrine-choix img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.6rem; opacity: 0.55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.2s, outline-color 0.2s; }
.vitrine-choix span { display: block; margin-top: 0.35rem; }
.vitrine-choix button:hover img { opacity: 0.85; }
.vitrine-choix button[aria-pressed="true"] { color: #fff; }
.vitrine-choix button[aria-pressed="true"] img { opacity: 1; outline-color: var(--turquoise); }
.carte-urgence {
  position: absolute; right: clamp(-1.5rem, -2vw, -0.5rem); top: 34%;
  display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; border-radius: 1rem;
  background: #fff; color: #0e1838; text-decoration: none; box-shadow: 0 24px 40px -20px rgb(0 0 0 / 0.55);
  transition: transform 0.3s var(--sortie);
}
.carte-urgence:hover { transform: translateY(-3px); }
.carte-urgence-croix { width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; background: #fdecec; display: grid; place-items: center; flex: none; }
.carte-urgence-croix::before { content: ""; width: 1.1rem; height: 1.1rem; background: var(--croix); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.carte-urgence b { display: block; font-size: 0.98rem; }
.carte-urgence small { display: block; font-size: 0.8rem; color: #4f5a74; }
@media (prefers-reduced-motion: reduce) { .point::after { animation: none; } .hero .arche img { transition: none; } .hero-visuel:hover .arche img { transform: none; } }
@media (max-width: 60rem) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero .arche { aspect-ratio: 4 / 3; }
  .carte-urgence { position: static; margin-top: 1rem; }
  .hero-trame { right: -22rem; top: -10rem; }
}

/* A — DISPONIBILITÉ */
.dispo { background: var(--pierre); padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; overflow: hidden; }
.dispo-grille { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.dispo-chiffre {
  align-self: center; display: flex; align-items: baseline; font: 500 clamp(7rem, 21vw, 17rem)/0.82 var(--titre);
  letter-spacing: -0.05em; color: var(--accent-texte);
}
.dispo-chiffre .barre { color: var(--turquoise); font-style: italic; font-weight: 400; margin-inline: -0.06em; }
.dispo-texte h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.dispo-texte p:last-child { margin-top: 1.1rem; color: var(--doux); font-size: 1.1rem; max-width: 34rem; }
.dispo-cartes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dispo-carte { background: var(--surface); border-radius: var(--rayon); padding: 1.6rem; border: 1px solid var(--trait); }
.dispo-carte h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; margin-bottom: 0.6rem; }
.dispo-carte p { color: var(--doux); font-size: 0.98rem; }
.dispo-carte-urgence { border-top: 4px solid var(--croix); }
.numero { display: inline-block; margin-top: 0.9rem; font: 600 1.6rem/1.1 var(--titre); color: var(--encre); text-decoration: none; font-variant-numeric: tabular-nums; border-bottom: 2px solid var(--croix); }
.note-dispo { margin-top: 0.9rem !important; padding-top: 0.9rem; border-top: 1px dashed var(--trait); font-size: 0.9rem !important; }
@media (max-width: 60rem) {
  .dispo-grille { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) { .dispo-cartes { grid-template-columns: 1fr; } }

/* B — SERVICES (bento éditorial) */
.services { padding-block: clamp(4.5rem, 10vw, 8rem); }
.entete-section { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "mat mat mat mat mat mat mat urg urg urg urg urg"
    "mat mat mat mat mat mat mat img img img img img"
    "chi chi chi chi hos hos hos hos con con con con"
    "lab lab lab lab pha pha pha pha con con con con"
    "soi soi soi den den den oph oph oph fib fib fib";
}
.t-maternite { grid-area: mat; } .t-urgences { grid-area: urg; } .t-imagerie { grid-area: img; }
.t-chirurgie { grid-area: chi; } .t-hospit { grid-area: hos; } .t-consult { grid-area: con; }
.t-labo { grid-area: lab; } .t-pharma { grid-area: pha; } .t-soins { grid-area: soi; }
.t-dentaire { grid-area: den; } .t-ophtalmo { grid-area: oph; } .t-fibro { grid-area: fib; }
.tuile { position: relative; overflow: hidden; border-radius: var(--rayon); padding: 1.6rem; min-width: 0; background: var(--surface); border: 1px solid var(--trait); scroll-margin-top: 6rem; }
.tuile h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); hyphens: auto; overflow-wrap: break-word; }
.tuile p { color: var(--doux); margin-top: 0.5rem; font-size: 0.98rem; }
.tuile-etiquette { font: 600 0.72rem/1.2 var(--texte) !important; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.5rem !important; }
/* Tuiles photo : image plein cadre, texte sur dégradé */
.tuile-photo { padding: 0; min-height: 18rem; display: flex; align-items: flex-end; border: 0; background: var(--nuit); color: #fff; }
.tuile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--sortie); }
.tuile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 13 41 / 0) 25%, rgb(6 13 41 / 0.55) 55%, rgb(6 13 41 / 0.92) 100%); }
.tuile-corps h3, .tuile-corps p { text-shadow: 0 1px 12px rgb(6 13 41 / 0.55); }
.tuile-photo:hover img { transform: scale(1.045); }
.tuile-corps { position: relative; z-index: 1; padding: 1.6rem; max-width: 34rem; }
.tuile-photo p { color: #e3e8f5; }
.tuile-photo .tuile-etiquette { color: #8beef1; text-shadow: 0 1px 3px rgb(6 13 41 / 0.9), 0 0 14px rgb(6 13 41 / 0.7); }
.t-maternite { min-height: 34rem; }
.t-maternite h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.tuile-sombre { background: var(--nuit); color: var(--sur-nuit); border: 1px solid var(--trait-nuit); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.25rem; min-height: 16rem; }
.tuile-sombre .croix { position: absolute; top: 1.6rem; left: 1.6rem; }
.tuile-sombre h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tuile-sombre p { color: var(--sur-nuit-doux); }
.tuile-sombre .lien-fleche { color: #fff; font: 600 1.35rem/1.2 var(--titre); margin-top: 0.5rem; }
.tuile-pierre { background: var(--pierre); border-color: transparent; }
.tuile-pierre .tuile-etiquette { color: var(--turquoise-texte); }
.tuile-note { font-size: 0.9rem !important; margin-top: 1rem !important; }
.specialites { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.specialites li { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--trait); font-size: 0.9rem; }
.tuile-icone { display: flex; flex-direction: column; gap: 0.2rem; transition: border-color 0.25s, transform 0.3s var(--sortie); }
.tuile-icone:hover { border-color: var(--turquoise-texte); transform: translateY(-3px); }
.ico-grand { width: 3rem; height: 3rem; padding: 0.7rem; margin-bottom: 1rem; border-radius: 0.9rem; fill: none; stroke: var(--turquoise-texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: rgb(60 200 207 / 0.16); background: color-mix(in srgb, var(--turquoise) 16%, transparent); }
.tuile-photo-petite, .t-dentaire { min-height: 15rem; }
.tuile-photo-petite .tuile-corps, .t-dentaire .tuile-corps { padding: 1.3rem; }
.tuile-photo-petite h3, .t-dentaire h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
.tuile-photo-petite p, .t-dentaire p { font-size: 0.93rem; }
@media (prefers-reduced-motion: reduce) { .tuile-photo img, .tuile-icone { transition: none; } .tuile-photo:hover img, .tuile-icone:hover { transform: none; } }
@media (max-width: 64rem) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "mat mat mat mat mat mat"
      "urg urg urg img img img"
      "chi chi chi hos hos hos"
      "con con con con con con"
      "lab lab pha pha soi soi"
      "den den oph oph fib fib";
  }
  .t-maternite { min-height: 26rem; }
}
@media (max-width: 40rem) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "mat mat" "urg urg" "img img" "chi chi" "hos hos" "con con"
      "lab lab" "pha pha" "soi soi" "den den" "oph oph" "fib fib";
  }
  .t-maternite { min-height: 24rem; }
  .tuile-photo { min-height: 16rem; }
  .tuile-photo-petite, .t-dentaire { min-height: 12.5rem; }
}

/* C — PLATEAU TECHNIQUE */
.plateau { background: var(--nuit); color: var(--sur-nuit); padding-block: clamp(4.5rem, 10vw, 8rem); }
.plateau .sur { color: var(--turquoise); }
.plateau h2 em { color: var(--turquoise); }
.plateau .chapeau { color: var(--sur-nuit-doux); }
.plateau-entete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.galerie {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(12rem, 16rem)) minmax(11rem, 13rem);
  grid-template-areas: "a a b d" "a a c d" "e f g h";
}
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; }
.g-e { grid-area: e; } .g-f { grid-area: f; } .g-g { grid-area: g; } .g-h { grid-area: h; }
.galerie li { min-width: 0; }
.galerie button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--rayon); overflow: hidden; cursor: zoom-in; background: var(--nuit-2); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--sortie), filter 0.4s; }
.g-a button { border-radius: 999px 999px var(--rayon) var(--rayon) / 55% 55% var(--rayon) var(--rayon); }
.galerie button:hover img { transform: scale(1.05); }
.g-legende {
  position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgb(6 13 41 / 0.78); color: #fff; font: 500 0.88rem/1.2 var(--texte);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.g-a .g-legende { font: italic 400 1.15rem/1.2 var(--titre); padding: 0.5rem 1rem; left: 1.1rem; bottom: 1.1rem; }
.plateau-note { margin-top: 1.25rem; color: var(--sur-nuit-doux); font-size: 0.92rem; }
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } .galerie button:hover img { transform: none; } }
@media (max-width: 60rem) {
  .plateau-entete { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 13rem;
    grid-template-areas: "a a" "a a" "b c" "d e" "d f" "g h"; }
}
@media (max-width: 40rem) {
  /* Rail horizontal au doigt, l'image suivante dépasse pour inviter au geste */
  .galerie {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; grid-template-areas: none; grid-template-rows: 17rem; grid-auto-rows: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gouttiere) * -1); padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere);
    scrollbar-width: none;
  }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie li { grid-area: auto; scroll-snap-align: start; }
  .g-a button { border-radius: var(--rayon); }
}

/* Visionneuse (lightbox native <dialog>) */
.visionneuse { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(4 9 28 / 0.94); color: #fff; }
.visionneuse::backdrop { background: rgb(4 9 28 / 0.7); }
.visionneuse figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 4.5rem 1rem 1.5rem; }
.visionneuse img { max-width: min(100%, 80rem); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0.75rem; }
.visionneuse figcaption { margin-top: 1rem; font: italic 400 1.2rem/1.3 var(--titre); text-align: center; }
.visionneuse[open] img { animation: apparition 0.35s var(--sortie); }
@keyframes apparition { from { opacity: 0; transform: scale(0.97); } }
.v-fermer, .v-nav { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.08); color: #fff; cursor: pointer; }
.v-fermer:hover, .v-nav:hover { background: rgb(255 255 255 / 0.18); }
.v-fermer { top: 1rem; right: 1rem; }
.v-nav { top: 50%; transform: translateY(-50%); }
.v-prec { left: 1rem; } .v-suiv { right: 1rem; }
@media (max-width: 40rem) { .v-nav { top: auto; bottom: 1rem; transform: none; } .visionneuse figure { padding-bottom: 5.5rem; } .visionneuse figcaption { padding-inline: 0.5rem; font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .visionneuse[open] img { animation: none; } }

/* D — L'HUMAIN */
.humain { background: var(--pierre); padding-block: clamp(4.5rem, 10vw, 8rem); }
.humain-grille {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "citation photo" "engagements photo" "engagements encart";
}
.humain-citation { grid-area: citation; }
.humain-citation h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.12; }
.engagements { grid-area: engagements; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.engagements li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--pierre-2); }
.engagements .num { grid-row: span 2; font: italic 400 2.2rem/1 var(--titre); color: var(--turquoise-texte); }
.engagements p { color: var(--doux); margin-top: 0.35rem; }
.humain-photo { grid-area: photo; align-self: start; aspect-ratio: 4 / 5; }
.humain-photo img { width: 100%; height: 100%; object-fit: cover; }
.encart { grid-area: encart; display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--trait); }
.encart img { width: 4rem; flex: none; background: #fff; border-radius: 50%; }
.encart-titre { font: 600 1.05rem/1.3 var(--titre); }
.encart-texte { margin-top: 0.3rem; font: italic 400 1rem/1.4 var(--titre); color: var(--doux); }
.encart cite { display: block; font: normal 500 0.8rem/1.3 var(--texte); margin-top: 0.2rem; letter-spacing: 0.04em; }
@media (max-width: 60rem) {
  .humain-grille { grid-template-columns: 1fr; grid-template-areas: "citation" "photo" "engagements" "encart"; }
  .humain-photo { aspect-ratio: 4 / 3; }
}

/* E — VOTRE VISITE */
.visite { padding-block: clamp(4.5rem, 10vw, 8rem); }
.parcours { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.etape { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.2rem; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.etape-num { font: 500 3rem/1 var(--titre); color: var(--pierre-2); margin-bottom: 1rem; }
.etape h3 { font-size: 1.25rem; }
.etape p { color: var(--doux); margin-top: 0.5rem; font-size: 0.97rem; flex: 1; }
.etape p b { color: var(--encre); font-weight: 600; }
.etape .lien-fleche { margin-top: 0.8rem; align-self: flex-start; }
@media (max-width: 64rem) { .parcours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .parcours { grid-template-columns: 1fr; } }

.qr-bloc { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: calc(var(--rayon) * 1.4); background: var(--pierre); }
.qr-titre { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.qr-etapes { margin: 1.2rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; color: var(--doux); }
.qr-etapes b { color: var(--encre); }
.qr-etapes li::marker { color: var(--turquoise-texte); font-weight: 700; }
.confidentialite-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--doux); border-left: 3px solid var(--turquoise); padding-left: 0.9rem; }
.recu-zone { justify-self: center; }
.recu {
  width: min(100%, 17rem); background: #fdfdfb; color: #111; border-radius: 0.3rem;
  padding: 1.1rem 1rem 1.4rem; font: 0.78rem/1.35 "Courier New", ui-monospace, monospace;
  box-shadow: 0 30px 50px -30px rgb(10 22 64 / 0.6); transform: rotate(-2.5deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
}
.recu .c { text-align: center; }
.recu hr { border: 0; border-top: 1px dashed #555; margin: 0.5rem 0; }
.recu .l { display: flex; justify-content: space-between; gap: 0.5rem; }
.recu .qr-ligne { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.4rem; }
.recu svg { width: 4.4rem; height: 4.4rem; flex: 0 0 auto; }
.recu small { font-size: 0.68rem; }
.exemple { font-size: 0.8rem; color: var(--doux); text-align: center; margin-top: 0.9rem; }
@media (max-width: 52rem) { .qr-bloc { grid-template-columns: 1fr; } }

/* F — CONTACT */
.contact { position: relative; background: var(--nuit); color: var(--sur-nuit); padding-bottom: clamp(4rem, 9vw, 7rem); }
.contact-panorama { position: relative; margin: 0; height: clamp(14rem, 36vw, 26rem); overflow: hidden; }
.contact-panorama img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.contact-panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 22 64 / 0) 35%, var(--nuit) 100%); }
.contact-grille { position: relative; margin-top: clamp(-6rem, -8vw, -3rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.contact .sur { color: var(--turquoise); }
.contact h2 em { color: var(--turquoise); }
.contact h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.contact-numero { display: block; margin-top: 2rem; font: 500 clamp(2.4rem, 6vw, 4.2rem)/1 var(--titre); color: #fff; text-decoration: none; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.contact-numero small { display: block; font: 600 0.78rem/1.2 var(--texte); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sur-nuit-doux); margin-bottom: 0.6rem; }
.contact-numero:hover { color: var(--turquoise); }
.contact-infos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--trait-nuit); }
.contact-infos div { padding: 1.3rem 1rem 1.3rem 0; border-bottom: 1px solid var(--trait-nuit); min-width: 0; }
.contact-infos dt { font: 600 0.75rem/1.2 var(--texte); letter-spacing: 0.14em; text-transform: uppercase; color: var(--turquoise); margin-bottom: 0.5rem; }
.contact-infos dd { margin: 0; color: var(--sur-nuit); font-size: 0.98rem; overflow-wrap: anywhere; }
.contact-infos .doux { color: var(--sur-nuit-doux); font-size: 0.88rem; }
.contact-infos a { color: #fff; }
@media (max-width: 60rem) { .contact-grille { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .contact-infos { grid-template-columns: 1fr; } }

/* Pied de page */
.pied { background: var(--nuit-3); color: var(--sur-nuit-doux); padding-block: 3rem; border-top: 1px solid var(--trait-nuit); }
.pied-grille { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.pied-marque { display: flex; align-items: center; gap: 0.9rem; }
.pied-marque img { width: 3.2rem; background: #fff; border-radius: 50%; }
.pied-marque b { color: #fff; font: 600 1.1rem/1.2 var(--titre); }
.pied-marque p { font: italic 400 0.98rem/1.35 var(--titre); }
.pied-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; justify-content: center; }
.pied-nav a, .pied a { color: var(--sur-nuit); text-decoration: none; }
.pied-nav a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.pied-nav a:hover, .pied-mentions a:hover { color: var(--turquoise); }
.pied-mentions { font-size: 0.85rem; text-align: right; }
@media (max-width: 60rem) { .pied-grille { grid-template-columns: 1fr; text-align: left; } .pied-nav { justify-content: flex-start; } .pied-mentions { text-align: left; } }

/* Barre d'actions mobile (toujours à portée de pouce) */
.barre-mobile { display: none; }
@media (max-width: 48rem) {
  .barre-mobile {
    position: fixed; z-index: 60; left: 0.6rem; right: 0.6rem; bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 0.25rem; padding: 0.35rem;
    border-radius: 1.1rem; background: #0a1640; background: color-mix(in srgb, var(--nuit) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.6);
    border: 1px solid var(--trait-nuit);
  }
  .barre-mobile a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-height: 3.4rem;
    border-radius: 0.8rem; color: var(--sur-nuit); text-decoration: none; font-size: 0.75rem; font-weight: 600;
  }
  .barre-mobile .bm-appel { background: var(--turquoise); color: #04122e; font-size: 0.85rem; }
  body { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
}

/* Révélation au défilement (ajoutée par le script, uniquement sous la ligne de flottaison) */
.a-reveler { opacity: 0; transform: translateY(26px); }
.a-reveler.vu { opacity: 1; transform: none; transition: opacity 0.8s var(--sortie), transform 0.8s var(--sortie); }
@media (prefers-reduced-motion: reduce) { .a-reveler { opacity: 1; transform: none; } }

/* Pages de texte (confidentialité, 404) */
.page-texte { padding-block: clamp(3rem, 8vw, 6rem); }
.texte { max-width: 44rem; }
.texte h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
.texte h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
.texte p, .texte li { color: var(--encre); }
.texte p + p { margin-top: 0.9rem; }
.texte ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.page-404 { min-height: 60vh; display: grid; align-content: center; }
.page-404 .grand { font: 500 clamp(6rem, 18vw, 11rem)/0.9 var(--titre); color: var(--accent-texte); letter-spacing: -0.04em; }
.page-404 .actions-404 { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.bouton-sombre { --fond-b: var(--roi); --texte-b: #fff; }
.bouton-ligne { --fond-b: transparent; --texte-b: var(--accent-texte); border-color: currentColor; }

/* ============================================================
   Groupe médical Saint Sauveur — compléments au gabarit commun
   (pas encore de photos des locaux : zones graphiques à la place)
   ============================================================ */

/* Logo carré : coins arrondis plutôt qu'un cercle (le texte en arc serait coupé) */
.marque img, .pied-marque img, .encart img { border-radius: 0.6rem; padding: 2px; background: #fff; }
.marque img { width: 2.9rem; }

/* HERO : arche graphique avec le logo */
.hero .arche-logo {
  position: relative; display: grid; place-items: center;
  background:
    radial-gradient(28rem 22rem at 50% 38%, rgb(255 255 255 / 0.10), transparent 70%),
    linear-gradient(160deg, #2343b8 0%, #10205a 62%, #0a1640 100%);
}
.arche-logo .anneaux { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgb(255 255 255 / 0.09); stroke-width: 1.2; }
.arche-logo .carte-logo {
  position: relative; width: min(58%, 20rem); aspect-ratio: 1; display: grid; place-items: center;
  background: #fff; border-radius: 1.6rem; padding: 6%; margin-top: 8%;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.65), 0 0 0 10px rgb(255 255 255 / 0.06);
}
.arche-logo .carte-logo img { width: 100%; height: auto; }
.hero-legende-fixe { margin-top: 0.85rem; font: italic 400 1rem/1.3 var(--titre); color: var(--sur-nuit-doux); }

/* SERVICES : tuiles graphiques (dégradé + pictogramme) à la place des photos */
.tuile-graphique {
  background:
    radial-gradient(22rem 16rem at 100% 0%, rgb(60 200 207 / 0.16), transparent 70%),
    linear-gradient(155deg, var(--nuit-2) 0%, var(--nuit) 70%);
}
.tuile-graphique::after { display: none; }
.tuile-graphique.t-maternite, .tuile-graphique.t-hospit, .tuile-graphique.t-pharma, .tuile-graphique.t-fibro {
  background:
    radial-gradient(24rem 18rem at 100% 0%, rgb(255 255 255 / 0.12), transparent 70%),
    linear-gradient(155deg, #2343b8 0%, #132a80 75%);
}
.tuile-picto {
  position: absolute; top: 1.5rem; left: 1.5rem; width: 3.1rem; height: 3.1rem; padding: 0.7rem;
  border-radius: 0.9rem; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
  fill: none; stroke: #8beef1; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.tuile-filigrane {
  position: absolute; right: -2.5rem; bottom: -2.5rem; width: 13rem; height: 13rem;
  fill: none; stroke: rgb(255 255 255 / 0.06); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.9s var(--sortie);
}
.tuile-graphique:hover .tuile-filigrane { transform: scale(1.06) rotate(-3deg); }
.t-maternite .tuile-filigrane { width: 22rem; height: 22rem; right: -3rem; bottom: -3rem; }
.tuile-photo-petite .tuile-picto, .t-dentaire .tuile-picto { top: 1.2rem; left: 1.2rem; width: 2.7rem; height: 2.7rem; padding: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .tuile-graphique:hover .tuile-filigrane { transform: none; } }

/* L'HUMAIN : arche graphique (croix et cœur, repris du logo) */
.humain-photo.arche-motif {
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(20rem 18rem at 50% 30%, rgb(255 255 255 / 0.12), transparent 70%),
    linear-gradient(165deg, #2343b8 0%, #10205a 70%);
}
.arche-motif .anneaux { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgb(255 255 255 / 0.08); stroke-width: 1.2; }
.arche-motif .motif { position: relative; width: 52%; height: auto; margin-top: 10%; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 0.35)); }

/* CONTACT : pas de vue aérienne, simple marge haute */
.contact.sans-panorama { padding-top: clamp(4.5rem, 10vw, 7.5rem); }
.contact.sans-panorama .contact-grille { margin-top: 0; }
.contact-numero-2 { display: block; margin-top: 0.35rem; font: 500 clamp(1.3rem, 2.6vw, 1.8rem)/1.2 var(--titre); color: var(--sur-nuit); text-decoration: none; }
.contact-numero-2:hover { color: #fff; text-decoration: underline; }

/* VOTRE VISITE : 3 étapes (pas encore de QR code sur les reçus) */
@media (min-width: 64.01rem) { .parcours-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Planche de pictogrammes invisible */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Carte urgences : en bas à gauche de l'arche pour ne pas masquer le logo */
@media (min-width: 60.01rem) { .hero .carte-urgence { top: auto; bottom: 3.2rem; right: auto; left: clamp(-1.5rem, -2vw, -0.5rem); } }
@media (max-width: 60rem) { .hero .arche-logo .carte-logo { width: min(46%, 15rem); margin-top: 10%; } }
