/* =========================================================================
   MEILI INVEST — Maison d'investissement
   Feuille de style organisée par variables (migration React facilitée)
   1. Tokens (couleurs, typo, espacements)
   2. Base & reset
   3. Layout : scroll-snap par sections + réglette d'étages
   4. Navigation
   5. Hero + arche signature
   6. Sections de contenu
   7. Formulaire de contact
   8. Animations (reveal) & accessibilité
   9. Responsive
   ========================================================================= */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Couleurs */
  --paper:        #ffffff;
  --paper-2:      #f4f6fa;   /* off-white bleuté pour alterner les sections */
  --ink:          #0a1a2f;   /* texte principal (noir bleuté) */
  --ink-soft:     #45566c;   /* texte secondaire */
  --blue:         #0e2a4e;   /* bleu encre — couleur de marque */
  --blue-deep:    #0a1f3c;   /* fond bleu profond des sections sombres */
  --blue-bright:  #1a56a8;   /* bleu interactif (liens, accents) */
  --gold:         #b79361;   /* doré antique — élément signature uniquement */
  --gold-soft:    rgba(183, 147, 97, 0.16);
  --line:         rgba(10, 26, 47, 0.12);
  --line-strong:  rgba(10, 26, 47, 0.22);
  --line-light:   rgba(255, 255, 255, 0.16);

  /* Typographie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Échelle de type — resserrée pour un rendu plus compact */
  --fs-hero:    clamp(2.4rem, 5.2vw, 4.6rem);
  --fs-h2:      clamp(1.7rem, 3.3vw, 2.6rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead:    clamp(0.98rem, 1.1vw, 1.1rem);
  --fs-body:    1rem;
  --fs-small:   0.84rem;
  --fs-eyebrow: 0.72rem;

  /* Espacements & dimensions */
  --nav-h:       80px;
  --container:   1180px;
  --gutter:      clamp(1.5rem, 5vw, 5rem);
  --radius:      14px;
  --radius-lg:   22px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. BASE & RESET ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;   /* le défilement « accroche » chaque section */
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

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

/* Étiquette « eyebrow » au-dessus des titres */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.6rem;
}
.eyebrow .num { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}

.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; max-width: 54ch; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;          /* un libellé de bouton ne se coupe jamais en deux */
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-gold { background: var(--gold); color: var(--blue-deep); }
.btn-gold:hover { background: #c9a878; }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* 3. LAYOUT : SCROLL-SNAP ---------------------------------------------- */
.snap {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 2rem) 4rem;
}
.snap--dark { background: var(--blue-deep); color: #fff; }
.snap--alt  { background: var(--paper-2); }

/* Réglette d'étages (signature) ---------------------------------------- */
.floors {
  position: fixed;
  top: 50%; right: clamp(1rem, 2.5vw, 2.4rem);
  transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.floors a {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink-soft); opacity: 0.55;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.floors a .tick { width: 22px; height: 1px; background: currentColor; transition: width 0.35s var(--ease), background 0.3s var(--ease); }
.floors a .flabel { opacity: 0; transform: translateX(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); white-space: nowrap; }
.floors a:hover { opacity: 1; }
.floors a:hover .flabel { opacity: 1; transform: translateX(0); }
.floors a.is-active { opacity: 1; color: var(--gold); }
.floors a.is-active .tick { width: 40px; background: var(--gold); }
/* Le libellé actif n'apparaît que si l'écran est assez large : en dessous, il
   chevaucherait le texte de la section. Le repère doré suffit à situer le lecteur. */
@media (min-width: 1500px) {
  .floors a.is-active .flabel { opacity: 1; transform: translateX(0); color: var(--ink); }
}
/* La réglette s'inverse en couleur au-dessus des sections sombres */
.floors.on-dark a { color: rgba(255,255,255,0.6); }
.floors.on-dark a.is-active { color: var(--gold); }
.floors.on-dark a.is-active .flabel { color: #fff; }

/* Barre de progression dorée en haut */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--gold); z-index: 60; transition: width 0.1s linear;
}

/* 4. NAVIGATION --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 50;
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand .mark { width: 26px; height: 30px; flex: none; }
.brand .mark path { stroke: var(--blue); stroke-width: 1.4; fill: none; }
.brand .name {
  font-family: var(--font-display);
  font-size: 1.18rem; letter-spacing: 0.02em; color: var(--ink);
  font-weight: 500;
}
.brand .name b { color: var(--gold); font-weight: 500; }
.brand-logo { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.9rem); }
.nav-links a.link {
  font-size: 0.92rem; color: var(--ink-soft); position: relative; padding-block: 0.4rem;
  white-space: nowrap;          /* un intitulé de menu reste sur une ligne */
  transition: color 0.25s var(--ease);
}
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* 5. HERO — BLANC + PHOTO MAISON FONDUE + TOUCHE D'AURORE --------------- */
.hero {
  text-align: left;
  overflow: hidden;
  background: var(--paper);           /* fond blanc, la photo se fond dedans */
  color: var(--ink);
}
.hero .container { position: relative; z-index: 3; }
/* Largeur de la colonne de texte : assez large pour une lecture fluide, assez
   étroite pour rester dans la zone blanche avant la photo. */
