:root {
  --blanc: #FFFFFF; --encre: #0D1220; --texte: #2F3747; --sourdine: #6F7889; --filet: #E4E7EC; --panneau: #F4F5F7;
  --accent: #1F6BFF; --accent-clair: #E6F0FF;
  --police: "Geist", "Inter", system-ui, -apple-system, sans-serif; --gutter: clamp(20px, 4vw, 48px); --max: 1120px; --rayon: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: #E6E4F8; } /* teinte reprise par Safari pour ses barres (haut et bas) */
body { margin: 0; font-family: var(--police); font-size: 1.02rem; line-height: 1.55; color: var(--encre); background: var(--blanc); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(40px, 6vw, 88px) 0; }
section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sous { margin-top: 12px; color: var(--sourdine); max-width: 38em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--encre); background: var(--encre); color: var(--blanc); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.btn:hover { background: #262F44; border-color: #262F44; }
.btn.ghost { background: transparent; color: var(--encre); border-color: var(--filet); }
.btn.ghost:hover { border-color: var(--encre); background: transparent; }
.btn.petit { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn:disabled { opacity: .5; cursor: default; }

.barre { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--filet); }
.barre .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.barre .nom { font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre .actions { display: flex; gap: 8px; }

.hero { padding-top: clamp(48px, 9vw, 120px); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); max-width: 13em; }
.hero .accroche { margin-top: 20px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--texte); max-width: 32em; }
.hero .adresse { margin-top: 14px; color: var(--sourdine); }
.hero .boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.photos { padding-top: 0; }
.photos .grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.photos figure { margin: 0; border-radius: var(--rayon); overflow: hidden; background: var(--panneau); aspect-ratio: 4 / 3; }
.photos figure:first-child { grid-column: span 2; aspect-ratio: auto; }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Reservation */
.panneau { background: var(--panneau); border-radius: var(--rayon); padding: clamp(22px, 4vw, 44px); }
.panneau .tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.etapes { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: e; }
.etapes li { counter-increment: e; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .88rem; color: var(--sourdine); }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blanc); font-size: .78rem; }
.etapes li.actif { background: var(--blanc); color: var(--encre); }
.etapes li.actif::before, .etapes li.passee::before { background: var(--accent); color: var(--blanc); }
.etape h3 { font-size: 1.2rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.retour { border: 0; background: none; padding: 0; color: var(--sourdine); cursor: pointer; margin-bottom: 14px; }
.retour:hover { color: var(--encre); }
.rappel { margin-bottom: 18px; font-size: 1.05rem; }
.rappel b { font-weight: 500; }
.choix { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.choix button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; background: var(--blanc); text-align: left; cursor: pointer; transition: border-color .15s ease; }
.choix button:hover { border-color: var(--encre); }
.choix b { display: block; font-weight: 500; }
.choix small { display: block; color: var(--sourdine); font-size: .88rem; }
.choix .prix { color: var(--encre); white-space: nowrap; }
.praticiens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.praticiens button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--filet); background: var(--blanc); cursor: pointer; }
.praticiens button[aria-pressed="true"] { border-color: var(--encre); }
.jours-nav { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.rond { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--filet); background: var(--blanc); cursor: pointer; font-size: 1.1rem; }
.rond:disabled { opacity: .35; cursor: default; }
.jours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.jours::-webkit-scrollbar { display: none; }
.jour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 1px solid transparent; background: var(--blanc); cursor: pointer; font-variant-numeric: tabular-nums; }
.jour small { color: var(--sourdine); font-size: .78rem; }
.jour b { font-weight: 500; font-size: 1.15rem; }
.jour i { font-style: normal; font-size: .74rem; color: var(--accent); }
.jour:disabled { opacity: .4; cursor: default; }
.jour:disabled i { color: var(--sourdine); }
.jour[aria-pressed="true"] { border-color: var(--encre); }
.creneaux { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; min-height: 50px; }
.creneaux button { min-height: 46px; border-radius: 14px; border: 1px solid transparent; background: var(--blanc); cursor: pointer; font-variant-numeric: tabular-nums; }
.creneaux button:hover { border-color: var(--encre); }
.creneaux .vide { grid-column: 1 / -1; color: var(--sourdine); padding: 12px 0; }
form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--texte); }
input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--filet); border-radius: 14px; background: var(--blanc); color: var(--encre); }
input:focus { outline: none; border-color: var(--encre); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aide { font-size: .88rem; color: var(--sourdine); }
.erreur { color: #B42318; font-size: .95rem; }
form .btn { align-self: flex-start; }
.fait { text-align: center; padding: 20px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fait .coche { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--blanc); }
.fait .coche svg { width: 28px; height: 28px; }
.fait h3 { font-size: 1.5rem; margin: 0; }
.fait p { color: var(--texte); max-width: 30em; }

.presentation .texte { margin-top: 20px; max-width: 42em; font-size: 1.12rem; color: var(--texte); display: grid; gap: 14px; }
.tarifs { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--filet); }
.tarifs li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.tarifs b { font-weight: 500; }
.tarifs small { color: var(--sourdine); }
.tarifs .p { white-space: nowrap; }
.cartes { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cartes li { padding: 24px; border-radius: 20px; background: var(--panneau); display: flex; gap: 14px; align-items: center; }
.cartes .initiales { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-clair); color: var(--accent); font-weight: 500; }
.cartes b { display: block; font-weight: 500; }
.cartes small { color: var(--sourdine); }
.deux-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); }
.horaires { margin: 24px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; }
.horaires dt { color: var(--texte); }
.horaires dd { margin: 0; font-variant-numeric: tabular-nums; }
.horaires .plage { white-space: nowrap; }
.itineraire { margin-top: 14px; }
.horaires dd.ferme { color: var(--sourdine); }
.horaires .ajd { font-weight: 500; color: var(--encre); }
.adresse-grande { margin-top: 24px; font-size: 1.15rem; }

