/* =========================================================================
   TES — Tahiti Encaissements Services — Feuille de style principale
   Charte graphique v1-2026 : rose #E72486 · bleu ciel #4CBDCB · violet #844A97
   rouge-orangé #FF2930 · noir de marque #646464 — police Aptos (substituée
   ici par Public Sans, alternative libre de droit la plus proche)
   ========================================================================= */

:root {
  /* --- Couleurs de marque (charte graphique) --- */
  --rose: #E72486;
  --rose-dark: #B81A6C;
  --sky: #4CBDCB;
  --sky-dark: #2E97A4;
  --violet: #844A97;
  --violet-dark: #6B3A7B;
  --coral: #FF2930;
  --coral-dark: #C81A20;
  --graphite: #646464;
  --sky-deep: #1F6E7A;

  /* --- Neutres --- */
  --ink: #14171C;
  --ink-soft: #454A52;
  --paper: #FBFAF7;
  --paper-alt: #EFF6F6;
  --line: #E3E1DA;
  --white: #FFFFFF;

  /* --- Lagon (fond sombre signature) --- */
  --navy: #06263C;
  --navy-deep: #031622;
  --navy-soft: #0C3A54;

  /* --- Typographie --- */
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* --- Échelle --- */
  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --shadow-s: 0 2px 10px rgba(6, 38, 60, 0.06);
  --shadow-m: 0 12px 34px rgba(6, 38, 60, 0.10);
  --shadow-l: 0 22px 60px rgba(6, 38, 60, 0.20);
  --ease: cubic-bezier(.22, .68, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Focus visibility (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typographie générale ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); line-height: 1.3; }
p { color: var(--ink-soft); }
.lede { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--sky); }
.eyebrow.on-dark::before { background: var(--sky); }
.eyebrow.violet { color: var(--violet); }
.eyebrow.violet::before { background: var(--violet); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--rose-dark);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(231, 36, 134, 0.32);
}
.btn-primary:hover { background: var(--rose); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(231, 36, 134, 0.4); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(6,38,60,0.08);
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; transition: opacity .3s; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0.88;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .2s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--rose);
  transition: right .25s var(--ease);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { right: 0; }
.site-header.is-scrolled .main-nav a { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.site-header .btn-primary { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--white);
  transition: transform .25s, opacity .25s, background .25s;
  position: relative;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after { background: var(--ink); }
.nav-toggle span::before { content:""; position:absolute; top:-7px; }
.nav-toggle span::after { content:""; position:absolute; top:7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 84% -10%, #0d4a67 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 168px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 68px);
  z-index: -2;
}
.hero .tiare-mark {
  position: absolute;
  top: -8%; right: -6%;
  width: 620px; max-width: 60vw;
  opacity: 0.16;
  transform: rotate(8deg);
  z-index: -1;
  filter: saturate(0.9);
}
.hero-logo {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em;
  margin-bottom: 26px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(231,36,134,0.25); }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  line-height: 1.08;
  color: var(--white);
  max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--sky); }
.hero .lede { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 26px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), border-color .3s;
}
.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.32); }
.stat-card .num {
  font-size: 2rem; font-weight: 800; color: var(--white);
  display: flex; align-items: baseline; gap: 4px;
}
.stat-card .num .unit { font-size: 1.1rem; color: var(--sky); font-weight: 700; }
.stat-card .label { font-size: 0.86rem; color: rgba(255,255,255,0.68); margin-top: 4px; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%,100%{ transform: scaleY(0.6); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* Vague de transition */
.wave {
  display: block; width: 100%; height: 70px;
  margin-top: -1px;
}

/* ---------- Sections génériques ---------- */
section { position: relative; padding: 108px 0; }
.bg-paper { background: var(--paper); }
.bg-alt { background: var(--paper-alt); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .lede, .bg-navy p { color: rgba(255,255,255,0.78); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- Contexte / marché ---------- */
.context-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px, 0.85fr);
  gap: 60px;
  align-items: start;
}
.context-figures { display: grid; gap: 16px; }
.figure-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  box-shadow: var(--shadow-s);
  display: flex; align-items: center; gap: 18px;
}
.figure-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt); color: var(--sky-dark); flex-shrink: 0;
}
.figure-card .icon svg { width: 24px; height: 24px; }
.figure-card .big { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.figure-card .cap { font-size: 0.88rem; color: var(--ink-soft); }
.source-note { font-size: 0.78rem; color: var(--graphite); margin-top: 18px; }

/* ---------- Qui sommes-nous / héritage ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,0.9fr); gap: 60px; align-items: center; }
.heritage-rail { position: relative; padding-left: 30px; }
.heritage-rail::before { content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background: linear-gradient(var(--sky), var(--violet)); border-radius: 2px; }
.heritage-item { position: relative; padding-bottom: 30px; }
.heritage-item:last-child { padding-bottom: 0; }
.heritage-item::before {
  content:""; position:absolute; left:-30px; top:2px; width:14px; height:14px; border-radius:50%;
  background: var(--white); border: 3px solid var(--sky);
}
.heritage-item.now::before { border-color: var(--rose); }
.heritage-item .yr { font-weight: 800; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--sky-deep); }
.heritage-item.now .yr { color: var(--rose); }
.heritage-item p { margin-top: 4px; font-size: 0.96rem; }

.esg-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.esg-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper-alt); border-radius: 999px; padding: 9px 16px 9px 10px;
  font-size: 0.84rem; font-weight: 700; color: var(--ink);
}
.esg-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Méthode ---------- */
.method-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  position: relative;
}
.method-steps::before {
  content: "";
  position: absolute; top: 44px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.step-card {
  position: relative; z-index: 1;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px 26px; box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.step-badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--white); margin-bottom: 18px;
  font-size: 1rem;
}
.step-card ul { margin-top: 14px; display: grid; gap: 8px; }
.step-card ul li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 8px; }
.step-card ul li::before { content: "—"; color: var(--graphite); flex-shrink: 0; }

