/* =========================================================================
   CDAM — Cabinet de physiothérapie Thônex / Genève
   Système graphique partagé. Modifier ici = modifier partout.
   ========================================================================= */

/* ------- 0. Reset léger ------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------- 1. Tokens ------- */
:root {
  /* Couleurs */
  --red:        #E4002B;
  --red-dark:   #B30024;
  --red-deep:   #8A001C;
  --red-soft:   #FBEEF0;
  --red-tint:   rgba(228, 0, 43, 0.08);
  --ink:        #14182C;
  --ink-2:      #44495E;
  --ink-3:      #686D85;
  --white:      #FFFFFF;
  --cream:      #FAF6F2;
  --cream-2:    #F2EDE5;
  --line:       rgba(20, 24, 44, 0.10);
  --line-2:     rgba(20, 24, 44, 0.06);
  --shadow-sm:  0 1px 2px rgba(20,24,44,.04), 0 2px 8px rgba(20,24,44,.04);
  --shadow-md:  0 4px 14px rgba(20,24,44,.06), 0 12px 36px rgba(20,24,44,.06);
  --shadow-lg:  0 10px 40px rgba(20,24,44,.12);

  /* Rayons */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Espaces */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Typo */
  --font-sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-italic: 'Nunito', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ------- 2. Base ------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: white; }

/* ------- 3. Typographie ------- */
.h1, h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.h2, h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.h3, h3 {
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}
.h4, h4 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
}
p { margin: 0 0 14px; color: var(--ink-2); }
p.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
}
.italic { font-family: var(--font-italic); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
}
.eyebrow.dark { color: var(--ink); }
.eyebrow.dark::before { background: var(--ink); }

/* Swoosh underline — motif graphique repris du logo */
.swoosh {
  position: relative;
  display: inline-block;
}
.swoosh::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -0.18em;
  height: 0.18em;
  background: var(--red);
  border-radius: 999px;
  transform: skewX(-8deg);
}
.accent-red { color: var(--red); }
.accent-italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0;
}

/* ------- 4. Layout ------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-tight {
  max-width: 980px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(60px, 7vw, 110px) 0; }
section.tight { padding: clamp(40px, 5vw, 70px) 0; }
section.cream { background: var(--cream); }
section.ink { background: var(--ink); color: var(--white); }
section.ink p, section.ink .lead { color: rgba(255,255,255,0.74); }
section.ink h1, section.ink h2, section.ink h3 { color: white; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ------- 5. Boutons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 6px 20px rgba(228,0,43,0.30);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(228,0,43,0.36);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.btn-ghost {
  padding: 14px 20px;
  color: var(--ink);
}
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 20px 32px; font-size: 16px; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ------- 6. Header ------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
/* « Nos prises en charge » est un <a> inline dans .nav-dropdown, les autres
   liens sont des enfants directs du flex : sans alignement commun, le padding
   vertical ne produisait pas la meme boite et ce lien remontait de ~10px. */
.nav > .nav-dropdown { display: flex; align-items: center; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
/* Triangle dessine en CSS plutot que le glyphe '▾' : absent de certaines
   polices, il s'affichait comme un point ecrase. */
.nav a.has-sub::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  transition: transform .2s ease;
}
.nav-dropdown:hover a.has-sub::after,
.nav-dropdown:focus-within a.has-sub::after { transform: rotate(180deg); }
.nav a.active {
  color: var(--red);
}
.nav a.active::before {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-dropdown {
  position: relative;
}
/* Le sous-menu s'ouvre 4px sous le lien. Ces 4px n'appartenaient a rien : la
   souris y perdait le survol et le menu se refermait avant qu'on l'atteigne.
   Ce pont invisible relie le lien au sous-menu ; il reste dans le header
   (lien : 58px, sous-menu : 62px, header : 76px), sans gener aucun clic. */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: max(100%, 260px);
  height: 6px;
}
.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.submenu a:hover { background: var(--cream); color: var(--ink); }

