/* ============================================================
   EHPAD — Refonte 2026
   Palette : sage · ivoire · ambre · encre
   Type : Manrope (corps) · Fraunces (accent éditorial)
   ============================================================ */

:root {
  /* Palette */
  --sage-50:  #f1f6ef;
  --sage-100: #e3eee0;
  --sage-200: #cfe3d4;        /* sage principal */
  --sage-300: #b6d2bf;
  --sage-400: #92b8a0;
  --sage-600: #5b8870;
  --sage-700: #41684f;
  --sage-900: #1f3a2a;

  --cream-50:  #fbf8f0;
  --cream-100: #f6f2e8;        /* ivoire principal */
  --cream-200: #ede5d2;
  --cream-300: #ddd0b1;

  --amber-300: #f0c08a;
  --amber-400: #e8a85c;        /* ambre principal */
  --amber-500: #d68f3e;
  --amber-600: #b9742a;

  --ink-900: #1a2620;
  --ink-700: #2d3b32;
  --ink-500: #5a6a60;
  --ink-400: #7a8a80;
  --ink-300: #a3b0a8;

  /* Tokens */
  --bg:         var(--cream-100);
  --bg-soft:    var(--cream-50);
  --bg-tint:    var(--sage-50);
  --fg:         var(--ink-900);
  --fg-muted:   var(--ink-500);
  --fg-soft:    var(--ink-400);
  --line:       rgba(26, 38, 32, 0.08);
  --line-strong: rgba(26, 38, 32, 0.16);
  --primary:    var(--sage-700);
  --primary-soft: var(--sage-200);
  --accent:     var(--amber-500);
  --accent-soft: var(--amber-300);

  /* Typo */
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", "Times New Roman", serif;

  --fs-scale: 1;          /* tweakable for accessibility */

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(5rem, 9vw, 8rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .25s;
  --t: .5s;
  --t-slow: .9s;
  --anim-intensity: 1; /* tweakable */
}

/* Density tweak */
[data-density="dense"] {
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --gutter: clamp(1rem, 2vw, 1.75rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: calc(16px * var(--fs-scale));
  overflow-x: clip;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
::selection { background: var(--amber-300); color: var(--ink-900); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
  text-wrap: balance;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-700);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(1);
  transform-origin: left center;
  /* Transition très smooth, GPU only — la barre n'apparait/disparait jamais
     entièrement, elle est juste plus petite avant le reveal. */
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
/* État au repos pour les eyebrows dans une section pas encore révélée :
   la barre est toujours visible (jamais 0), juste réduite à 15% */
.reveal:not(.in) .eyebrow::before,
.reveal-stagger:not(.in) > * .eyebrow::before {
  transform: scaleX(0.15);
  opacity: 0.25;
}
.reveal.in .eyebrow::before,
.reveal-stagger.in > * .eyebrow::before {
  transition-delay: 0.4s;
}

p { color: var(--fg-muted); line-height: 1.65; text-wrap: pretty; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast),
              color var(--t-fast),
              box-shadow var(--t-fast),
              border-color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); display: inline-flex; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(232,168,92,.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  background: var(--sage-900);
  box-shadow: 0 12px 30px -10px rgba(26,38,32,.4);
}
.btn-accent {
  background: var(--amber-400);
  color: var(--ink-900);
}
.btn-accent:hover {
  background: var(--amber-500);
  box-shadow: 0 12px 30px -10px rgba(184,116,42,.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color var(--t-fast), color var(--t-fast), gap var(--t-fast);
}
.btn-link:hover { border-color: var(--amber-500); color: var(--amber-600); gap: 0.7rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t) var(--ease), border-color var(--t), box-shadow var(--t), background var(--t);
  animation: header-in .8s var(--ease-out) both;
}
@keyframes header-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.site-header.scrolled {
  padding: 0.55rem 0;
  background: rgba(246, 242, 232, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(45, 58, 50, .25);
}
/* scroll-progress bar — top of header */
.site-header::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--sage-700), var(--amber-400));
  transition: width .12s linear;
  border-radius: 0 2px 2px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform .35s var(--ease-out);
  position: relative;
  flex-shrink: 0;
}
.brand-mark {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cream-50), var(--sage-50));
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 1px 2px rgba(26, 38, 32, 0.05),
    0 0 0 1px rgba(168, 191, 160, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  transition: transform .5s var(--ease-out),
              box-shadow .5s var(--ease-out);
  animation: brand-entrance 0.9s var(--ease-out) both;
  will-change: transform, box-shadow;
}
@keyframes brand-entrance {
  from { opacity: 0; transform: scale(0.85) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* Image du logo dans le carré */
.brand-mark img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .55s var(--ease-out);
  position: relative;
  z-index: 1;
}
/* Anneau décoratif qui se déploie au survol */
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 1.5px solid transparent;
  transition: border-color .45s var(--ease-out), inset .45s var(--ease-out);
  pointer-events: none;
}
/* Petit point ambre dans le coin (réminiscence de l'ancien logo) */
.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out-back);
  z-index: 2;
  box-shadow: 0 0 12px rgba(232, 168, 92, 0.5);
}
/* Hover du bouton entier */
.brand:hover .brand-mark {
  transform: scale(1.04);
  box-shadow:
    0 12px 30px -10px rgba(68, 97, 63, 0.25),
    0 0 0 1px rgba(168, 191, 160, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.brand:hover .brand-mark::before {
  border-color: var(--sage-300);
  inset: -6px;
}
.brand:hover .brand-mark::after {
  opacity: 1;
  transform: scale(1);
}
.brand:hover .brand-mark img {
  transform: scale(1.06);
}

/* Texte du logo : underline animée bicolore au survol */
.brand-name { position: relative; }
.brand-name strong {
  position: relative;
  display: inline-block;
}
.brand-name strong::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--sage-700) 0%, var(--amber-500) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
  border-radius: 1px;
}
.brand:hover .brand-name strong::after { transform: scaleX(1); }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 0;
}
.brand-name strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name small {
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
/* Sous-titre caché dès 1600px — sinon le header déborde sur laptops 1366-1512px */
@media (max-width: 1600px) {
  .brand-name small { display: none; }
}
/* Sur tablette, on cache même le titre — on garde juste le logo */
@media (max-width: 1024px) {
  .brand-name { display: none; }
}

.nav { display: flex; align-items: center; gap: 0.2rem; flex-shrink: 0; }
.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: auto 0.9rem 6px 0.9rem;
  height: 1.5px;
  background: var(--ink-900);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a.active {
  color: var(--ink-900);
  background: var(--sage-100);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 4px;
  width: 4px; height: 4px;
  background: var(--amber-500);
  border-radius: 50%;
  /* Pas d'animation — point statique pour signaler la page active */
}
/* Sur l'onglet actif, on n'affiche pas le trait de survol :
   il chevauchait le point orange (« point sur la ligne »). */
.nav a.active::before { display: none; }

/* ---------- Nav dropdowns (menus déroulants) ---------- */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-item-dropdown > a {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-item-dropdown > a .dd-caret {
  display: inline-block;
  font-size: 0.65em;
  line-height: 1;
  opacity: 0.55;
  transition: transform .25s var(--ease), opacity .2s;
  transform-origin: center;
  position: relative;
  top: 1px;
}
.nav-item-dropdown:hover > a .dd-caret,
.nav-item-dropdown:focus-within > a .dd-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: var(--cream-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -10px rgba(26, 38, 32, 0.18);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  z-index: 60;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.85rem !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  text-align: left;
  white-space: nowrap;
  transition: background .2s, color .2s, padding-left .2s;
}
.nav-dropdown a:hover {
  background: var(--sage-100);
  color: var(--ink-900);
  padding-left: 1rem !important;
}
.nav-dropdown a::before { display: none !important; }
.nav-dropdown a::after { display: none !important; }
.nav-dropdown .dd-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.4rem 0.4rem;
}
.nav-dropdown .dd-eyebrow {
  display: block;
  padding: 0.4rem 0.85rem 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-600);
}

