/* ═══════════════════════════════════════════════════════════════════
   CARIDEMA — Design System
   Contemporary Real Estate Intelligence
   Navy #012557 · Sky #9DC3E6 · Raleway (texte) · Inter (chiffres)
   ═══════════════════════════════════════════════════════════════════ */

@import url('../fonts/fonts.css');

:root {
  --navy: #012557;
  --navy-deep: #011638;   /* footer — toujours plus sombre que la dernière section */
  --navy-2: #0a3a7a;
  --sky: #9DC3E6;
  --white: #FFFFFF;
  --ink: #0B0F14;
  --grey: #5A6572;
  --paper: #F7F8FA;
  --line: rgba(1, 37, 87, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-text: 'Raleway', 'Segoe UI', system-ui, sans-serif;
  /* Montserrat : géométrique comme Raleway, chiffres harmonieux (le client
     ne veut ni les chiffres Raleway ni le contraste d'Inter) */
  --font-num: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 108px);
  --section-y-sm: clamp(44px, 6vw, 80px);

  --track-wide: 0.15em;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--navy); color: var(--white); }

.num, .stats__value, .chain__label {
  font-family: var(--font-num);
  font-feature-settings: 'tnum' 1;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* accessibilité */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; font-size: 0.875rem;
}
.skip-link:focus { left: 0; }
:focus-visible {
  outline: 2px solid var(--navy-2);
  outline-offset: 3px;
}
.site-header--overlay :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.mobile-menu :focus-visible { outline-color: var(--sky); }

/* ---------------------------------------------------------------- typo */
h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
strong { font-weight: 600; }
em { font-style: italic; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--sky);
  flex: none;
}
.eyebrow--light { color: var(--sky); }
.eyebrow__num { color: var(--sky); font-weight: 500; font-size: 0.8rem; }

.section-title {
  /* taille unique pour tous les titres de section (harmonie demandée par le client) */
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  max-width: 24em;
  font-weight: 600;
}
.section-intro {
  margin-top: 1.5rem;
  max-width: 620px;
  color: var(--ink);   /* même couleur que les paragraphes rédactionnels */
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
}