.site-header .cta-area {
  display: flex;
  gap: 10px;
  align-items: center;
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--cream);
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background-color .2s ease;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Etat ouvert : la barre du milieu disparait, celles du dessus/dessous se croisent. */
.menu-toggle[aria-expanded="true"] span { background-color: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after { transition: none; }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .cta-area .btn-outline { display: none; }
  /* Sans .nav pour occuper le milieu du flex, brand + burger se collaient a gauche. */
  .site-header .cta-area { margin-left: auto; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  background: white;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 49;
  overflow-y: auto;
  /* Etat ferme : invisible, decale vers le haut, hors du flux tactile. visibility
     est transitionne avec un delai pour rester "visible" pendant le fondu sortant. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}
.mobile-menu a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 18px;
  font-weight: 500;
  /* Chaque entree glisse legerement depuis le haut quand le menu s'ouvre. */
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 140ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 220ms; }
.mobile-menu.open a:nth-child(n+6) { transition-delay: 260ms; }
.mobile-menu.open .sub a { transition-delay: 200ms; }
.mobile-menu .sub a {
  padding: 12px 0 12px 20px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu a { transition: none; transform: none; }
  .mobile-menu.open a { transition-delay: 0s; }
}

/* ------- 7bis. Hero V2 (style référence client) ------- */
.hero-v2 {
  position: relative;
  padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 60px);
  overflow: hidden;
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  min-height: 580px;
}
.hero-v2 .eyebrow { margin-bottom: 28px; }
.hero-v2-h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-v2-h1 .accent-red { color: var(--red); }
.hero-v2-tag {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 38ch;
}
.hero-v2-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.hero-v2-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-v2-feature .icn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.hero-v2-feature span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
.hero-v2-right {
  position: relative;
  height: 100%;
  min-height: 560px;
  align-self: stretch;
}
.hero-v2-image {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero-v2-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-v2-image .badge {
  position: absolute;
  left: 24px; top: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hero-v2-image .badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
/* Decorative red swoosh derived from logo */
.hero-v2-swoosh {
  position: absolute;
  right: -8%;
  top: -10%;
  width: 120%;
  height: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: .12;
}

@media (max-width: 980px) {
  .hero-v2-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-v2-right { min-height: 420px; }
  .hero-v2-features { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .hero-v2-feature .icn { width: 48px; height: 48px; }
  .hero-v2-feature span { font-size: 10px; }
}
@media (max-width: 600px) {
  .hero-v2-features { grid-template-columns: repeat(2, 1fr); }
}

/* Hero V2 — bottom category cards */
.hero-v2-cards {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .hero-v2-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hero-v2-cards { grid-template-columns: 1fr; } }

.hero-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.hero-cat-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.hero-cat-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hero-cat-card:hover .img-wrap img { transform: scale(1.06); }
.hero-cat-card .label {
  padding: 22px 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-cat-card .label .icn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.hero-cat-card .label .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-cat-card .label strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  display: block;
  text-wrap: balance;
}
.hero-cat-card .label small {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}
.hero-cat-card .label small { transition: transform .25s ease; }
.hero-cat-card:hover .label small { transform: translateX(3px); }

/* Bande de vignettes déplacée sous le slogan */
.feature-band {
  max-width: 860px;
  margin: 0 auto;
}
.feature-band .hero-v2-feature { align-items: center; text-align: center; }

/* Motifs fréquents — bloc visuel */
.motif-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 44px 0 26px;
}
.motif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .motif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .motif-grid { grid-template-columns: 1fr; } }
.motif-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.motif-card strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.motif-card .go {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.motif-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.motif-card:hover .go { background: var(--red); color: white; transform: translateX(2px); }

/* Original hero (kept for sub-pages compatibility) ------- */
/* ------- 7. Hero ------- */
.hero {
  position: relative;
  padding: clamp(40px, 5vw, 70px) 0 clamp(70px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero .lead {
  margin-bottom: 32px;
  max-width: 50ch;
}
.hero-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-image .badge {
  position: absolute;
  left: 20px; top: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-image .badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,0,43,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(228,0,43,0); }
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat {
  flex: 1;
}
.hero-stats .stat strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--ink-3);
}
.hero-stats .stat-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 4 / 3; max-width: 100%; }
}