/* Sous-éléments dans le menu mobile */
.nav-mobile .nav-mobile-sub {
  font-size: 1rem !important;
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-weight: 500;
  padding: 0.4rem 0 0.4rem 1.5rem !important;
  color: var(--ink-500) !important;
  border-bottom: 1px dashed var(--line) !important;
}
.nav-mobile .nav-mobile-sub.active {
  color: var(--sage-700) !important;
}

.header-cta { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
/* Cascade responsive du header — priorité au téléphone */
@media (max-width: 1440px) {
  .header-inner { gap: 1rem; }
  .nav a { padding: 0.5rem 0.65rem; font-size: 0.88rem; }
  .header-cta { gap: 0.45rem; }
}
@media (max-width: 1280px) {
  .nav a { padding: 0.45rem 0.55rem; font-size: 0.84rem; }
  .nav { gap: 0.1rem; }
}
/* Sur écrans intermédiaires : on retire le bouton "Nous contacter"
   (redondant avec le lien Contact dans la nav + le téléphone affiché).
   Breakpoint relevé à 1380px pour laisser respirer les laptops 1366/1440px. */
@media (max-width: 1380px) {
  .header-cta .btn-primary { display: none; }
}
/* Phone : on garde toujours visible — c'est l'info clé pour les familles.
   Sur tablette/mobile, on le compacte mais on ne le cache pas. */
@media (max-width: 1024px) {
  .header-phone { padding: 0.42rem 0.7rem; font-size: 0.82rem; }
}
@media (max-width: 600px) {
  /* À ce niveau seulement, on cache le numéro et garde l'icône cliquable */
  .header-phone {
    padding: 0.42rem;
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 0; /* masque le texte */
    gap: 0;
    justify-content: center;
  }
  .header-phone svg { width: 16px; height: 16px; }
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover { background: var(--sage-100); border-color: var(--sage-300); }

.hamburger { display: none; }

/* Mobile drawer (caché par défaut) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0;
  /* Dimensions en unités viewport : couvre tout l'écran même si l'en-tête
     (qui a un transform) devient le bloc conteneur du position:fixed. */
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--cream-50);
  z-index: 49;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--ink-900);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.nav-mobile a.active { color: var(--sage-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 12% 20%, var(--sage-100), transparent 70%),
    radial-gradient(40% 40% at 95% 90%, rgba(232, 168, 92, .18), transparent 70%);
  pointer-events: none;
  z-index: 0;
  /* Dérive très lente du gradient en fond pour donner de la vie sans distraire */
  animation: blob-drift 45s var(--ease) infinite alternate;
  will-change: background-position;
}
@keyframes blob-drift {
  0%   { background-position: 0% 0%, 0% 0%; }
  50%  { background-position: 4% 6%, -3% -2%; }
  100% { background-position: -2% -4%, 5% 3%; }
}
@keyframes blob-drift {
  0%   { background-position: 0% 0%, 0% 0%; }
  50%  { background-position: 5% 8%, -4% -3%; }
  100% { background-position: -3% -5%, 6% 4%; }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-700);
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage-500);
  position: relative;
  flex-shrink: 0;
  margin-left: 0.25rem;
  /* Pulsation « radar » pour signaler une info vivante */
  animation: hero-dot-pulse 2.2s ease-out infinite;
}
@keyframes hero-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 136, 112, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(91, 136, 112, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 136, 112, 0); }
}
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title .serif {
  display: inline-block;
  color: var(--sage-700);
}
.hero-title .accent-mark {
  position: relative;
  display: inline-block;
}
.hero-title .accent-mark::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 4%;
  height: 0.18em;
  background: var(--amber-400);
  border-radius: var(--radius-pill);
  opacity: 0.65;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 2.5s var(--ease-out) 0.8s forwards;
}
@keyframes underline {
  to { transform: scaleX(1); }
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-500);
  max-width: 30em;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta-item strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-item span {
  font-size: 0.82rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

/* Hero visual — asymmetric mosaic */
.hero-visual {
  position: relative;
  aspect-ratio: 5/6;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.hv-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(26,38,32,.18);
  background: var(--cream-200);
}
.hv-card.main {
  inset: 0 18% 22% 0;
  z-index: 2;
}

/* Logo aquarelle dans le hero — prend la place de l'ancienne hv-card.main */
.hv-logo {
  position: absolute;
  inset: 0 18% 22% 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 50% 45%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(135deg, var(--cream-50), var(--sage-50));
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2.5rem);
  box-shadow: 0 20px 60px -20px rgba(26,38,32,.18);
  overflow: hidden;
}
.hv-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hv-card.sub {
  inset: auto 0 0 30%;
  width: 50%;
  aspect-ratio: 4/5;
  z-index: 3;
  border: 6px solid var(--cream-100);
}
.hv-card.tag {
  inset: 6% -1% auto auto;
  width: 38%;
  aspect-ratio: 1.2/1;
  z-index: 4;
  background: var(--sage-700);
  color: var(--cream-50);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}
