/* LUM · feuille de style principale */

:root {
  --ivoire: #F1ECE6;
  --sable: #D8CEC3;
  --taupe: #C5B8AB;
  --terre: #AC9A8B;
  --brun: #6C5D4D;
  --profond: #2B231B;

  --bg: #F1ECE6;
  --bg-alt: #E9E2D9;
  --surface: #E1D7CB;
  --text: #2B231B;
  --muted: #6C5D4D;
  --soft: #8E7F70;
  --line: rgba(43, 35, 27, .14);
  --line-strong: rgba(43, 35, 27, .42);
  --invert-bg: #2B231B;
  --invert-text: #F1ECE6;
  --invert-muted: #B5A697;
  --invert-line: rgba(241, 236, 230, .16);
  --accent: #8C5A3C;
  --glow: 214, 170, 118;
  --glow-strength: .28;
  --grain-blend: multiply;
  --grain-opacity: .07;

  --serif: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --logo: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Aptos', 'Segoe UI Variable Text', 'Segoe UI', -apple-system, system-ui, sans-serif;
  --pad: clamp(16px, 4.2vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #1C1712;
  --bg-alt: #231D17;
  --surface: #2B231B;
  --text: #EDE6DD;
  --muted: #B5A697;
  --soft: #8E7F70;
  --line: rgba(241, 236, 230, .12);
  --line-strong: rgba(241, 236, 230, .38);
  --invert-bg: #EDE6DD;
  --invert-text: #2B231B;
  --invert-muted: #6C5D4D;
  --invert-line: rgba(43, 35, 27, .16);
  --accent: #C99270;
  --glow: 232, 182, 120;
  --glow-strength: .16;
  --grain-blend: overlay;
  --grain-opacity: .12;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1712;
    --bg-alt: #231D17;
    --surface: #2B231B;
    --text: #EDE6DD;
    --muted: #B5A697;
    --soft: #8E7F70;
    --line: rgba(241, 236, 230, .12);
    --line-strong: rgba(241, 236, 230, .38);
    --invert-bg: #EDE6DD;
    --invert-text: #2B231B;
    --invert-muted: #6C5D4D;
    --invert-line: rgba(43, 35, 27, .16);
    --accent: #C99270;
    --glow: 232, 182, 120;
    --glow-strength: .16;
    --grain-blend: overlay;
    --grain-opacity: .12;
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.42s var(--ease), color 0.42s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
h1 em, h2 em, h3 em, p em, .footer__tag em { font-style: normal; font-weight: 300; color: var(--soft); }
::selection { background: var(--terre); color: var(--ivoire); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

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

/* Grain et lumière */
.grain {
  pointer-events: none;
  position: fixed;
  inset: -50%;
  z-index: 90;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.14 0 0 0 0 0.1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
  100% { transform: translate(0, 0); }
}

.lumiere {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 900px; height: 900px;
  margin: -450px 0 0 -450px;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow), var(--glow-strength)) 0%, rgba(var(--glow), 0) 62%);
  opacity: 0;
  transition: opacity 0.84s var(--ease);
  will-change: transform;
}
.lumiere.is-on { opacity: 1; }
@media (hover: none) { .lumiere { display: none; } }

main, .nav, .footer { position: relative; z-index: 2; }

/* Typo utilitaires */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--line::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.label--pre::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.display { font-size: clamp(2.3rem, 5.2vw, 5rem); }
.title { font-size: clamp(2rem, 3.9vw, 3.6rem); }
.subtitle { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.caps { text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; }

/* Mise en page */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(96px, 13vw, 200px) 0; }
.section--tight { padding: clamp(72px, 9vw, 130px) 0; }
.section--invert {
  background: var(--invert-bg);
  color: var(--invert-text);
  --muted: var(--invert-muted);
  --line: var(--invert-line);
  --line-strong: var(--invert-muted);
}
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); }

/* Boutons et liens */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 1.1em 1.9em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.42s var(--ease), border-color 0.42s var(--ease), transform 0.56s var(--ease);
}
/* Remplissage liquide depuis la position du curseur */
.btn::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 100%);
  width: 260%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.56s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--ivoire); border-color: var(--accent); }
.section--invert .btn::before { background: var(--invert-text); }
.section--invert .btn:hover { color: var(--invert-bg); border-color: var(--invert-text); }

