/* ==========================================================================
   styles.css — feuille de style unique du cabinet.
   Organisation : jetons de :root, puis composants, puis media queries.
   Seul le bloc :root ci-dessous change d'un cabinet à l'autre ; tout ce qui
   suit est la structure, identique partout.
   Convention BEM : .bloc__element, .bloc--modificateur, états préfixés .is-
   Propriétés logiques uniquement (inset-inline, margin-inline) : LTR et RTL
   partagent la même feuille.
   ========================================================================== */

/* ==========================================================================
   Jetons de design — SEUL bloc à personnaliser par cabinet.
   Issus du design system « Cabinet ORL » (échantillonnés dans le logo).
   Aucune valeur en dur ne doit exister ailleurs que dans ce bloc.
   ========================================================================== */

:root {

  /* ── Marque : les 4 losanges du logo ──────────────────────────────────── */
  --brand:              #31569a;   /* oreille — couleur primaire */
  --brand-clair:        #4a74bd;
  --brand-fonce:        #24406f;

  --zone-1:             #31569a;   /* oreille  */
  --zone-2:             #6b2d56;   /* visage / voix */
  --zone-3:             #bd5d2a;   /* nez */
  --zone-4:             #2a303d;   /* gorge */

  --brand-prune:        #6b2d56;
  --brand-prune-clair:  #8a4472;
  --brand-orange:       #bd5d2a;
  --brand-ardoise:      #2a303d;   /* couleur d'encre */
  --brand-ardoise-clair:#3d4657;

  /* ── Neutres : ancrés sur le blanc cassé du logo ──────────────────────── */
  --neutre-0:   #ffffff;
  --neutre-25:  #f8f8f4;
  --neutre-50:  #f2f3ed;
  --neutre-100: #e7e8e1;
  --neutre-200: #d5d7cd;
  --neutre-300: #b6b9ae;
  --neutre-400: #8e9287;
  --neutre-500: #6d7166;

  /* ── Sémantique ───────────────────────────────────────────────────────── */
  --succes:        #2f6b4f;
  --succes-fond:   #e6efe9;
  --alerte:        #a3302a;   /* « fermé maintenant » — 5,80:1 sur --alerte-fond */
  --alerte-fond:   #f6e7e5;
  --info-fond:     #e6ebf5;

  /* ── Texte ────────────────────────────────────────────────────────────── */
  --texte-titre:      var(--brand-ardoise);
  --texte-corps:      #3a3f4a;
  --texte-discret:    var(--neutre-500);
  --texte-inverse:    var(--neutre-25);
  --texte-sur-encre:  rgba(255, 255, 255, .72);
  --texte-sur-encre-faible: rgba(255, 255, 255, .55);

  /* ── Surfaces ─────────────────────────────────────────────────────────── */
  --surface-page:         var(--neutre-50);
  --surface-carte:        var(--neutre-0);
  --surface-douce:        var(--neutre-25);
  --surface-encre:        var(--brand-ardoise);
  --surface-accent-douce: var(--info-fond);
  --surface-prune-douce:  #f0e7ee;

  /* ── Bordures ─────────────────────────────────────────────────────────── */
  --bordure:       var(--neutre-200);
  --bordure-forte: var(--neutre-300);

  /* ── Typographie ──────────────────────────────────────────────────────── */
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, monospace;
  --font-arabe: "Noto Naskh Arabic", "Segoe UI", serif;

  --font-titre:  var(--font-serif);
  --font-corps:  var(--font-sans);
  --font-donnee: var(--font-mono);

  --poids-normal: 400;
  --poids-moyen:  500;
  --poids-semi:   600;

  /* échelle 1,25 ancrée sur 17 px */
  --taille-2xs: 12px;
  --taille-xs:  13px;
  --taille-sm:  15px;
  --taille-md:  17px;
  --taille-lg:  21px;
  --taille-xl:  26px;

  --interligne-serre:  1.15;
  --interligne-titre:  1.18;
  --interligne-normal: 1.55;

  --espace-lettre-titre:  -0.015em;
  --espace-lettre-sur:    0.09em;   /* suréligne / eyebrow */

  /* ── Espacements ──────────────────────────────────────────────────────── */
  --esp-1: 4px;
  --esp-2: 8px;
  --esp-3: 12px;
  --esp-4: 16px;
  --esp-5: 24px;
  --esp-6: 32px;
  --esp-7: 48px;

  /* ── Rayons ───────────────────────────────────────────────────────────── */
  --rayon-sm:     4px;
  --rayon-md:     8px;
  --rayon-lg:     14px;
  --rayon-xl:     22px;
  --rayon-pilule: 999px;

  /* ── Élévation ────────────────────────────────────────────────────────── */
  --ombre-1: 0 1px 2px rgba(42, 48, 61, .06), 0 1px 1px rgba(42, 48, 61, .04);
  --ombre-2: 0 2px 6px rgba(42, 48, 61, .07), 0 1px 2px rgba(42, 48, 61, .05);
  --ombre-3: 0 10px 24px -8px rgba(42, 48, 61, .16), 0 2px 6px rgba(42, 48, 61, .06);
  --ombre-4: 0 24px 48px -16px rgba(42, 48, 61, .22), 0 4px 10px rgba(42, 48, 61, .07);
  --anneau-focus: 0 0 0 3px rgba(74, 116, 189, .45);
  --voile-image: linear-gradient(to top, rgba(42, 48, 61, .72), rgba(42, 48, 61, 0) 62%);

  /* Voile du hero : le visuel anatomique est toujours recouvert. */
  --voile-hero: linear-gradient(180deg,
                  rgba(42, 48, 61, .72) 0%,
                  rgba(42, 48, 61, .88) 55%,
                  rgba(42, 48, 61, .97) 100%);

  /* ── Mouvement ────────────────────────────────────────────────────────── */
  --duree-rapide:   120ms;
  --duree-normale:  200ms;
  --courbe-standard: cubic-bezier(.2, .6, .25, 1);
}