.hv-card.tag::after { display: none; }
.hv-tag-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}
.hv-tag-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.3;
}
.hv-circle {
  position: absolute;
  inset: -8% auto auto -10%;
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber-400);
  z-index: 0;
  opacity: 0.9;
}
.hv-circle::after {
  content: "depuis 1956";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-900);
  font-size: 0.95rem;
}

/* ---------- Placeholder image style ---------- */
.placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26,38,32,.05) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(135deg, var(--sage-100), var(--cream-200));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  position: relative;
}
.placeholder::before {
  content: "";
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-400);
  opacity: 0.7;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.05) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(135deg, var(--sage-700), var(--ink-700));
  color: var(--cream-200);
}
.placeholder.amber {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(26,38,32,.06) 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(135deg, var(--amber-300), var(--cream-200));
}

/* ---------- Bandeau valeurs — défilement continu fluide ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--cream-50);
  overflow: hidden;
  padding-block: 1.5rem;
  /* Dégradé sur les bords : les mots apparaissent/disparaissent en douceur */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.2vw, 1.2rem);
  color: var(--ink-500);
  font-weight: 400;
  white-space: nowrap;
  will-change: transform;
  /* Le HTML répète les mots-clés 2× → translateX(-50%) boucle sans couture */
  animation: marquee-scroll 55s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Au survol, on met en pause pour laisser lire */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .star {
  font-style: normal;
  color: var(--amber-500);
  font-family: var(--font-sans);
  font-weight: 400;
  flex-shrink: 0;
}
.marquee-track > span:not(.star) {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Écrans étroits : police un peu plus petite, défilement un peu plus rapide */
@media (max-width: 820px) {
  .marquee-track { font-size: 0.85rem; gap: 1.6rem; animation-duration: 38s; }
}
@media (max-width: 540px) {
  .marquee-track { font-size: 0.8rem; gap: 1.2rem; animation-duration: 30s; }
}
/* Accessibilité : pas d'animation si l'utilisateur préfère le mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}

/* ---------- About / Philosophy ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-imgs {
  position: relative;
  aspect-ratio: 5/6;
}
.about-imgs .placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-1 {
  position: absolute;
  inset: 0 25% 25% 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-2 {
  position: absolute;
  inset: 35% 0 0 30%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 8px solid var(--cream-100);
}
.about-stamp {
  position: absolute;
  bottom: 5%;
  left: -3%;
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 14px 40px -12px rgba(26,38,32,.18);
  z-index: 4;
  border: 1px solid var(--line);
}
.about-stamp .stamp-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--ink-900);
  line-height: 1;
}
.about-stamp .stamp-label {
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.3;
  max-width: 9em;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  margin: 1rem 0 1.2rem;
  letter-spacing: -0.03em;
}
.about-text > p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 36em;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}
.feature-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--amber-500);
  min-width: 2.5rem;
}
.feature-row h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.feature-row p { font-size: 0.95rem; }

/* ---------- Services ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}
.section-head .lead {
  max-width: 36em;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.service-card {
  grid-column: span 6;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t), background var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 320px;
}

/* Carte 1 — Soins · vert sauge clair */
.service-card:nth-child(1) {
  grid-column: span 5;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border-color: rgba(168, 191, 160, 0.4);
}
.service-card:nth-child(1) .service-num { color: var(--sage-700); }
.service-card:nth-child(1) .service-icon { background: var(--sage-200); color: var(--sage-700); }

/* Carte 2 — Hébergement · crème chaude avec accent ambré */
.service-card:nth-child(2) {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-50));
  border-color: var(--cream-200);
}
.service-card:nth-child(2) .service-num { color: var(--amber-600); }
.service-card:nth-child(2) .service-icon { background: var(--cream-200); color: var(--amber-600); }

/* Carte 3 — Restauration · vert sauge profond (signature dark) */
.service-card:nth-child(3) {
  grid-column: span 7;
  background: linear-gradient(135deg, var(--sage-700), var(--sage-900));
  color: var(--cream-50);
  border-color: transparent;
}
.service-card:nth-child(3) p { color: rgba(246, 242, 232, .75); }
.service-card:nth-child(3) h3 { color: var(--cream-50); }
.service-card:nth-child(3) .service-num { color: var(--amber-300); }
.service-card:nth-child(3) .service-icon { background: rgba(255,255,255,.12); color: var(--cream-50); }