/* textes rédactionnels justifiés */
.prose p, .section-intro, .arg p, .value-card p, .territory-fiche dd,
.legal-prose p, .page-hero__chapo, .hero__sub, .contact-alt, .regulatory p {
  text-align: justify;
  hyphens: auto;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* déclaration éditoriale pleine largeur (style « Who we are ») :
   eyebrow + grand titre gras avec phrase clé surlignée, corps en 2 colonnes */
.statement { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
/* même format que les titres de section (bloc RICS) pour l'harmonie des polices */
.statement__title {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.22;
  max-width: 24em;
  text-wrap: balance;
}
.hl {
  font-style: normal;
  background: linear-gradient(transparent 78%, rgba(157, 195, 230, 0.55) 78%);
}
.text-cols {
  column-count: 2;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  max-width: 1140px;
}
.text-cols p { margin-bottom: 1.2em; }
.about-banner { margin-top: clamp(2.5rem, 5vw, 4rem); }
.about-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 680px) {
  .text-cols { column-count: 1; }
  .about-banner img { aspect-ratio: 16 / 10; }
}

/* variante réduite des titres de section (pages services : positionnement, périmètre) */
.section-title--sm, .section-title .section-title--sm {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

/* tiret bleu ciel en tête de titre — retrait suspendu :
   les lignes suivantes s'alignent sur le texte, pas sous le tiret */
.section-title--dash {
  padding-left: calc(38px + 0.9rem);
  text-indent: calc(-38px - 0.9rem);
}
.section-title--dash::before {
  content: '';
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--sky);
  vertical-align: middle;
  margin-right: 0.9rem;
  transform: translateY(-0.12em);
}

/* liens fléchés — soulignement animé fin */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  position: relative;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 480ms var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow span { transition: transform 380ms var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow--light { color: var(--white); }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 420ms var(--ease-out), border-color 420ms var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn span { transition: transform 380ms var(--ease-out); }
.btn:hover span { transform: translateX(4px); }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary::before { background: var(--navy-2); }

.btn--ghost { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { color: var(--white); }

.btn--light { border: 1px solid var(--white); color: var(--white); background: transparent; }
.btn--light::before { background: var(--white); }
.btn--light:hover { color: var(--navy); }

.btn--solid-light { background: var(--white); color: var(--navy); }
.btn--solid-light::before { background: var(--sky); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  transition: height 420ms var(--ease-out);
}
/* logo à taille constante, y compris une fois la page scrollée */
.site-header__logo img { height: 84px; width: auto; transition: opacity 300ms; }
.site-header .logo-navy { display: none; }

/* état par défaut : posé sur hero navy → transparent, logo blanc */
.site-header--overlay { background: transparent; }
.site-header--overlay .nav__link,
.site-header--overlay .lang-switch { color: var(--white); }

/* état scrollé (ou pages sans hero sombre) : fond blanc, logo navy */
.site-header.is-solid,
.site-header:not(.site-header--overlay) {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid .site-header__inner,
.site-header:not(.site-header--overlay) .site-header__inner { height: 96px; }
.site-header.is-solid .logo-white,
.site-header:not(.site-header--overlay) .logo-white { display: none; }
.site-header.is-solid .logo-navy,
.site-header:not(.site-header--overlay) .logo-navy { display: block; }
.site-header.is-solid .nav__link,
.site-header.is-solid .lang-switch,
.site-header:not(.site-header--overlay) .nav__link,
.site-header:not(.site-header--overlay) .lang-switch { color: var(--navy); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.nav__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__caret {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 300ms var(--ease-out);
}
.nav__item--mega.is-open .nav__caret { transform: rotate(225deg) translateY(-1px); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.lang-switch a { opacity: 0.55; transition: opacity 250ms; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; }
.lang-switch span { opacity: 0.35; }

/* mega-menu */
.nav__item--mega { position: static; }
.mega {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(1, 37, 87, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.nav__item--mega.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.mega__grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 3.5vw, 3.25rem);
}
.mega__intro {
  border-right: 1px solid var(--line);
  /* même respiration à gauche du trait qu'entre le trait et les numéros de droite
     (gap de grille + retrait interne des items) */
  padding-right: calc(clamp(2rem, 4vw, 4rem) + 0.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
/* chaîne et lien partagent le même bord gauche */
.mega__intro-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  height: 100%;
}
/* mini chaîne de valeur verticale */
.mega-chain { position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.mega-chain::before {
  content: '';
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.mega-chain li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--grey);
  position: relative;
}
.mega-chain__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--sky);
  background: var(--white);
  flex: none;
  transition: background 300ms, transform 300ms var(--ease-out);
}
.mega-chain li:first-child .mega-chain__dot,
.mega-chain li:last-child .mega-chain__dot { background: var(--sky); }
.mega-chain li:hover { color: var(--navy); }
.mega-chain li:hover .mega-chain__dot { background: var(--sky); transform: scale(1.3); }
/* ordre en colonnes : 01-02-03 à gauche, 04-05 à droite */
.mega__items {
  /* colonnes indépendantes : un item à deux lignes n'étire plus la rangée voisine */
  columns: 2;
  column-gap: 2.5rem;
}
.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  break-inside: avoid;
  margin-bottom: 0.25rem;
  padding: 0.9rem 0.75rem;
  border-radius: 2px;
  transition: background 250ms;
  color: var(--navy);
}
.mega__item:hover { background: var(--paper); }
.mega__num { font-size: 0.78rem; color: var(--sky); font-weight: 500; padding-top: 0.2em; }
.mega__title { display: block; font-weight: 500; font-size: 0.98rem; line-height: 1.35; }
.mega__sub { display: block; font-style: italic; font-weight: 300; font-size: 0.83rem; color: var(--grey); margin-top: 0.15rem; }
.mega__arrow { margin-left: auto; color: var(--sky); opacity: 0; transform: translateX(-6px); transition: 300ms var(--ease-out); align-self: center; }
.mega__item:hover .mega__arrow { opacity: 1; transform: translateX(0); }

/* burger + menu mobile */
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 210; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.burger span {
  display: block; width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform 380ms var(--ease-out), opacity 250ms;
}
.site-header--overlay .burger { color: var(--white); }
.site-header.is-solid .burger, .site-header:not(.site-header--overlay) .burger { color: var(--navy); }
body.menu-open .burger { color: var(--white) !important; }
body.menu-open .burger span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease-out), visibility 0s linear 380ms;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
body.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav > a {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 300;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: color 250ms, padding-left 300ms var(--ease-out);
}
.mobile-menu nav > a:hover { color: var(--sky); padding-left: 8px; }
.mobile-menu nav > a.mobile-menu__sub {
  font-size: 0.95rem;
  font-weight: 400;
  border-bottom: 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  color: rgba(255, 255, 255, 0.75);
}
.mobile-menu nav > a.mobile-menu__sub {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  align-items: baseline;
}
.mobile-menu__sub .num { color: var(--sky); font-size: 0.75rem; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 2.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.mobile-menu__langs { color: var(--white); margin-bottom: 2rem; }

/* ---------------------------------------------------------------- hero accueil */
.hero {
  position: relative;
  min-height: 100svh;   /* la photo occupe tout l'écran d'arrivée */
  display: flex;
  /* bloc texte centré verticalement : le titre démarre plus haut sous le menu */
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; animation: hero-scale 9s var(--ease-out) forwards; }
@keyframes hero-scale { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(1,37,87,0.42) 0%, rgba(1,37,87,0.18) 40%, rgba(1,37,87,0.78) 100%);
}
.hero__content {
  position: relative;
  width: 100%;
  padding-top: clamp(6rem, 12vh, 8rem);   /* dégage la barre de menu */
  padding-bottom: clamp(10rem, 19vh, 13rem);  /* dégage l'indicateur de scroll + territoires */
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 15.5em;
}
/* variante « affirmée » (accueil) : capitales + gras, inspiration Aventra */
.hero__title--caps {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.015em;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.12;
  max-width: 14em;
}
.hero__sub {
  margin-top: 1.75rem;
  max-width: 640px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}
.hero__ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* apparitions en cascade au chargement */
.hero-line {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 900ms var(--ease-out) forwards;
}
.hero-line:nth-child(1) { animation-delay: 150ms; }
.hero-line:nth-child(2) { animation-delay: 300ms; }
.hero-line:nth-child(3) { animation-delay: 450ms; }
.hero-line:nth-child(4) { animation-delay: 600ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* pied du hero : indicateur de scroll + ligne statique des territoires */
.hero__bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(1, 37, 87, 0.62));
}
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.9rem;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 14px;
  background: var(--white);
  animation: scroll-cue 2.4s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
@keyframes terr-marquee { to { transform: translateX(-100%); } }
@keyframes scroll-cue {
  0%   { transform: translateY(-14px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
.hero__territories {
  padding: 0 var(--gutter) 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
/* desktop : la 1re piste se fond dans le flux, la copie (pour la boucle mobile) est masquée */
.hero__territories-track { display: contents; }
.hero__territories-track + .hero__territories-track { display: none; }
.hero__territories-track > span { display: inline-flex; align-items: center; white-space: nowrap; }
.hero__territories-track > span:not(:last-child)::after {
  content: '·';
  color: var(--sky);
  margin-inline: 1.4rem;
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .section-intro { color: rgba(255, 255, 255, 0.8); }
.section--tight { padding-block: var(--section-y-sm); }

/* composition asymétrique deux colonnes */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split__media { position: relative; }
.split__media img { width: 100%; object-fit: cover; }
.split__media--bleed-r { margin-right: calc(-1 * var(--gutter)); }
.split__media--bleed-l { margin-left: calc(-1 * var(--gutter)); }
.img-caption {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.prose p + p { margin-top: 1.2em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-2); }
.prose a.btn, .prose a.link-arrow { text-decoration: none; }
.prose a.btn--ghost:hover { color: var(--white); }
.section--navy .prose a { color: var(--sky); }

/* ---------------------------------------------------------------- frise chaîne de valeur */
.chain { margin-block: clamp(2.5rem, 5vw, 4rem); }
.chain__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  counter-reset: step;
}
.chain__track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease-out);
}
.section--navy .chain__track::before { background: var(--line-light); }
.reveal.is-in .chain__track::before, .is-in .chain__track::before { transform: scaleX(1); }
.chain__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(180ms + var(--i) * 140ms);
}
.is-in .chain__step { opacity: 1; transform: translateY(0); }
.chain__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--sky);
  background: var(--white);
  transition: transform 350ms var(--ease-out), background 350ms;
}
/* micro-animation au survol des étapes de la frise */
.chain__step:hover .chain__dot,
.chain__step:focus-within .chain__dot {
  background: var(--sky);
  transform: scale(1.4);
}
.chain__label { transition: color 300ms, letter-spacing 400ms var(--ease-out); }
.chain__step:hover .chain__label { color: var(--navy-2); letter-spacing: 0.24em; }
.section--navy .chain__step:hover .chain__label { color: var(--sky); }
.section--navy .chain__dot { background: var(--navy); }
.chain__step:first-child .chain__dot,
.chain__step:last-child .chain__dot { background: var(--sky); }
.chain__label {
  font-size: clamp(0.62rem, 1.4vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.chain__advisory {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--sky);
  padding: 0.8rem 1.4rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--grey);
}
.section--navy .chain__advisory { border-color: var(--line-light); border-left-color: var(--sky); color: var(--sky); }

/* ---------------------------------------------------------------- cartes services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
/* accueil : les 5 cartes sur une seule ligne en desktop */
@media (min-width: 1200px) {
  .services-grid--five { grid-template-columns: repeat(5, 1fr); }
  .services-grid--five .service-card { padding: 1.7rem 1.35rem; gap: 0.9rem; }
  .services-grid--five .service-card__title { font-size: 1.06rem; }
  .services-grid--five .service-card__tagline { font-size: 0.85rem; margin-top: 0.5rem; }
  .services-grid--five .service-card__text { font-size: 0.87rem; }
  .services-grid--five .service-card__link { font-size: 0.74rem; }
}
.service-card {
  /* subgrid : numéro / titre / tagline / texte / lien partagent les mêmes
     lignes sur toutes les cartes → taglines, descriptions et « Découvrir »
     alignés par le haut et sur la même ligne */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: 0.85rem;
  align-content: start;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background 400ms var(--ease-out), transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
/* même animation que les cartes typologies : la carte se soulève, ombre derrière */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -14px rgba(1, 37, 87, 0.35);
  z-index: 2;
}
@supports not (grid-template-rows: subgrid) {
  .service-card { display: flex; flex-direction: column; gap: 1.1rem; }
}
.service-card::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.service-card:hover { background: var(--paper); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__num { font-size: 0.85rem; font-weight: 500; color: var(--sky); }
.service-card__title { display: block; font-size: 1.25rem; font-weight: 500; color: var(--navy); line-height: 1.3; }
.service-card__tagline { display: block; font-style: italic; font-size: 0.92rem; color: var(--navy-2); align-self: start; }
.service-card__text { display: block; font-size: 0.95rem; font-weight: 300; color: var(--grey); line-height: 1.65; align-self: start; }
.service-card__link {
  display: inline-flex; gap: 0.5rem;
  align-self: end;
  padding-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.service-card__link span { transition: transform 350ms var(--ease-out); }
.service-card:hover .service-card__link span { transform: translateX(5px); }

/* ---------------------------------------------------------------- chiffres clés */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.section--navy .stats, .section--navy .stats { background: var(--line-light); border-color: var(--line-light); }
.stats__item {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column-reverse;
  /* column-reverse : flex-end = haut visuel → chiffres tous alignés par le haut */
  justify-content: flex-end;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
  transition-delay: calc(var(--i) * 110ms);
}
.section--paper .stats__item { background: var(--paper); }
.section--navy .stats__item { background: var(--navy); }
.is-in .stats__item, .stats.is-in .stats__item { opacity: 1; transform: none; }
.stats__value {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.section--navy .stats__value { color: var(--white); }
.stats__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--grey);
}
.section--navy .stats__label { color: var(--sky); }

/* ---------------------------------------------------------------- grille typologies */
.typology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.typology {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
/* au survol : la carte se soulève, une ombre se crée derrière elle */
.typology:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -14px rgba(1, 37, 87, 0.45);
}
.typology picture { height: 100%; display: block; }
.typology img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 700ms; }
.typology:hover img { transform: scale(1.06); filter: brightness(1.08); }
.typology::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
  z-index: 2;
}
.typology:hover::after { transform: scaleX(1); }
.typology__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 0.95rem;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* lisibilité sur photo sans bandeau : simple ombre portée du texte */
  text-shadow: 0 1px 10px rgba(1, 20, 45, 0.75), 0 0 2px rgba(1, 20, 45, 0.6);
}
.typology-extra { margin-top: 1.5rem; font-size: 0.85rem; color: var(--grey); font-style: italic; }