/* Compact hero (sub-pages) */
.hero-compact {
  padding: 60px 0 40px;
  position: relative;
}
.hero-compact .crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.hero-compact .crumbs a:hover { color: var(--red); }
.hero-compact .crumbs span { color: rgba(20, 24, 44, 0.28); }
/* Le dernier span est le libelle de la page courante, pas un separateur :
   a la couleur des separateurs il tombait a ~1,1:1 de contraste. */
.hero-compact .crumbs span:last-child { color: var(--ink-2); font-weight: 600; }
.hero-compact h1 {
  font-size: clamp(36px, 5.2vw, 68px);
}
.hero-compact .lead { margin-top: 18px; }
.hero-compact .btn-row { margin-top: 32px; }
.hero-compact .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-compact .badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: white;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-compact .badges span::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
}
.hero-compact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-compact-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--cream-2);
}
.hero-compact-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero-compact-grid { grid-template-columns: 1fr; }
}

/* ------- 8. Section header ------- */
.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}
.section-head.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  display: inline-flex;
}

/* ------- 9. Service cards (image overlay clickable) ------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink);
  display: block;
  cursor: pointer;
  isolation: isolate;
}
.pain-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.pain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,44,0) 30%, rgba(20,24,44,0.85) 100%);
  z-index: 1;
}
.pain-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  color: white;
  z-index: 2;
}
.pain-card-content h4 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  color: white;
}
.pain-card-content small {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.pain-card-content small::after {
  content: '→';
  transition: transform .25s ease;
}
.pain-card:hover img { transform: scale(1.06); }
.pain-card:hover .pain-card-content small::after { transform: translateX(4px); }

.pain-card.has-slot { background: var(--cream-2); }
.pain-card.has-slot::after { pointer-events: none; }
.photo-strip > div { min-height: 200px; }

/* Placeholder pain card (no image) */
.pain-card.placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}
.pain-card.placeholder::after { display: none; }
.pain-card.placeholder .pain-card-content { color: var(--ink); }
.pain-card.placeholder .pain-card-content h4 { color: var(--ink); }
.pain-card.placeholder .pain-card-content small { color: var(--ink-3); }
.pain-card.placeholder .icon-shape {
  position: absolute;
  top: 20px; right: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--red);
  font-weight: 700;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* ------- 10. Service big cards (Nos prises en charge) ------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.svc-card .svc-img {
  width: 160px; height: 160px;
  border-radius: var(--r-md);
  object-fit: cover;
  transition: transform .35s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card:hover .svc-img { transform: scale(1.04); }
.svc-card .svc-content { max-width: 36ch; }
.svc-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}
.svc-card p { margin-bottom: 18px; }
.svc-card .svc-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.svc-card .svc-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
}
.svc-card .svc-cta a.rdv { background: var(--red); color: white; }
.svc-card .svc-cta a.rdv:hover { background: var(--red-dark); }
.svc-card .svc-cta a.more {
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.svc-card .svc-cta a.more:hover { border-color: var(--ink); }

/* Featured (big) service card on top */
.svc-card.featured {
  grid-column: span 2;
  min-height: 360px;
  background: var(--ink);
  color: white;
  border-color: transparent;
}
.svc-card.featured h3, .svc-card.featured p { color: white; }
.svc-card.featured p { color: rgba(255,255,255,0.74); }
.svc-card.featured .svc-img { width: 220px; height: 220px; }
.svc-card.featured .svc-cta a.more {
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.svc-card.featured .svc-cta a.more:hover {
  background: white;
  color: var(--ink);
}

/* ------- 11. Info cards (approach, etc.) ------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .info-grid, .info-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .info-grid, .info-grid.cols-4 { grid-template-columns: 1fr; }
}

.info-card {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.info-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.info-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0;
}
.info-card .icn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.info-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 15px;
  margin: 0;
}
.info-card.dark {
  background: var(--ink);
  color: white;
  border-color: transparent;
}
.info-card.dark h3 { color: white; }
.info-card.dark p { color: rgba(255,255,255,0.74); }
.info-card.dark .num, .info-card.dark .icn {
  background: rgba(228,0,43,0.18);
  color: #ff6b81;
}

/* ------- 12. List with checks + chips ------- */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin: 0 0 24px;
}
@media (max-width: 720px) { .check-list { grid-template-columns: 1fr; } }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.check-list li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6.2l2.6 2.6 4.4-5.2' stroke='%23E4002B' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all .15s ease;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--red);
  color: var(--red);
}
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ------- 13. Two-column content ------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.two-col .col-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-2);
}
.two-col .col-image img { width: 100%; height: 100%; object-fit: cover; }