/* Carte 4 — Animations · ambre pastel chaud */
.service-card:nth-child(4) {
  grid-column: span 5;
  background: linear-gradient(135deg, #f7e2c0, #fbeed7);
  border-color: rgba(232, 168, 92, 0.3);
}
.service-card:nth-child(4) .service-num { color: var(--amber-600); }
.service-card:nth-child(4) .service-icon { background: rgba(232, 168, 92, 0.25); color: var(--amber-600); }

/* Hover — éclat plus marqué */
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(26, 38, 32, 0.18);
}
.service-card:nth-child(1):hover { border-color: var(--sage-300); }
.service-card:nth-child(2):hover { border-color: var(--cream-300); }
.service-card:nth-child(3):hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--sage-900), var(--ink-900));
  box-shadow: 0 22px 50px -16px rgba(26, 38, 32, 0.45);
}
.service-card:nth-child(4):hover { border-color: var(--amber-400); }

.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--amber-500);
  letter-spacing: 0.05em;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sage-100);
  display: grid; place-items: center;
  color: var(--sage-700);
  margin-top: auto;
}
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ---------- Editorial / Cadre de vie ---------- */
.editorial {
  background: var(--sage-700);
  color: var(--cream-100);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  margin-block: var(--section-y);
}
.editorial::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-900);
  opacity: 0.5;
  pointer-events: none;
}
.editorial-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.editorial h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--cream-50);
  margin-bottom: 1.5rem;
}
.editorial h2 .serif {
  color: var(--amber-300);
}
.editorial p { color: rgba(246, 242, 232, .8); font-size: 1.05rem; margin-bottom: 2rem; max-width: 32em; }
.editorial .eyebrow { color: var(--amber-300); }

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.8rem;
  aspect-ratio: 1/1;
}
.gm-1 { grid-column: 1; grid-row: 1 / span 2; }
.gm-2 { grid-column: 2; grid-row: 1; }
.gm-3 { grid-column: 2; grid-row: 2 / span 2; }
.gm-4 { grid-column: 1; grid-row: 3; }
.gm-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--t) var(--ease);
}
.gm-item:hover { transform: scale(1.02); }

/* ---------- Testimonials ---------- */
.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.testi-card {
  border: 1px solid var(--line);
  background: var(--cream-50);
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.testi-card:hover { background: var(--bg-tint); border-color: var(--sage-300); }
.testi-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--amber-400);
}
.testi-text { font-size: 1.02rem; color: var(--ink-700); line-height: 1.6; flex-grow: 1; }
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-200);
  color: var(--sage-700);
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.testi-author strong { font-size: 0.92rem; font-weight: 600; display: block; }
.testi-author span { font-size: 0.82rem; color: var(--fg-muted); }

/* ---------- Steps / Admission ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.step {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.step:hover { background: var(--bg-tint); transform: translateY(-3px); }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--amber-500);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}
.step h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.step p { font-size: 0.92rem; }
.step::after {
  content: "→";
  position: absolute;
  top: 1.75rem; right: 1.75rem;
  font-size: 1.2rem;
  color: var(--ink-300);
}
.step:last-child::after { display: none; }

/* ---------- Blog ---------- */
.blog-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
}
.blog-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.blog-img .placeholder { transition: transform .8s var(--ease); }
.blog-card:hover .blog-img .placeholder { transform: scale(1.05); }
.blog-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color var(--t-fast);
}
.blog-card:hover h3 { color: var(--amber-600); }
.blog-card p { font-size: 0.95rem; }
.blog-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-side h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.5rem;
}
.faq-side p { font-size: 1rem; margin-bottom: 1.5rem; max-width: 22em; }

.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.faq-q .plus {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t) var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.faq-q .plus::before { width: 12px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 12px; transition: transform var(--t) var(--ease); }
.faq-item.open .faq-q .plus { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); transform: rotate(180deg); }
.faq-item.open .faq-q .plus::after { transform: scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
  color: var(--ink-500);
  line-height: 1.65;
  font-size: 0.98rem;
}
.faq-a > div p { padding-bottom: 1rem; padding-right: 3rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink-900);
  color: var(--cream-100);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -50% -10%;
  height: 80%;
  background: radial-gradient(50% 100% at 50% 0%, var(--amber-400), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.cta::after {
  content: "EHPAD · Laon · MRDA · EHPAD · Laon · MRDA · EHPAD · Laon · MRDA ·";
  position: absolute;
  inset: auto 0 1.5rem 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 6vw, 5rem);
  color: rgba(246, 242, 232, .04);
  white-space: nowrap;
  pointer-events: none;
  font-weight: 300;
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.cta .eyebrow { color: var(--amber-300); }
.cta h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--cream-50);
  margin: 1rem 0 1.5rem;
}
.cta h2 .serif { color: var(--amber-300); }
.cta p {
  color: rgba(246, 242, 232, .75);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 30em;
  margin-inline: auto;
}
.cta-actions { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.cta .btn-primary { background: var(--amber-400); color: var(--ink-900); }
.cta .btn-primary:hover { background: var(--amber-300); }
.cta .btn-ghost { color: var(--cream-100); border-color: rgba(246, 242, 232, .2); }
.cta .btn-ghost:hover { background: var(--cream-100); color: var(--ink-900); border-color: var(--cream-100); }

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--cream-50);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.92rem;
  margin-top: 1.25rem;
  max-width: 26em;
}
.footer h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.95rem;
  color: var(--ink-700);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-links a:hover { color: var(--amber-600); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-700); }
.footer-contact a { transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--amber-600); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--ink-900); }

/* ---------- Big wordmark ---------- */
.wordmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.9;
  color: var(--sage-700);
  letter-spacing: -0.04em;
  text-align: center;
  margin: 3rem 0 2rem;
  opacity: 0.95;
}
.wordmark span { color: var(--amber-500); }

/* ---------- Floating call ---------- */
.float-call {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  background: var(--ink-900);
  color: var(--cream-50);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 14px 40px -10px rgba(26,38,32,.3);
  transition: transform var(--t-fast), background var(--t-fast);
}
.float-call:hover { transform: scale(1.04); background: var(--sage-900); }
.float-call {
  /* Transition pour le hide quand on arrive au footer */
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out), background var(--t-fast);
}
.float-call-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}
.float-call .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-400);
  /* Halo statique — aucune animation */
  box-shadow: 0 0 0 4px rgba(232, 168, 92, 0.25);
}