.arrow { width: 26px; height: 10px; flex: none; transition: transform 0.42s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(6px); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.42s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Navigation */
/* Barre flottante « liquide » en verre dépoli */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 60;
  width: min(1180px, calc(100% - 2 * var(--pad)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--ivoire) 55%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 -1px 0 rgba(43, 35, 27, .04) inset,
    0 18px 50px -18px rgba(43, 35, 27, .28),
    0 2px 8px -2px rgba(43, 35, 27, .08);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transform: translateX(-50%);
  transition: transform 0.56s var(--ease), background-color 0.42s var(--ease), box-shadow 0.42s var(--ease), top 0.42s var(--ease);
}
.nav.is-scrolled { top: 10px; background: color-mix(in srgb, var(--bg) 72%, transparent); }
.nav.is-hidden { transform: translate(-50%, calc(-100% - 30px)); }
:root[data-theme="dark"] .nav { border-color: rgba(241, 236, 230, .1); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav { border-color: rgba(241, 236, 230, .1); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(0, 0, 0, .7); } }

.nav__logo { display: block; width: 78px; color: var(--text); flex: none; }
.nav__links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__links a {
  position: relative;
  z-index: 1;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.28s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__blob {
  position: absolute;
  z-index: 0;
  top: 0; left: 0;
  height: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.49s cubic-bezier(.34, 1.4, .5, 1), width 0.49s cubic-bezier(.34, 1.4, .5, 1), opacity 0.28s var(--ease);
}

.nav__tools { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  transition: background-color 0.28s var(--ease), transform 0.42s var(--ease);
}
.theme-toggle:hover { transform: rotate(-25deg); background: color-mix(in srgb, var(--text) 13%, transparent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .half { transition: transform 0.56s var(--ease); transform-origin: 50% 50%; }
:root[data-theme="dark"] .theme-toggle .half { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .half { transform: rotate(180deg); } }

.nav__cta { display: inline-flex; }
.nav .btn { padding: .95em 1.6em; }
@media (max-width: 960px) { .nav { padding-left: 20px; top: 10px; } }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform 0.42s var(--ease), top 0.42s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.63s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a.menu__big {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 9vw, 3.6rem); letter-spacing: -.035em;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.56s var(--ease), opacity 0.56s var(--ease);
}
.menu-open .menu a.menu__big { transform: none; opacity: 1; }
.menu-open .menu a.menu__big:nth-child(2) { transition-delay: .05s; }
.menu-open .menu a.menu__big:nth-child(3) { transition-delay: .1s; }
.menu-open .menu a.menu__big:nth-child(4) { transition-delay: .15s; }
.menu-open .menu a.menu__big:nth-child(5) { transition-delay: .2s; }
.menu__foot { margin-top: 36px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
}

/* Logo */
.logo-svg text { fill: currentColor; }
.logo-svg .logo-lum { font-family: var(--logo); font-weight: 400; }
.logo-svg .logo-tag { font-family: var(--logo); font-weight: 500; letter-spacing: .2em; }
.logo-svg .logo-roof { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

/* HERO accueil */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px var(--pad) 36px;
  overflow: hidden;
}
.hero__main {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.hero__logo { width: min(100%, 760px); color: var(--text); }
.hero__side { padding-bottom: 12px; }
.hero__side p { color: var(--muted); max-width: 26em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__sketch {
  position: absolute;
  right: -4vw;
  bottom: 4vh;
  width: min(62vw, 900px);
  color: var(--line-strong);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-top: 40px;
}
.hero__words { display: flex; gap: clamp(16px, 3vw, 48px); flex-wrap: wrap; }
.hero__words span { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

.scroll-cue { display: flex; align-items: center; gap: 14px; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; display: block; width: 1px; height: 48px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--text); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -50%; } 100% { top: 100%; } }

@media (max-width: 860px) {
  .hero__main { grid-template-columns: 1fr; align-items: start; }
  .hero__sketch { width: 120vw; right: -30vw; bottom: 16vh; opacity: .35; }
  .hero__foot .hero__words { display: none; }
}

/* Mots qui s'allument */
.manifeste { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3.3vw, 3.1rem); line-height: 1.22; letter-spacing: -.03em; max-width: 22ch; max-width: 1180px; }
.manifeste .w { opacity: .16; transition: opacity .2s linear; }
.no-motion .manifeste .w { opacity: 1; }
.manifeste em { font-style: normal; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; will-change: transform; }

/* Pôles en triptyque */
.poles {
  display: flex;
  height: min(86vh, 820px);
  min-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pole {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  transition: flex-grow 0.77s var(--ease), background-color 0.56s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.6vw, 40px);
  cursor: pointer;
}
.pole:last-child { border-right: 0; }
.poles:hover .pole { flex-grow: .75; }
.poles .pole:hover, .poles .pole.is-active { flex-grow: 2.1; background: var(--bg-alt); }

.pole__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pole__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.25) contrast(.95); opacity: 0; transform: scale(1.08); transition: opacity 0.7s var(--ease), transform 1.12s var(--ease); mix-blend-mode: multiply; }
.pole__media img.is-loaded { opacity: .28; }
.pole:hover .pole__media img.is-loaded { opacity: .55; transform: scale(1); }
.pole__initials {
  position: absolute;
  right: -.06em; bottom: -.18em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(10rem, 19vw, 20rem); font-weight: 200; letter-spacing: -.06em;
  line-height: 1;
  color: var(--text);
  opacity: .05;
  transition: opacity 0.7s var(--ease), transform 0.98s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.pole:hover .pole__initials { opacity: .09; transform: translateX(-4%); }

.pole__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pole__num { font-family: var(--serif); font-size: 1.1rem; font-style: normal; color: var(--muted); }
.pole__title { font-size: clamp(1.7rem, 2.6vw, 2.8rem); letter-spacing: -.035em; max-width: 9ch; transition: transform 0.7s var(--ease); }
.pole__person { margin-top: 18px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.pole__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease);
}
.pole__details > div { overflow: hidden; }
.pole:hover .pole__details, .pole.is-active .pole__details { grid-template-rows: 1fr; }
.pole__details p { margin: 22px 0 18px; max-width: 30em; color: var(--muted); opacity: 0; transform: translateY(14px); transition: opacity 0.56s var(--ease) .15s, transform 0.56s var(--ease) .15s; }
.pole__details ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity 0.56s var(--ease) .25s, transform 0.56s var(--ease) .25s; }
.pole:hover .pole__details p, .pole:hover .pole__details ul, .pole.is-active .pole__details p, .pole.is-active .pole__details ul { opacity: 1; transform: none; }
.tag { display: inline-block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 7px 12px; white-space: nowrap; }