/* ------- 14. Steps timeline ------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 28px;
  position: relative;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; }
@media (max-width: 720px) {
  .step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .step:first-child { border-top: 0; padding-top: 0; }
}
.step .step-num {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }

/* ------- 15. FAQ-like blocks (large Q&A) ------- */
.qa-block {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr;
  gap: 40px;
}
.qa-block:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 800px) { .qa-block { grid-template-columns: 1fr; gap: 14px; } }
.qa-block h2, .qa-block h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.qa-block .qa-body p { color: var(--ink-2); }
.qa-block .qa-body strong { color: var(--ink); font-weight: 600; }
.qa-block .qa-body .lead,
.qa-block .qa-body > p:first-child {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 14px;
}

/* ------- 16. Sub-nav (anchor menu) ------- */
.subnav {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.subnav .inner {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav .inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.subnav a:hover { background: var(--cream); color: var(--ink); }

/* ------- 17. Inline CTA banner ------- */
.cta-banner {
  background: var(--red);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -90px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-banner h2 {
  color: white;
  font-size: clamp(28px, 3vw, 40px);
  max-width: 18ch;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin: 8px 0 0;
  position: relative;
  font-size: 16px;
}
.cta-banner .btn-row { position: relative; z-index: 2; }
.cta-banner .btn-primary {
  background: white;
  color: var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.cta-banner .btn-primary:hover { background: var(--ink); color: white; }
.cta-banner .btn-outline {
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.cta-banner .btn-outline:hover {
  background: white;
  color: var(--red);
  border-color: white;
}
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; }
}

/* ------- 18. Contact rapide block ------- */
.contact-quick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: 40px;
  align-items: center;
}
@media (max-width: 800px) { .contact-quick { grid-template-columns: 1fr; } }
.contact-quick .ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-quick .ci .icn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: white;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-quick small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.contact-quick .ci strong { font-size: 16px; font-weight: 600; color: var(--ink); display: block; }
.contact-quick .ci-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }

/* ------- 19. Footer ------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 18px;
}
.site-footer a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  transition: color .15s ease;
}
.site-footer a:hover { color: white; }
.site-footer .brand-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.site-footer .brand-foot img {
  width: 72px; height: 72px;
  background: white;
  border-radius: 18px;
  padding: 6px;
  object-fit: contain;
}
.site-footer .brand-foot .brand-text {
  color: white;
  font-weight: 700;
  font-size: 16px;
}
.site-footer .brand-foot small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}
.site-footer p { color: rgba(255,255,255,0.55); font-size: 14px; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.site-footer .legal a { display: inline-block; margin-left: 20px; }

/* ------- 20. Floating CTA (mobile) ------- */
.floating-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 40;
  display: none;
}
.floating-cta .btn {
  box-shadow: 0 12px 32px rgba(228,0,43,0.4);
}
@media (max-width: 1100px) {
  .floating-cta { display: block; }
}