#tel-acces a { text-decoration: none; }
.carte-plan { margin-top: 20px; border-radius: var(--rayon); overflow: hidden; background: var(--panneau); aspect-ratio: 16 / 10; }
.carte-plan iframe { width: 100%; height: 100%; border: 0; display: block; }
.encart { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: var(--rayon); border: 1px solid var(--filet); }
.encart p { margin-top: 10px; color: var(--texte); max-width: 34em; }
.pied { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--filet); color: var(--sourdine); font-size: .92rem; }
.pied .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.propulse { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sourdine); }
.propulse:hover { color: var(--encre); }

@media (max-width: 760px) {
  .barre #tel-barre { display: none; }
  .deux, .deux-col { grid-template-columns: 1fr; }
  .photos figure:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .etapes li { font-size: 0; gap: 0; padding: 4px; }
  .etapes li::before { font-size: .78rem; }
  .tarifs li { grid-template-columns: minmax(0, 1fr) auto; }
  .tarifs li small.d { grid-column: 1; }
  form .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* ---------- Liquid Glass : le fond colore et le verre de l'accueil et de l'agenda ---------- */
/* Les lumieres : deux calques fixes, animes par transform seulement. La premiere tache prend la couleur de la clinique. */
.lumieres { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #E6E4F8; }
.lumieres::before, .lumieres::after { content: ""; position: absolute; inset: -14% -12%; will-change: transform; }
.lumieres::before { background:
    radial-gradient(34% 75% at 14% 42%, color-mix(in srgb, var(--accent) 80%, transparent), transparent 72%),
    radial-gradient(34% 75% at 40% 70%, rgba(127,179,255,.8), rgba(127,179,255,0) 72%),
    radial-gradient(34% 75% at 64% 36%, rgba(161,140,209,.85), rgba(161,140,209,0) 72%),
    radial-gradient(34% 75% at 88% 62%, rgba(251,194,235,.95), rgba(251,194,235,0) 72%),
    linear-gradient(180deg, #FFFFFF, #FFFFFF);
  animation: lumiere-a 24s ease-in-out infinite alternate; }
.lumieres::after { background:
    radial-gradient(28% 40% at 75% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    radial-gradient(26% 40% at 20% 80%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light; animation: lumiere-b 31s ease-in-out infinite alternate; }
@keyframes lumiere-a { to { transform: translate3d(6%, 4%, 0) scale(1.08); } }
@keyframes lumiere-b { to { transform: translate3d(-7%, -5%, 0) scale(1.1); } }
body { background: transparent; }

/* Verre clair : reflet en haut a gauche, liseré blanc, ombre longue. Deux backdrop-filter seulement : la barre et la reservation. */
.panneau, .cartes li, .membres li, .encart, .tarifs, .carte-plan, .horaires-bloc, .photos figure {
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.4)); border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 1.5px 1.5px 2px -1px rgba(255,255,255,.9), inset -1px -1px 2px -1px rgba(255,255,255,.45), 0 20px 40px -30px rgba(13,18,32,.35); }
.panneau { -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); background: rgba(255,255,255,.5); }

/* Barre : pilule de verre detachee du bord */
.barre { top: 12px; margin: 12px auto 0; width: calc(100% - 24px); max-width: calc(var(--max) - 16px); border: 0; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,.38));
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 1.5px 1.5px 2px -1px rgba(255,255,255,.95), 0 18px 40px -26px rgba(13,18,32,.45); }
.barre .wrap { height: 60px; padding: 0 8px 0 24px; }