/* ==== Base ============================================================== */

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

/* `clip` et non `hidden` : `hidden` force overflow-y à auto, ce qui fait de
   html/body des conteneurs de défilement et absorbe la molette sur desktop. */
html, body { overflow-x: clip; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-page);
  color: var(--texte-corps);
  font-family: var(--font-corps);
  font-size: var(--taille-md);
  line-height: var(--interligne-normal);
  -webkit-font-smoothing: antialiased;
}

/* L'arabe demande une fonte adaptée : elle remplace titres et texte. */
[dir="rtl"] { font-family: var(--font-arabe); }
[dir="rtl"] .hero__name,
[dir="rtl"] .zone__title,
[dir="rtl"] .modal__title,
[dir="rtl"] .banner__title { font-family: var(--font-arabe); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-titre);
  font-weight: var(--poids-semi);
  color: var(--texte-titre);
  line-height: var(--interligne-titre);
  letter-spacing: var(--espace-lettre-titre);
}

p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--anneau-focus);
  border-radius: var(--rayon-sm);
}

/* Sur la bande ardoise, l'anneau bleu ne se voit pas : on le passe en blanc. */
.hero :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }

.state {
  padding: var(--esp-7) var(--esp-5);
  text-align: center;
  color: var(--texte-discret);
  font-size: var(--taille-sm);
}

/* Nombres : toujours isolés en LTR, sinon les chiffres s'inversent en arabe. */
.num {
  font-family: var(--font-donnee);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

/* ==== Page et carte ===================================================== */

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--esp-6) var(--esp-5);
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--surface-carte);
  border: 1.5px solid var(--brand-ardoise);
  border-radius: var(--rayon-xl);
  box-shadow: var(--ombre-4);
  overflow: hidden;
}

/* ==== Hero ============================================================== */

.hero {
  position: relative;
  padding: var(--esp-5) 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    var(--voile-hero),
    url("assets/hero.jpg") center / cover no-repeat var(--surface-encre);
}

.hero__langs {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.lang-chip {
  font-family: var(--font-donnee);
  font-size: 11px;
  font-weight: var(--poids-normal);
  padding: 4px 10px;
  border-radius: var(--rayon-pilule);
  border: 1px solid rgba(255, 255, 255, .26);
  background: transparent;
  color: rgba(255, 255, 255, .7);
  transition: border-color var(--duree-rapide) var(--courbe-standard),
              color var(--duree-rapide) var(--courbe-standard);
}

.lang-chip:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }

.lang-chip.is-active {
  border-color: #fff;
  background: #fff;
  color: var(--brand-ardoise);
  font-weight: var(--poids-semi);
}

.hero__identity {
  display: flex;
  gap: var(--esp-4);
  align-items: center;
}

.hero__logo {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

.hero__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero__eyebrow {
  font-family: var(--font-donnee);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  line-height: 1.35;
}

.hero__name {
  font-size: var(--taille-xl);
  line-height: var(--interligne-serre);
  color: #fff;
}

.hero__badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: var(--poids-moyen);
  padding: 4px 11px;
  border-radius: var(--rayon-pilule);
  background: rgba(74, 116, 189, .28);
  color: #cfdcf2;
}

.hero__slogan {
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte-sur-encre);
}

/* ==== Corps ============================================================= */

.body {
  padding: var(--esp-5) 18px 28px;
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
}

/* Carte de section : blanche, filet de la couleur du bloc, ombre 1. */
.section {
  background: var(--surface-carte);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-lg);
  padding: var(--esp-4) 18px;
  box-shadow: var(--ombre-1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section--hours   { border-color: var(--zone-1); }
.section--phone   { border-color: var(--zone-2); }
.section--address { border-color: var(--zone-3); padding-bottom: 18px; gap: var(--esp-3); }

/* Titre de section : suréligne en capitales, teintée par le bloc. */
.section__head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  font-family: var(--font-donnee);
  font-size: 11px;
  font-weight: var(--poids-moyen);
  letter-spacing: var(--espace-lettre-sur);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--texte-discret);
}

.section--hours   .section__head { color: var(--zone-1); }
.section--phone   .section__head { color: var(--zone-2); }
.section--address .section__head { color: var(--zone-3); }

.icon { display: inline-flex; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

/* ==== Recommandations (sites de confrères) ============================= */
/* Carrousel horizontal en CSS seul : défilement au doigt ou à la molette,
   cartes calées par scroll-snap. En arabe (dir="rtl"), le sens s'inverse
   de lui-même. */
.reco {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 2px 8px;
  margin: 0 -2px;
}
.reco__card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-md);
  background: var(--surface-carte);
  color: var(--texte-corps);
  transition: border-color .15s ease;
}
.reco__card:hover { text-decoration: none; border-color: var(--brand-fonce); color: var(--texte-corps); }
.reco__icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--rayon-md);
  background: var(--surface-accent-douce);
  color: var(--brand-fonce);
}
/* L'image recouvre l'icône neutre ; si elle ne charge pas, elle est retirée
   et l'icône neutre réapparaît. */
.reco__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.reco__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  font-weight: var(--poids-semi);
  line-height: 1.35;
}

/* ==== Information importante ============================================ */
/* Même cadre que les autres sections, fond teinté pour attirer l'œil. */
.section--notice { background: var(--surface-accent-douce); }
.notice__text {
  margin: 0;
  font-size: 14.5px;
  font-weight: var(--poids-semi);
  line-height: var(--interligne-normal);
  color: var(--texte-corps);
  white-space: pre-line;          /* respecte les retours à la ligne saisis */
  overflow-wrap: anywhere;
}

/* ==== À propos ========================================================== */

.about__text {
  font-size: 14.5px;
  line-height: var(--interligne-normal);
  color: var(--texte-corps);
}

.about__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about__item {
  display: flex;
  gap: var(--esp-2);
  font-size: 14.5px;
  line-height: 1.5;
}

.about__dash { color: var(--brand); flex: none; }

/* ==== Zones anatomiques (les 4 losanges du logo) ======================== */

.zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--esp-3);
}

/* Le losange déborde en haut de la carte : marge haute + retrait négatif. */
.zone {
  margin-top: 28px;
  padding: 34px 14px 18px;
  background: var(--surface-carte);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-2);
  text-align: center;
}

.zone--1 { border-color: var(--zone-1); }
.zone--2 { border-color: var(--zone-2); }
.zone--3 { border-color: var(--zone-3); }
.zone--4 { border-color: var(--zone-4); }

.zone__img {
  width: 52px;
  height: 52px;
  margin-top: -60px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(42, 48, 61, .22));
}