/* ------- 21. Section: pour qui (list of audiences) ------- */
.audience-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .audience-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience-list { grid-template-columns: 1fr; } }
.audience {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.audience::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ------- 22. Note (italic accent) ------- */
.note {
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 15px;
  color: var(--ink);
}
.note em, .note .italic { font-family: var(--font-italic); font-style: italic; }

/* ------- 23. Highlights (objectif final) ------- */
.objective {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  font-weight: 500;
  font-size: 16px;
  margin: 18px 0 0;
}
.objective::before {
  content: '★';
  color: var(--red);
}

/* ------- 24. Photo strip (cabinet, etc.) ------- */
.photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  grid-template-rows: 280px 280px;
}
@media (max-width: 800px) {
  .photo-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
.photo-strip > div {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-2);
  position: relative;
}
.photo-strip > div:nth-child(1) { grid-row: span 2; }
.photo-strip > div img { width: 100%; height: 100%; object-fit: cover; }
/* Variante à trois photos sur une seule rangée (accueil, section équipe) */
.photo-strip.single-row { grid-template-rows: 340px; }
.photo-strip.single-row > div:nth-child(1) { grid-row: auto; }
@media (max-width: 800px) {
  .photo-strip.single-row { grid-template-rows: auto; }
  .photo-strip.single-row > div:nth-child(1) { grid-column: 1 / -1; }
}
.photo-strip > div .caption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Placeholder block (when image unavailable) */
.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(228,0,43,0.04) 28px 56px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.ph::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1.5px dashed rgba(228,0,43,0.4);
}
.ph span { position: relative; z-index: 1; max-width: 70%; }