/* ---------------------------------------------------------------- arguments “pourquoi” */
.args-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 3rem);
}
.arg {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
  position: relative;
  transition: transform 450ms var(--ease-out);
  /* subgrid : titres et descriptions partagent les mêmes lignes → textes alignés par le haut */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0.8rem;
  align-content: start;
}
a.arg { color: inherit; text-decoration: none; cursor: pointer; }
.arg h3 { margin: 0; align-self: start; }
.arg p { align-self: start; }
.arg::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  height: 2px; width: 0;
  background: var(--sky);
  transition: width 550ms var(--ease-out);
}
.arg:hover { transform: translateY(-6px); }
.arg:hover::before { width: 100%; }
.section:not(.section--navy) .arg { border-top-color: var(--line); }
.arg__num { font-size: 0.78rem; color: var(--sky); font-weight: 500; }
.arg h3 { font-size: 1.18rem; font-weight: 500; margin: 0.7rem 0 0.8rem; transition: color 350ms; }
.arg:hover h3 { color: var(--sky); }
.section:not(.section--navy) .arg:hover h3 { color: var(--navy-2); }
.arg p { font-size: 0.95rem; font-weight: 300; line-height: 1.7; color: var(--grey); }
.section--navy .arg p { color: rgba(255, 255, 255, 0.78); }