/* ---------- Reveal animation (utilise @keyframes — joue toujours du début à la fin) ---------- */
.reveal {
  opacity: 0;
  will-change: opacity, transform, filter;
}
.reveal.in {
  animation: reveal-up 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes reveal-up {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.reveal-stagger > * {
  opacity: 0;
  will-change: opacity, transform, filter;
}
.reveal-stagger.in > * {
  animation: reveal-up-stagger 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-stagger.in > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { animation-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { animation-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { animation-delay: 0.75s; }
@keyframes reveal-up-stagger {
  0%   { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Parallax helpers */
[data-parallax] { will-change: transform; }

/* Scroll-driven effects helpers — préparent l'élément pour de la transformation fluide */
[data-scroll-effect] {
  will-change: transform, opacity;
  transition: transform 0.08s linear, opacity 0.08s linear;
}
[data-scroll-effect="zoom"],
[data-scroll-effect="reveal-scale"] {
  transform-origin: center center;
}

/* ---------- Image reveal cinématique (clip-path wipe) ----------
   Les images contenues dans une zone .reveal se révèlent par un masque qui
   se rétracte du bas vers le haut, plus immersif qu'un simple fade. */
.reveal .placeholder,
.reveal .blog-img,
.reveal .about-img-1,
.reveal .about-img-2,
.reveal .gm-item,
.reveal .article-img,
.reveal-stagger > * .blog-img,
.reveal-stagger > * .placeholder {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
  will-change: clip-path;
}
.reveal.in .placeholder,
.reveal.in .blog-img,
.reveal.in .about-img-1,
.reveal.in .about-img-2,
.reveal.in .gm-item,
.reveal.in .article-img,
.reveal-stagger.in > * .blog-img,
.reveal-stagger.in > * .placeholder {
  clip-path: inset(0 0 0 0);
}

/* Stagger des clips dans les grilles */
.reveal-stagger.in > *:nth-child(1) .blog-img,
.reveal-stagger.in > *:nth-child(1) .placeholder { transition-delay: .1s; }
.reveal-stagger.in > *:nth-child(2) .blog-img,
.reveal-stagger.in > *:nth-child(2) .placeholder { transition-delay: .2s; }
.reveal-stagger.in > *:nth-child(3) .blog-img,
.reveal-stagger.in > *:nth-child(3) .placeholder { transition-delay: .3s; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); position: relative; z-index: 51; transition: background 0.25s; }
  .hamburger:hover { background: var(--sage-100); }
  .hamburger span { display: block; width: 18px; height: 2px; background: var(--ink-900); position: relative; transition: background 0.2s; }
  .hamburger span::before, .hamburger span::after { content:""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-900); transition: transform 0.3s var(--ease); }
  .hamburger span::before { top: -6px; }
  .hamburger span::after { top: 6px; }
  .hamburger.open span { background: transparent; }
  .hamburger.open span::before { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-mobile { display: flex; }
  /* Phone : on ne cache plus — voir la cascade dédiée plus haut */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-imgs { max-width: 480px; margin-inline: auto; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid > * { grid-column: span 12 !important; }
  .editorial-grid { grid-template-columns: 1fr; }
  .testi-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .blog-row { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  .hero-meta { gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-call span { display: none; }
}

/* =========================================================
   ENRICHISSEMENTS — animations supplémentaires & polissage
   ========================================================= */

/* Page transition (fade-in body au load) */
body { animation: page-fade-in 0.4s var(--ease-out) both; }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Brand amber dot — STATIQUE (zéro animation infinie) */

/* Hero visual cards — STATIQUES (zéro animation infinie) */
.hv-card { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }

/* Hero title — text reveal en cascade */
.hero-title { overflow: hidden; }
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: line-up 0.85s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.30s; }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; }
@keyframes line-up { to { opacity: 1; transform: translateY(0); } }

/* Counter (animé via JS) */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* Magnetic button (déplacé via JS) */
.magnetic { transition: transform 0.45s var(--ease-out); will-change: transform; }

/* Service card tilt 3D (rotation appliquée via JS) */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), border-color 0.3s, background 0.3s;
}
.tilt > * { transform: translateZ(0); }
.tilt .service-icon { transition: transform 0.55s var(--ease-out); }
.tilt:hover .service-icon { transform: translateZ(20px) scale(1.05); }

/* Hero blob cursor (suit la souris) */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(232, 168, 92, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s var(--ease-out);
  mix-blend-mode: multiply;
  will-change: transform;
}
.cursor-blob.visible { opacity: 0.9; }
@media (hover: none) { .cursor-blob { display: none; } }

/* Wordmark — letter-by-letter reveal */
.wordmark .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.wordmark.in .char { opacity: 1; transform: translateY(0); }

/* Titres de section — le mot italique .serif fait un glow doux qui s'intensifie,
   jamais d'apparition/disparition brutale. */
.section-head.reveal .serif,
.about-text.reveal .serif,
.col-side.reveal .serif,
.faq-side.reveal .serif {
  opacity: 0.75;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              text-shadow 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s,
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
  transform: translateX(-3px);
  text-shadow: 0 0 8px rgba(232, 168, 92, 0.03);
}
.section-head.reveal.in .serif,
.about-text.reveal.in .serif,
.col-side.reveal.in .serif,
.faq-side.reveal.in .serif {
  opacity: 1;
  transform: translateX(0);
  text-shadow: 0 0 28px rgba(232, 168, 92, 0.15);
}

/* (Le trait décoratif des .eyebrow est géré plus haut avec une transition
    scaleX smooth — voir .eyebrow::before) */

/* Footer links — underline animée */
.footer-links a {
  position: relative;
  display: inline-block;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--sage-700), var(--amber-500));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-links a:hover { color: var(--amber-600); padding-left: 0 !important; }

/* Float-call — STATIQUE, plus d'ondes radio (était trop intrusif).
   Le bouton garde juste son hover scale (déjà défini plus haut). */
.float-call { position: fixed; }

/* Service icon : entrée douce + tracé SVG qui se dessine */
.reveal-stagger.in .service-icon {
  animation: icon-soft-in 0.7s var(--ease-out) 0.5s both;
}
@keyframes icon-soft-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* Tracé SVG qui se dessine au reveal — effet "écriture à la main" */
.reveal-stagger.in .service-icon svg path,
.reveal-stagger.in .service-icon svg polyline,
.reveal-stagger.in .service-icon svg circle,
.reveal-stagger.in .service-icon svg line {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: svg-draw 1.4s var(--ease-out) 0.7s forwards;
}
@keyframes svg-draw {
  to { stroke-dashoffset: 0; }
}

/* Smooth scroll offset (pour ancres avec header sticky) */
html { scroll-padding-top: 100px; }
[id] { scroll-margin-top: 100px; }

/* =========================================================
   BANNIÈRE COOKIES CNIL — restylée pour le design
   ========================================================= */
.cookie-banner {
  position: fixed;
  inset: auto 1.2rem 1.2rem 1.2rem;
  z-index: 100;
  background: rgba(26, 38, 32, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--cream-50);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(26, 38, 32, 0.5);
  transform: translateY(150%);
  transition: transform 0.6s var(--ease-out);
  max-width: 1100px;
  margin-inline: auto;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner-text p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(246, 242, 232, 0.85);
  margin: 0;
}
.cookie-banner-text strong { color: var(--cream-50); font-weight: 600; }
.cookie-banner-text a {
  color: var(--amber-300);
  text-decoration: underline;
  text-decoration-color: rgba(232, 168, 92, 0.4);
  text-underline-offset: 2px;
  transition: color 0.25s;
}
.cookie-banner-text a:hover { color: var(--amber-400); }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.cookie-btn {
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  white-space: nowrap;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn-accept { background: var(--amber-400); color: var(--ink-900); }
.cookie-btn-accept:hover { background: var(--amber-300); }
.cookie-btn-refuse { background: transparent; color: var(--cream-50); border-color: rgba(246, 242, 232, 0.3); }
.cookie-btn-refuse:hover { background: rgba(246, 242, 232, 0.08); border-color: rgba(246, 242, 232, 0.5); }
.cookie-btn-manage {
  background: transparent;
  color: var(--cream-50);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(246, 242, 232, 0.3);
  padding: 0.65rem 0.5rem;
}
.cookie-btn-manage:hover { color: var(--amber-300); }

@media (max-width: 720px) {
  .cookie-banner { inset: auto 0.8rem 0.8rem 0.8rem; padding: 1rem 1.1rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-btn-accept, .cookie-btn-refuse { flex: 1; text-align: center; }
}

/* =========================================================
   AMÉLIORATIONS UX/UI
   ========================================================= */

/* ---------- Skip-to-content (accessibilité clavier) ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--amber-400);
  outline-offset: 2px;
}

/* ---------- Bouton "Retour en haut" ---------- */
.back-to-top {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 39;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream-50);
  color: var(--ink-900);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(26, 38, 32, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease-out),
              visibility .3s var(--ease-out),
              transform .3s var(--ease-out),
              background .25s,
              box-shadow .25s,
              border-color .25s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--sage-100);
  border-color: var(--sage-300);
  box-shadow: 0 12px 30px -8px rgba(68, 97, 63, 0.3);
  transform: translateY(-3px);
}
.back-to-top:active { transform: translateY(0); }
.back-to-top svg { transition: transform .25s var(--ease-out); }
.back-to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 600px) {
  .back-to-top { width: 42px; height: 42px; bottom: 1rem; left: 1rem; }
}

/* ---------- Focus states globaux (accessibilité clavier) ---------- */
*:focus { outline: none; }
*:focus-visible {
  outline: 2.5px solid var(--sage-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible,
.nav a:focus-visible,
.footer-links a:focus-visible {
  outline-offset: 4px;
}
/* Inputs : focus distinctif sans changer trop */
.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 2.5px solid var(--sage-500);
  outline-offset: 0;
}

/* ---------- Card group : dim des cartes voisines au hover ---------- */
.services-grid:hover .service-card:not(:hover),
.tiles:hover .tile:not(:hover),
.tiles:hover a.tile:not(:hover),
.blog-row:hover .blog-card:not(:hover),
.testi-row:hover .testi-card:not(:hover),
.steps:hover .step:not(:hover) {
  opacity: 0.55;
  transform: scale(0.98);
}
.services-grid .service-card,
.tiles .tile,
.tiles a.tile,
.blog-row .blog-card,
.testi-row .testi-card,
.steps .step {
  transition-property: transform, opacity, background, border-color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: var(--ease-out);
}

/* ---------- Indicateur "scroll" dans le hero ---------- */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-decoration: none;
  z-index: 2;
  opacity: 0;
  animation: scroll-hint-in 1s var(--ease-out) 1.5s both;
  transition: color .25s, transform .35s var(--ease-out);
}
@keyframes scroll-hint-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 0.7; transform: translateX(-50%) translateY(0); }
}
.hero-scroll-hint:hover {
  color: var(--sage-700);
  transform: translateX(-50%) translateY(2px);
}
.hero-scroll-hint .chevron {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
@media (max-width: 900px) { .hero-scroll-hint { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-title .line, .wordmark .char { opacity: 1 !important; transform: none !important; }
  .cursor-blob { display: none !important; }
  /* Images : pas de clip-path animé */
  .reveal .placeholder, .reveal .blog-img, .reveal .about-img-1, .reveal .about-img-2,
  .reveal .gm-item, .reveal .article-img,
  .reveal-stagger > * .blog-img, .reveal-stagger > * .placeholder { clip-path: none !important; }
  /* Titres : pas de glow */
  .reveal .serif { opacity: 1 !important; transform: none !important; text-shadow: none !important; }
  /* SVG : pas d'animation de tracé */
  .service-icon svg * { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
}

/* ════════════════════════════════════════════════════════════
   PREMIUM POLISH — v23
   Tous les détails fins qui distinguent un site bien fait
   d'un site d'agence. Ajouté en fin de fichier pour ne rien
   casser, prend le pas par ordre de cascade.
   ════════════════════════════════════════════════════════════ */

/* ── Easings supplémentaires ─────────────────────────────── */
:root {
  /* Spring : légère overshoot — pour les cards/tiles hover */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Spring doux : overshoot très subtil — pour boutons */
  --ease-spring-soft: cubic-bezier(0.34, 1.25, 0.64, 1);
  /* Ease snap : sortie nette — pour active states */
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows tintées sage (rappel de la marque, pas du noir générique) */
  --shadow-sm:  0 2px 8px -2px rgba(45, 70, 55, 0.08), 0 1px 2px -1px rgba(45, 70, 55, 0.06);
  --shadow-md:  0 8px 24px -8px rgba(45, 70, 55, 0.14), 0 4px 8px -4px rgba(45, 70, 55, 0.06);
  --shadow-lg:  0 22px 50px -16px rgba(45, 70, 55, 0.22), 0 8px 16px -8px rgba(45, 70, 55, 0.08);
  --shadow-xl:  0 32px 70px -20px rgba(45, 70, 55, 0.28), 0 12px 24px -10px rgba(45, 70, 55, 0.10);
  /* Shadow amber pour cartes hover-warm */
  --shadow-amber: 0 20px 48px -16px rgba(184, 116, 42, 0.28);
}

/* ── Typo : fignolage global ─────────────────────────────── */
body {
  /* Chiffres alignés en tableau partout — datebars, prix, téléphones */
  font-variant-numeric: tabular-nums;
  /* Optical sizing pour Fraunces — taille adaptée automatiquement */
  font-optical-sizing: auto;
}
/* Mais on revient en proportionnel sur les paragraphes courants
   (lisibilité narrative) — gardé tabulaire sur les UI numbers */
p, li { font-variant-numeric: normal; }
.counter, .tile-num, .service-num, .header-phone,
.btn[href^="tel:"], a[href^="tel:"], time, .step-num,
.page-title, h1, h2, h3 { font-variant-numeric: tabular-nums; }

/* Headlines : équilibrage typographique premium */
h1, h2, h3 { text-wrap: balance; }
.page-lead, .lead, .hero-sub, p.lead { text-wrap: pretty; }
/* Évite les orphelines : un mot seul en dernière ligne */
p { text-wrap: pretty; }

/* ── Grain texture — overlay éditorial subtil ────────────── */
/* SVG noise inline (8KB, pas de requête réseau) appliqué en
   pseudo-élément non-bloquant. Mix-blend overlay pour rester
   présent sans noircir. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.02; }
}
@media (max-width: 600px) {
  /* Mobile : un peu moins de grain, le pixel ratio le rend déjà visible */
  body::after { opacity: 0.025; }
}

/* ── Active states (press) — feedback tactile ────────────── */
/* Le scale 0.97 + transition snap donne ce micro-feedback
   "physique" qu'on retrouve sur iOS et les sites d'agence. */
.btn,
.service-card,
.tile,
.blog-card,
a.tile,
.faq-q,
.back-to-top {
  transition-property: transform, background, color, border-color, box-shadow, opacity;
  transition-duration: 0.42s;
  transition-timing-function: var(--ease-spring-soft);
}
.btn:active,
.btn-primary:active,
.btn-ghost:active,
.btn-accent:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.12s;
  transition-timing-function: var(--ease-snap);
}
.service-card:active,
a.service-card:active,
.tile:active,
a.tile:active,
.blog-card:active {
  transform: translateY(-1px) scale(0.985);
  transition-duration: 0.14s;
  transition-timing-function: var(--ease-snap);
}
.back-to-top:active { transform: scale(0.92); transition-duration: 0.1s; }

/* ── Spring physics : hover micro-bounce ────────────────── */
/* Override sélectif des transitions de cards principales pour
   leur donner un léger overshoot — pas trop, juste de la vie. */
.service-card { transition-timing-function: var(--ease-spring); transition-duration: 0.5s; }
.tile { transition-timing-function: var(--ease-spring); transition-duration: 0.45s; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:nth-child(2):hover { box-shadow: var(--shadow-amber); }
.service-card:nth-child(3):hover {
  box-shadow: 0 28px 60px -20px rgba(31, 58, 42, 0.55);
}
.service-card:nth-child(4):hover { box-shadow: var(--shadow-amber); }

/* ── Shadows tintées : on remplace les ombres noires ─────── */
.site-header.scrolled { box-shadow: var(--shadow-md); }
.back-to-top { box-shadow: var(--shadow-md); }
.back-to-top:hover { box-shadow: var(--shadow-lg); }
.form { box-shadow: var(--shadow-sm); }
.form input:focus, .form textarea:focus, .form select:focus {
  box-shadow: 0 0 0 4px rgba(91, 136, 112, 0.12);
}

/* ── Shimmer subtil sur placeholders ─────────────────────── */
/* Loading state élégant : un dégradé qui passe doucement.
   Désactivé sur reduce-motion. */
.placeholder {
  position: relative;
  isolation: isolate;
}
.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  animation: placeholder-shimmer 4.2s cubic-bezier(0.4, 0, 0.6, 1) 1.2s infinite;
  pointer-events: none;
  z-index: 0;
}
.placeholder > * { position: relative; z-index: 1; }
.placeholder.dark::after {
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(232, 168, 92, 0.12) 50%,
    transparent 65%
  );
}
@keyframes placeholder-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .placeholder::after { display: none; }
}