@media (max-width: 900px) {
  .poles { flex-direction: column; height: auto; min-height: 0; }
  .pole { flex: none; border-right: 0; border-bottom: 1px solid var(--line); min-height: 64vh; }
  .poles:hover .pole, .poles .pole:hover { flex-grow: 1; }
  .pole__details { grid-template-rows: 1fr; }
  .pole__details p, .pole__details ul { opacity: 1; transform: none; }
}

/* Méthode : défilement horizontal */
.methode { position: relative; }
.methode__pin {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.methode__left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--pad) 48px;
  border-right: 1px solid var(--line);
}
.methode__drawing { width: 100%; max-width: 560px; color: var(--text); margin: auto 0; }
.methode__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.methode__progress span { position: relative; display: block; height: 1px; background: var(--line); }
.methode__progress span i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.methode__progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.methode__track-wrap { position: relative; overflow: hidden; }
.methode__track { display: flex; height: 100%; will-change: transform; }
.etape {
  flex: 0 0 min(46vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(28px, 4vw, 64px) 60px;
  border-right: 1px solid var(--line);
}
.etape__num { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 9vw, 8rem); line-height: .85; font-weight: 200; color: var(--line-strong); margin-bottom: 36px; font-style: normal; }
.etape__title { font-size: clamp(1.7rem, 2.6vw, 2.6rem); margin-bottom: 26px; max-width: 12ch; }
.etape p { color: var(--muted); max-width: 30em; }
.etape__who { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.etape--intro { flex-basis: min(40vw, 540px); }
.etape--intro h2 { margin: 26px 0; }

@media (max-width: 900px) {
  .methode__pin { height: auto; grid-template-columns: 1fr; }
  .methode__left { border-right: 0; padding-top: 80px; padding-bottom: 20px; }
  .methode__progress, .methode__progress-labels { display: none; }
  .methode__track { flex-direction: column; }
  .etape { flex-basis: auto; border-right: 0; border-top: 1px solid var(--line); padding: 56px var(--pad); }
  .etape__num { font-size: 5rem; margin-bottom: 20px; }
}

/* Dessin de maison */
.maison { overflow: visible; }
.maison .trait { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.maison .trait--fin { stroke-width: .8; opacity: .55; }
.maison .trait--accent { stroke: var(--accent); }
.maison .trait--pointille { stroke-dasharray: 3 5; }
.maison .sol { stroke-width: 1; opacity: .7; }
.maison .hachure { stroke-width: .6; opacity: .35; }
.maison text { font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; fill: currentColor; opacity: .75; }
.maison .fenetre-lumiere { fill: rgb(var(--glow)); opacity: 0; }
.maison .soleil { fill: none; stroke: var(--accent); }

/* Projet (section sombre sur l'accueil) */
.projet-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.projet-teaser__drawing { color: var(--invert-text); border: 1px solid var(--line); padding: clamp(20px, 3vw, 44px); position: relative; }
.projet-teaser__drawing .label { position: absolute; top: 18px; left: 20px; }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin: 40px 0; }
.chiffre { padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.chiffre:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.chiffre:nth-child(even) { padding-left: 24px; }
.chiffre b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; }
.chiffre > span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.statut { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--glow), .6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glow), .55); } 100% { box-shadow: 0 0 0 12px rgba(var(--glow), 0); } }
@media (max-width: 900px) { .projet-teaser { grid-template-columns: 1fr; } }