.zone__title {
  font-family: var(--font-titre);
  font-weight: var(--poids-semi);
  font-size: var(--taille-sm);
  line-height: 1.2;
  color: var(--texte-titre);
}

.zone__body {
  font-size: var(--taille-xs);
  line-height: 1.5;
  color: var(--texte-corps);
}

/* ==== Horaires ========================================================== */

.days { display: flex; flex-direction: column; }

.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--esp-3);
  padding: 7px 0;
  border-bottom: 1px dotted var(--bordure);
}

.day-row:last-child { border-bottom: 0; }

.day-row__name { font-size: 14px; color: var(--texte-corps); }

.day-row__right {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
}

.day-row__time { font-size: 12.5px; color: var(--texte-corps); }

.day-row.is-closed .day-row__name,
.day-row.is-closed .day-row__time { color: var(--texte-discret); }

.day-row.is-today .day-row__name {
  font-weight: var(--poids-semi);
  color: var(--texte-titre);
}

.day-row.is-today .day-row__time { color: var(--texte-titre); }

.status {
  font-family: var(--font-donnee);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--rayon-pilule);
  background: var(--succes-fond);
  color: var(--succes);
  white-space: nowrap;
}

/* Ouvert = vert (.status), fermé = rouge : l'état se lit à la couleur seule
   comme au libellé, sans dépendre de la lecture du texte. */
.status--closed {
  background: var(--alerte-fond);
  color: var(--alerte);
}

/* ==== Boutons =========================================================== */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--rayon-pilule);
  font-weight: var(--poids-semi);
  font-size: var(--taille-sm);
  text-align: center;
  transition: background var(--duree-normale) var(--courbe-standard),
              border-color var(--duree-normale) var(--courbe-standard),
              color var(--duree-normale) var(--courbe-standard),
              box-shadow var(--duree-normale) var(--courbe-standard);
}

.btn:active { transform: translateY(1px) scale(.985); }

.btn--primaire {
  background: var(--brand);
  color: var(--texte-inverse);
  box-shadow: var(--ombre-2);
}
.btn--primaire:hover { background: var(--brand-fonce); box-shadow: var(--ombre-3); }

.btn--contour {
  background: var(--surface-carte);
  color: var(--texte-titre);
  border: 1px solid var(--bordure-forte);
}
.btn--contour:hover {
  background: var(--surface-douce);
  border-color: var(--brand);
  color: var(--brand-fonce);
}

.btn--prune {
  background: var(--surface-carte);
  color: var(--texte-titre);
  border: 1px solid var(--bordure-forte);
}
.btn--prune:hover {
  background: var(--surface-prune-douce);
  border-color: var(--brand-prune);
  color: var(--brand-prune);
}

.btn--encre {
  background: var(--brand-ardoise);
  color: var(--texte-inverse);
}
.btn--encre:hover { background: var(--brand-ardoise-clair); }

.btn--fantome { background: transparent; color: var(--brand); }
.btn--fantome:hover { background: var(--surface-accent-douce); }

/* Boutons d'appel : pastille « numéro — libellé » sur une seule ligne. */
.btn-call {
  min-height: 52px;
  gap: var(--esp-2);
  padding-inline: 18px;
  font-size: var(--taille-md);
}

/* Le numéro ne doit jamais se couper entre deux groupes de chiffres. */
.btn-call__num { font-weight: var(--poids-semi); white-space: nowrap; }

.btn-call__label {
  font-size: var(--taille-xs);
  font-weight: var(--poids-moyen);
  white-space: nowrap;
  opacity: .82;
}

.btn-call--info .btn-call__label { color: var(--texte-discret); opacity: 1; }

.phone__hint {
  font-size: var(--taille-2xs);
  line-height: 1.45;
  color: var(--texte-discret);
  text-align: start;
}

/* ==== Adresse et carte ================================================== */

.address__text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--texte-corps);
}

.map {
  position: relative;
  height: 170px;
  border-radius: var(--rayon-xl);
  overflow: hidden;
  border: 1px solid var(--bordure);
  background: var(--neutre-100);
}

.map__frame { width: 100%; height: 100%; border: 0; display: block; }

/* Voile tactile : sans lui, l'iframe capture le geste et bloque le
   défilement de la page. Un tap volontaire ajoute .is-off. */
.map__shield {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  cursor: pointer;
  background: transparent;
}