.hero-inner { max-width: 27rem; }

.hero h1 { font-size: var(--fs-hero); font-weight: 340; color: var(--ink); letter-spacing: -0.02em; }
.hero h1 .line { display: block; width: max-content; max-width: none; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: block; white-space: nowrap; transform: translateY(115%); }
.hero h1 em { font-style: italic; color: var(--gold); }
/* Apparition du H1 ligne par ligne au chargement */
.hero h1 .line:nth-child(1) > span { animation: lineUp 1.05s var(--ease) 0.25s forwards; }
.hero h1 .line:nth-child(2) > span { animation: lineUp 1.05s var(--ease) 0.42s forwards; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero .lead { margin-top: 1.6rem; max-width: 100%; color: var(--ink-soft); }
.hero .hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Le portail haussmannien (panneau droit) qui se fond dans le blanc --- */
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 1; pointer-events: none;
  background: url("assets/hero-portail.jpg") center 42% / cover no-repeat;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* bord gauche qui se fond dans le blanc (raccord avec le texte) */
    linear-gradient(to right, var(--paper) 0%, rgba(255,255,255,0.55) 16%, rgba(255,255,255,0) 34%),
    /* haut éclairci pour garder la nav lisible */
    linear-gradient(to bottom, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 15%),
    /* bas fondu vers le blanc (raccord avec la section suivante) */
    linear-gradient(to top, var(--paper) 1%, rgba(255,255,255,0) 20%),
    /* voile bleu encre très léger : la photo N&B se lie à la palette de marque */
    linear-gradient(to bottom, rgba(14, 42, 78, 0.10), rgba(14, 42, 78, 0.05));
}

/* Carte statistique posée sur la photo (verre sombre, comme la réf.) */
.hero-stat {
  position: absolute; right: var(--gutter); bottom: 24%; z-index: 3;
  min-width: 220px; padding: 1.3rem 1.7rem;
  background: rgba(10, 26, 47, 0.55);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-stat .l { font-size: 0.82rem; color: rgba(255,255,255,0.72); letter-spacing: 0.03em; }
.hero-stat .v {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem; font-family: var(--font-mono); font-size: 2rem; color: #fff;
}
.hero-stat .v .arr { color: var(--gold); font-size: 1.2rem; }
/* Variante pour une phrase (plus longue qu'un chiffre) */
.hero-stat .v--phrase { font-family: var(--font-body); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.01em; }

/* indice de défilement */
.scroll-hint {
  position: absolute; bottom: 2.2rem; left: var(--gutter);
  display: flex; align-items: center; gap: 0.7rem; z-index: 3;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft);
}
.scroll-hint .dot { width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-hint .dot::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px;
  background: var(--gold); border-radius: 2px; transform: translateX(-50%);
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }

/* 6. SECTIONS DE CONTENU ------------------------------------------------ */
.sec-head { max-width: 60ch; margin-bottom: 3rem; }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head .lead { margin-top: 1.3rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split .prose p + p { margin-top: 1.1rem; }
.split .prose p { color: var(--ink-soft); }

/* Piliers / cartes principes */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pillar {
  padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.snap--dark .pillar { background: rgba(255,255,255,0.04); border-color: var(--line-light); }
.pillar:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 40px -24px rgba(10,26,47,0.4); }
.pillar .pn { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.pillar h3 { font-size: var(--fs-h3); margin: 0.9rem 0 0.7rem; }
.pillar p { font-size: var(--fs-small); color: var(--ink-soft); }
.snap--dark .pillar p { color: rgba(255,255,255,0.66); }
.pillar .ic { width: 30px; height: 30px; color: var(--blue-bright); margin-bottom: 1.1rem; }
.snap--dark .pillar .ic { color: var(--gold); }

/* Citation manifeste (section vision sombre) */
.manifesto { max-width: 22ch; }
.manifesto .q {
  font-family: var(--font-display); font-weight: 320; font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -0.01em;
}
.manifesto .q b { color: var(--gold); font-weight: 320; font-style: normal; }

/* Portfolio — carte projet */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.proj {
  display: flex; flex-direction: column; padding: 2.2rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.proj:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 24px 50px -28px rgba(10,26,47,0.45); }
.proj.is-soon { opacity: 0.7; border-style: dashed; justify-content: center; align-items: flex-start; }
.proj .tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-bright); background: var(--gold-soft);
  padding: 0.35rem 0.7rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.proj .pname { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 0.6rem; }
.proj .pdesc { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 1.6rem; }
/* Sous-titre d'activité + intertitre de la fiche projet */
.proj .psub { font-size: 0.84rem; line-height: 1.45; color: var(--gold); margin-bottom: 1.1rem; }
.proj .seclabel {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.proj .metrics { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.proj .metrics .m .v { font-family: var(--font-mono); font-size: clamp(1.15rem, 1.7vw, 1.45rem); color: var(--blue); }
.proj .metrics .m .l { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Carte d'appel : le pendant sombre de la fiche projet */
.proj--cta {
  position: relative; overflow: hidden; justify-content: center;
  background: var(--blue-deep); border-color: transparent; color: #fff;
}
.proj--cta::after {                      /* arc décoratif, discret */
  content: ""; position: absolute; top: -28%; right: -18%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10); pointer-events: none;
}
.proj--cta:hover { transform: translateY(-5px); border-color: transparent; }
.proj--cta > * { position: relative; z-index: 1; }
.cta-eyebrow {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.cta-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: #fff; margin-bottom: 1rem; }
.cta-text { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.72); margin-bottom: 1.8rem; }
.proj--cta .btn-gold { align-self: flex-start; }
.cta-note { margin-top: 0.9rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.proj .plink { margin-top: 1.4rem; font-size: 0.85rem; color: var(--blue-bright); display: inline-flex; align-items: center; gap: 0.4rem; }
.proj .plink .arr { transition: transform 0.3s var(--ease); }
.proj:hover .plink .arr { transform: translateX(4px); }

/* Mandat — critères */
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.4rem; }
.crit { display: flex; gap: 1.1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.crit .ic { width: 26px; height: 26px; flex: none; color: var(--gold); margin-top: 3px; }
.crit h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-bottom: 0.35rem; letter-spacing: 0; }
.crit p { font-size: var(--fs-small); color: var(--ink-soft); }

/* --- Le secteur en chiffres -------------------------------------------
   Marques fines, grille en filet plein, valeurs toujours écrites en clair
   (jamais lisibles par la seule couleur). Couleurs validées : or #b79361 vs
   acier #6f8fb8 — ΔE 15,7 vision normale / 16,5 deutan / 14,0 protan.       */
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fig {
  display: flex; flex-direction: column;
  padding: 1.7rem 1.6rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-light);
}
.fig h3 { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; line-height: 1.35; letter-spacing: 0; color: #fff; }
.fig .flabel-src {
  display: block; margin-top: 0.5rem; font-family: var(--font-mono);
  font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.fig .fnote { margin-top: auto; padding-top: 1.1rem; font-size: 0.76rem; color: rgba(255,255,255,0.6); }
.fig .fnote em { color: rgba(255,255,255,0.45); font-style: italic; }

/* Chiffre-héros : avec deux points de mesure, le nombre EST le graphique */
.stat-hero { margin: 1.5rem 0 0.9rem; display: flex; align-items: baseline; gap: 0.6rem; }
.stat-hero .n { font-family: var(--font-mono); font-size: 2.6rem; line-height: 1; color: var(--gold); letter-spacing: -0.02em; }
.stat-hero .n .pct { font-size: 0.6em; margin-left: 0.1em; }
.stat-hero .u { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.slope { width: 100%; height: auto; margin-bottom: 0.7rem; }
.slope .grid-l { stroke: rgba(255,255,255,0.10); stroke-width: 1; }
.slope .ln { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.slope .pt { fill: var(--gold); }
.slope .ring { fill: none; stroke: #12263f; stroke-width: 2; }
.trend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.74rem; color: rgba(255,255,255,0.72); }
.trend span small { display: block; font-family: var(--font-body); font-size: 0.68rem; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }

/* Barres horizontales : une seule série, la marque dorée porte l'emphase */
.bars { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.bar-row .bl { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-bottom: 0.4rem; }
.bar-row .bname { font-size: 0.8rem; color: rgba(255,255,255,0.78); }
.bar-row .bval { font-family: var(--font-mono); font-size: 0.86rem; color: #fff; }
.bar-row .track { height: 8px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; background: #6f8fb8; }
.bar-row.is-focus .fill { background: var(--gold); }
.bar-row.is-focus .bname, .bar-row.is-focus .bval { color: #fff; font-weight: 500; }

/* Quatre apports : aucune donnée chiffrée ici, donc aucun graphe — une liste */
.contrib { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.contrib div {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 0.8rem; border-radius: 10px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.83rem; color: rgba(255,255,255,0.86);
}
.contrib div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* Encart de lecture */
.insight {
  margin-top: 1.6rem; padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold); background: rgba(255,255,255,0.03);
  font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.78);
}
.insight b { color: var(--gold); font-weight: 500; }

.sources { margin-top: 1.2rem; font-size: 0.68rem; line-height: 1.55; color: rgba(255,255,255,0.42); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .container { display: flex; flex-direction: column; align-items: center; }
.cta-final h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 340; max-width: 16ch; }
.cta-final h2 em { font-style: italic; color: var(--gold); }
.cta-final .lead { color: rgba(255,255,255,0.7); margin: 1.6rem auto 2.6rem; text-align: center; }

/* 7. FOOTER + FORMULAIRE ----------------------------------------------- */
.footer { background: var(--blue-deep); color: rgba(255,255,255,0.7); padding: 4rem 0 2.5rem; scroll-snap-align: none; }
.footer .frow { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.footer .brand .name { color: #fff; }
.footer .brand .mark path { stroke: var(--gold); }
/* Sur le fond bleu nuit, on utilise la version monochrome blanche du logo */
.footer .brand-logo { height: 42px; }
.footer .fcol h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 400; }
.footer .fcol a { display: block; font-size: 0.9rem; padding: 0.3rem 0; color: rgba(255,255,255,0.7); transition: color 0.25s var(--ease); }
.footer .fcol a:hover { color: #fff; }
.footer .fcols { display: flex; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.footer .legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* --- Page contact --- */
.contact-page { padding-top: var(--nav-h); }
.contact-hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.contact-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 340; max-width: 16ch; }
.contact-hero h1 em { font-style: italic; color: var(--blue-bright); }
.contact-hero .lead { margin-top: 1.4rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-block: 3rem 5rem; align-items: start; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.76rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* Zone de dépôt de documents */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; color: var(--ink-soft); cursor: pointer; background: var(--paper-2);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue-bright); background: #eef3fb; color: var(--ink); }
.dropzone .ic { width: 30px; height: 30px; margin: 0 auto 0.8rem; color: var(--blue-bright); }
.dropzone strong { color: var(--blue-bright); }
.dropzone .hint { font-size: 0.76rem; margin-top: 0.4rem; }
.filelist { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.filelist li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.8rem; }
.filelist li .rm { margin-left: auto; border: none; background: none; color: var(--ink-soft); font-size: 1rem; line-height: 1; }
.filelist li .rm:hover { color: #b00; }

.form-aside .aside-card { background: var(--blue-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); }
.form-aside .aside-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.form-aside .aside-card ul { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.form-aside .aside-card li { display: flex; gap: 0.8rem; padding: 0.7rem 0; font-size: 0.9rem; color: rgba(255,255,255,0.78); border-top: 1px solid var(--line-light); }
.form-aside .aside-card li .ic { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }
/* Étapes numérotées : l'ordre porte une information réelle (le parcours du dossier) */
.form-aside .steps { counter-reset: step; }
.form-aside .steps .sn {
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold);
}
.form-aside .aside-note { margin-top: 1.1rem; font-size: 0.78rem; color: rgba(255,255,255,0.55); }

/* Message d'erreur : dit ce qui s'est passé et comment s'en sortir */
.form-error {
  display: none; margin-bottom: 0.9rem; padding: 0.8rem 1rem;
  border-left: 2px solid #b3261e; border-radius: 8px;
  background: #fdf3f2; color: #7a1c15; font-size: 0.86rem; line-height: 1.5;
}

.form-success { display: none; text-align: center; padding: 3rem 1rem; }
.form-success.show { display: block; }
.form-success .ic { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 1.4rem; }
.form-success h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.8rem; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }

/* 8. ANIMATIONS (reveal) & ACCESSIBILITÉ ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* tracé de l'arche au chargement */
.arch path, .arch line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 2.4s var(--ease) forwards; }
.arch .a-blue { animation-delay: 0.1s; }
.arch path:nth-child(2) { animation-delay: 0.25s; }
.arch path:nth-child(3) { animation-delay: 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .arch path, .arch line { stroke-dashoffset: 0; }
}

/* 9. RESPONSIVE --------------------------------------------------------- */
/* En dessous de cette largeur, les 7 entrées ne tiennent plus sur une ligne :
   le menu bascule en panneau déroulant plutôt que de se tasser sur deux lignes. */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute; top: calc(var(--nav-h) - 8px); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    min-width: 232px; padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 60px -28px rgba(10,26,47,0.45);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a.link { padding: 0.55rem 0; }
  .nav-links a.link::after { display: none; }
  .nav-links .btn { margin-top: 0.7rem; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .floors { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .cards, .criteria { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .manifesto { max-width: none; }
}

@media (max-width: 720px) {
  html { scroll-snap-type: none; }              /* défilement naturel sur mobile */
  .snap { min-height: auto; padding-block: calc(var(--nav-h) + 2.5rem) 3.5rem; }
  .hero { min-height: 100vh; }
  .field-row { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .hero-stat { display: none; }            /* évite tout chevauchement sur mobile */
  .hero-photo { width: 100%; opacity: 0.4; }   /* la maison devient un fond discret */
}
