
:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #e5e7eb;
  --soft: #f4f6f8;
  --soft-2: #eef2f6;
  --brand: #e30613;
  --brand-dark: #a80f18;
  --blue: #134aa2;
  --blue-dark: #0b2f6b;
  --shadow: 0 24px 80px rgba(17, 24, 39, .14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.52;
  letter-spacing: normal;
  word-spacing: 0;
  text-rendering: optimizeLegibility;
}

p, li, span, a, figcaption {
  letter-spacing: normal;
  word-spacing: 0;
}

p {
  text-align: left;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 180px;
}
.brand img {
  width: 230px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
}
.nav-links a { text-decoration: none; color: #242b36; }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(227, 6, 19, .25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(.98); box-shadow: 0 18px 42px rgba(227, 6, 19, .31); }
.btn-secondary {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--soft); box-shadow: none; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .95rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
  background:
    radial-gradient(circle at top left, rgba(19,74,162,.12), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(227,6,19,.14), transparent 31%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 42%;
  height: 440px;
  background: rgba(17,24,39,.06);
  transform: rotate(-7deg);
  border-radius: 80px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); margin: 0 0 22px; max-width: 900px; }
h2 { font-size: clamp(2rem, 3.3vw, 3.15rem); margin: 0 0 18px; }
h3 { font-size: 1.32rem; margin: 0 0 10px; }
p { margin: 0 0 16px; color: var(--muted); }
.lead { font-size: clamp(1.08rem, 2vw, 1.27rem); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: #333c49;
  font-weight: 500;
  font-size: .94rem;
}
.hero-media {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 560px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
  background: #dbeafe;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center 56%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.32));
}
.hero-floating-card {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.14);
}
.hero-floating-card strong { display: block; font-size: 1.24rem; line-height: 1.25; font-weight: 700; }
.hero-floating-card span { display: block; color: var(--muted); margin-top: 3px; }

.section { padding: 82px 0; }
.section-muted { background: var(--soft); }
.section-team { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.intro-grid, .split-grid, .access-grid, .team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-copy p { font-size: 1.12rem; }
.approach-photo {
  margin: 0;
  overflow: hidden;
}
.approach-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 48%;
}
.approach-photo figcaption {
  padding: 13px 16px 16px;
  color: #2f3744;
  font-weight: 500;
}
.section-heading { max-width: 800px; margin-bottom: 34px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card, .contact-box, .feature-photo, .access-card, .gallery-item, .team-photo, .approach-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(17,24,39,.06);
}
.service-card { padding: 26px; }
.service-card-soft { background: linear-gradient(180deg, #fff, #f8fafc); }
.service-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  color: #333c49;
  font-weight: 500;
  box-shadow: 0 12px 42px rgba(17,24,39,.05);
}
.service-note strong { color: var(--ink); }
.service-card h3 { color: #172033; }
.service-card p { margin-bottom: 0; }
.cards-grid-specialites { align-items: stretch; }
.service-card-media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9eef5;
}
.service-card-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.service-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.service-card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
}
.service-card-body p {
  margin: 0;
  color: #3c4658;
}