.map__shield.is-off { display: none; }

.map__voile {
  position: absolute;
  inset: 0;
  background: var(--voile-image);
  pointer-events: none;
}

.map__btn {
  position: absolute;
  inset-block-end: var(--esp-3);
  inset-inline-end: var(--esp-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--rayon-pilule);
  background: var(--surface-carte);
  color: var(--texte-titre);
  font-size: var(--taille-xs);
  font-weight: var(--poids-semi);
  box-shadow: var(--ombre-2);
  transition: background var(--duree-normale) var(--courbe-standard),
              color var(--duree-normale) var(--courbe-standard);
}

.map__btn:hover { background: var(--surface-douce); color: var(--brand-fonce); }

/* ==== Actions =========================================================== */

.contacts { display: flex; flex-direction: column; gap: 10px; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

/* ==== Pied de page ====================================================== */

.footer {
  background: var(--surface-encre);
  padding: var(--esp-4) 20px 20px;
  text-align: center;
}

.footer__text {
  font-size: var(--taille-2xs);
  line-height: 1.5;
  color: var(--texte-sur-encre-faible);
}

/* ==== Bannière d'installation =========================================== */

.banner {
  position: fixed;
  inset-inline: var(--esp-3);
  inset-block-end: var(--esp-3);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--esp-4);
  max-width: 460px;
  margin-inline: auto;
  padding: 14px var(--esp-4);
  background: var(--surface-carte);
  border: 1.5px solid var(--brand);
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-4);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity var(--duree-normale) var(--courbe-standard),
              transform var(--duree-normale) var(--courbe-standard);
}

.banner.is-visible { opacity: 1; transform: none; }

.banner__logo { width: 40px; height: 40px; flex: none; object-fit: contain; }
.banner__text { flex: 1; min-width: 0; }

.banner__title {
  font-family: var(--font-titre);
  font-weight: var(--poids-semi);
  font-size: var(--taille-sm);
  color: var(--texte-titre);
  margin-bottom: 2px;
}

.banner__sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--texte-discret);
}

.banner__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border-radius: var(--rayon-pilule);
  background: var(--brand);
  color: var(--texte-inverse);
  font-size: 13.5px;
  font-weight: var(--poids-semi);
  box-shadow: var(--ombre-2);
}

.banner__cta:hover { background: var(--brand-fonce); }

.banner__close {
  flex: none;
  display: inline-flex;
  color: var(--neutre-400);
  padding: 2px;
}

.banner__close:hover { color: var(--texte-titre); }

/* ==== Modales =========================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  background: rgba(42, 48, 61, .5);
  opacity: 0;
  visibility: hidden;
  /* La visibilité bascule sans transition à l'ouverture (délai 0) et après le
     fondu à la fermeture. Sans ça, l'élément reste `hidden` pendant toute la
     transition et .focus() y est ignoré — le piège à focus ne s'amorce pas. */
  transition: opacity var(--duree-normale) var(--courbe-standard),
              visibility 0s linear var(--duree-normale);
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duree-normale) var(--courbe-standard),
              visibility 0s linear 0s;
}

.modal__sheet {
  width: 100%;
  max-width: 328px;
  max-height: 100%;
  overflow-y: auto;
  position: relative;
  padding: 22px 22px 24px;
  background: var(--surface-carte);
  border: 1.5px solid var(--brand-ardoise);
  border-radius: var(--rayon-xl);
  box-shadow: var(--ombre-4);
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  transform: translateY(8px);
  transition: transform var(--duree-normale) var(--courbe-standard);
}

.modal.is-visible .modal__sheet { transform: none; }

.modal__sheet--centre { align-items: center; gap: 14px; }

.modal__close {
  position: absolute;
  top: 14px;
  inset-inline-end: var(--esp-4);
  display: inline-flex;
  color: var(--neutre-400);
  padding: 2px;
}

.modal__close:hover { color: var(--texte-titre); }

.modal__title {
  font-family: var(--font-titre);
  font-weight: var(--poids-semi);
  font-size: 19px;
  color: var(--texte-titre);
  padding-inline-end: var(--esp-5);
}

.modal__sheet--centre .modal__title { padding-inline: var(--esp-5); text-align: center; }