/* ---------------------------------------------------------------- CTA bande */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media picture, .cta-band__media img { width: 100%; height: 100%; }
/* cadrage centré : la bande de plage traverse le rectangle */
.cta-band__media img { object-fit: cover; object-position: center 58%; }
.cta-band__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(1, 37, 87, 0.78) 0%, rgba(1, 37, 87, 0.5) 55%, rgba(1, 37, 87, 0.3) 100%);
}
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.cta-band__title { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; max-width: 16em; }
.cta-band__text { max-width: 560px; color: rgba(255, 255, 255, 0.82); font-weight: 300; }

/* ---------------------------------------------------------------- page hero (pages intérieures) */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  /* même esprit que l'accueil : bloc titre centré, plus proche du menu */
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.page-hero--short { min-height: 46svh; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; }
/* Conseil : cadrage centré sur la photo de la baie */
.page-hero__media img[src*="05-conseil"] { object-position: center center; }
.page-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,37,87,0.5) 0%, rgba(1,37,87,0.28) 45%, rgba(1,37,87,0.82) 100%);
}
.page-hero__content {
  position: relative;
  width: 100%;
  padding-top: clamp(6.5rem, 13vh, 8.5rem);   /* dégage la barre de menu */
  padding-bottom: clamp(2rem, 4vh, 3rem);
}
.page-hero__title { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.8rem); max-width: 17em; font-weight: 600; }
.page-hero__title--caps {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.015em;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  max-width: 24em;
}
.page-hero__chapo { margin-top: 1.5rem; max-width: 700px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.88); }