/* ── Card hover : highlight gradient au-dessus du contenu ─ */
/* Subtil glow qui suit la souris (CSS only, pas de JS) */
.service-card { --mx: 50%; --my: 50%; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card:nth-child(3)::before {
  background: radial-gradient(
    520px circle at var(--mx) var(--my),
    rgba(240, 192, 138, 0.22),
    transparent 45%
  );
}

/* ── Optical alignment : CTAs bottom dans cards ──────────── */
/* Les service-cards utilisent flex-direction column. On force
   l'icône à pousser le contenu en bas via margin-top: auto
   (déjà fait), mais on harmonise le baseline visuel. */
.service-card { gap: 0.85rem; }
.service-card h3 { margin-bottom: 0.15rem; }
.service-card p { line-height: 1.55; flex: 1; }
.service-card .service-icon {
  /* Optical correction : l'icône paraît plus basse qu'elle ne l'est
     à cause de son ronding-box, on remonte de 2px */
  transform: translateY(-1px);
  transition: transform 0.45s var(--ease-spring), background 0.3s;
}
.service-card:hover .service-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.05);
}

/* ── Link hover : underline animé typographique ──────────── */
/* Pour les liens en prose (article, sidebar), un underline qui
   se dessine au hover plutôt qu'un text-decoration brut. */
