/* ═══════════════════════════════════════════════════════════════
   RÉSIDENCE LES ACACIAS — style.css
   Design System : Cormorant Garamond + DM Sans · Claymorphisme
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --white:        #FFFFFF;
  --bg:           #F7F4EF;
  --bg-section:   #EFF6F7;
  --primary:      #4A90A4;
  --primary-dk:   #3a7a8e;
  --primary-lt:   #7BBFB5;
  --accent:       #F2A65A;
  --accent-dk:    #e0924a;
  --text:         #2C3E50;
  --text-mid:     #3d5166;
  --text-light:   #6B7C8D;
  --border:       #E2EDF0;

  --radius-sm:    10px;
  --radius-md:    18px;
  --radius-lg:    28px;
  --radius-xl:    44px;
  --radius-full:  9999px;

  --shadow-clay:  0 8px 32px rgba(74,144,164,0.13), 0 2px 8px rgba(44,62,80,0.07);
  --shadow-card:  0 4px 24px rgba(44,62,80,0.09);
  --shadow-btn:   0 4px 18px rgba(74,144,164,0.28);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1160px;
  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── TYPOGRAPHIE ── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a6f82;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--primary); }
.section-title strong { color: var(--primary); font-weight: 700; }
.body-lg { font-size: 17px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }
.body-std { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(44,62,80,0.10);
}
.site-nav { width: 100%; }

/* CMS nav classes */
.cms-nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}
.cms-nav-logolink {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.cms-nav-logo { height: 40px; width: auto; }
.cms-nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.site-header:not(.scrolled) .cms-nav-brand { color: #fff; }
.site-header:not(.scrolled) .cms-nav-logo { filter: brightness(0) invert(1); }

/* Scrolled : logo bleu primaire + recrutement contour orange */
.site-header.scrolled .cms-nav-brand { color: var(--primary); }
.site-header.scrolled .cms-nav-logo { filter: brightness(0) saturate(100%) invert(52%) sepia(30%) saturate(600%) hue-rotate(155deg) brightness(95%); }
.site-header.scrolled .nav-btn-ghost { border-color: var(--accent); color: var(--accent); }
.site-header.scrolled .nav-btn-ghost:hover { background: rgba(242,166,90,0.1); }

.cms-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.cms-nav-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.cms-nav-links li a:hover,
.cms-nav-links li a.active { color: var(--primary); background: rgba(74,144,164,0.08); }
.site-header:not(.scrolled) .cms-nav-links li a { color: rgba(255,255,255,0.85); }
.site-header:not(.scrolled) .cms-nav-links li a:hover,
.site-header:not(.scrolled) .cms-nav-links li a.active { color: #fff; background: rgba(255,255,255,0.15); }
/* Dropdown : fond blanc, texte sombre — annule les overrides blanc du header */
.site-header .nav-dropdown a { color: var(--text) !important; }
.site-header .nav-dropdown a:hover { color: var(--primary) !important; background: var(--bg-section); }
.site-header .nav-dropdown a.active { color: var(--primary) !important; background: rgba(74,144,164,0.08); }

.cms-nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.nav-btn-ghost {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  transition: border-color .2s, color .2s;
}
.nav-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.site-header:not(.scrolled) .nav-btn-ghost { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.4); }
.site-header:not(.scrolled) .nav-btn-ghost:hover { border-color: #fff; color: #fff; }

.nav-btn-primary {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: background .2s, transform .18s;
}
.nav-btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }

.cms-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background .2s;
}
.cms-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .2s;
}
.site-header:not(.scrolled) .cms-nav-toggle span { background: #fff; }
.nav-open .cms-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .cms-nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .cms-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ═══════════════════════════════════════════════
   DROPDOWN SOUS-MENU (La résidence)
═══════════════════════════════════════════════ */
.nav-has-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500;
  color: var(--text-light);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  cursor: pointer; background: none; border: none;
  font-family: var(--font-body);
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { color: var(--primary); background: rgba(74,144,164,0.08); }
.site-header:not(.scrolled) .nav-dropdown-toggle { color: rgba(255,255,255,0.85); }
.site-header:not(.scrolled) .nav-dropdown-toggle:hover,
.site-header:not(.scrolled) .nav-dropdown-toggle.active { color: #fff; background: rgba(255,255,255,0.15); }

.nav-dropdown-arrow {
  font-size: 10px; transition: transform .2s;
  display: inline-block;
}
.nav-has-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(44,62,80,0.14);
  border: 1px solid var(--border);
  min-width: 200px;
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 9px 12px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-dropdown a:hover { background: var(--bg-section); color: var(--primary); }
.nav-dropdown a.active { color: var(--primary); background: rgba(74,144,164,0.08); }
.nav-dropdown-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile : dropdown inline dans le menu ouvert */
@media (max-width: 768px) {
  .nav-has-dropdown { position: static; }
  .nav-dropdown {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none; border: none;
    background: var(--bg-section); border-radius: var(--radius-sm);
    padding: 4px 0 4px 16px; margin: 0 0 4px;
    display: none;
  }
  .nav-has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown-toggle { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text); font-size: 16px; }
  .nav-dropdown a { font-size: 15px; }
}


/* ═══════════════════════════════════════════════
   CMS BUTTONS (marqueurs CMS)
═══════════════════════════════════════════════ */
.cms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  text-decoration: none;
  white-space: nowrap;
}
.cms-btn:hover { transform: translateY(-2px); }
.cms-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.cms-btn-primary:hover { background: var(--primary-dk); box-shadow: 0 6px 24px rgba(74,144,164,0.38); }
.cms-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
}
.cms-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.section-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--text) 0%, #1a2f40 45%, #2a5060 100%);
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(74,144,164,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(123,191,181,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.section-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bg);
}

