/* ==========================================================================
   Centre Paramédical de Beaumont — style.css
   ========================================================================== */

:root {
  /* Palette issue du logo du cabinet */
  --navy: #1e2d58;
  --navy-dark: #16224a;
  --navy-darker: #0f1834;
  --teal: #1c8fce;        /* bleu du logo (accents, icônes) */
  --teal-dark: #146fa3;   /* bleu foncé (liens, texte accent) */
  --teal-soft: #e3f1fa;   /* bleu très clair (fonds de puces) */
  --green: #4fa96f;       /* vert du logo (coches, touches) */
  --yellow: #f5a81c;      /* jaune du logo (touches) */
  --sand: #f2f6fa;
  --white: #ffffff;
  --ink: #26314b;
  --muted: #5b6779;
  --line: #dfe6ef;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px -12px rgba(23, 39, 58, 0.18);
  --shadow-sm: 0 4px 18px -6px rgba(23, 39, 58, 0.12);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

/* Accessibilité clavier : focus visible et cohérent sur tout le site */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement (visible uniquement au focus clavier) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }
.lead { font-size: 1.13rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; }

/* ---------- Layout ---------- */
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 110px) 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: linear-gradient(160deg, var(--navy-dark), var(--navy-darker)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(30, 45, 88, 0.5);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid #d5dde4;
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-whatsapp { background: #0e7a3d; color: #fff; }
.btn-whatsapp:hover { background: #0a6231; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 226, 218, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  flex: none;
}
.brand-name { line-height: 1.2; }
.brand-name strong { display: block; font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand-name span { font-size: 0.74rem; font-weight: 600; color: var(--teal-dark); letter-spacing: 0.12em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }

.header-cta { padding: 11px 22px; font-size: 0.9rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  place-items: center;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero.has-news {
  padding: clamp(18px, 2.5vw, 34px) 0 clamp(24px, 4vw, 52px);
}
/* Halos discrets aux couleurs du logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(460px 300px at 10% 18%, rgba(28, 143, 206, 0.12), transparent 70%),
    radial-gradient(400px 260px at 90% 12%, rgba(245, 168, 28, 0.10), transparent 70%),
    radial-gradient(460px 300px at 82% 92%, rgba(79, 169, 111, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-center {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.hero-content {
  display: grid;
  justify-items: center;
}
.hero-center .eyebrow { justify-content: center; }
/* Icône du logo (partie gauche du fichier transparent, affichée en sprite) */
.hero-logo {
  display: block;
  width: 125px;
  height: 113px;
  margin: 0 auto 24px;
  background: url("../assets/img/logo-header.png") no-repeat left top / 320px auto;
}
.hero.has-news .hero-logo { margin-top: 22px; }
.hero h1 { margin: 0 0 20px; }
.hero h1 .accent { color: var(--teal-dark); }
.hero .lead { max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-note svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* ---------- Actualités éphémères ---------- */
.news-updates {
  margin: 0;
  padding: 0;
  width: min(100%, 760px);
}
.news-panel {
  display: grid;
  grid-template-columns: minmax(178px, 0.7fr) minmax(0, 1.8fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(245, 168, 28, 0.32);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.news-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-heading h2 {
  font-size: 1rem;
  letter-spacing: 0;
  color: #9a6507;
}
.news-heading .news-date {
  margin-top: 1px;
  font-size: 0.8rem;
}
.news-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: #9a6507;
  background: rgba(245, 168, 28, 0.18);
}
.news-icon svg {
  width: 20px;
  height: 20px;
}
.news-list {
  position: relative;
  min-width: 0;
  height: 42px;
  overflow: hidden;
}
.news-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 230, 239, 0.9);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.news-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.news-card p {
  min-width: 0;
  width: 100%;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  contain: paint;
}
.news-card strong {
  color: var(--navy);
}
.news-text {
  display: inline;
  white-space: nowrap;
  will-change: transform;
}
.news-copy {
  flex: none;
}
.news-card.is-overflowing .news-text {
  display: inline-flex;
  gap: var(--news-loop-gap, 36px);
  animation: news-text-scroll var(--news-scroll-duration, 14s) linear infinite;
}
.news-card:hover .news-text,
.news-card:focus-within .news-text {
  animation-play-state: paused;
}
.news-date {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}

@keyframes news-text-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--news-loop-distance, 0px))); }
}