/* ------- 25. Animations on scroll ------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ------- 26. Big slogan block ------- */
.slogan {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.slogan .italic {
  color: var(--red);
}

/* ------- 27. Map placeholder ------- */
.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #E8E4DD 0%, #D8D0C4 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.map-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .55;
}
.map-wrap .map-pin {
  position: relative;
  z-index: 2;
  background: var(--red);
  color: white;
  width: 56px; height: 56px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 10px 30px rgba(228,0,43,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-wrap .map-pin::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: white;
}

/* ------- 28. Utilities ------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 16px !important; }
.mt-2 { margin-top: 32px !important; }
.mt-3 { margin-top: 48px !important; }
.mt-4 { margin-top: 72px !important; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.spaced { letter-spacing: 0.05em; }

/* ------- 29. Booking card (page rendez-vous) ------- */
.booking-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.booking-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.booking-head strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.booking-head small {
  display: block;
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.booking-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.booking-widget {
  position: relative;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  width: 100%;
}
.booking-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.booking-note a { color: var(--red); font-weight: 600; }
.booking-note a:hover { text-decoration: underline; }

/* ------- Motifs frequents V2 (vignettes visuelles) ------- */
.motif-grid-v2{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.motif-grid-v2{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.motif-grid-v2{grid-template-columns:1fr}}
.motif-v2{position:relative;display:flex;flex-direction:column;gap:14px;background:white;border:1px solid var(--line);border-radius:var(--r-lg);padding:28px 26px 26px;overflow:hidden;transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .28s ease,border-color .2s ease}
.motif-v2::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.motif-v2:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:transparent}
.motif-v2:hover::before{transform:scaleX(1)}
.motif-v2 .icn{width:56px;height:56px;border-radius:16px;background:var(--red-soft);color:var(--red);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .25s ease,color .25s ease,transform .35s cubic-bezier(.16,1,.3,1)}
.motif-v2:hover .icn{background:var(--red);color:white;transform:translateY(-2px) rotate(-4deg)}
.motif-v2 strong{display:block;font-size:20px;font-weight:700;color:var(--ink);letter-spacing:-0.018em;margin-bottom:5px}
.motif-v2 small{display:block;font-size:14.5px;color:var(--ink-3);line-height:1.5;text-wrap:pretty}
.motif-v2 .go{margin-top:auto;padding-top:16px;font-size:13.5px;font-weight:700;color:var(--red);letter-spacing:.01em;display:inline-flex;align-items:center;gap:7px}
.motif-v2 .go span{transition:transform .25s ease}
.motif-v2:hover .go span{transform:translateX(4px)}

/* ------- Section prises en charge sur fond bleu ------- */
section.ink .svc-card{background:white;border-color:transparent}
section.ink .svc-card h3{color:var(--ink)}
section.ink .svc-card p{color:var(--ink-2)}
section.ink .btn-outline{color:white;border-color:rgba(255,255,255,.34)}
section.ink .btn-outline:hover{background:white;border-color:white;color:var(--ink)}
section.ink .eyebrow{color:var(--red)}
.svc-grid-3{grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:1040px){.svc-grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.svc-grid-3{grid-template-columns:1fr}}
.svc-grid.svc-grid-3 .svc-card{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:24px;min-height:0}
.svc-grid.svc-grid-3 .svc-card .svc-img{order:-1;width:100%;height:180px;flex:none;border-radius:var(--r-md)}
.svc-grid.svc-grid-3 .svc-card .svc-content{max-width:none;display:flex;flex-direction:column;flex:1}
.svc-grid.svc-grid-3 .svc-card h3{font-size:22px}
.svc-grid.svc-grid-3 .svc-card p{font-size:15.5px;margin-bottom:18px}
.svc-grid.svc-grid-3 .svc-card .svc-cta{margin-top:auto}
.svc-grid.svc-grid-3 .svc-card .svc-cta a{font-size:14px;padding:9px 15px}
.svc-slot{width:100%;height:180px;flex:none;border-radius:var(--r-md);overflow:hidden;position:relative;background:var(--cream-2);order:-1}

/* ------- Motifs frequents V3 (photos plein cadre) ------- */
.motif-grid-ph{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width:1040px){.motif-grid-ph{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.motif-grid-ph{grid-template-columns:1fr}}
.motif-ph{position:relative;display:block;border-radius:var(--r-lg);overflow:hidden;background:var(--ink);aspect-ratio:4/3;transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s ease}
.motif-ph:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.motif-ph .ph{position:absolute;inset:0}
.motif-ph .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.motif-ph:hover .ph img{transform:scale(1.06)}
.motif-ph::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(10,13,26,.9) 0%,rgba(10,13,26,.5) 45%,rgba(10,13,26,.08) 100%);pointer-events:none;z-index:1}
.motif-ph .cap{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:24px;color:white;pointer-events:none}
.motif-ph .cap strong{display:block;font-size:22px;font-weight:700;letter-spacing:-0.02em;margin-bottom:5px}
.motif-ph .cap small{display:block;font-size:14px;color:rgba(255,255,255,.8);line-height:1.45;max-width:28ch}
.motif-ph .cap .go{display:inline-flex;align-items:center;gap:7px;margin-top:14px;font-size:13px;font-weight:700;color:white;background:var(--red);padding:8px 14px;border-radius:var(--r-pill);transition:transform .25s ease}
.motif-ph:hover .cap .go{transform:translateX(4px)}

/* Etat vide (photo non deposee) — placeholder lisible, pas de chevauchement */
.motif-ph.is-empty{background:var(--ink);cursor:pointer;aspect-ratio:auto;display:flex;flex-direction:column}
.motif-ph.is-empty::after{display:none}
.motif-ph.is-empty .ph{position:relative;inset:auto;height:clamp(140px,14vw,168px);flex:none}
.motif-ph.is-empty .cap{position:static;padding:20px 22px 22px}
.motif-ph.is-empty .cap small{color:rgba(255,255,255,.62)}

/* ------- Sections fond bleu : composants adaptes ------- */
section.ink .info-card{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.12)}
section.ink .info-card:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.2);box-shadow:none}
section.ink .info-card h3{color:white}
section.ink .info-card p{color:rgba(255,255,255,.66)}
section.ink .info-card .icn,section.ink .info-card .num{background:var(--red);color:white}
section.ink .check-list li{color:rgba(255,255,255,.86)}
section.ink .check-list li::before{background:var(--red);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6.2l2.6 2.6 4.4-5.2' stroke='white' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:center}
section.ink .audience{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:white}
section.ink .accent-italic{color:white}
section.ink .lead{color:rgba(255,255,255,.78)}

/* Blocs Q&A et deux colonnes sur fond bleu */
section.ink .qa-block{border-top-color:rgba(255,255,255,.16)}
section.ink .qa-block h2,section.ink .qa-block h3{color:white}
section.ink .qa-block .qa-body p{color:rgba(255,255,255,.7)}
section.ink .qa-block .qa-body .lead,section.ink .qa-block .qa-body > p:first-child{color:white}
section.ink .qa-block .qa-body strong{color:white}
section.ink .note{background:rgba(255,255,255,.07);border-left-color:var(--red);color:rgba(255,255,255,.82)}
section.ink .muted{color:rgba(255,255,255,.6)}
.info-grid.cols-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:720px){.info-grid.cols-2{grid-template-columns:1fr}}