/* CMS Hero classes */
.cms-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.cms-hero-content { flex: 1; max-width: 560px; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-lt);
  margin-bottom: 20px;
}
.cms-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
}
.cms-hero-title strong { color: var(--primary-lt); font-weight: 700; }

.cms-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
}
.cms-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cms-hero-cta .cms-btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.cms-hero-cta .cms-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* Zone illustration clay hero */
.cms-hero-img-wrap {
  flex-shrink: 0;
  position: relative;
  width: 360px;
}
.cms-hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  display: block;
}

/* Carte flottante */
.hero-float-card {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}
.hero-float-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.hero-float-label { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* ═══════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
/* Badges dans le hero (fond sombre) → texte blanc */
.badge-primary { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.18); }
.badge-success { background: rgba(123,191,181,0.25); color: #fff; }
.badge-accent  { background: rgba(242,166,90,0.28); color: #fff; }
.badge-neutral { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.18); }
.badge-dot::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ═══════════════════════════════════════════════
   STATS BAND
═══════════════════════════════════════════════ */
.section-stats {
  background: var(--white);
  padding: 20px 0;
  box-shadow: 0 2px 16px rgba(44,62,80,0.06);
  position: relative;
  z-index: 10;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}
.stat-item { text-align: center; padding: 12px 16px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   PRÉSENTATION
═══════════════════════════════════════════════ */
.section-presentation { padding: 96px 0; }
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.presentation-media { position: relative; }
.presentation-float-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-badge-icon { font-size: 28px; }
.float-badge-title { font-weight: 600; font-size: 14px; color: var(--text); }
.float-badge-sub { font-size: 12px; color: var(--text-light); }

.pres-features { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.pres-feature { display: flex; align-items: flex-start; gap: 14px; }
.pres-feature-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.pres-feature-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.pres-feature-sub { font-size: 13px; color: var(--text-light); }

/* ═══════════════════════════════════════════════
   ZONES IMAGE & CLAY
═══════════════════════════════════════════════ */
.img-zone, .clay-zone {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-section), #d4edf0);
}
.img-zone--tall { height: 460px; }
.img-zone--anim { height: 200px; }
.clay-zone--hero {
  width: 360px;
  height: 400px;
  background: linear-gradient(145deg, rgba(123,191,181,0.25), rgba(74,144,164,0.35));
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(44,62,80,0.25);
}
.clay-zone--card { height: 200px; background: linear-gradient(135deg, #dff0f3, #c8e8ec); }
.clay-zone--card-sm { height: 160px; background: linear-gradient(135deg, #dff0f3, #c8e8ec); }

.img-zone-img, .clay-zone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-hero-img-wrap .clay-zone img { border-radius: var(--radius-xl); }

.img-zone-label, .clay-zone-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}
.clay-zone-label { opacity: 1; }
.clay-zone img + .clay-zone-label { display: none; }
.clay-zone--empty .clay-zone-label { display: flex; }
.img-zone-label { opacity: 0; transition: opacity .2s; }
.img-zone--empty .img-zone-label { opacity: 1; }

.clay-zone-label span, .img-zone-label span { font-size: 36px; }
.clay-zone-label p, .img-zone-label p { font-size: 13px; color: var(--text-light); line-height: 1.4; }
.clay-zone-label em, .img-zone-label em { font-style: italic; }

/* ═══════════════════════════════════════════════
   SECTION ALT
═══════════════════════════════════════════════ */
.section-alt { background: var(--bg-section); }

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.section-services { padding: 96px 0; }
.cms-section-header { text-align: center; margin-bottom: 56px; }
.cms-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}
.cms-section-subtitle { font-size: 16px; color: var(--text-mid); max-width: 560px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Service card base */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(74,144,164,0.18); }

/* Highlight card : Répit (grande, prend 2 lignes) */
.service-card--highlight {
  grid-row: 1 / 3;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-lt) 100%);
  display: flex;
  flex-direction: column;
  /* Empêche la card de s'étirer indéfiniment quand la photo est absente */
  max-height: 560px;
}
.service-card-clay { flex-shrink: 0; }
.service-card--highlight .clay-zone--card { height: 220px; min-height: 120px; background: rgba(255,255,255,0.12); }
.service-card--highlight .clay-zone-label span { font-size: 48px; }
.service-card--highlight .clay-zone-label p { color: rgba(255,255,255,0.7); }

.service-card-body { padding: 24px; flex: 1; }
.service-card--highlight .service-card-body { display: flex; flex-direction: column; }

.service-card-media { overflow: hidden; }

.service-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.service-card:not(.service-card--highlight):not(.service-card--accent) .service-label { color: #2a6f82; }

.cms-service-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.service-card--highlight .cms-service-name { color: #fff; font-size: 28px; }
.service-card--accent .cms-service-name { color: #fff; }

.cms-service-desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.service-card--highlight .cms-service-desc { color: rgba(255,255,255,0.85); }
.service-card--accent .cms-service-desc { color: rgba(255,255,255,0.85); }

.service-card-zones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.zone-tag { font-size: 11px; font-weight: 500; background: rgba(255,255,255,0.2); color: #fff; padding: 4px 10px; border-radius: var(--radius-full); }

.service-card-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: background .2s, transform .18s;
}
.service-card-btn:hover { transform: translateY(-1px); }
.service-card-btn--white { background: #fff; color: var(--primary); }
.service-card-btn--white:hover { background: #f0f8fa; }

.service-card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color .2s;
}
.service-card-link:hover { color: var(--primary-dk); }

/* Accent card : Espace familles */
.service-card--accent {
  background: linear-gradient(135deg, #2C3E50 0%, #1a2f40 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-card-icon { font-size: 36px; margin-bottom: 12px; }

/* Classes CMS generiques services */
.cms-service-grid, .cms-service-card, .cms-service-img, .cms-service-body, .cms-service-icon { /* bridge classes */ }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
.section-animations { padding: 96px 0; }
.anim-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.anim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.anim-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .22s;
}
.anim-card:hover { transform: translateY(-4px); }
.anim-card-img { height: 200px; overflow: hidden; }
.anim-card-body { padding: 20px 22px; }
.anim-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.anim-card-desc { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* Bannière espace familles */
.familles-banner {
  background: linear-gradient(135deg, var(--text) 0%, #1a2f40 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.familles-banner-content { display: flex; align-items: center; gap: 16px; }
.familles-banner-icon { font-size: 36px; flex-shrink: 0; }
.familles-banner-title { font-weight: 600; font-size: 17px; color: #fff; margin-bottom: 4px; }
.familles-banner-sub { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════
   TARIFS
═══════════════════════════════════════════════ */
.section-pricing { padding: 96px 0; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 32px 28px;
}
.pricing-card--accent { border: 2px solid var(--accent); }
.pricing-card--highlight {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-lt) 100%);
  position: relative;
}
.pricing-free-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}
.pricing-card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #2a6f82; margin-bottom: 16px; }
.pricing-card-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price-val { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--text); }
.price-per { font-size: 15px; color: var(--text-light); }
.pricing-card-sub { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.pricing-card-note { font-size: 12px; color: var(--primary); font-weight: 500; background: rgba(74,144,164,0.08); padding: 6px 12px; border-radius: var(--radius-sm); display: inline-block; }
.pricing-footnote { font-size: 12px; color: var(--text-light); }
.pricing-footnote a { color: var(--primary); text-decoration: underline; }

/* CMS pricing bridge classes */
.cms-pricing-grid, .cms-pricing-card, .cms-pricing-card--featured, .cms-pricing-badge,
.cms-pricing-name, .cms-pricing-price, .cms-pricing-period, .cms-pricing-desc,
.cms-pricing-features, .cms-pricing-feature, .cms-btn-pricing { /* bridge */ }

/* ═══════════════════════════════════════════════
   TÉMOIGNAGES
═══════════════════════════════════════════════ */
.section-testi { padding: 96px 0; }
.cms-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cms-testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 28px 26px;
}
.cms-testi-stars { font-size: 18px; color: var(--accent); margin-bottom: 16px; letter-spacing: 2px; }
.cms-testi-text { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.cms-testi-author { display: flex; align-items: center; gap: 12px; }
.cms-testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-section);
  overflow: hidden;
  flex-shrink: 0;
}
.cms-testi-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(74,144,164,0.12);
}
.cms-testi-name { font-weight: 600; font-size: 14px; color: var(--text); }
.cms-testi-role { font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════════════════════════
   CONTACT BAND
═══════════════════════════════════════════════ */
.section-contact-band {
  background: linear-gradient(135deg, #1a2f40 0%, #2a5060 100%);
  padding: 80px 0;
}
.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.contact-band-text { flex: 1; }
.contact-band-info { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.cms-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color .2s;
}
.cms-contact-link:hover { color: #fff; }
.contact-icon { font-size: 20px; flex-shrink: 0; }
.contact-band-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
}
.contact-band-urgence { margin-top: 8px; }
.cms-contact-info, .cms-contact-social, .cms-social-link { /* bridge */ }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer { background: #1a2530; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-top: 10px; }
.footer-finess { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 8px; font-family: monospace; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-address { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.8; }
.footer-address a { color: rgba(255,255,255,0.65); transition: color .2s; }
.footer-address a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.4); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════════
   CMS BRIDGE CLASSES (toutes requises par le panel)
═══════════════════════════════════════════════ */
.cms-nav-inner, .cms-nav-logolink, .cms-nav-logo, .cms-nav-brand,
.cms-nav-toggle, .cms-nav-links { /* défini plus haut */ }

.cms-hero-inner, .cms-hero-content, .cms-hero-title, .cms-hero-subtitle,
.cms-hero-cta, .cms-hero-img-wrap, .cms-hero-img { /* défini plus haut */ }

.cms-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.cms-product-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-clay); overflow: hidden; }
.cms-product-img-wrap { height: 180px; overflow: hidden; background: var(--bg-section); }
.cms-product-img { width: 100%; height: 100%; object-fit: cover; }
.cms-product-img--empty { display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 40px; }
.cms-product-body { padding: 20px; }
.cms-product-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.cms-product-desc { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }
.cms-product-footer { display: flex; align-items: center; justify-content: space-between; }
.cms-product-price { font-size: 18px; font-weight: 600; color: var(--primary); }
.cms-product-price-orig { font-size: 13px; color: var(--text-light); text-decoration: line-through; }
.cms-price-cur { font-size: 13px; color: var(--text-light); }
.cms-badge { font-size: 11px; font-weight: 600; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: var(--radius-full); }

.cms-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.cms-blog-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-clay); overflow: hidden; }
.cms-blog-img-link { display: block; }
.cms-blog-img { width: 100%; height: 180px; object-fit: cover; }
.cms-blog-img--empty { height: 180px; background: var(--bg-section); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 36px; }
.cms-blog-body { padding: 20px; }
.cms-blog-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.cms-blog-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.cms-blog-excerpt { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 16px; }
.cms-blog-read { font-size: 14px; color: var(--primary); font-weight: 500; }
.cms-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cms-tag { font-size: 11px; font-weight: 500; background: rgba(74,144,164,0.1); color: var(--primary); padding: 3px 10px; border-radius: var(--radius-full); }

.cms-hours-table { width: 100%; }
.cms-hours-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cms-hours-closed .cms-hours-time { color: var(--text-light); font-style: italic; }
.cms-hours-day { font-weight: 500; font-size: 15px; }
.cms-hours-time { font-size: 15px; color: var(--text-mid); }
.cms-hours-note { font-size: 13px; color: var(--text-light); margin-top: 12px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--highlight { grid-column: 1 / 3; grid-row: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav mobile */
  .cms-nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(44,62,80,0.15);
    z-index: 800;
    border-top: 1px solid var(--border);
  }
  .cms-nav-links.is-open { display: flex; }
  .cms-nav-links li a { padding: 14px 16px; border-radius: var(--radius-sm); color: var(--text); font-size: 16px; }
  .cms-nav-actions { display: none; }
  .cms-nav-toggle { display: flex; }
  .site-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); }
  .site-header:not(.scrolled) .cms-nav-brand { color: var(--text); }
  .site-header:not(.scrolled) .cms-nav-logo { filter: none; }

  /* Hero */
  .cms-hero-inner { flex-direction: column; padding: 60px 24px 80px; gap: 40px; text-align: center; }
  .cms-hero-content { max-width: 100%; }
  .cms-hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .cms-hero-img-wrap { width: 100%; max-width: 320px; }
  .clay-zone--hero { width: 100%; height: 280px; }
  .hero-float-card { left: 0; bottom: -12px; }

  /* Stats */
  .stats-inner { flex-wrap: wrap; gap: 8px; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 1 40%; min-width: 120px; }

  /* Présentation */
  .presentation-grid { grid-template-columns: 1fr; gap: 40px; }
  .img-zone--tall { height: 280px; }
  .presentation-float-badge { right: 0; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card--highlight { grid-column: 1; grid-row: auto; }

  /* Animations */
  .anim-grid { grid-template-columns: 1fr; }
  .anim-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .familles-banner { flex-direction: column; text-align: center; }
  .familles-banner-content { flex-direction: column; text-align: center; }

  /* Tarifs */
  .pricing-cards { grid-template-columns: 1fr; }

  /* Témoignages */
  .cms-testi-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-band-inner { flex-direction: column; gap: 36px; }
  .contact-band-actions { width: 100%; }
  .contact-band-actions .cms-btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .pricing-card { padding: 24px 20px; }
  .cms-testi-card { padding: 22px 18px; }
}

/* ── Photo pas encore fournie : la zone disparaît proprement ──
   Il suffit de déposer le fichier attendu dans assets/ pour qu'elle réapparaisse
   (photo-balneo.webp, photo-residence-ext.webp). */
.img-zone--empty { display: none !important; }
.anim-card-img:has(.img-zone--empty),
.pres-res-img-main:has(.img-zone--empty) { display: none !important; }
/* Carte sans photo : carte texte centrée, teinte douce */
.anim-card:has(.img-zone--empty) {
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(140deg, #e8f3f5 0%, #f7f4ef 100%);
}
.anim-card:has(.img-zone--empty) .anim-card-body { padding-top: 2rem; padding-bottom: 2rem; }