/* Valeurs */
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.valeur { padding: 44px clamp(20px, 3vw, 48px) 20px 0; border-right: 1px solid var(--line); transition: background-color 0.56s var(--ease); }
.valeur + .valeur { padding-left: clamp(20px, 3vw, 48px); }
.valeur:last-child { border-right: 0; }
.valeur__mot { font-family: var(--serif); font-style: normal; font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.04em; margin: 18px 0 22px; transition: transform 0.63s var(--ease), color 0.42s var(--ease); display: inline-block; }
.valeur:hover .valeur__mot { transform: translateX(10px); color: var(--accent); }
.valeur p { color: var(--muted); max-width: 22em; }
@media (max-width: 900px) {
  .valeurs { grid-template-columns: 1fr; }
  .valeur, .valeur + .valeur { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 0; }
}

/* Section matière (logo corten) */
.matiere { position: relative; height: 78vh; min-height: 480px; overflow: hidden; }
.matiere img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.matiere__txt { position: absolute; left: var(--pad); bottom: 40px; color: var(--ivoire); z-index: 2; }
.matiere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 35, 27, .55), rgba(43, 35, 27, 0) 45%); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.contact__big { font-size: clamp(3rem, 8vw, 7rem); line-height: 1; margin: 24px 0 32px; }
.contact__infos { margin-top: 44px; display: grid; gap: 20px; }
.contact__infos a { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 0 12px;
  font: inherit;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.28s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field span {
  position: absolute;
  left: 0; top: 22px;
  font-size: .95rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease), color 0.28s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--text); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(.74); color: var(--text); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.56s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }

.choix { border: 0; margin: 0; padding: 0; }
.choix legend { padding: 0; margin-bottom: 16px; }
.choix__list { display: flex; flex-wrap: wrap; gap: 10px; }
.choix input { position: absolute; opacity: 0; pointer-events: none; }
.choix label {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.choix label:hover { border-color: var(--text); }
.choix input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.choix input:focus-visible + label { outline: 1px solid var(--accent); outline-offset: 3px; }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__msg { font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.form__msg.is-ok { color: var(--text); }
.form.is-sent .form__fields { opacity: .35; pointer-events: none; transition: opacity 0.42s var(--ease); }

/* Footer */
.footer { padding: clamp(80px, 10vw, 140px) 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__tag { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 7.4vw, 7.4rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.footer__tag em { font-style: normal; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer__grid h4 { font-family: var(--sans); font-size: .66rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__grid a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__tag { white-space: normal; } }

/* En-tête de page intérieure */
.page-head { padding: clamp(150px, 20vw, 240px) 0 clamp(60px, 8vw, 110px); position: relative; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1; margin: 26px 0 34px; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(30px, 6vw, 100px); align-items: end; }
@media (max-width: 900px) { .page-head__grid { grid-template-columns: 1fr; } }

/* Page expertise */
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--ease); filter: sepia(.12); }
.portrait img.is-loaded { opacity: 1; }
.portrait__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.portrait__ph b { font-family: var(--serif); font-weight: 300; font-size: clamp(6rem, 14vw, 12rem); line-height: .8; color: var(--line-strong); font-style: normal; }
.portrait img.is-loaded + .portrait__ph { display: none; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 32px 44px 0; border-bottom: 1px solid var(--line); position: relative; }
.service:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 32px; }
.service h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin: 18px 0 14px; transition: transform 0.56s var(--ease); }
.service:hover h3 { transform: translateX(8px); }
.service p { color: var(--muted); margin: 0; }
.service__n { font-family: var(--serif); font-style: normal; color: var(--muted); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:not(:nth-child(3n+1)) { padding: 30px 0; border-right: 0 !important; }
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 28px 28px 0 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.step h3 { font-size: 1.7rem; margin: 14px 0 12px; }
.step p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.autres { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.autre { background: var(--bg); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; min-height: 300px; justify-content: space-between; transition: background-color 0.49s var(--ease); }
.autre:hover { background: var(--bg-alt); }
.autre h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
@media (max-width: 700px) { .autres { grid-template-columns: 1fr; } }

.encart { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 60px); padding: clamp(30px, 4vw, 60px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: start; }
.encart__mark { font-family: var(--serif); font-style: normal; font-size: clamp(4rem, 8vw, 7rem); line-height: .8; color: var(--accent); }
.encart p { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.25; font-weight: 300; margin: 0; }

/* Page investir */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trio > div { padding: 36px 32px 10px 0; }
.trio > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.trio h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); margin: 16px 0 14px; }
.trio p { color: var(--muted); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } .trio > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

.opps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.opp { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); transition: border-color 0.42s var(--ease), transform 0.63s var(--ease); }
.opp:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.opp__visuel { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: var(--bg-alt); display: grid; place-items: center; padding: 24px; color: var(--text); overflow: hidden; }
.opp__visuel svg { width: 100%; transition: transform 0.98s var(--ease); }
.opp:hover .opp__visuel svg { transform: scale(1.04); }
.opp__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.opp__body h3 { font-size: 2.1rem; }
.opp__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: .9rem; padding-top: 16px; border-top: 1px solid var(--line); }
.opp__meta dt { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.opp__meta dd { margin: 2px 0 0; }
.opp__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.opp--vide { border-style: dashed; justify-content: center; align-items: flex-start; padding: clamp(28px, 4vw, 48px); min-height: 380px; gap: 18px; }
.opp--vide:hover { transform: none; }
.opp--vide h3 { font-size: 2.2rem; }

.simu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); }
.simu__in { padding: clamp(26px, 3.4vw, 52px); display: grid; gap: 38px; align-content: start; }
.simu__out { padding: clamp(26px, 3.4vw, 52px); background: var(--bg-alt); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 900px) { .simu { grid-template-columns: 1fr; } .simu__out { border-left: 0; border-top: 1px solid var(--line); } }