.prose a:not(.btn):not(.btn-link),
.contact-block a:not([href^="tel:"]):not([href^="mailto:"]) {
  background-image: linear-gradient(var(--amber-500), var(--amber-500));
  background-size: 0% 1.5px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.25s;
  padding-bottom: 1px;
}
.prose a:not(.btn):not(.btn-link):hover {
  background-size: 100% 1.5px;
  color: var(--amber-600);
}

/* ── Headline : weight micro-variation pour rythme ───────── */
/* Les .serif italiques sont déjà gérés ; on rajoute un poil
   plus de tracking sur les très grands titres pour lisibilité. */
.hero-title, .page-title {
  letter-spacing: -0.035em;
  font-feature-settings: "ss01", "cv11", "kern";
}

/* ── Eyebrow : leger pulse de la barre au focus (a11y) ───── */
.eyebrow:focus-within::before {
  background: var(--amber-500);
  opacity: 1;
}

/* ── Selection couleur : passe sage au lieu de l'ambre brut ─ */
::selection { background: rgba(91, 136, 112, 0.28); color: var(--ink-900); }

/* ── Scroll bar styling (WebKit) ─────────────────────────── */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream-50); }
::-webkit-scrollbar-thumb {
  background: var(--sage-200);
  border: 3px solid var(--cream-50);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sage-400); }