/* Bouton principal en verre fume */
.btn:not(.ghost) { border-color: transparent; background: linear-gradient(160deg, rgba(13,18,32,.72), rgba(13,18,32,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 1.5px 1.5px 2px -1px rgba(255,255,255,.6), 0 14px 28px -16px rgba(13,18,32,.6); }
.btn:not(.ghost):hover { background: linear-gradient(160deg, rgba(13,18,32,.82), rgba(13,18,32,.96)); }
.btn.ghost, .rond, .praticiens button { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.9); }
.btn.ghost:hover { background: rgba(255,255,255,.8); border-color: var(--encre); }

/* Tuiles de la reservation : verre blanc plus dense */
.choix button, .jour, .creneaux button, .etapes li::before { background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 18px -14px rgba(13,18,32,.4); }
.choix button:hover, .creneaux button:hover { background: rgba(255,255,255,.9); }
.jour[aria-pressed="true"], .praticiens button[aria-pressed="true"] { background: rgba(255,255,255,.95); }
.etapes li.actif { background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
input { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.9); }
input:focus { background: rgba(255,255,255,.92); }

/* Listes et blocs de la page */
.tarifs { border: 0; border-radius: var(--rayon); padding: 4px 24px; }
.tarifs li { border-bottom-color: rgba(13,18,32,.08); }
.tarifs li:last-child { border-bottom: 0; }
.cartes .initiales { background: rgba(255,255,255,.75); }
.carte-plan { padding: 6px; }
.carte-plan iframe { border-radius: calc(var(--rayon) - 6px); }
.encart { border: 0; }
.pied { border-top-color: rgba(13,18,32,.08); }
@media (max-width: 760px) { .tarifs { padding: 4px 18px; } .barre .wrap { padding: 0 6px 0 18px; } }
@media (prefers-reduced-motion: reduce) { .lumieres::before, .lumieres::after { animation: none; } }
.hero .adresse, .sous, .tarifs small, .cartes small, .aide { color: #4E5768; }

/* Fiches praticiens (portrait, bio), descriptions des soins, infos pratiques */
.cartes li { flex-direction: column; align-items: stretch; }
.cartes { align-items: start; }
.tete-fiche { display: flex; gap: 14px; align-items: center; }
.portrait { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.cartes li.avec-bio .portrait { width: 84px; height: 84px; }
.bio { display: grid; gap: 10px; color: var(--texte); font-size: .97rem; }
.tarifs .n { display: flex; flex-direction: column; gap: 4px; }
.tarifs .desc { color: #4E5768; font-size: .93rem; max-width: 40em; }
#email-acces a { text-decoration: none; }
.infos { margin-top: 24px; padding: 22px 24px; border-radius: var(--rayon); background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.4)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 20px 40px -30px rgba(13,18,32,.35); }
.infos h3 { font-size: 1.1rem; margin-bottom: 10px; }
.infos #texte-infos { display: grid; gap: 8px; color: var(--texte); }

/* Bio : quatre lignes environ, fondu vers le bas, « Lire la suite » pour le reste */
.bio { max-height: 6.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.bio.ouverte, .bio.entiere { max-height: none; -webkit-mask-image: none; mask-image: none; }
.lire-suite { align-self: flex-start; margin-top: -4px; padding: 0; border: 0; background: none; color: var(--accent); font-size: .95rem; font-weight: 500; cursor: pointer; }
.lire-suite:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Un praticien seul : une carte large plutot qu'une colonne etroite */
.cartes:has(> li:only-child) { grid-template-columns: minmax(0, 720px); }

/* Horaires et acces en cartes de verre */
.acces .deux-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.horaires, .carte-acces { border-radius: var(--rayon); background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(255,255,255,.4));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 1.5px 1.5px 2px -1px rgba(255,255,255,.9), 0 20px 40px -30px rgba(13,18,32,.35); }
.horaires { padding: 10px; }
.tete-bloc { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 44px; margin-bottom: 20px; }
.etat-ouverture { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.7); font-size: .88rem; color: var(--texte); }
.etat-ouverture::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #98A2B3; }
.etat-ouverture.ouvert { color: #067647; }
.etat-ouverture.ouvert::before { background: #17B26A; box-shadow: 0 0 0 4px rgba(23,178,106,.15); }
.horaires { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.horaires li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.horaires li.ajd { background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 8px 18px -14px rgba(13,18,32,.4); }
.horaires .jour-nom { display: flex; flex-direction: column; color: var(--texte); }
.horaires li.ajd .jour-nom { color: var(--encre); font-weight: 500; }
.horaires .jour-nom small { font-size: .74rem; font-weight: 400; color: var(--accent); }
.horaires .plages { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.horaires .plage { white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.6); font-size: .9rem; font-variant-numeric: tabular-nums; }
.horaires li.ajd .plage { background: color-mix(in srgb, var(--accent) 12%, white); color: var(--encre); }
.horaires .plage.vide { background: transparent; color: #4E5768; }
.carte-acces { padding: 8px; }
.carte-acces .carte-plan { margin: 0; padding: 0; background: none; box-shadow: none; border-radius: calc(var(--rayon) - 8px); aspect-ratio: 16 / 9; }
.carte-acces .carte-plan iframe { border-radius: calc(var(--rayon) - 8px); filter: saturate(.85); }
.coordonnees { list-style: none; margin: 0; padding: 18px 16px 6px; display: grid; gap: 12px; }
.coordonnees li { display: flex; align-items: flex-start; gap: 12px; color: var(--encre); }
.coordonnees svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; text-underline-offset: 3px; }
#ligne-adresse { font-size: 1.08rem; }
.actions-acces { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.carte-acces .infos { margin: 0 8px 8px; padding: 18px 20px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
@media (max-width: 760px) { .acces .deux-col { grid-template-columns: 1fr; } .actions-acces .btn { flex: 1; } }

/* Espace patient : panneau de verre a droite (ordinateur), feuille du bas (telephone) */
.bouton-espace svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.espace { position: fixed; inset: 12px 12px 12px auto; margin: 0; width: min(460px, calc(100vw - 24px)); max-width: none; height: auto; max-height: none; padding: 0; border: 0; border-radius: 30px; color: var(--encre);
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(247,244,255,.97)); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 1.5px 1.5px 2px -1px rgba(255,255,255,.95), 0 40px 80px -30px rgba(13,18,32,.5); overflow: auto; }
.espace[open] { display: flex; flex-direction: column; animation: espace-entre .22s ease; }
@keyframes espace-entre { from { opacity: 0; transform: translateX(16px); } }
.espace::backdrop { background: rgba(13,18,32,.3); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.espace-tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; background: rgba(252,251,255,.98); box-shadow: 0 1px 0 rgba(13,18,32,.06); }
.espace-tete h2 { font-size: 1.5rem; }
#espace-corps { padding: 4px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
#espace-corps form { max-width: none; }
.espace-intro { color: var(--texte); }
.espace-envoye { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.espace-envoye .coche { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--blanc); }
.espace-envoye .coche svg { width: 26px; height: 26px; }
.espace-envoye h3 { font-size: 1.3rem; }
.espace-envoye p { color: var(--texte); }
.lien-simple { padding: 0; border: 0; background: none; color: var(--accent); font-size: .95rem; cursor: pointer; text-align: left; }
.lien-simple:hover { text-decoration: underline; text-underline-offset: 3px; }
.espace-qui { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.espace-qui span { display: flex; flex-direction: column; font-weight: 500; }
.espace-qui small { font-weight: 400; color: #4E5768; font-size: .86rem; }
.espace-section { font-size: 1.05rem; margin-top: 4px; }
.rdv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rdv-carte { padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 12px 24px -20px rgba(13,18,32,.5); display: flex; flex-direction: column; gap: 10px; }
.rdv-carte.passe { background: rgba(255,255,255,.45); }
.rdv-quand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rdv-quand b { font-weight: 500; font-size: 1.05rem; }
.rdv-quand span { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.rdv-carte.annule .rdv-quand b, .rdv-carte.annule .rdv-quand span:not(.etiquette) { text-decoration: line-through; color: #4E5768; }
.etiquette { padding: 2px 10px; border-radius: 999px; background: rgba(180,35,24,.1); color: #B42318 !important; font-size: .78rem; font-weight: 500; }
.rdv-quoi { color: var(--texte); font-size: .95rem; }
.actions-rdv { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { background: #B42318; border-color: transparent; }
.btn.danger:hover { background: #912018; }
.confirmer { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.7); }
.deplacer { display: flex; flex-direction: column; gap: 12px; }
.deplacer .creneaux { margin-top: 0; }
.passes summary { cursor: pointer; color: var(--texte); padding: 6px 0; }
.passes .rdv-liste { margin-top: 10px; }
.boutons-fait { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) {
  .bouton-espace { min-width: 40px; padding: 0 10px; }
  .bouton-espace span { display: none; }
  .espace { inset: auto 0 0 0; width: 100%; max-height: 88vh; border-radius: 28px 28px 0 0; }
  @keyframes espace-entre { from { opacity: 0; transform: translateY(24px); } }
  #espace-corps { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}
.barre .court { display: none; }
@media (max-width: 760px) { .barre .long { display: none; } .barre .court { display: inline; } .barre .nom { min-width: 0; } }

/* Telephone : Safari peint sa barre d'etat et sa barre d'adresse de la couleur de fond de la page (#E6E4F8).
   Les lumieres se fondent vers cette meme teinte en haut et en bas : plus de bande blanche. Meme reglage que l'agenda. */
@media (max-width: 760px) {
  body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, #E6E4F8 0, #E6E4F8 8px, rgba(230,228,248,0) 90px, rgba(230,228,248,0) calc(100% - 150px), #E6E4F8 100%); }
}

/* Photos : mosaique adaptee au nombre (ordinateur), carrousel a faire glisser (telephone).
   4 colonnes, rangees de hauteur fixe : aucune photo n'impose sa taille, aucun trou de 1 a 6 photos. */
.photos .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 15vw, 210px); grid-auto-flow: dense; }
.photos .grille figure, .photos .grille figure:first-child { aspect-ratio: auto; grid-column: span 1; grid-row: span 1; }
.photos .grille figure:first-child { grid-column: span 2; grid-row: span 2; }
.photos .grille[data-n="1"] figure:first-child { grid-column: 1 / -1; }
.photos .grille[data-n="2"] figure { grid-column: span 2; grid-row: span 2; }
.photos .grille[data-n="3"] figure:not(:first-child) { grid-column: span 2; }
.photos .grille[data-n="4"] figure:nth-child(2) { grid-column: span 2; }
.photos .grille[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photos .grille[data-n="6"] figure, .photos .grille[data-n="6"] figure:first-child { grid-column: span 1; grid-row: span 1; }
.points-photos { display: none; }
@media (max-width: 760px) {
  .photos .grille { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .photos .grille::-webkit-scrollbar { display: none; }
  .photos .grille figure, .photos .grille figure:first-child { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .photos .grille[data-n="1"] figure { flex-basis: 100%; }
  .points-photos { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .points-photos:empty { display: none; }
  .points-photos i { width: 6px; height: 6px; border-radius: 999px; background: rgba(13,18,32,.2); transition: width .2s ease, background .2s ease; }
  .points-photos i.actif { width: 18px; background: var(--accent); }
}

/* Fiche praticien : tags du catalogue, en verre, icone a la couleur de la clinique ; l'experience en tete, pleine */
.tete-fiche { flex-wrap: wrap; }
.tete-fiche .qui { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.tags-fiche { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag-fiche { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: .82rem; line-height: 1.2; color: var(--encre, #0D1220);
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.55)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 6px 14px -10px rgba(13,18,32,.4); }
.tag-fiche svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag-fiche.experience { color: #fff; font-weight: 500; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -10px var(--accent); }
.tag-fiche.experience svg { stroke: #fff; fill: rgba(255,255,255,.3); }
/* Reseaux sociaux : petites pastilles rondes a droite du nom */
.reseaux-fiche { display: flex; gap: 6px; align-self: center; }
.reseaux-fiche .reseau { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--accent);
  background: linear-gradient(160deg, rgba(255,255,255,.82), rgba(255,255,255,.55)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 6px 14px -10px rgba(13,18,32,.4); transition: transform .15s ease, background .15s ease; }
.reseaux-fiche .reseau:hover { transform: translateY(-1px); background: #fff; }
.reseaux-fiche svg { width: 17px; height: 17px; }
/* Fiche remplie (bio, tags ou reseaux) : toute la largeur */
.cartes li.large { grid-column: 1 / -1; }
/* Le reste de l'equipe : cartes compactes en verre sous les praticiens */
.membres { margin-top: 28px; }
.membres h3 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 500; color: var(--sourdine); }
.membres ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.membres li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; }
.membres .portrait, .membres .initiales { width: 44px; height: 44px; }
.membres .initiales { flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); color: var(--accent); font-weight: 500; font-size: .9rem; }
.membres b { display: block; font-weight: 500; }
.membres small { color: var(--sourdine); font-size: .85rem; }