.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.range__val { white-space: nowrap; font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to right, var(--text) var(--p), var(--line-strong) var(--p)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); margin-top: -9px; transition: transform 0.21s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.3); }
.range__scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); letter-spacing: .08em; margin-top: 6px; }

.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scenarios input { position: absolute; opacity: 0; pointer-events: none; }
.scenarios label { display: block; border: 1px solid var(--line-strong); padding: 14px 14px 12px; cursor: pointer; transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.scenarios label b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.scenarios label small { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.scenarios input:checked + label { background: var(--text); color: var(--bg); }
.scenarios input:focus-visible + label { outline: 1px solid var(--accent); outline-offset: 3px; }

.resultat__big { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 5.4vw, 5rem); line-height: 1; }
.resultat__rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.resultat__rows div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.resultat__rows dt { color: var(--muted); }
.resultat__rows dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.part-bar { position: relative; height: 8px; background: var(--line); }
.part-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width 0.56s var(--ease); }
.avertissement { font-size: .82rem; color: var(--muted); line-height: 1.55; border-left: 1px solid var(--accent); padding-left: 16px; }

.criteres { border-top: 1px solid var(--line); }
.critere { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding 0.56s var(--ease); }
.critere__n { font-family: var(--serif); font-style: normal; color: var(--muted); font-size: 1.3rem; }
.critere h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); transition: transform 0.56s var(--ease), color 0.35s var(--ease); }
.critere p { color: var(--muted); margin: 0; }
.critere:hover h3 { transform: translateX(12px); color: var(--accent); }
@media (max-width: 900px) { .critere { grid-template-columns: 50px 1fr; } .critere p { grid-column: 2; } }

.financement__bar { display: flex; height: clamp(90px, 12vw, 150px); border: 1px solid var(--line-strong); margin: 40px 0 16px; }
.financement__bar > div { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 18px; overflow: hidden; }
.financement__bar .banque { flex: 75; background: var(--bg-alt); border-right: 1px solid var(--line-strong); }
.financement__bar .propres { flex: 25; background: var(--text); color: var(--bg); }
.financement__bar b { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1; }
.financement__bar span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; }
.couts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: 60px; }
.couts h3 { font-size: 1.8rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.couts dl { margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.couts dt { color: var(--text); }
.couts dd { margin: 0; color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .couts { grid-template-columns: 1fr; } }

.flux { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 50px; }
.flux div { position: relative; padding: 22px 20px 0 0; border-top: 1px solid var(--line-strong); font-size: .95rem; }
.flux div::after { content: ""; position: absolute; top: -4px; right: 18px; width: 8px; height: 8px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: rotate(45deg); }
.flux div:last-child::after { display: none; }
.flux b { display: block; font-family: var(--serif); font-style: normal; font-weight: 300; font-size: 1.2rem; color: var(--muted); }
@media (max-width: 700px) { .flux { grid-template-columns: 1fr 1fr; row-gap: 30px; } }

.risques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 50px; }
.risques div { background: var(--bg); padding: 26px 22px 30px; }
.risques h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 10px 0; }
.risques p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .risques { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .risques { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 50px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; top: -54px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); }
.timeline__item h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 12px 0; }
.timeline__item p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; gap: 40px; }
  .timeline__line { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline__line i { transform: scaleY(0); transform-origin: top; }
  .timeline__item::before { top: 6px; left: -36px; }
}