.cards-grid-hors-cpam { align-items: stretch; }
.cards-grid-hors-cpam .service-card-figure { aspect-ratio: 4 / 3; }
.cards-grid-hors-cpam .service-card-body { padding: 20px 22px 25px; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.feature-photo, .team-photo {
  overflow: hidden;
  margin: 0;
}
.feature-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.team-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 30%;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #e5e7eb;
}
.gallery-large {
  grid-row: span 2;
}
.gallery-large img {
  height: 538px;
}
.gallery-wide {
  grid-column: span 2;
}
.gallery-wide img {
  height: 320px;
}
.gallery-item figcaption {
  padding: 13px 16px 16px;
  color: #2f3744;
  font-weight: 500;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(19,74,162,.12), rgba(227,6,19,.10)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cta-band p { max-width: 720px; }
.contact-box { padding: 26px; margin-top: 22px; }
.contact-box a { color: var(--blue); font-weight: 700; }
.access-card {
  overflow: hidden;
}
.access-card img {
  height: 390px;
  width: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.access-card div { padding: 22px; }
.access-card strong { display: block; font-size: 1.35rem; }
.access-card span { display: block; color: var(--muted); margin: 4px 0 10px; }
.access-card a { color: var(--blue); font-weight: 700; text-decoration: none; }
.access-card a:hover { text-decoration: underline; }


.inline-link { color: var(--blue); font-weight: 700; text-decoration: underline; }
.contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form-intro {
  max-width: 760px;
}
.contact-form {
  margin-top: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-weight: 700;
  color: #162033;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fbfdff;
  padding: 15px 16px;
  font: inherit;
  color: #162033;
  line-height: 1.45;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #667085;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(19,74,162,.55);
  box-shadow: 0 0 0 4px rgba(19,74,162,.12);
  background: #fff;
}
.form-group select {
  width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fbfdff;
  padding: 15px 44px 15px 16px;
  font: inherit;
  color: #162033;
  line-height: 1.45;
  cursor: pointer;
}
.form-group select:invalid {
  color: #6f7888;
}
.form-group select option {
  color: #162033;
}
.field-help {
  margin: 0;
  color: #667085;
  font-size: .92rem;
  line-height: 1.45;
}
.form-group textarea {
  min-height: 180px;
  resize: vertical;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.form-status {
  min-height: 24px;
  font-size: .98rem;
  color: #2f3744;
}
.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* V44 — correctifs d’audit : accessibilité, formulaire et tactile */
.conditional-field[hidden] { display: none !important; }
.optional-label { font-weight: 500; color: #667085; font-size: .92em; }
.field-warning {
  margin-top: 2px;
  padding: 10px 12px;
  border-left: 3px solid #c40012;
  border-radius: 8px;
  background: #fff7f7;
  color: #4b5563;
}
.home-care-panel { max-width: 720px; }
.home-care-panel > strong { display:block; font-size:1.15rem; margin-bottom:6px; }
.success-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.success-card p { text-align: center; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display:grid; place-items:center; border-radius:50%;
  background:#ecfdf3; color:#067647; font-size:2rem; font-weight:900;
}
.success-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:24px; }

.site-footer {
  background: #0b1220;
  color: #fff;
  padding: 44px 0 22px;
}
.site-footer p { color: rgba(255,255,255,.72); margin-bottom: 0; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.footer-logo {
  width: 220px;
  height: auto;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer-links a:hover { color: #dbeafe; }
.legal-note {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 26px;
  padding-top: 18px;
  font-size: .92rem;
}

@media (max-width: 980px) {
  .nav { min-height: 72px; }
  .brand img { width: 190px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
  }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding: 56px 0 50px; }
  .hero-grid, .intro-grid, .split-grid, .access-grid, .team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-media, .hero-media img { min-height: 440px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-four { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-large { grid-row: auto; }
  .gallery-large img { height: 300px; }
  .gallery-wide { grid-column: span 2; }
  .cta-band { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand img { width: 165px; }
  h1 { font-size: 2.35rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; padding: 0 18px; text-align: center; }
  .trust-list { gap: 8px; }
  .trust-list li { font-size: .86rem; }
  .section { padding: 58px 0; }
  .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .gallery-item img, .gallery-large img, .gallery-wide img {
    height: 280px;
  }
  .feature-photo img, .team-photo img, .approach-photo img { height: 360px; }
  .cta-band { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 22px 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .hero-media, .hero-media img { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


.access-card-secondary {
  margin-top: 22px;
}
@media (min-width: 981px) {
  .access-card-secondary {
    grid-column: 2;
    margin-top: 0;
  }
}


/* Ajustement typographique : rendu plus naturel, espacement resserré */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  word-spacing: -0.02em;
  letter-spacing: -0.005em;
}
p, li, a, span, input, textarea, button {
  word-spacing: -0.015em;
}
h1, h2, h3 {
  letter-spacing: -0.03em;
}
.seo-link-card {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.seo-link-card strong {
  display: block;
  color: #162033;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.seo-link-card p {
  margin-bottom: 10px;
  color: var(--muted);
}



/* V33 SEO hub additions */
.seo-hub .cards-grid { align-items: stretch; grid-template-columns: repeat(2, 1fr); }
.service-card a.text-link { margin-top: 10px; display: inline-flex; }
.breadcrumb { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.page-intro-list { margin: 20px 0 0; padding-left: 18px; color: var(--muted); }
.page-intro-list li { margin: 8px 0; }
.local-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.local-proof { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.local-proof strong { display: block; margin-bottom: 6px; }
.inline-seo-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.inline-seo-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; text-decoration: none; font-weight: 700; font-size: .94rem; background: #fff; }
.inline-seo-nav a:hover { color: var(--brand); }
.profile-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 14px 40px rgba(17,24,39,.07); }
@media (max-width: 900px) { .local-proof-grid { grid-template-columns: 1fr; } }


/* V35: accessibilité, confidentialité, consentement et responsive */
:root {
  --brand: #c40012;
  --brand-dark: #8f0b16;
}
:focus-visible { outline: 3px solid #0b2f6b; outline-offset: 3px; }
.btn:focus-visible, .nav-toggle:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 5px #0b2f6b; }
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 980px; margin: 0 auto; padding: 20px;
  background: #0b1220; color: #fff; border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.28);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: rgba(255,255,255,.86); margin: 0; }
.cookie-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.cookie-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.cookie-actions button { min-height:44px; border-radius:999px; padding:0 18px; border:1px solid rgba(255,255,255,.35); font:inherit; font-weight:700; cursor:pointer; }
.cookie-accept { background:#fff; color:#0b1220; }
.cookie-refuse { background:transparent; color:#fff; }
.cookie-settings-link { background:none; border:0; padding:0; color:#fff; text-decoration:underline; font:inherit; font-weight:700; cursor:pointer; }
.form-help { font-size:.92rem; color:#5b6472; margin-top:8px; }
.form-error { color:#9b0010; font-weight:700; }
.legal-page .service-card p, .legal-page .service-card li { color:#2f3744; }
.legal-page .service-card ul { margin-top:8px; }
.error-page { min-height:65vh; display:grid; place-items:center; text-align:center; }
.error-card { max-width:760px; margin:auto; }
.error-code { font-size:clamp(4rem,15vw,9rem); line-height:1; margin:0; color:#c40012; font-weight:800; }
@media (max-width: 640px) {
  .container { width:min(var(--max), calc(100% - 28px)); }
  .section { padding:58px 0; }
  .hero { padding:54px 0 48px; }
  .btn, .btn-small { width:100%; text-align:center; }
  .hero-actions, .form-actions { flex-direction:column; align-items:stretch; }
  .cookie-banner { left:10px; right:10px; bottom:10px; padding:16px; }
  .cookie-actions button { width:100%; }
  .footer-grid { align-items:flex-start; }
}

/* Contact kinésithérapie à domicile — actions claires et accessibles */
.home-care-contact-block {
  margin-top: 30px;
  max-width: 690px;
}
.home-care-contact-title {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
}
.home-care-actions {
  display: grid;
  gap: 12px;
}
.home-care-action {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 13px 16px;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.home-care-action:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 6, 19, .55);
  background: #fffafa;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .10);
}
.home-care-action:focus-visible {
  outline: 3px solid #0b2f6b;
  outline-offset: 3px;
}
.home-care-action-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff1f2;
  color: var(--brand);
  flex: 0 0 auto;
}
.home-care-action-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-care-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.25;
}
.home-care-action-copy strong {
  font-size: 1.02rem;
  color: #161c27;
}
.home-care-action-copy small {
  font-size: .91rem;
  line-height: 1.35;
  color: #596273;
  overflow-wrap: anywhere;
}
.home-care-action-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 800;
}
@media (max-width: 620px) {
  .home-care-contact-block { margin-top: 24px; }
  .home-care-action {
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 11px;
    min-height: 76px;
    padding: 12px 13px;
    border-radius: 16px;
  }
  .home-care-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }
  .home-care-action-icon svg { width: 23px; height: 23px; }
  .home-care-action-copy strong { font-size: 1rem; }
  .home-care-action-copy small { font-size: .87rem; }
}


/* Navigation v41 : hiérarchie simplifiée + menu Kiné du sport accessible */
.nav.container {
  width: min(1240px, calc(100% - 32px));
}
.nav-links {
  gap: 10px;
}
.nav-links > a:not(.btn),
.nav-dropdown-toggle {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 12px;
}
.nav-links > a:not(.btn) {
  display: inline-flex;
  align-items: center;
}
.nav-links > a[aria-current="page"]:not(.btn),
.nav-dropdown-current > .nav-dropdown-toggle {
  color: var(--brand);
  background: #fff5f5;
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #242b36;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--brand);
  background: #fff5f5;
}
.nav-chevron {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .18s ease;
}
.nav-dropdown.is-open .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  min-width: 245px;
}
.nav-dropdown-menu a {
  color: #242b36;
  text-decoration: none;
}
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--brand);
  font-weight: 800;
}

/* Le service à domicile reste identifiable sans surcharger le bandeau. */
.nav-home-care {
  position: relative;
  gap: 6px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #242b36 !important;
  white-space: nowrap;
  transform: none !important;
}
.nav-home-care:hover {
  color: #9a5600 !important;
  background: #fff8e7 !important;
}
.nav-home-care[aria-current="page"] {
  color: #8a4b00 !important;
  background: #fff4d6 !important;
}
.nav-new-badge {
  position: static !important;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f59e0b;
  color: #4b2b00;
  font-size: .56rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: none;
}

@media (min-width: 981px) {
  /* Avec seulement cinq rubriques, le menu reste horizontal jusqu'à 980 px. */
  .nav-toggle { display: none !important; }
  .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .nav-dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 60;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 11px 13px !important;
    border-radius: 10px;
    white-space: nowrap;
  }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    color: var(--brand);
    background: #fff5f5;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-dropdown-toggle {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 12px 14px;
    text-align: left;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    margin: 0 6px 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 12px 13px !important;
    border-radius: 10px;
  }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    background: #fff;
    color: var(--brand);
  }
  .nav-home-care {
    margin: 0 !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    justify-content: flex-start !important;
  }
  .nav-links > a:not(.btn) {
    min-height: 48px;
    padding: 12px 14px;
  }
  .nav-links .btn.btn-small {
    margin-top: 7px;
  }
}


/* V44 — navigation tactile et coexistence avec le bandeau de confidentialité */
.site-header { z-index: 300; }
@media (max-width: 980px) {
  .nav-toggle { min-height: 48px; min-width: 72px; }
  .nav-links {
    z-index: 320;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  .cookie-banner { max-height: 44vh; overflow-y: auto; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
}

@media (max-width: 720px) {
  .seo-hub .cards-grid { grid-template-columns: 1fr; }
}


/* V48 — organisation UX */
.card-detail-link {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
}
.cabinet-gallery {
  margin-top: 54px;
  scroll-margin-top: 100px;
}
.cabinet-gallery-heading {
  margin-bottom: 24px;
}
.cabinet-gallery .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cabinet-gallery .gallery-item img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.footer-grid {
  align-items: start;
  flex-wrap: wrap;
}
.footer-local-area {
  max-width: 440px;
}
.footer-local-area > strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}
.footer-local-area p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.74);
  font-size: .94rem;
}
.footer-local-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-local-links a {
  color: rgba(255,255,255,.92);
  font-weight: 650;
  text-decoration: none;
}
.footer-local-links a:hover,
.footer-local-links a:focus-visible {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .cabinet-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cabinet-gallery { margin-top: 38px; }
  .cabinet-gallery .gallery-grid { grid-template-columns: 1fr; }
  .cabinet-gallery .gallery-item img { aspect-ratio: 4 / 3; }
  .footer-local-area { max-width: none; }
}

.contact-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .contact-direct-actions .btn { width: 100%; justify-content: center; text-align: center; }
}


/* V49 — pages pédagogiques fondées sur la littérature */
.article-narrow { max-width: 920px; }
.hero-education .hero-media img { width:100%; height:100%; min-height:440px; object-fit:cover; }
.education-quick-grid { align-items:stretch; }
.evidence-box, .warning-card, .education-disclaimer {
  margin-top:24px; padding:20px 22px; border-radius:18px; border:1px solid var(--line); background:#fff;
  box-shadow:0 10px 34px rgba(17,24,39,.05); color:#303a49;
}
.evidence-box { border-left:5px solid var(--blue); }
.warning-card { border-left:5px solid #c43a35; }
.warning-card p { margin:8px 0 0; }
.education-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:26px; }
.education-step { display:flex; gap:16px; align-items:flex-start; padding:22px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 12px 38px rgba(17,24,39,.05); }
.education-step-number { flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--blue); color:#fff; font-weight:800; }
.education-step h3 { margin:2px 0 8px; font-size:1.08rem; }
.education-step p { margin:0; color:#3d4656; }
.education-list { padding-left:22px; margin:18px 0 0; }
.education-list li { margin:10px 0; }
.reference-list { padding-left:24px; margin-top:22px; }
.reference-list li { margin:0 0 20px; padding-left:6px; color:#384252; }
.reference-list strong { color:#172033; }
.reference-list span { display:inline-block; margin:4px 0 6px; }
.reference-list a { color:var(--blue); font-weight:700; overflow-wrap:anywhere; }
.education-disclaimer { font-size:.96rem; background:#f8fafc; }
@media (max-width: 760px) {
  .education-steps { grid-template-columns:1fr; }
  .hero-education .hero-media img { min-height:0; }
  .evidence-box, .warning-card, .education-disclaimer, .education-step { padding:18px; }
}


/* V51 — lecture pédagogique visuelle */
.education-overview {
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:34px;
  align-items:center;
}
.education-illustration {
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 48px rgba(17,24,39,.08);
}
.education-illustration img {
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}
.education-illustration figcaption {
  padding:12px 16px 15px;
  color:#596273;
  font-size:.9rem;
  line-height:1.45;
}
.education-summary-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:20px;
}
.education-summary-item {
  min-height:112px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 9px 28px rgba(17,24,39,.045);
}
.education-summary-item strong {
  display:block;
  margin-bottom:5px;
  color:#172033;
  font-size:1rem;
}
.education-summary-item span {
  display:block;
  color:#4d5869;
  line-height:1.45;
  font-size:.94rem;
}
.education-takeaway {
  margin-top:18px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid #cfe0f7;
  background:#f3f8ff;
  color:#26364c;
  line-height:1.55;
}
.education-takeaway strong { color:#0b2f6b; }
.education-infographic {
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
  gap:12px;
}
.education-infographic-step {
  position:relative;
  min-height:150px;
  padding:18px 15px 16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 30px rgba(17,24,39,.05);
}
.education-infographic-step .step-badge {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:12px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font-weight:900;
  font-size:.9rem;
}
.education-infographic-step h3 {
  margin:0 0 6px;
  font-size:1rem;
  line-height:1.25;
  color:#172033;
}
.education-infographic-step p {
  margin:0;
  color:#526071;
  font-size:.9rem;
  line-height:1.4;
}
.education-infographic-caption {
  margin-top:16px;
  color:#596273;
  font-size:.92rem;
  line-height:1.5;
}
.education-source-chip {
  display:inline-flex;
  align-items:center;
  min-height:36px;
  margin-top:12px;
  padding:7px 11px;
  border-radius:999px;
  background:#eef5ff;
  color:#0b4d9f;
  font-weight:800;
  font-size:.88rem;
  text-decoration:none;
}
.education-source-chip:hover { text-decoration:underline; }
.education-recommendation-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.education-recommendation {
  padding:18px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 10px 30px rgba(17,24,39,.045);
}
.education-recommendation h3 { margin:0 0 7px; font-size:1.02rem; color:#172033; }
.education-recommendation p { margin:0; color:#4d5869; line-height:1.48; }
.education-note-list { margin:10px 0 0; padding-left:20px; }
.education-note-list li { margin:7px 0; }
.education-sport-examples {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.education-sport-example {
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.education-sport-example h3 { margin:0 0 7px; font-size:1rem; color:#172033; }
.education-sport-example p { margin:0; color:#4d5869; font-size:.94rem; line-height:1.45; }
@media (max-width: 820px) {
  .education-overview { grid-template-columns:1fr; gap:24px; }
  .education-illustration { max-width:680px; }
  .education-sport-examples { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .education-summary-grid, .education-recommendation-grid { grid-template-columns:1fr; }
  .education-summary-item { min-height:0; }
  .education-infographic { grid-template-columns:1fr; }
  .education-infographic-step { min-height:0; display:grid; grid-template-columns:44px 1fr; column-gap:12px; align-items:start; }
  .education-infographic-step .step-badge { grid-row:1 / span 2; margin:0; }
  .education-infographic-step h3 { margin-top:2px; }
}

/* V52 — continuum visuel blessures musculaires */
.rehab-continuum-figure {
  margin: 8px auto 12px;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(17,24,39,.08);
}
.rehab-continuum-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rehab-continuum-figure figcaption {
  padding: 14px 18px 17px;
  color: #4d5869;
  font-size: .94rem;
  line-height: 1.55;
}
.rehab-continuum-figure figcaption strong { color: var(--ink); }
.rehab-continuum-figure-wide { margin-top: 30px; }
@media (max-width: 620px) {
  .rehab-continuum-figure { border-radius: 20px; }
  .rehab-continuum-figure figcaption { padding: 12px 14px 15px; font-size: .91rem; }
}

/* V54 — galerie photo page Kiné du sport / Présentation */
.presentation-gallery-section {
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}
.presentation-gallery-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.presentation-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 30px auto 0;
  align-items: stretch;
}
.presentation-gallery-item {
  grid-column: span 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.presentation-gallery-item:nth-child(4) {
  grid-column: 2 / span 2;
}
.presentation-gallery-item:nth-child(5) {
  grid-column: 4 / span 2;
}
.presentation-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #eef1f5;
}
.presentation-gallery-item figcaption {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 16px;
  text-align: center;
  color: #303846;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .presentation-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
  }
  .presentation-gallery-item,
  .presentation-gallery-item:nth-child(4),
  .presentation-gallery-item:nth-child(5) {
    grid-column: auto;
  }
  .presentation-gallery-item:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .presentation-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 430px;
  }
  .presentation-gallery-item,
  .presentation-gallery-item:nth-child(4),
  .presentation-gallery-item:nth-child(5) {
    grid-column: 1;
    width: 100%;
  }
  .presentation-gallery-item figcaption {
    min-height: 0;
  }
}