/* ── Focus ring : sage tinté au lieu du défaut OS ──────── */
*:focus-visible {
  outline: 2.5px solid var(--sage-600);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(91, 136, 112, 0.15);
  border-radius: var(--radius-sm);
}

/* ── Image hover : zoom + warmth filter pour blog/gallery ── */
.blog-img, .gm-item, .article-img {
  overflow: hidden;
  isolation: isolate;
}
.blog-img .placeholder, .gm-item .placeholder, .article-img .placeholder {
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
}
.blog-card:hover .blog-img .placeholder,
.gm-item:hover .placeholder {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.02);
}

/* ── Tile hover : icône glow ─────────────────────────────── */
.tile:hover .tile-num {
  color: var(--amber-600);
  transform: translateX(2px);
  transition: transform 0.4s var(--ease-spring), color 0.3s;
}
.tile-num { transition: transform 0.4s var(--ease-spring), color 0.3s; display: inline-block; }

/* ── Border hairline crisp ───────────────────────────────── */
/* Sur retina, les borders 1px peuvent paraître flouttées sur
   les pseudo-elements. Forcer le sub-pixel rendering. */
.tile, .service-card, .blog-card, .form, .contact-block,
.btn-ghost, .back-to-top {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── Site switcher (MRDA ↔ Crépy) ──────────────────────── */
/* Petit bouton pour basculer entre les deux sites de la direction commune.
   Côté MRDA : ton sage. Côté Crépy : override en bleu via crepy.css. */
.site-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  color: var(--sage-700);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.site-switcher:hover {
  background: var(--sage-100);
  border-color: var(--sage-400);
  transform: translateY(-1px);
}
.site-switcher .switch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 2px rgba(232, 168, 92, 0.2);
}
.site-switcher .switch-arrow {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.5;
}
/* La phrase "Direction commune · " est masquée par défaut — uniquement
   visible sur très grand écran (≥1440px) où il y a la place. */
.site-switcher .switch-label-long { display: none; }
@media (min-width: 1440px) {
  .site-switcher .switch-label-long { display: inline; }
}
@media (max-width: 980px) {
  .site-switcher { display: none; }
}

/* ── Reduce motion : neutralise shimmer & glow ───────────── */
@media (prefers-reduced-motion: reduce) {
  .service-card::before { display: none; }
  .placeholder::after { display: none; }
  body::after { opacity: 0.015; }
  *:active { transform: none !important; }
  .hero-eyebrow .dot { animation: none; box-shadow: 0 0 0 4px rgba(91,136,112,0.18); }
}

/* ───── Photos réelles intégrées (remplacent les .placeholder) ───── */
img.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-img .ph-img, .gm-item .ph-img, .article-img .ph-img {
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
}
.blog-card:hover .blog-img .ph-img,
.gm-item:hover .ph-img {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1.02);
}

/* ───── Agréments photo des pages sans galerie ───── */
/* Image vedette pleine largeur, douce et arrondie */
.img-feature {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  box-shadow: 0 24px 60px -28px rgba(26,38,32,.28);
}
.img-feature .ph-img { transition: transform 1.6s var(--ease-out); }
.img-feature:hover .ph-img { transform: scale(1.04); }
/* Bandeau de trois vignettes */
.img-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.img-strip figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.img-strip figure .ph-img { transition: transform 1s var(--ease-out); }
.img-strip figure:hover .ph-img { transform: scale(1.05); }
@media (max-width: 760px) {
  .img-strip { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .img-feature { aspect-ratio: 4 / 3; }
}