/* =========================================================================
   27. Correctifs — accessibilité, responsive mobile, états sans photo
   ========================================================================= */

/* ------- 27.1 Navigation clavier -------
   Aucun style de focus n'existait : la tabulation était invisible.
   :focus-visible ne se déclenche qu'au clavier, jamais à la souris. */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header :focus-visible,
.motif-ph:focus-visible,
.svc-card a:focus-visible { outline-offset: 2px; }
section.ink :focus-visible,
.site-footer :focus-visible,
.cta-banner :focus-visible { outline-color: #fff; }

/* Lien d'évitement : masqué jusqu'à réception du focus clavier */
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Texte réservé aux lecteurs d'écran (précision des libellés « En savoir plus ») */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

address.contact-quick { font-style: normal; }

/* ------- 27.2 Header mobile -------
   Le header réclamait 443px de large : sous cette largeur toute la page
   débordait horizontalement. Sous 560px le CTA du header s'efface au profit
   du bouton flottant, déjà affiché en dessous de 1100px. */
@media (max-width: 560px) {
  .site-header .cta-area .btn-primary { display: none; }
  .site-header .inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand .brand-text { white-space: normal; line-height: 1.2; }
}
@media (max-width: 360px) {
  .brand img { width: 38px; height: 38px; }
  .brand { font-size: 15px; }
}

/* Le menu mobile s'ouvre sous un header de 76px : ancrer sur la même valeur */
.mobile-menu { inset: var(--header-h, 76px) 0 0 0; }
.mobile-menu a { min-height: 44px; display: flex; align-items: center; }

/* ------- 27.3 Cibles tactiles -------
   Les liens du footer faisaient 32px de haut (recommandation : 44px). */
@media (pointer: coarse) {
  .site-footer a,
  .site-footer .legal a { min-height: 44px; display: flex; align-items: center; }
  .site-footer .legal a { margin-left: 0; margin-right: 20px; }
}

/* ------- 27.4 Animations -------
   .reveal part de opacity:0 : sans JS la page restait blanche.
   Deux filets : navigateurs sans scripting, et préférence système. */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motif-ph:hover, .svc-card:hover { transform: none; }
}

/* ------- 27.5 États « photo à venir » -------
   Remplace les <image-slot> (composant d'édition) par un rendu statique.
   Le lien reste cliquable : le maillage interne ne dépend plus d'une photo. */
.is-awaiting {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.is-awaiting svg { opacity: .55; }

/* Vignettes de services sans photo */
.svc-slot.is-awaiting {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.05) 26px 52px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}

/* Cartes « motifs fréquents » sans photo */
.motif-ph.is-awaiting {
  background: var(--ink);
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
}
.motif-ph.is-awaiting::after { display: none; }
.motif-ph.is-awaiting .ph {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(130px, 13vw, 160px);
  flex: none;
}
.motif-ph.is-awaiting .cap { position: static; padding: 20px 22px 22px; }
.motif-ph.is-awaiting .cap small { color: rgba(255,255,255,.68); }

/* Bandeau équipe sans photos */
.photo-strip > div.is-awaiting {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.05) 26px 52px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}

/* Etats sans photo des pages internes (cabinet, bfr, douleurs) — meme principe
   que sur l'accueil : rendu propre, lien cliquable, aucun composant d'edition. */
.ph-icon { display: inline-flex; }
.hero-compact-image.is-awaiting {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.05) 26px 52px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}

/* Cartes « douleurs » : h4 -> h3 (le saut h2 -> h4 est corrige, rendu identique) */
.pain-card-content h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  color: white;
}
.pain-card.placeholder .pain-card-content h3 { color: var(--ink); }