.espace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.apercu { position: relative; border: 1px solid var(--line); background: var(--bg); padding: 22px; display: grid; gap: 14px; overflow: hidden; }
.apercu__top { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.apercu__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.apercu__card { border: 1px solid var(--line); padding: 14px; }
.apercu__card small { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.apercu__card b { display: block; font-family: var(--serif); font-weight: 300; font-size: 2rem; }
.apercu__graph { height: 140px; border: 1px solid var(--line); position: relative; }
.apercu__graph svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.apercu__list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.apercu__veil { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.apercu__veil span { background: var(--text); color: var(--bg); padding: 12px 20px; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 900px) { .espace { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 300; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform 0.42s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .faq__body { overflow: hidden; }
.faq .faq__body p { color: var(--muted); max-width: 46em; padding-bottom: 26px; margin: 0; }

/* Page projet */
.compare { position: relative; border: 1px solid var(--line); background: var(--bg-alt); user-select: none; touch-action: pan-y; overflow: hidden; }
.compare__layer { padding: clamp(20px, 4vw, 60px); color: var(--text); }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); background: var(--bg); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--text); cursor: ew-resize; }
.compare__handle button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--text); background: var(--bg); display: grid; place-items: center; font-size: 1.2rem; cursor: ew-resize; }
.compare__labels { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; pointer-events: none; }

.fiche { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fiche div { padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiche dt { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.fiche dd { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
@media (max-width: 800px) { .fiche { grid-template-columns: 1fr 1fr; } }

.deux-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
@media (max-width: 900px) { .deux-col { grid-template-columns: 1fr; } }

.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.liste li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.liste li b { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--muted); }
.liste li strong { display: block; font-weight: 400; margin-bottom: 4px; }
.liste li span { color: var(--muted); font-size: .95rem; }

.avancement { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.avancement div { padding-top: 18px; border-top: 2px solid var(--line); font-size: .9rem; color: var(--muted); }
.avancement div b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--text); }
.avancement .is-done { border-color: var(--text); }
.avancement .is-current { border-color: var(--accent); }
.avancement .is-current small { color: var(--accent); }
.avancement small { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 700px) { .avancement { grid-template-columns: 1fr 1fr; row-gap: 22px; } }

.note-anonyme { display: inline-flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: 10px 14px; }

/* Apparitions */
.no-motion [data-reveal], .no-motion .split .wi { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}

/* Formes liquides : capsules et coins adoucis */
.tag, .choix label, .note-anonyme, .apercu__veil span { border-radius: 999px; }
.scenarios label { border-radius: 18px; }
.opp, .simu, .apercu, .compare, .autres, .risques, .portrait, .projet-teaser__drawing { border-radius: 28px; overflow: hidden; }
.opp__visuel { border-radius: 0; }
.apercu__card, .apercu__graph { border-radius: 14px; }
.simu__out { border-radius: 0; }
.financement__bar { border-radius: 22px; overflow: hidden; }
.compare__handle button { box-shadow: 0 10px 30px -10px rgba(43, 35, 27, .4); backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.part-bar, .part-bar i { border-radius: 999px; }

/* Protection du capital */
.protection { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
.protection::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: var(--line-strong); z-index: 0; }
.protection__item { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 38px); border: 1px solid var(--line); border-radius: 28px; background: var(--bg); transition: transform 0.63s var(--ease), border-color 0.42s var(--ease); }
.protection__item:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.protection__item h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.2; }
.protection__item p { color: var(--muted); margin: 0; }
.protection__n { width: 44px; height: 44px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--serif); font-size: 1rem; }
.protection__item--fonds { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); --muted: var(--invert-muted); }
.protection__item--fonds .protection__n { background: var(--accent); border-color: var(--accent); color: var(--ivoire); }
.protection__item--fonds .caps { color: var(--accent); }
.protection__montant { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 3.8vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--invert-text) !important; }
@media (max-width: 900px) {
  .protection { grid-template-columns: 1fr; }
  .protection::before { left: 52px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; }
}

/* ==========================================================
   iPhone et écrans tactiles
   ========================================================== */

/* Le rebond de Safari laisse voir la couleur du html */
html { background: var(--bg); }
body { -webkit-tap-highlight-color: transparent; }
a, button, label, input, select, textarea, summary, .pole { touch-action: manipulation; }

/* Encoche, îlot dynamique et barre d'accueil */
.nav { top: calc(16px + env(safe-area-inset-top)); }
.nav.is-scrolled { top: calc(10px + env(safe-area-inset-top)); }
.menu { padding-top: calc(110px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.wrap { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* Anciennes versions d'iOS sans color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .nav, .nav.is-scrolled { background: var(--bg); }
  .nav__blob { background: var(--line); }
  .theme-toggle { background: var(--line); }
}

/* Champs de formulaire propres dans Safari (pas d'ombre, pas de zoom) */
.field input, .field textarea, .field select { -webkit-appearance: none; appearance: none; font-size: max(16px, 1em); }
.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
.section--invert .field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--invert-bg) inset; -webkit-text-fill-color: var(--invert-text); }
.section--invert .field input, .section--invert .field textarea { color: var(--invert-text); }