.breadcrumb {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  padding-block: 0.7rem;
  color: var(--grey);
}
.breadcrumb a { color: var(--grey); transition: color 200ms; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 500; }

/* ---------------------------------------------------------------- pages services : périmètre */
.scope-list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.scope {
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
}
/* tête de ligne : numéro agrandi, titre à la taille de « Ce que nous prenons
   en charge », bloc centré verticalement dans la case */
.scope__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  align-self: center;
  /* respiration entre le bord de la case et le numéro */
  padding-left: clamp(0.75rem, 3vw, 3rem);
  padding-right: 1rem;
}
.scope__num { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--sky); font-weight: 500; line-height: 1; }
.scope__title { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.3; color: var(--navy); }
.scope__en { display: block; font-style: italic; font-weight: 300; font-size: 0.9rem; color: var(--grey); margin-top: 0.3rem; }
.scope__items { display: grid; gap: 0.45rem; }
.scope__items li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}
.scope__items li::before {
  content: '';
  position: absolute; left: 0; top: 0.72em;
  width: 14px; height: 1px;
  background: var(--sky);
}
.scope__intro { margin-bottom: 0.9rem; text-align: justify; hyphens: auto; }
.scope__note { margin-top: 1rem; font-style: italic; font-size: 0.9rem; color: var(--grey); line-height: 1.65; }

.crossref {
  text-align: justify;
  hyphens: auto;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-left: 2px solid var(--sky);
  background: var(--paper);
  padding: 1.5rem 1.9rem;
  font-size: 0.98rem;
  line-height: 1.7;
}
.crossref strong { color: var(--navy); }
.crossref a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.service-hero-tagline {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 300;
  color: var(--sky);
  font-size: 1.05rem;
  margin-top: 1.1rem;
}

/* ---------------------------------------------------------------- hub services : tableau chaîne */
.chain-table { border-top: 1px solid var(--line); }
.chain-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.4fr) minmax(0, 2fr) auto;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: background 300ms, padding-left 400ms var(--ease-out);
}
.chain-row:hover { background: var(--paper); padding-left: 1rem; }
.chain-row--advisory { border-left: 2px solid var(--sky); padding-left: 1.25rem; }
.chain-row--advisory:hover { padding-left: 2rem; }
.chain-row__step { font-family: var(--font-num); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--sky); }
.chain-row__names strong { display: block; font-weight: 500; color: var(--navy); font-size: 1.08rem; line-height: 1.35; }
.chain-row__names em { font-size: 0.85rem; color: var(--grey); font-weight: 300; }
.chain-row__desc { font-size: 0.94rem; font-weight: 300; color: var(--grey); line-height: 1.65; text-align: justify; hyphens: auto; }
.chain-row__desc em { color: var(--navy-2); font-style: italic; }
.chain-row__arrow { color: var(--sky); font-size: 1.2rem; transition: transform 350ms var(--ease-out); }
.chain-row:hover .chain-row__arrow { transform: translateX(6px); }

/* ---------------------------------------------------------------- investir : fiches territoires */
.territory-nav {
  position: sticky;
  top: 95px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.territory-nav::-webkit-scrollbar { display: none; }
.territory-nav__track {
  display: flex;
  gap: 1.6rem;
  padding-block: 0.85rem;
  width: max-content;
}
.territory-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  display: inline-flex;
  gap: 0.45rem;
  transition: color 250ms;
}
.territory-nav a:hover, .territory-nav a.is-active { color: var(--navy); }
.territory-nav a .num { color: var(--sky); }

.territory-fiche {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
  align-items: stretch;
}
.territory-fiche:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.territory-fiche:nth-child(even) .territory-fiche__media { order: 2; }
/* la photo épouse la hauteur du bloc texte : alignée en haut ET en bas */
.territory-fiche__media { position: relative; align-self: stretch; }
.territory-fiche__media picture { height: 100%; display: block; }
.territory-fiche__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.territory-fiche__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.7rem;
  background: var(--paper);
}
.badge--accent { border-color: var(--sky); background: rgba(157, 195, 230, 0.14); }
/* même format que les titres de section (« Les 12 territoires ») */
.territory-fiche__title { display: flex; align-items: baseline; gap: 1rem; font-size: clamp(1.7rem, 2.9vw, 2.5rem); font-weight: 600; }
.territory-fiche__title .num { font-size: 0.9rem; color: var(--sky); font-weight: 500; }
.territory-fiche__status { margin-top: 0.9rem; font-size: 1.0625rem; font-weight: 400; color: var(--ink); font-style: italic; line-height: 1.6; }
.territory-fiche dl { margin-top: 1.6rem; display: grid; gap: 1.3rem; }
.territory-fiche dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.territory-fiche dt::before { content: ''; width: 18px; height: 1px; background: var(--sky); }
.territory-fiche dd { font-size: 1.0625rem; font-weight: 400; line-height: 1.7; color: var(--ink); margin-top: 0.35rem; }