/* Sans photo, l'icone en coin laisse un grand vide : on la centre et on
   l'agrandit. Elle revient en coin des qu'une <img> est deposee. */
.pain-card.placeholder:not(:has(img)) .icon-shape {
  top: 50%; left: 50%; right: auto;
  transform: translate(-50%, -62%);
  width: 78px; height: 78px;
}
.pain-card.placeholder:not(:has(img)) .icon-shape svg { width: 38px; height: 38px; }
.pain-card.placeholder:not(:has(img))::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.045) 26px 52px);
  z-index: 0;
}

/* Titres de colonnes du footer : h3 (hiérarchie) mais rendu inchangé */
.site-footer h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 18px;
}
.site-footer .foot-rdv { color: #fff; margin-top: 14px; font-weight: 600; }

/* Sur très petits écrans, un libellé de bouton long ne doit pas élargir la page */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; }
}

/* =========================================================================
   28. Formulaire de rendez-vous
   ========================================================================= */
.form-rdv {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .form-duo { grid-template-columns: 1fr; } }

.champ { margin-bottom: 20px; }
.champ label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.champ label span { color: var(--red); }

.champ input,
.champ textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.champ textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.champ input::placeholder,
.champ textarea::placeholder { color: var(--ink-3); }
.champ input:hover,
.champ textarea:hover { border-color: var(--ink-3); }
.champ input:focus,
.champ textarea:focus {
  outline: none;
  background: white;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.14);
}
/* :focus-visible garde le trait rouge du reste du site pour la navigation clavier */
.champ input:focus-visible,
.champ textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.champ input.invalide,
.champ textarea.invalide { border-color: var(--red); background: rgba(228, 0, 43, 0.035); }

.champ .aide {
  font-size: 13px;
  color: var(--ink-3);
  margin: 7px 0 0;
}
.champ .err {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
  margin: 7px 0 0;
}

/* Le piège à robots doit être invisible sans être display:none, que certains
   automates savent détecter — et hors du flux pour ne rien décaler. */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-rgpd {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 4px 0 22px;
}
.form-rgpd a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.form-rgpd a:hover { color: var(--red); }

.form-pied {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-pied button[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.form-etat {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--ink-2);
}
.form-etat.ok { color: #1B7F4B; }
.form-etat.ko { color: var(--red); }

.form-noscript {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--cream);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-2);
}

/* ------- Équipe (photo de groupe + portraits dépliables) ------- */
.team-group {
  margin-bottom: 36px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
}
.team-group img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-group-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.team-group-ph.is-awaiting {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.05) 26px 52px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start; /* une fiche dépliée ne doit pas étirer ses voisines */
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-member {
  background: white;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.team-member[open] { box-shadow: var(--shadow-md, 0 8px 24px rgba(20,24,44,.08)); }

.team-member > summary {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding-bottom: 20px;
}
.team-member > summary::-webkit-details-marker { display: none; }
.team-member > summary::marker { display: none; content: ''; }

.team-member .team-portrait-ph,
.team-member > summary > img {
  display: block;
  width: 100%;
  height: auto; /* sinon l'attribut height de l'<img> l'emporte sur aspect-ratio */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream-2);
}
.team-member .team-portrait-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.team-member .team-portrait-ph.is-awaiting {
  background:
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(228,0,43,.05) 26px 52px),
    linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
}

.team-info { padding: 18px 22px 0; }
.team-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.team-info .team-role {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin: 0 0 10px;
}
.team-info .team-specs {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 14px;
  line-height: 1.5;
  min-height: 3em; /* deux lignes réservées : les fiches fermées gardent la même hauteur */
}
.team-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
}
.team-chevron { transition: transform .2s ease; display: inline-block; }
.team-member[open] .team-chevron { transform: rotate(180deg); }

.team-bio {
  padding: 4px 22px 22px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
.team-bio p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; }
.team-bio p strong { color: var(--ink); font-weight: 600; }
.team-bio ul { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.team-bio li::marker { color: var(--red); }