.modal__body {
  font-size: 14px;
  line-height: var(--interligne-normal);
  color: var(--texte-corps);
}

.modal__note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--rayon-md);
  background: var(--surface-accent-douce);
  color: var(--brand-fonce);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Damier : emplacement du QR tant que le code n'est pas généré. */
.qr {
  width: 176px;
  height: 176px;
  border-radius: var(--rayon-md);
  border: 1px solid var(--bordure);
  background: repeating-conic-gradient(var(--neutre-200) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr__img { width: 100%; height: 100%; border-radius: var(--rayon-md); }

.qr__todo {
  font-family: var(--font-donnee);
  font-size: 10px;
  color: var(--neutre-500);
  background: var(--surface-carte);
  padding: 4px 8px;
  border-radius: var(--rayon-sm);
}

.share__sub {
  font-size: var(--taille-xs);
  line-height: 1.45;
  color: var(--texte-discret);
  text-align: center;
}

.share__url {
  width: 100%;
  padding: var(--esp-2) var(--esp-3);
  font-family: var(--font-donnee);
  font-size: var(--taille-2xs);
  color: var(--texte-titre);
  background: var(--surface-douce);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-sm);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share__copy { width: 100%; min-height: 46px; font-size: 14.5px; }

.share__send {
  font-size: 13.5px;
  font-weight: var(--poids-semi);
  color: var(--brand);
}

.share__send:hover { color: var(--brand-fonce); }

body.modal-open { overflow: hidden; }

/* ==== < 600 px : carte plein écran ====================================== */

@media (max-width: 599px) {
  .page { padding: 0; }

  .card {
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .banner { inset-inline: var(--esp-2); inset-block-end: var(--esp-2); }
}

/* ==== >= 900 px : grille 2 colonnes ===================================== */

@media (min-width: 900px) {
  .page { padding: var(--esp-7) var(--esp-5); align-items: center; }

  .card {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: 1fr auto;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
    padding: var(--esp-7) var(--esp-6) 40px;
    gap: 22px;
    align-items: center;
    text-align: center;
  }

  .hero__langs { width: 100%; }

  .hero__identity { flex-direction: column; gap: 22px; }

  .hero__logo {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .4));
  }

  .hero__text { flex: none; align-items: center; gap: 10px; }

  .hero__badge { align-self: center; font-size: var(--taille-2xs); padding: 5px 13px; }

  .body {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 44px var(--esp-7);
    gap: var(--esp-4);
  }

  .section { padding: 20px 22px; }
  .section--address { padding-bottom: 22px; }

  .zones { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

  .zone { margin-top: 34px; padding: 42px var(--esp-4) 22px; gap: 10px; }
  .zone__img { width: 64px; height: 64px; margin-top: -74px; }
  .zone__title { font-size: 18px; }
  .zone__body { font-size: 13.5px; }

  .day-row { padding: 6px 0; }
  .day-row__name { font-size: var(--taille-sm); }
  .day-row__time { font-size: var(--taille-xs); }

  /* Les deux numéros côte à côte, comme sur les autres cabinets. La règle est
     limitée à la section téléphone : .contacts sert aussi au bouton e-mail,
     qui doit rester pleine largeur. */
  .section--phone .contacts { flex-direction: row; }
  .section--phone .contacts .btn-call { flex: 1; min-width: 0; }

  /* Boutons d'appel : libellé en petit sous le numéro, tiret masqué. */
  .btn-call {
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px;
  }

  .btn-call__num { font-size: 19px; }
  .btn-call__label { font-size: 12.5px; }
  .btn-call__sep { display: none; }
  .btn-call .icon { display: none; }

  .btn--prune { color: var(--brand-prune); }

  .map { height: 200px; }
  .map__btn { inset-block-end: 14px; inset-inline-end: 14px; padding: 10px 18px; font-size: 14px; }

  .actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--esp-3); }

  .footer {
    grid-column: 1;
    grid-row: 2;
    border-top: 1px solid var(--brand-ardoise-clair);
    padding: 20px 28px 26px;
  }
}

/* ==== >= 1280 px : élargissement ======================================== */

@media (min-width: 1280px) {
  .card { max-width: 1080px; }
  .map { height: 240px; }
}

/* ==== Mouvement réduit ================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:active { transform: none; }
}