/* carte de l'arc caribéen (Google Maps) */
.arc-map { margin-block: clamp(2rem, 4vw, 3.5rem); }
.invest-map {
  height: clamp(380px, 55vh, 560px);
  border: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
/* logo en filigrane au-dessus des tuiles, sans gêner l'interaction */
.invest-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../logo/caridema-logo-navy.svg') center / min(42%, 400px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 5;
}

/* ---------------------------------------------------------------- regulatory + CBI */
.regulatory {
  border: 1px solid var(--line);
  border-left: 2px solid var(--sky);
  padding: 1.4rem 1.8rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
  background: var(--white);
}
.section--navy .regulatory { background: transparent; border-color: var(--line-light); border-left-color: var(--sky); color: rgba(255,255,255,0.75); }

/* ---------------------------------------------------------------- formulaire */
.contact-form { position: relative; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
}
/* sur fond navy : labels de champs assortis aux libellés de coordonnées (sky) */
.section--navy .field > label,
.contact-panel .field > label { color: var(--sky); }
.section--navy .field--check label,
.contact-panel .field--check label { color: rgba(255, 255, 255, 0.85); }
.field__req { color: var(--sky); }
.field__opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; opacity: 0.6; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.1rem;
  border-radius: 0;
  transition: border-color 300ms;
}
.section--navy .field input, .section--navy .field select, .section--navy .field textarea,
.contact-panel .field input, .contact-panel .field select, .contact-panel .field textarea {
  border-bottom-color: var(--line-light);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--sky);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239DC3E6' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  padding-right: 1.6rem;
}
.section--navy select option, .contact-panel select option { color: var(--ink); }
.phone-row { display: flex; gap: 0.6rem; min-width: 0; }
.phone-row .phone-cc { flex: 0 0 44%; width: 44%; max-width: 44%; min-width: 0; }
.phone-row input { flex: 1 1 auto; min-width: 0; }
.field { min-width: 0; }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.8rem; }
.field--check label { text-transform: none; letter-spacing: 0.01em; font-weight: 300; font-size: 0.9rem; line-height: 1.6; }
.field--check a { text-decoration: underline; text-underline-offset: 2px; }
.field--check input {
  margin-top: 0.25rem;
  width: 16px; height: 16px;
  accent-color: var(--navy-2);
  flex: none;
}
.contact-panel .field--check input, .section--navy .field--check input { accent-color: var(--sky); }
.contact-form__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
/* même police / taille que la case RGPD et la phrase « Vous préférez… » */
.contact-form__reassurance { font-size: 0.9rem; font-weight: 300; letter-spacing: 0.01em; line-height: 1.6; opacity: 0.85; }
.contact-form__msg {
  margin-top: 1.5rem;
  border-left: 2px solid var(--sky);
  padding: 0.9rem 1.3rem;
  background: rgba(157, 195, 230, 0.12);
  font-size: 0.95rem;
}
.contact-form__msg--error { border-left-color: #c0563a; background: rgba(192, 86, 58, 0.1); }

/* panneau contact style éditorial (page contact + bloc home) */
.contact-panel {
  background: var(--navy);
  color: var(--white);
}
.contact-panel .section-title, .contact-panel h2 { color: var(--white); }
.contact-panel .section-intro { color: rgba(255, 255, 255, 0.82); }
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-block: clamp(2.25rem, 4vw, 3.5rem);
}
.contact-details h3, .contact-details dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.7rem;
}
.contact-details a { transition: color 250ms; }
.contact-details a:hover { color: var(--sky); }
.contact-details p, .contact-details dd { font-weight: 300; font-size: 0.98rem; line-height: 1.8; }
/* contenu légèrement en retrait sous chaque libellé, chiffres harmonisés au corps */
.contact-details__body { padding-left: 1rem; border-left: 1px solid var(--line-light); }
.contact-details .num { font-size: 0.98rem; font-weight: 400; letter-spacing: 0.02em; }
.contact-alt { margin-top: 1.75rem; font-weight: 300; font-size: 0.9rem; letter-spacing: 0.01em; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.contact-alt a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-alt a:hover { color: var(--sky); }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.office-card {
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 400ms var(--ease-out), border-color 300ms, transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
/* même animation que les cartes services : la carte se soulève, ombre derrière, trait sky */
.office-card::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.office-card:hover {
  background: var(--paper);
  border-color: var(--sky);
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -14px rgba(1, 37, 87, 0.35);
  z-index: 2;
}
.office-card:hover::after { transform: scaleX(1); }
.office-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  min-height: 2.6em; /* réserve 2 lignes : adresses et emails alignés entre cartes */
}
.office-card address { font-style: normal; font-weight: 300; font-size: 0.92rem; color: var(--grey); line-height: 1.7; min-height: 3.4em; }
.office-card a { font-size: 0.9rem; color: var(--navy-2); }
.office-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.office-card .office-card__dir { margin-top: auto; padding-top: 0.8rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.map-embed { margin-top: clamp(2.5rem, 5vw, 4rem); border: 1px solid var(--line); position: relative; }
.map-embed iframe { display: block; width: 100%; height: 440px; border: 0; }
/* logo en filigrane, comme sur la carte Investir */
.map-embed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../logo/caridema-logo-navy.svg') center / min(42%, 400px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 5;
}

/* ---------------------------------------------------------------- valeurs / à propos */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.value-card {
  background: var(--navy);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: background 400ms var(--ease-out);
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--sky);
  transition: width 550ms var(--ease-out);
}
.value-card:hover { background: var(--navy-2); }
.value-card:hover::before { width: 100%; }
.value-card h3 { font-size: 1.15rem; font-weight: 500; color: var(--sky); margin-bottom: 0.9rem; }
.value-card p { font-size: 0.93rem; font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }

.rics-panel {
  border: 1px solid var(--line);
  border-top: 2px solid var(--sky);
  padding: clamp(2rem, 4.5vw, 4rem);
  background: var(--paper);
}
.rics-panel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
.rics-guarantees { display: grid; gap: 1.4rem; margin-top: 1.75rem; }
/* même corps que les paragraphes ; description en noir après le tiret */
.rics-guarantees li { padding-left: 1.5rem; position: relative; font-size: inherit; font-weight: 400; line-height: 1.7; color: var(--ink); text-align: justify; hyphens: auto; }
.rics-guarantees li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 15px; height: 1px; background: var(--sky); }
.rics-guarantees strong { font-weight: 600; color: var(--navy); }

.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.two-col-list h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1.4rem; color: var(--sky); }
.two-col-list ul { display: grid; gap: 0.9rem; }
.two-col-list li { padding-left: 1.5rem; position: relative; font-size: 0.96rem; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.85); }
.two-col-list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 15px; height: 1px; background: var(--sky); }

/* ---------------------------------------------------------------- pages légales */
.legal-prose { max-width: 780px; }
.legal-prose h2 { font-size: 1.5rem; margin: 2.75rem 0 1rem; font-weight: 500; }
.legal-prose h3 { font-size: 1.1rem; margin: 1.75rem 0 0.6rem; font-weight: 600; }
.legal-prose p, .legal-prose li { font-size: 0.98rem; font-weight: 300; line-height: 1.75; }
.legal-prose p + p { margin-top: 0.9em; }
.legal-prose ul { list-style: none; display: grid; gap: 0.5rem; margin: 0.75rem 0; }
.legal-prose ul li { padding-left: 1.4rem; position: relative; }
.legal-prose ul li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 13px; height: 1px; background: var(--sky); }
.legal-prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-prose .placeholder { background: rgba(157, 195, 230, 0.18); padding: 0 0.3em; font-family: var(--font-num); font-size: 0.9em; }
.legal-updated { margin-top: 3rem; font-size: 0.8rem; color: var(--grey); font-style: italic; }

/* ---------------------------------------------------------------- footer */
/* Fond volontairement plus sombre que --navy : le footer se détache toujours
   de la dernière section de page (formulaire contact, bande CTA…). */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(157, 195, 230, 0.22);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
/* le SVG du logo contient du blanc tournant : marge réduite pour resserrer la baseline */
.site-footer__brand img { height: 108px; width: auto; margin-bottom: 0.3rem; }
.site-footer__brand p { font-size: 0.92rem; font-weight: 300; line-height: 1.7; max-width: 300px; color: rgba(255,255,255,0.75); }
/* icônes sociales : glyphes nus, sans cadre — passent en sky au survol */
.site-footer__social { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.6rem; }
.site-footer__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.8);
  transition: color 300ms, transform 350ms var(--ease-out);
}
.site-footer__social a:hover { color: var(--sky); transform: translateY(-3px); }
.site-footer__social svg { width: 32px; height: 32px; }
.site-footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer__col h2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.8rem;
}
.site-footer__col a { font-size: 0.88rem; font-weight: 300; color: rgba(255,255,255,0.82); transition: color 250ms, padding-left 300ms var(--ease-out); }
.site-footer__col a:hover { color: var(--white); padding-left: 4px; }
.site-footer__more { font-weight: 500 !important; color: var(--sky) !important; margin-top: 0.4rem; }
.site-footer__contact .num { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.02em; }
/* groupes libellé + valeur(s) : rythme identique sur toute la colonne Contact */
.site-footer__office { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.45rem; }
.site-footer__office span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.site-footer__office a { font-size: 0.85rem; font-weight: 300; color: rgba(255,255,255,0.82); }
.site-footer__bar { border-top: 1px solid var(--line-light); padding-block: 1.4rem; }
.site-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
}
.site-footer__bar-inner p { white-space: nowrap; }
.site-footer__bar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.site-footer__bar a:hover { color: var(--white); }
.site-footer__territories { letter-spacing: 0.1em; font-size: 0.66rem; font-weight: 600; color: var(--sky); }

/* ---------------------------------------------------------------- reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 120ms; }
.reveal[data-delay="2"] { transition-delay: 240ms; }
.reveal[data-delay="3"] { transition-delay: 360ms; }
/* les effets de survol reprennent la main une fois l'apparition jouée */
.reveal.is-in:hover { transition-delay: 0s; }
.arg.reveal.is-in:hover { transform: translateY(-6px); }
.office-card.reveal.is-in:hover { transform: translateY(-6px); }
.typology.reveal.is-in:hover { transform: translateY(-6px); }
.service-card.reveal.is-in:hover { transform: translateY(-6px); }

