/* ============================================
   KIMAÉ — Design system
   Palette: fond clair chaud, or doux, bleus/gris
   ============================================ */

:root {
  /* Couleurs — luxe discret, accordées */
  --bg: #f6f5f2;
  --bg-card: #fff;
  --text: #1a2a32;
  --text-muted: #4d5c64;
  --accent: #a67c52;
  --accent-soft: #c49a6c;
  --accent-bg: rgba(166, 124, 82, 0.08);
  --blue: #1a3642;
  --blue-light: #2a4a58;
  --blue-muted: #3d5a66;
  --white: #fff;
  --border: #e2dfd9;
  --border-strong: #d0ccc6;
  --focus-ring: 0 0 0 3px rgba(166, 124, 82, 0.35);
  --error: #b33;

  /* Typo — Plus Jakarta Sans (pro, lisible) */
  --font-system: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-base: 1rem;
  --text-sm: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --leading-tight: 1.3;
  --leading-normal: 1.6;

  /* Layout */
  --container: min(1140px, 100% - 3rem);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(26, 54, 66, 0.06);
  --shadow-hover: 0 8px 32px rgba(26, 54, 66, 0.1);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0.01s;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Icônes — set Lucide cohérent (viewBox 24), tailles par contexte */
.icon {
  display: block;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.icon--sm {
  width: 0.75rem;
  height: 0.75rem;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

@media (max-width: 479px) {
  .container {
    padding: 0 1.125rem;
  }
}

/* ========== Header ========== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 102;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(248, 247, 245, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.page-header.header-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom-color: rgba(26, 54, 66, 0.06);
  box-shadow: 0 1px 0 rgba(26, 54, 66, 0.05);
}

.page-header.header-scrolled .header-inner {
  transform: scale(0.98);
}

/* Responsive : ordre Logo + CTA + hamburger sur mobile */
@media (max-width: 899px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .logo { order: 1; }
  .btn-cta { order: 2; }
  .nav-main { order: 3; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-header {
    transition: none;
  }
  .page-header.header-scrolled .header-inner {
    transform: none;
  }
  .header-inner {
    transition: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  min-height: 72px;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.logo:hover {
  text-decoration: none;
  color: var(--blue-light);
  opacity: 0.92;
}

.logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--blue);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-toggle:hover {
  background: rgba(26, 54, 66, 0.06);
  color: var(--blue-light);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  width: 22px;
  margin: 0 auto;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Menu mobile : overlay plein écran (premium) */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(26, 54, 66, 0.12);
}

.nav-list[hidden] {
  display: none;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  border-radius: 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
  border-radius: 0 2px 2px 0;
}

.nav-link:hover {
  background: var(--accent-bg);
  color: var(--blue);
  text-decoration: none;
}

.nav-link.active {
  background: rgba(166, 124, 82, 0.1);
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.nav-link.active::before {
  transform: scaleX(1);
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.btn-cta {
  display: none;
}

/* ----- Overlay menu mobile (hors header, design premium) ----- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 1.5rem 3rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -1;
}

.nav-overlay__inner {
  width: 100%;
  max-width: 22rem;
}

.nav-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-overlay__link {
  display: block;
  padding: 1rem 1.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav-overlay__link:hover {
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
}

.nav-overlay__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Overlay visible uniquement sur mobile */
@media (min-width: 900px) {
  .nav-overlay {
    display: none !important;
  }
}

/* ----- Mobile header (CTA + masquer nav-list du header) ----- */
@media (max-width: 899px) {
  .page-header.header-scrolled .header-inner {
    transform: none;
  }

  /* Sur mobile on n’affiche pas la liste dans le header (menu = overlay) */
  .nav-main .nav-list {
    display: none !important;
  }

  /* CTA sur mobile : texte + icône « Être rappelé » */
  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(26, 54, 66, 0.2);
    transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  }

  .btn-cta:hover {
    text-decoration: none;
    background: var(--blue-light);
    box-shadow: 0 4px 20px rgba(26, 54, 66, 0.25);
  }

  .btn-cta-text {
    display: inline;
  }

  .btn-cta .btn-cta-icon .icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

@media (min-width: 900px) {
  /* Desktop : Logo + menu + CTA */
  .logo { order: 1; }
  .nav-main { order: 2; margin-left: 0; }
  .btn-cta { order: 3; }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.25rem;
    width: auto;
    height: auto;
    margin: 0;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-list[hidden] {
    display: flex !important;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }

  .nav-link::before {
    left: 0.75rem;
    right: 0.75rem;
    top: auto;
    bottom: 0.25rem;
    width: auto;
    height: 2px;
    border-radius: 2px;
  }

  .nav-list .nav-link {
    font-family: var(--font-system);
  }

  .nav-link:hover {
    background: var(--accent-bg);
  }

  .nav-link.active {
    background: var(--accent-bg);
  }

  .nav-link.active::before {
    transform: scaleX(1);
  }

  .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: var(--blue);
    box-shadow: 0 2px 16px rgba(26, 54, 66, 0.12);
    transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
    width: auto;
    min-width: auto;
    height: auto;
    min-height: auto;
  }

  .btn-cta:hover {
    text-decoration: none;
    background: var(--blue-light);
    box-shadow: 0 8px 32px rgba(26, 54, 66, 0.18);
  }

  .btn-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 54, 66, 0.25);
  }

  .btn-cta-text {
    display: inline;
  }

  .btn-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-cta-icon .icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .btn-cta {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 599px) {
  .page-header {
    height: 60px;
  }
  .header-inner {
    min-height: 60px;
  }
  .logo-text {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }
  .nav-list .nav-link {
    font-size: 1.35rem;
    padding: 0.85rem 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn-primary:hover {
  background: var(--blue-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 54, 66, 0.25);
}

.btn-full {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem var(--space-md) 4rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f3f0 0%, var(--bg) 50%, #f5f4f1 100%);
}

@media (max-width: 599px) {
  .hero {
    padding: 4.5rem 1.25rem 3rem;
    min-height: 100svh;
  }
}

@media (max-width: 399px) {
  .hero {
    padding: 4rem 1rem 2.5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Fond immersif : grandes plages de couleurs (parallax au scroll) */
.hero-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  transition: transform 0.1s linear;
  will-change: transform;
  pointer-events: none;
}

.hero-gradient--blue {
  width: 85vw;
  height: 85vw;
  max-width: 720px;
  max-height: 720px;
  top: -35%;
  right: -25%;
  background: radial-gradient(circle at 30% 30%, rgba(26, 54, 66, 0.35) 0%, rgba(26, 54, 66, 0.08) 50%, transparent 70%);
}

.hero-gradient--warm {
  width: 70vw;
  height: 70vw;
  max-width: 580px;
  max-height: 580px;
  bottom: -30%;
  left: -20%;
  background: radial-gradient(circle at 70% 70%, rgba(196, 154, 108, 0.3) 0%, rgba(166, 124, 82, 0.1) 45%, transparent 70%);
}

.hero-gradient--accent {
  width: 50vw;
  height: 50vw;
  max-width: 400px;
  max-height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(166, 124, 82, 0.12) 0%, transparent 60%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 40%, rgba(26, 54, 66, 0.04) 100%);
  pointer-events: none;
}

/* Grille conservée — structure visible */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26, 54, 66, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 54, 66, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.9;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 48%, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 48%, black 15%, transparent 65%);
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 52rem;
  margin: 0 auto;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.hero.is-scrolled .hero-content {
  transform: translateY(-24px) scale(0.98);
  opacity: 0.85;
}

.hero-badge {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-lg);
  font-weight: 500;
}

@media (max-width: 599px) {
  .hero-badge {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
  }
  .hero-title-wrap {
    margin-bottom: var(--space-lg);
  }
}

.hero-title-wrap {
  margin-bottom: var(--space-xl);
  padding: 0 0.5rem;
}

.hero-line {
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--blue);
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 599px) {
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    max-width: 100%;
  }
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 599px) {
  .hero-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: var(--space-lg);
  }
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero env — Villa → Kimae → Résidence 5★ (desktop : pill horizontal) */
.hero-env {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0 1.25rem;
  margin: 0 auto var(--space-2xl);
  padding: 1.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(26, 54, 66, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(26, 54, 66, 0.06);
  width: max-content;
  max-width: 100%;
  backdrop-filter: blur(12px);
}

.hero-env__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.hero-env__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(26, 54, 66, 0.06);
  color: var(--blue);
  flex-shrink: 0;
}

.hero-env__icon-wrap .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-env__icon-wrap--accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.hero-env__item--kimae .hero-env__label {
  font-weight: 700;
  color: var(--blue);
}

.hero-env__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-env__text {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-env__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

.hero-env__arrow .icon {
  width: 1rem;
  height: 1rem;
}

/* ----- Responsive : cartes empilées verticalement (valeur + lisibilité) ----- */
@media (max-width: 767px) {
  .hero-env {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-2xl);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(26, 54, 66, 0.08);
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-env__arrow {
    display: none;
  }

  .hero-env__item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .hero-env__item:last-child {
    border-bottom: none;
  }

  .hero-env__icon-wrap {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
  }

  .hero-env__icon-wrap .icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .hero-env__item--kimae {
    background: rgba(166, 124, 82, 0.06);
  }

  .hero-env__item--kimae .hero-env__icon-wrap {
    background: var(--accent-bg);
    color: var(--accent);
  }

  .hero-env__label {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--blue);
    white-space: normal;
    text-align: left;
  }

  .hero-env__item--kimae .hero-env__label {
    font-weight: 700;
  }

  .hero-env__text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .hero-env {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero-env__item {
    padding: 1rem 1.125rem;
    gap: 0.875rem;
  }
  .hero-env__label {
    font-size: 1rem;
  }
}

.hero-proofs {
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.hero-proofs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 599px) {
  .hero-proofs {
    margin-bottom: var(--space-lg);
    gap: var(--space-sm);
  }
  .hero-proofs li {
    font-size: 0.875rem;
  }
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.proof-icon .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.hero-cta-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Même style que le CTA header : bordure (shadow) et pill */
.hero-cta-wrap .btn-hero {
  padding: 0.7rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 16px rgba(26, 54, 66, 0.12);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.hero-cta-wrap .btn-hero:hover {
  box-shadow: 0 8px 32px rgba(26, 54, 66, 0.18);
  transform: translateY(-1px);
}

.hero-cta-reassurance {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
}

.hero.is-scrolled .hero-scroll-hint {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-hint__line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  border-radius: 2px;
  animation: hero-scroll-line 2s ease-in-out infinite;
}

.hero-scroll-hint__text {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

@keyframes hero-scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint__line { animation: none; }
  .hero.is-scrolled .hero-content { transform: none; opacity: 1; }
}

/* Hero animations (stagger) */
.hero-anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.hero.hero-ready .hero-anim {
  opacity: 1;
  transform: translateY(0);
}

.hero.hero-ready .hero-anim[data-delay="1"] { transition-delay: 0.1s; }
.hero.hero-ready .hero-anim[data-delay="2"] { transition-delay: 0.2s; }
.hero.hero-ready .hero-anim[data-delay="3"] { transition-delay: 0.35s; }
.hero.hero-ready .hero-anim[data-delay="4"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim {
    opacity: 1;
    transform: none;
  }
  .card:hover {
    transform: none;
  }
  .btn-primary:hover,
  .btn-hero:hover {
    transform: none;
  }
  .logo:hover .logo-icon {
    transform: none;
  }
}

.btn-hero {
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 54, 66, 0.2);
}

/* ========== Sections ========== */
.section {
  padding: var(--space-2xl) 0;
}

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

@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 var(--space-sm);
  text-align: center;
  letter-spacing: -0.02em;
}

@media (max-width: 599px) {
  .section-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin-bottom: var(--space-md);
    padding: 0 0.25rem;
  }
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 599px) {
  .section-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: 0 0.25rem;
    text-align: center;
  }
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

@media (max-width: 599px) {
  .grid {
    gap: var(--space-md);
  }
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

@media (max-width: 599px) {
  .card {
    padding: var(--space-md);
  }
  .card-title {
    font-size: 1.125rem;
  }
  .card p {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card-icon {
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 var(--space-sm);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.concept-cols .card-concept,
.security-cards .card-security {
  height: 100%;
}

/* Reveal (JS will add .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Comparison table ========== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(26, 58, 74, 0.02);
}

.comparison-table td:last-child {
  color: var(--blue);
  font-weight: 500;
}

/* Tableau en cartes sur mobile (lisible, pas de scroll horizontal) */
@media (max-width: 767px) {
  .table-wrapper {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr {
    display: block;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison-table tbody tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow);
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .comparison-table td {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .comparison-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
    color: var(--blue);
    font-weight: 600;
  }

  .comparison-table td:first-child {
    padding-top: 0;
    font-weight: 600;
    color: var(--blue);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .comparison-table td::before {
    display: block;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .comparison-table td:nth-child(1)::before {
    content: 'Critère';
  }
  .comparison-table td:nth-child(2)::before {
    content: 'Conciergerie classique';
  }
  .comparison-table td:nth-child(3)::before {
    content: 'Modèle KIMAE';
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Team ========== */
.team-photo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-team {
  text-align: center;
}

.team-role {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 var(--space-xs);
}

/* ========== Partnership ========== */
.partnership-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}

.partnership-list > li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.partnership-list > li:last-child {
  border-bottom: none;
}

.partnership-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-lg);
  border-radius: 50%;
}

@media (max-width: 599px) {
  .partnership-list > li {
    padding: var(--space-md) 0;
    gap: var(--space-sm);
  }
  .partnership-num {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
  .partnership-list > li div {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* ========== Legal ========== */
.legal-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.legal-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
}

.legal-dl dt {
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.legal-dl dd {
  margin: 0;
  color: var(--text-muted);
}

.legal-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

@media (max-width: 599px) {
  .legal-block {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem 0;
  }
  .legal-dl dt {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
  }
  .legal-dl dt:first-child {
    margin-top: 0;
  }
  .legal-dl dd {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
  }
  .legal-note {
    font-size: 0.8125rem;
    padding: 0 0.5rem;
  }
}

/* ========== Contact ========== */
.contact-container {
  max-width: 1100px;
}

.contact-layout {
  display: grid;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

@media (max-width: 599px) {
  .contact-layout {
    gap: var(--space-xl);
    margin-top: var(--space-lg);
  }
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 320px 1fr;
    gap: var(--space-3xl);
    align-items: start;
  }
}

.contact-reassurance {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.reassurance-block {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.reassurance-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius);
}

.reassurance-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.reassurance-block strong {
  display: block;
  font-size: var(--text-base);
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.reassurance-block p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 599px) {
  .reassurance-block {
    gap: var(--space-sm);
  }
  .reassurance-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .reassurance-block strong {
    font-size: 0.9375rem;
  }
  .reassurance-block p {
    font-size: 0.875rem;
  }
  .contact-email-fallback {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    font-size: 0.875rem;
  }
}

.contact-email-fallback {
  margin: var(--space-md) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.contact-email-fallback .link-email {
  font-weight: 600;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 599px) {
  .contact-form-card {
    padding: var(--space-md);
  }
  .contact-form {
    gap: var(--space-md);
  }
  .form-row input,
  .form-row textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 599px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.required {
  color: var(--error);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: inherit;
  font-size: var(--text-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 54, 66, 0.12);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.btn-submit {
  margin-top: 0.25rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* Feedback formulaire (succès / erreur) sans redirection */
.form-feedback {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: opacity 0.2s var(--ease);
}
.form-feedback[hidden] {
  display: none;
}
.form-feedback--success {
  background: rgba(34, 139, 34, 0.12);
  color: #1a5c1a;
}
.form-feedback--error {
  background: rgba(187, 51, 51, 0.1);
  color: var(--error);
}
.callback-form-feedback {
  margin-top: 0.75rem;
}

.link-email {
  font-weight: 600;
  font-size: var(--text-lg);
}

/* ========== Modal Être rappelé — CTA principal, tout visible sans scroll ========== */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.callback-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.callback-modal.is-open[hidden] {
  display: flex;
}

.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 66, 0.45);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.callback-modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(26, 54, 66, 0.22);
  border: 1px solid var(--border);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}

.callback-modal.is-open .callback-modal__box {
  transform: scale(1);
}

.callback-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  z-index: 1;
}

.callback-modal__close:hover {
  color: var(--text);
  background: var(--bg);
}

.callback-modal__close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.callback-modal__inner {
  padding: 1.35rem 1.5rem 1.5rem;
  overflow: hidden;
}

.callback-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.25rem;
  padding-right: 2rem;
}

.callback-modal__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.callback-form__row {
  display: grid;
  gap: 0.65rem;
}

.callback-form__row--2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 399px) {
  .callback-form__row--2 {
    grid-template-columns: 1fr;
  }
  .callback-modal__inner {
    padding: 1.15rem 1.25rem 1.25rem;
  }
  .callback-modal__title {
    font-size: 1.2rem;
  }
}

.callback-form .form-row label {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
}

.callback-form .form-row input,
.callback-form .form-row textarea {
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
}

.callback-form .form-row--optional {
  margin-bottom: 0.1rem;
}

.callback-form textarea {
  min-height: 3rem;
  resize: none;
}

.callback-form__reassurance {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.callback-form__submit {
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  margin-top: 0.15rem;
}

@media (max-height: 520px) {
  .callback-modal__inner {
    padding: 1rem 1.25rem 1.25rem;
  }
  .callback-modal__title {
    font-size: 1.2rem;
  }
  .callback-modal__desc {
    margin-bottom: 0.75rem;
  }
  .callback-form {
    gap: 0.5rem;
  }
  .callback-form .form-row input,
  .callback-form .form-row textarea {
    padding: 0.45rem 0.65rem;
  }
  .callback-form textarea {
    min-height: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .callback-modal,
  .callback-modal__box {
    transition: none;
  }
}

/* ========== Footer ========== */
.page-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: rgba(26, 58, 74, 0.03);
}

@media (max-width: 599px) {
  .page-footer {
    padding: var(--space-lg) 0;
    text-align: center;
  }
  .footer-legal,
  .footer-copyright {
    font-size: 0.875rem;
  }
}

.footer-brand {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 var(--space-xs);
}

.footer-legal {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: var(--space-md) 0 0;
  opacity: 0.9;
}

/* ========== Breakpoints fine-tuning ========== */
@media (max-width: 399px) {
  .hero-proofs {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}