/* ---------- Trust bar ---------- */
.trust { padding: 0 0 clamp(56px, 7vw, 80px); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-item .ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item strong { display: block; color: var(--navy); font-size: 0.98rem; line-height: 1.3; }
.trust-item span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Cards (domaines / techniques) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { display: flex; align-items: center; gap: 10px; }
.card-body h3 svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.card-body p { font-size: 0.95rem; flex: 1; }
.card-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* Detail cards (pages domaines/techniques) */
/* Colonne image volontairement compacte (380px) : les photos sources font
   776px de large et restent ainsi parfaitement nettes, même sur écran Retina.
   La piste image reste étroite des deux côtés (on inverse l'ordre des colonnes
   sur les lignes paires plutôt que la largeur). */
.detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.detail:last-child { border-bottom: 0; }
.detail:nth-child(even) { grid-template-columns: 1fr 380px; }
.detail:nth-child(even) .detail-media { order: 2; }
.detail-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
/* Photo verticale/pleine (ex. squat bilan) : affichée entière, sans rognage */
.detail-media--full img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7fafd;
}
.detail h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.detail h2 .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 6px 13px;
  flex: none;
}
.detail p + p { margin-top: 10px; }
.detail ul { margin-top: 16px; display: grid; gap: 9px; }
.detail li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}
.detail li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: top center;
}
.team-card .team-body { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 4px; }
.team-card .role { font-size: 0.86rem; font-weight: 700; color: var(--teal-dark); }
.team-card p { font-size: 0.92rem; margin-top: 10px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.team-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--sand);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Team strip (accueil) */
.team-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.team-strip a { text-decoration: none; }
.team-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.team-strip a:hover img { transform: translateY(-6px); }
.team-strip strong { display: block; margin-top: 14px; color: var(--navy); font-size: 0.97rem; }
.team-strip span { font-size: 0.8rem; color: var(--muted); }
.team-strip .avatar-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--teal-soft), #d8e6f4);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 2.4rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.avatar-placeholder-lg {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--teal-soft), #eef4fa);
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--teal-dark);
}
@media (max-width: 820px) {
  .team-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) and (max-height: 620px) and (orientation: landscape) {
  .header-inner {
    min-height: 66px;
    gap: 18px;
  }

  .brand {
    display: none;
  }
}

@media (max-width: 540px) {
  .team-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Team page full cards */
.therapist {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3.5vw, 44px);
}
.therapist + .therapist { margin-top: 32px; }
.therapist img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-sm);
}
.therapist h2 { font-size: 1.6rem; margin-bottom: 2px; }
.therapist .role { font-weight: 700; color: var(--teal-dark); font-size: 0.94rem; }
.therapist p { margin-top: 14px; font-size: 0.97rem; }
.therapist ul { margin-top: 16px; display: grid; gap: 9px; }
.therapist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--muted); }
.therapist li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.therapist .team-tags { margin-top: 18px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 28, 43, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 12px; }
.lightbox button {
  position: absolute;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox button svg { width: 26px; height: 26px; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Gallery teaser on home */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-teaser img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.gallery-teaser a:hover img { transform: translateY(-6px); }

/* ---------- Techniques ticker (home) ---------- */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 820px; margin-inline: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--teal); transform: translateY(-2px); }
.chip svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- Étapes / déroulement de la prise en charge ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -15px;
  left: 26px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(30, 45, 88, 0.5);
}
.step-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin: 8px 0 16px;
}
.step-ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }

/* ---------- CTA band ---------- */
.cta-band { color: #fff; }
.cta-band .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 480px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}
.faq details + details { margin-top: 14px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 22px; font-size: 0.96rem; }