.arpege-note {
  margin-top: 40px; display: flex; align-items: center; gap: 18px;
  background: var(--paper-alt); border-radius: var(--radius-m); padding: 20px 26px;
}
.arpege-note svg { width: 34px; height: 34px; color: var(--violet); flex-shrink: 0; }
.arpege-note strong { color: var(--ink); }

/* ---------- Rémunération (section signature) ---------- */
.remu-section {
  background: radial-gradient(120% 100% at 10% 0%, #0d4a67 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.remu-section .tiare-mark {
  position: absolute; bottom: -14%; left: -8%; width: 520px; max-width: 55vw;
  opacity: 0.12; transform: rotate(-14deg);
}
/* Correctif de contraste : sans ces règles, les titres et paragraphes de
   cette section héritaient des couleurs sombres prévues pour fond clair,
   les rendant quasi invisibles sur ce fond navy. */
.remu-section h2, .remu-section h3, .remu-section h4 { color: var(--white); }
.remu-section p, .remu-section .lede { color: rgba(255,255,255,0.94); }
.remu-head { max-width: 760px; margin-bottom: 56px; }
.remu-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.remu-head h2 em { font-style: italic; color: var(--sky); }

.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch;
  position: relative;
}
.flow-node {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-m); padding: 26px 22px; text-align: center;
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.flow-node .flow-ico {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
}
.flow-node .flow-ico svg { width: 26px; height: 26px; }
.flow-node .flow-step { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.88); font-weight: 700; }
.flow-node h4 { color: var(--white); font-size: 1.02rem; }
.flow-node p { font-size: 0.86rem; color: rgba(255,255,255,0.92); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); }
.flow-arrow svg { width: 22px; height: 22px; }

.remu-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.remu-badge {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-m); padding: 26px;
}
.remu-badge .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.remu-badge h4 { color: var(--white); font-size: 1.06rem; margin-bottom: 8px; }
.remu-badge p { font-size: 0.9rem; }
.remu-fineprint { margin-top: 30px; font-size: 0.82rem; color: rgba(255,255,255,0.88); max-width: 780px; }

/* ---------- Secteurs & partenaires ---------- */
.sector-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sector-pill {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 10px;
}
.sector-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

.partners-strip {
  margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line);
}
.partners-strip .label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 22px; }
.partner-chips { display: flex; flex-wrap: wrap; gap: 14px; }
.partner-chip {
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 16px 24px; font-weight: 800; font-size: 1.05rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px; background: var(--white);
}
.partner-chip .since { font-weight: 500; font-size: 0.78rem; color: var(--graphite); }