/* Au doigt : pas d'effets de survol qui restent collés, des cibles plus grandes */
@media (hover: none) {
  .grain { display: none; }
  .opp:hover, .protection__item:hover { transform: none; }
  .service:hover h3, .critere:hover h3, .valeur:hover .valeur__mot { transform: none; }
  .btn:hover::before { transform: translate(-50%, -50%) scale(0); }
  .btn:hover { color: inherit; border-color: var(--line-strong); }
  .btn--solid:hover { color: var(--bg); border-color: var(--text); }
  .btn:active::before { transform: translate(-50%, -50%) scale(1); transition-duration: .25s; }
  .btn:active { color: var(--bg); }
  .btn--solid:active { color: var(--ivoire); }
  .opp:active, .autre:active, .pole:active { opacity: .85; }
}
@media (pointer: coarse) {
  .choix label { padding: 13px 18px; font-size: .85rem; }
  .link { padding-top: 8px; padding-bottom: 8px; }
  .footer__grid a { display: inline-block; padding: 6px 0; }
  input[type="range"] { height: 40px; }
  input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -15px; box-shadow: 0 4px 14px -4px rgba(43, 35, 27, .35); }
  input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
  .scenarios label { padding: 16px 14px 14px; }
  .faq summary { padding: 22px 0; }
}

/* Mise en page téléphone */
@media (max-width: 600px) {
  :root { --pad: 20px; }
  .section { padding: 84px 0; }
  .section--tight { padding: 64px 0; }
  .label { font-size: .7rem; letter-spacing: .24em; }
  .lead { font-size: 1.08rem; }
  .hero { padding-top: calc(104px + env(safe-area-inset-top)); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .hero__logo { width: 100%; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .page-head { padding-top: calc(130px + env(safe-area-inset-top)); }
  .pole { flex: none; min-height: 0; padding: 34px 20px 38px; gap: 34px; }
  .pole__initials { font-size: 9rem; }
  .pole__title { font-size: 2rem; }
  .etape { padding: 48px var(--pad); }
  .chiffres { margin: 32px 0; }
  .chiffre b { font-size: 2rem; }
  .contact__big { margin-bottom: 20px; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__foot .btn { justify-content: center; }
  .simu__in, .simu__out { padding: 24px 20px; }
  .resultat__big { font-size: 2.8rem; }
  .scenarios label b { font-size: 1.25rem; }
  .fiche dd { font-size: 1.25rem; }
  .fiche div { padding: 16px 14px 18px; }
  .opp__body h3 { font-size: 1.7rem; }
  .opp__meta { grid-template-columns: 1fr 1fr; }
  .apercu__cards { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .apercu__card { padding: 10px; }
  .apercu__card b { font-size: 1.4rem; }
  .encart { grid-template-columns: 1fr; gap: 12px; }
  .compare__layer { padding: 44px 8px 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .matiere { height: 56vh; min-height: 340px; }
}

/* Barre d'actions en bas d'écran, à portée du pouce */
.mbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 58;
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--ivoire) 50%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 16px 40px -14px rgba(43, 35, 27, .38);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.56s var(--ease);
  width: max-content;
  max-width: calc(100% - 24px);
}
.mbar .btn { padding: 1em 1.4em; font-size: .7rem; letter-spacing: .16em; white-space: nowrap; }
.mbar.is-visible { transform: translate(-50%, 0); }
.menu-open .mbar { transform: translate(-50%, calc(100% + 40px)); }
:root[data-theme="dark"] .mbar { border-color: rgba(241, 236, 230, .1); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mbar { border-color: rgba(241, 236, 230, .1); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); } }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .mbar { background: var(--bg); } }
@media (max-width: 900px) { .mbar { display: flex; } }
@media (max-width: 600px) {
  .compare .maison { width: 130%; max-width: none; margin-left: -15%; }
  .compare__labels { top: 14px; left: 14px; right: 14px; }
  .compare__labels .label { font-size: .58rem; letter-spacing: .16em; }
  .compare__handle button { width: 48px; height: 48px; }
}

/* Simulateur : gain visible sous le curseur */
.gain-live { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.gain-live > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--bg-alt); border: 1px solid var(--line); }
.gain-live > div:last-child { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.gain-live .label { font-size: .6rem; letter-spacing: .2em; }
.gain-live b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gain-live > div:last-child b { color: var(--accent); }
.sc-gain { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
@media (max-width: 600px) {
  .gain-live b { font-size: 1.3rem; }
  .scenarios label { padding: 14px 10px 12px; }
  .sc-gain { font-size: .72rem; }
}
.range-wrap { position: relative; padding-top: 46px; }
.range-bubble {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ivoire);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(140, 90, 60, .6);
}
.range-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
@media (max-width: 600px) { .range-wrap { padding-top: 44px; } .range-bubble { font-size: .78rem; } }

/* Portraits : cadrage sur le visage */
.pole__media img, .portrait img { object-position: 50% 22%; }
@media (hover: none) { .pole__media img.is-loaded { opacity: .42; } }

/* Accueil : accès rapides vers la page contact */
.acces { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.acces .label { padding: 18px 0 8px; }
.acces__item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), color .3s var(--ease); }
.acces__item b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -.03em; line-height: 1.2; }
.acces__item small { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; }
.acces__item .arrow { flex: none; }
@media (hover: hover) { .acces__item:hover { padding-left: 14px; color: var(--accent); } .acces__item:hover .arrow { transform: translateX(6px); } }
.acces__item:active { color: var(--accent); }