/* images : reveal par voile */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--paper);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 900ms var(--ease-out) 150ms;
}
.section--navy .img-reveal::after { background: var(--navy); }
.img-reveal.is-in::after { transform: scaleY(0); }
.img-reveal img { transition: transform 1200ms var(--ease-out); }
.img-reveal:hover img { transform: scale(1.03); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split__media--bleed-r, .split__media--bleed-l { margin: 0; }
  .typology-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .rics-panel__grid { grid-template-columns: 1fr; }
  .chain-row { grid-template-columns: 90px 1fr auto; }
  .chain-row__desc { display: none; }
  .territory-fiche, .territory-fiche:nth-child(even) { grid-template-columns: 1fr; }
  .territory-fiche:nth-child(even) .territory-fiche__media { order: 0; }
  /* mobile : photo au format 16/9 au-dessus du texte */
  .territory-fiche__media { align-self: auto; }
  .territory-fiche__media img { height: auto; aspect-ratio: 16 / 9; }
  .scope { grid-template-columns: 1fr; gap: 1.25rem; }
  /* la liste a tirets reprend le retrait gauche du titre de la case */
  .scope__items, .scope__note, .scope__intro { padding-inline: clamp(0.75rem, 3vw, 3rem); }
}
@media (max-width: 1080px) and (min-width: 681px) {
  .site-footer__bar-inner { flex-wrap: wrap; }
  .site-footer__bar-inner p { white-space: normal; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .two-col-list { grid-template-columns: 1fr; }
  .typology-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  /* libellés des typologies : plus petits et calés bord gauche / bas */
  .typology__label { font-size: 0.55rem; letter-spacing: 0.09em; padding: 1rem 0.5rem 0.5rem 0.55rem; }
  .chain__label { letter-spacing: 0.1em; }
  .chain-row { grid-template-columns: 70px 1fr auto; gap: 0.9rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  /* mobile : pied du hero dans le flux (le hero s'allonge, aucun chevauchement) */
  .hero { min-height: 100svh; flex-direction: column; justify-content: center; align-items: stretch; }
  /* le bloc de texte se centre entre le header et le pied, quelle que soit la hauteur d'écran */
  .hero__content { padding-top: clamp(7rem, 14vh, 9rem); padding-bottom: 2.5rem; margin-block: auto; }
  .hero__bottom { position: static; margin-top: 0; }
  /* territoires : bande sur une ligne qui défile automatiquement en boucle */
  .hero__territories {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    padding-inline: 0;
    padding-bottom: 1.2rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .hero__territories-track,
  .hero__territories-track + .hero__territories-track {
    display: flex;
    flex: none;
    align-items: center;
    animation: terr-marquee 42s linear infinite;
  }
  .hero__territories-track > span::after {
    content: '·';
    color: var(--sky);
    margin-inline: 1.1rem;
  }
  .mega { display: none; }
  /* footer & header sur mobile : logo à taille constante, y compris une fois la page scrollée */
  .site-header__logo img { height: 63px !important; }
  /* bloc marque du footer centré sur mobile */
  .site-footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .site-footer__brand img { height: 96px; }
  .site-footer__brand p { text-align: center; }
  .site-footer__social { justify-content: center; }
  .site-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .site-footer__bar-inner p { white-space: normal; line-height: 1.8; }
  .contact-details { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__title--caps { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  /* listes des pages services : police reduite */
  .scope__items li { font-size: 0.88rem; }
  .scope__intro, .scope__note { font-size: 0.88rem; }
  .chain-row__desc { grid-column: 1 / -1; padding-inline: 0.9rem; font-size: 0.88rem; }
  /* les emails longs ne forcent plus la largeur de la page (contact) */
  .contact-details__body { overflow-wrap: anywhere; }
  .contact-details__body a { overflow-wrap: anywhere; }
  /* splits empiles : titre et texte rapproches */
  .split .section-head { margin-bottom: 1.25rem; }
  /* chiffres cles : jamais sur deux lignes, taille commune aux 4 cases */
  .stats__value { font-size: clamp(1.45rem, 6vw, 2.3rem); white-space: nowrap; }
}

/* ---------------------------------------------------------------- print & motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .hero-line, .chain__step, .stats__item { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { display: none; }
}

/* ---------------------------------------------------------------- retour en haut */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: var(--navy);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out), background 250ms, border-color 250ms;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.to-top:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
@media (max-width: 860px) {
  .to-top { width: 40px; height: 40px; right: 1rem; bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity 200ms linear; transform: none; }
}

/* ---------------------------------------------------------------- anti-debordement horizontal
   Aucun element ne doit pouvoir elargir le canvas (bande blanche au dezoom iOS). */
html, body { overflow-x: hidden; }
html, body { overflow-x: clip; }