.trackrecord { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.tr-card { text-align: center; padding: 28px 16px; border-radius: var(--radius-m); background: var(--paper-alt); }
.tr-card .num { font-size: 2.2rem; font-weight: 800; color: var(--violet); }
.tr-card .cap { font-size: 0.86rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Pourquoi TES (avantages) ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 30px 28px; transition: transform .3s var(--ease), box-shadow .3s;
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.advantage-card .ico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
}
.advantage-card .ico svg { width: 24px; height: 24px; color: var(--white); }
.advantage-card h3 { margin-bottom: 10px; }
.advantage-card p { font-size: 0.94rem; }

/* ---------- Gouvernance ---------- */
.gov-card {
  max-width: 880px; margin-inline: auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(32px, 5vw, 64px); box-shadow: var(--shadow-m); position: relative;
}
.gov-card .quote-mark { font-size: 4rem; line-height: 1; color: var(--sky); font-weight: 800; font-family: Georgia, serif; }
.gov-card p.statement { font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem); color: var(--ink); font-weight: 500; max-width: 60ch; margin-inline: auto; }
.gov-signature { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gov-signature .name { font-weight: 800; font-size: 1.05rem; }
.gov-signature .role { font-size: 0.86rem; color: var(--graphite); }
.gov-bio { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-soft); text-align: left; max-width: 70ch; margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px, 0.85fr); gap: 50px; align-items: start; }
.contact-form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-m);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--rose); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 16px; font-size: 0.96rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--sky); box-shadow: 0 0 0 4px rgba(76,189,203,0.18); outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; color: var(--ink-soft); margin: 6px 0 22px; }
.consent input { margin-top: 3px; }
/* honeypot — champ caché anti-bot, ne pas retirer */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-s); font-size: 0.9rem; font-weight: 600; margin-bottom: 18px; }
.form-status.show { display: block; }
.form-status.ok { background: #E6F7ED; color: #146C3C; }
.form-status.err { background: #FDEAEA; color: #A6222B; }

.contact-side { display: grid; gap: 18px; }
.contact-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius-l);
  padding: 30px; display: grid; gap: 18px;
}
.contact-line { display: flex; align-items: flex-start; gap: 14px; }
.contact-line .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-line .ico svg { width: 19px; height: 19px; color: var(--sky); }
.contact-line strong { display: block; font-size: 0.95rem; }
.contact-line span, .contact-line a { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.contact-line a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-row a:hover { background: var(--rose); }
.social-row a svg { width: 18px; height: 18px; color: var(--white); }

.map-wrap { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.15) contrast(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.68); font-size: 0.88rem; max-width: 34ch; }
.footer-col h5 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.82rem; color: rgba(255,255,255,0.62); }
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .context-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .method-steps::before { display: none; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .remu-badges { grid-template-columns: 1fr; }
  .trackrecord { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { gap: 10px; }
  /* Le header reste fixe et visible en permanence pendant le défilement,
     comme sur desktop : logo + bouton menu toujours accessibles. Le CTA
     complet ("Confier un dossier") reste disponible dans le menu déployé. */
  .hero { padding: 140px 0 90px; }
  .hero-logo { width: 168px; margin-bottom: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 76px 0; }
  /* Les styles du panneau de menu mobile (.mobile-nav) sont volontairement
     définis en CSS "inline" dans le <head> de index.html, et non ici :
     voir la balise <style id="mobile-nav-critical-css"> pour le détail et
     la raison de ce choix. */
}
@media (min-width: 721px) { .mobile-nav { display: none; } }

/* ---------- Pages légales (mentions légales / confidentialité) ---------- */
.legal-header {
  background: var(--navy);
  padding: 20px 0;
}
.legal-header .container { display: flex; align-items: center; justify-content: space-between; }
.legal-header .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600;
}
.legal-header .back-link:hover { color: var(--white); }
.legal-header .back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }

.legal-hero { background: var(--navy); color: var(--white); padding: 40px 0 70px; }
.legal-hero h1 { color: var(--white); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); max-width: 22ch; }
.legal-hero p { color: rgba(255,255,255,0.7); margin-top: 12px; }

.legal-content { padding: 60px 0 100px; }
.legal-content .wrap { max-width: 820px; margin-inline: auto; }
.legal-content section { padding: 0 0 40px; }
.legal-content h2 { font-size: 1.35rem; margin-bottom: 14px; padding-top: 10px; }
.legal-content h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.legal-content p { margin-bottom: 12px; }
.legal-content ul { margin: 0 0 14px; display: grid; gap: 8px; }
.legal-content ul li { position: relative; padding-left: 20px; font-size: 0.96rem; color: var(--ink-soft); }
.legal-content ul li::before { content: "—"; position: absolute; left: 0; color: var(--graphite); }
.legal-content .toc { background: var(--paper-alt); border-radius: var(--radius-m); padding: 22px 26px; margin-bottom: 10px; }
.legal-content .toc h2 { margin-bottom: 10px; }
.legal-content .toc ol { padding-left: 20px; display: grid; gap: 6px; }
.legal-content .toc a { font-size: 0.92rem; font-weight: 600; color: var(--sky-deep); }
.legal-content .toc a:hover { text-decoration: underline; }
.legal-content .placeholder { background: #FFF6E9; border: 1px dashed #E0AA55; border-radius: var(--radius-s); padding: 12px 16px; font-size: 0.86rem; color: #7A5613; }
.legal-content .updated { font-size: 0.85rem; color: var(--graphite); margin-bottom: 30px; }