/* ---------- Avis patients ---------- */
.stars { color: var(--yellow); letter-spacing: 3px; font-size: 1.15rem; line-height: 1; }
.review-summary {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  max-width: 920px;
  margin: 0 auto 26px;
  background: linear-gradient(135deg, #fff, var(--sand));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 4vw, 42px);
}
.review-summary .stars { display: inline-block; font-size: 1.45rem; letter-spacing: 5px; }
.review-kpi { margin: 14px 0 10px; }
.review-kpi strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}
.review-showcase {
  position: relative;
  display: grid;
  gap: 12px;
}
.review-quote {
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.review-quote-main {
  position: relative;
  z-index: 1;
  padding: 24px 26px;
  border-color: rgba(28, 143, 206, 0.22);
  box-shadow: var(--shadow);
}
.review-quote-main::before {
  content: "“";
  position: absolute;
  right: 22px;
  top: -10px;
  color: rgba(28, 143, 206, 0.16);
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
}
.review-quote p {
  position: relative;
  margin: 10px 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}
.review-quote:not(.review-quote-main) p {
  margin-top: 0;
  font-size: 0.92rem;
}
.review-quote cite {
  display: block;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
  font-size: 0.86rem;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
  margin: 0;
}
.review p { margin: 14px 0 16px; color: var(--ink); font-size: 0.97rem; }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.review-cta {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--sand);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.review-cta .stars { display: inline-block; font-size: 1.5rem; letter-spacing: 5px; }
.review-cta p { margin: 14px auto 22px; max-width: 460px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  min-width: 0;
}
.info-card + .info-card { margin-top: 22px; }
.info-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.info-card h3 .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.info-card h3 .ico svg { width: 20px; height: 20px; }
.info-card p, .info-card li { font-size: 0.97rem; }
.info-card a:not(.btn) { color: var(--teal-dark); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-card a:not(.btn):hover { text-decoration: underline; }

.hours { display: grid; gap: 8px; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours .day { font-weight: 600; color: var(--navy); }
.hours .time { color: var(--muted); }
.hours .closed { color: #b0533c; font-weight: 600; }

.map-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 420px;
  background: var(--sand);
  border: 1px solid var(--line);
}
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.contact-buttons { display: grid; gap: 12px; margin-top: 18px; }
.contact-buttons .btn { width: 100%; }

.map-links { margin-top: 14px; text-align: center; }
.map-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--teal-dark);
  text-decoration: none;
}
.map-links a:hover { text-decoration: underline; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 34, 74, 0.94), rgba(22, 34, 74, 0.78)),
    var(--navy-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.page-hero > .container { position: relative; z-index: 1; }
/* Logo en filigrane fondu à droite (ordinateur uniquement) */
.page-hero::after {
  content: "";
  position: absolute;
  /* Taille fixe : le logo reste identique d'une page à l'autre, même si les
     bandeaux n'ont pas la même hauteur. Assez petit pour tenir dans le plus
     court sans rognage visible (le masque fond les bords bien avant les bords
     du bandeau). */
  top: 50%;
  right: -55px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  background: url("../assets/img/logo-icone.jpg") center / contain no-repeat;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(circle at 58% 50%, #000 10%, transparent 54%);
          mask-image: radial-gradient(circle at 58% 50%, #000 10%, transparent 54%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 991px) {
  .page-hero::after { display: none; }
}
/* Coupure de titre forcée en ordinateur uniquement (sinon retour naturel) */
.hero-br { display: none; }
@media (min-width: 992px) { .hero-br { display: inline; } }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 640px; font-size: 1.08rem; }
/* Bleu clair dérivé du bleu du logo (jamais de teal/vert d'eau, hors charte) */
.page-hero .eyebrow { color: #8ecbee; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Pages légales (prose) ---------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: 1.3rem; margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 0.98rem; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; display: grid; gap: 8px; list-style: disc; padding-left: 20px; }
.legal a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .todo {
  background: #fff8e6;
  border-bottom: 2px solid var(--yellow);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  color: #8a6d1a;
}
.legal .updated { font-size: 0.88rem; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  /* Bleu exact du fond du logo, pour un fondu invisible du logo pied de page */
  background: #20305a;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 16px; }
.site-footer .brand-name strong { color: #fff; }
.brand-footer {
  display: inline-block;
  line-height: 0;
}
.brand-footer img {
  width: 280px;
  height: auto;
  display: block;
}
.site-footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 4px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--teal); transform: translateY(-3px); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 90;
  background: rgba(23, 39, 58, 0.96);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 12px 40px -8px rgba(16, 28, 43, 0.55);
  padding: 10px;
  gap: 8px;
}
.mobile-bar a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar .bar-call { background: rgba(255, 255, 255, 0.12); }
.mobile-bar .bar-wa { background: #0e7a3d; }
.mobile-bar .bar-rdv { background: var(--yellow); color: var(--navy); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .news-card.is-overflowing .news-text { animation: none; }
  .news-card p { overflow-x: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (min-width: 821px) and (max-height: 820px) {
  .hero.has-news {
    min-height: calc(100svh - 76px);
    padding-top: 22px;
  }
  .hero.has-news .hero-logo {
    width: 108px;
    height: 98px;
    margin-top: 16px;
    margin-bottom: 18px;
    background-size: 276px auto;
  }
  .hero.has-news h1 { margin-bottom: 16px; }
  .hero.has-news .lead { font-size: 1.05rem; }
  .hero.has-news .hero-actions { margin-top: 28px; }
  .hero.has-news .hero-note { margin-top: 18px; }
}

@media (min-width: 821px) and (min-height: 821px) {
  .hero.has-news .hero-content {
    transform: translateY(-1.5vh);
  }
}

@media (max-width: 1020px) {
  .main-nav a { padding: 9px 10px; font-size: 0.9rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .team-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .step-num { top: -14px; }
  .therapist { grid-template-columns: 280px 1fr; }
}

@media (min-width: 821px) and (max-width: 1160px) {
  .header-inner { gap: 18px; }
  .brand {
    width: 52px;
    height: 52px;
    overflow: hidden;
    position: relative;
  }
  .brand-logo { display: none; }
  .brand::before {
    content: "";
    display: block;
    width: 52px;
    height: 52px;
    background: url("../assets/img/logo-header.png") no-repeat left top / 147px auto;
  }
}

@media (min-width: 821px) and (max-width: 940px) {
  .brand { display: none; }
  .header-inner { gap: 14px; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle { display: grid; }
  /* Le backdrop-filter du header crée un containing block : le panneau
     est donc positionné en absolu sous le header, pas en fixed. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 76px);
    background: #fff;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: #fff; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav a { font-size: 1.15rem; padding: 15px 18px; border-radius: 14px; }
  .main-nav .nav-cta-mobile { display: block; margin-top: 18px; }
  .main-nav .nav-cta-mobile a {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-weight: 700;
  }

  .news-panel { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 6px; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail, .detail:nth-child(even) { grid-template-columns: 1fr; }
  .detail:nth-child(even) .detail-media { order: 0; }
  .therapist { grid-template-columns: 1fr; }
  .therapist img { max-width: 380px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-teaser { grid-template-columns: repeat(2, 1fr); }
  .review-summary { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 540px) {
  .container { width: min(1160px, 100% - 32px); }
  .trust-grid { grid-template-columns: 1fr; }
  .card-grid, .team-grid, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 40px; }
  .hero {
    min-height: calc(100svh - 76px);
    padding: 48px 0 56px;
  }
  .hero.has-news {
    align-items: start;
    padding: 14px 0 34px;
  }
  .hero.has-news .hero-logo {
    width: 88px;
    height: 80px;
    margin-bottom: 16px;
    background-size: 225px auto;
  }
  .hero.has-news .hero-logo { margin-top: 14px; }
  .hero.has-news h1 { margin-bottom: 14px; }
  .hero.has-news .lead { font-size: 0.98rem; }
  .hero.has-news .hero-actions { margin-top: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero.has-news .hero-note {
    align-items: flex-start;
    margin-top: 16px;
    font-size: 0.84rem;
  }
  .news-updates {
    margin-top: 0;
    width: 100%;
  }
  .news-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }
  .news-heading {
    align-items: center;
    min-width: 0;
  }
  .news-heading h2,
  .news-icon {
    display: none;
  }
  .news-heading .news-date {
    margin: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(245, 168, 28, 0.16);
    color: #8b5b06;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .news-list {
    height: 38px;
  }
  .news-card {
    padding: 8px 10px;
  }
  .news-card p {
    font-size: 0.82rem;
  }
}

@media (max-width: 540px) and (max-height: 760px) {
  .hero.has-news {
    min-height: calc(100svh - 76px);
    padding: 10px 0 22px;
  }
  .hero.has-news .hero-logo {
    width: 60px;
    height: 55px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-size: 154px auto;
  }
  .hero.has-news .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }
  .hero.has-news h1 {
    font-size: clamp(1.7rem, 9.4vw, 2.1rem);
    margin-bottom: 10px;
  }
  .hero.has-news .lead {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .hero.has-news .hero-actions { margin-top: 12px; }
  .hero.has-news .btn {
    min-height: 46px;
    padding: 12px 18px;
  }
  .hero.has-news .hero-note {
    margin-top: 12px;
    font-size: 0.78rem;
  }
  .hero.has-news .news-panel {
    padding: 7px;
  }
  .hero.has-news .news-list {
    height: 34px;
  }
  .hero.has-news .news-card {
    padding: 6px 9px;
  }
  .hero.has-news .news-heading .news-date {
    padding: 7px 8px;
    font-size: 0.68rem;
  }
}

@media (max-width: 340px) {
  .container { width: min(1160px, 100% - 24px); }
  .header-inner {
    min-height: 68px;
    gap: 14px;
  }
  .brand-logo { height: 36px; }
  .hero.has-news {
    padding: 8px 0 18px;
  }
  .hero.has-news .hero-logo {
    width: 46px;
    height: 42px;
    margin-top: 6px;
    margin-bottom: 6px;
    background-size: 118px auto;
  }
  .hero.has-news .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }
  .hero.has-news h1 {
    font-size: clamp(1.55rem, 9vw, 1.8rem);
    margin-bottom: 8px;
  }
  .hero.has-news .lead {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .hero.has-news .hero-actions {
    margin-top: 10px;
    gap: 8px;
  }
  .hero.has-news .btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .hero.has-news .hero-note {
    margin-top: 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .hero.has-news .news-panel {
    gap: 6px;
    padding: 6px;
  }
  .hero.has-news .news-heading .news-date {
    padding: 6px 7px;
    font-size: 0.64rem;
  }
  .hero.has-news .news-list {
    height: 32px;
  }
  .hero.has-news .news-card {
    padding: 5px 8px;
  }
  .hero.has-news .news-card p {
    font-size: 0.76rem;
  }
  .mobile-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
  }
  .mobile-bar a {
    gap: 5px;
    padding: 10px 6px;
    font-size: 0.76rem;
  }
  .mobile-bar svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero.has-news {
    min-height: calc(100svh - 76px);
    padding: 12px 0 18px;
  }
  .hero.has-news .hero-logo {
    display: none;
  }
  .hero.has-news .eyebrow {
    margin: 12px 0 8px;
    font-size: 0.66rem;
  }
  .hero.has-news h1 {
    font-size: clamp(1.85rem, 5vw, 2.3rem);
    margin-bottom: 8px;
  }
  .hero.has-news .lead {
    max-width: 720px;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .hero.has-news .hero-actions {
    margin-top: 12px;
  }
  .hero.has-news .btn {
    min-height: 44px;
    padding: 11px 20px;
  }
  .hero.has-news .hero-note {
    margin-top: 10px;
    font-size: 0.78rem;
  }
  .hero.has-news .news-panel {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 9px 12px;
    border-radius: 16px;
  }
  .hero.has-news .news-heading {
    align-items: center;
    min-width: 0;
  }
  .hero.has-news .news-heading h2,
  .hero.has-news .news-icon {
    display: none;
  }
  .hero.has-news .news-heading .news-date {
    margin: 0;
    padding: 7px 9px;
    border-radius: 12px;
    background: rgba(245, 168, 28, 0.16);
    color: #8b5b06;
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .hero.has-news .news-list {
    height: 34px;
  }
  .hero.has-news .news-card {
    padding: 6px 10px;
  }
}