/* Page entreprise : les trois associés */
.equipe { display: grid; gap: clamp(80px, 10vw, 150px); }
.membre { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: center; scroll-margin-top: 100px; }
.membre:nth-child(even) .membre__photo { order: 2; }
.membre__photo .portrait { max-width: 480px; }
.membre:nth-child(even) .membre__photo .portrait { margin-left: auto; }
.membre__nom { margin: 16px 0 10px; }
.membre__bio { margin: 26px 0 0; color: var(--muted); max-width: 36em; }
.membre__role { margin: 26px 0 22px; padding: 20px 22px; border-left: 2px solid var(--accent); background: var(--bg-alt); border-radius: 0 18px 18px 0; }
.membre__role p { margin: 8px 0 0; }
@media (max-width: 800px) {
  .membre { grid-template-columns: 1fr; }
  .membre:nth-child(even) .membre__photo { order: 0; }
  .membre__photo .portrait { max-width: none; aspect-ratio: 4 / 4.2; }
}

/* Page contact */
.contact__side { display: grid; gap: 40px; align-content: start; }
.contact__side .contact__infos { margin-top: 0; gap: 12px; }
.mini-equipe { display: grid; gap: 6px; margin-top: 6px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 10px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.mini:hover { border-color: var(--line-strong); background: var(--bg-alt); }
.mini__photo { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.mini__photo b { font-family: var(--serif); font-weight: 300; font-size: 1.05rem; color: var(--muted); letter-spacing: -.02em; }
.mini__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity .4s var(--ease); }
.mini__photo img.is-loaded { opacity: 1; }
.mini strong { display: block; font-weight: 500; font-size: 1rem; }
.mini small { display: block; color: var(--muted); font-size: .85rem; }

/* Accueil : photos en arrière-plan qui défilent */
.hero { isolation: isolate; }
.hero__fonds { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--profond); opacity: 0; transition: opacity .6s var(--ease); }
.hero--photo .hero__fonds { opacity: 1; }
.hero__fond {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.2s ease, transform 7.5s linear;
  will-change: opacity, transform;
}
.hero__fond.is-on { opacity: 1; transform: scale(1); }
/* Voile pour garder le texte lisible, plus dense en bas et à gauche */
.hero__fonds::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 23, 18, .78) 0%, rgba(28, 23, 18, .25) 45%, rgba(28, 23, 18, .35) 100%),
    linear-gradient(to right, rgba(28, 23, 18, .45), rgba(28, 23, 18, 0) 70%);
}
.hero--photo { color: var(--ivoire); --text: #F1ECE6; --muted: rgba(241, 236, 230, .82); --line: rgba(241, 236, 230, .22); --line-strong: rgba(241, 236, 230, .55); }
.hero--photo .hero__logo { color: var(--ivoire); }
.hero--photo .hero__sketch { display: none; }
.hero--photo .hero__side p { color: rgba(241, 236, 230, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero--photo .btn--solid { background: var(--ivoire); color: var(--profond); border-color: var(--ivoire); }
.hero--photo .btn--solid::before { background: var(--accent); }
.hero--photo .btn--solid:hover { color: var(--ivoire); border-color: var(--accent); }
.hero--photo .btn:not(.btn--solid) { color: var(--ivoire); border-color: rgba(241, 236, 230, .6); background: rgba(28, 23, 18, .15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero--photo .btn:not(.btn--solid)::before { background: var(--ivoire); }
.hero--photo .btn:not(.btn--solid):hover { color: var(--profond); }
@media (prefers-reduced-motion: reduce) { .hero__fond { transition: opacity .01ms; transform: none; } }
/* Les initiales s'effacent quand le portrait est là */
.pole:has(.pole__media img.is-loaded) .pole__initials { display: none; }
