/* =====================================================
   WEB-SI v2 – Feuille de style (thème sombre, mobile-first)
   Breakpoints : 640px, 900px, 1200px
   ===================================================== */

/* ---------- 1. Variables (couleurs & polices) ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --card: #161616;
  --fg: #fafafa;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .25);
  --fg-soft: rgba(255, 255, 255, .78);
  --faint: rgba(255, 255, 255, .22);
  --glass: rgba(24, 24, 24, .62);
  --glass-strong: rgba(24, 24, 24, .85);
  --glass-line: rgba(255, 255, 255, .08);
  --orange: #EE8822;
  --orange-light: #FF9A1F;
  --blue: #0B5FE0;
  --blue-light: #3D8BFF;
  --navy: #012171;

  /* section claire (contact + pied de page) */
  --light-bg: #fafafa;
  --light-fg: #0a0a0a;
  --light-muted: #525252;
  --light-line: #e5e5e5;
  --light-line-strong: #d4d4d4;
  --input-bg: #fff;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Thème clair (affiché en permanence : <html data-theme="light"> sur chaque page).
   Pour revenir au thème sombre, retirez data-theme="light" de la balise <html>.
   La section contact et le pied de page passent alors en sombre, pour garder le contraste. */
:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-2: #f1f1f1;
  --card: #ffffff;
  --fg: #0a0a0a;
  --muted: #525252;
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .25);
  --fg-soft: rgba(10, 10, 10, .75);
  --faint: rgba(10, 10, 10, .2);
  --orange-light: #AD5404;   /* orange plus foncé : contraste ≥ 4,5 sur fond clair (accessibilité) */
  --glass: rgba(255, 255, 255, .7);
  --glass-strong: rgba(255, 255, 255, .92);
  --glass-line: rgba(0, 0, 0, .08);

  --light-bg: #0a0a0a;
  --light-fg: #fafafa;
  --light-muted: #a3a3a3;
  --light-line: rgba(255, 255, 255, .12);
  --light-line-strong: rgba(255, 255, 255, .3);
  --input-bg: #161616;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 0; }

/* Lenis (défilement fluide) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 3. Textes communs ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-light); margin-bottom: 20px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.section-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 400; }
.section-title em { color: var(--orange-light); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; max-width: 560px; }

/* ---------- 4. Boutons (pilules) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: var(--orange); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-dark { background: var(--light-fg); color: var(--light-bg); }
.btn-dark:hover { background: var(--orange); color: #fff; }
.btn-outline { border-color: var(--light-line-strong); color: var(--light-fg); background: transparent; }
.btn-outline:hover { border-color: var(--light-fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. Navigation flottante ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px var(--gutter);
}
.site-header > * { pointer-events: auto; }
.pill, .menu {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.logo { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; text-decoration: none; }
.logo-text { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--orange); letter-spacing: -.5px; }
.logo-dash { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--blue-light); margin: 0 2px; }
.logo-bulb { width: 24px; height: 30px; }

.menu { width: min(240px, calc(100vw - 2 * var(--gutter) - 150px)); overflow: hidden; transition: background .3s; }
.menu-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px;
  padding: 0 16px; background: none; border: 0; color: var(--fg); font: 500 .95rem var(--font-sans); cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 18px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-icon::after { transform: rotate(90deg); }
.menu.open .menu-icon::before { transform: rotate(45deg); }
.menu.open .menu-icon::after { transform: rotate(135deg); }
.menu-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.menu-inner { min-height: 0; overflow: hidden; }
.menu.open .menu-panel { grid-template-rows: 1fr; }
.menu-panel ul { list-style: none; margin: 0; padding: 4px 16px 8px; }
.menu-panel li a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 1.02rem; transition: color .2s, transform .3s var(--ease); }
.menu-panel li a:hover, .menu-panel li a.active { color: var(--fg); transform: translateX(4px); }
.menu-panel li a.active { text-decoration: underline; text-underline-offset: 5px; }
.menu-panel .btn { margin: 0 16px 16px; }
.menu:not(.open) .menu-panel .btn { visibility: hidden; }
.menu.open { background: var(--glass-strong); }
.header-right { display: flex; align-items: flex-start; gap: 8px; }

/* ---------- 6. Accueil ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 32px; isolation: isolate;
  /* fond de secours si WebGL n'est pas disponible */
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(238, 136, 34, .45), transparent 70%),
    radial-gradient(50% 50% at 70% 70%, rgba(11, 95, 224, .45), transparent 70%),
    var(--bg);
}
.hero.has-webgl { background: var(--bg); }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* assombrit le bas pour la lisibilité */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { flex: 1; display: grid; align-content: center; align-items: center; gap: 48px; }
.hero-title { font-size: clamp(2.6rem, 7.4vw, 6.6rem); font-weight: 300; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-size: 1.08em; letter-spacing: -.01em; }
/* Visuel : hexagone orange + bande bleue, ampoule au centre, badges flottants */
.hero-visual { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; justify-self: center; isolation: isolate; touch-action: pan-y; }
.hero-visual::before { /* halo lumineux derrière l'hexagone */
  content: ""; position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(238, 136, 34, .45), transparent 70%); filter: blur(30px);
}
/* hexagone + ampoule un peu plus petits que le visuel : l'orbite des badges passe autour */
.hero-core { position: absolute; inset: 14%; }
.hex { position: absolute; inset: 0; z-index: 1; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.hex-blue { background: var(--blue); inset: 5% 6% -5% -6%; }  /* décalé en bas à gauche */
.hex-orange { background: linear-gradient(135deg, var(--orange), #C96A0E); inset: -1% -3% 1% 3%; }
.hero-bulb { position: absolute; z-index: 2; left: 27%; top: 21%; width: 46%; height: 58%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); animation: flotte 4s ease-in-out infinite; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--fg);
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: flotte 5s ease-in-out infinite;
}
.float-card i { color: var(--orange); }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { top: 44%; right: -6%; animation-delay: -1.5s; }
.fc-3 { bottom: 8%; left: 2%; animation-delay: -3s; }
.fc-4 { bottom: 4%; right: 6%; animation-delay: -2.2s; }   /* positions sans JavaScript ; avec JS, ils tournent en orbite */
.fc-5 { top: 0; right: 14%; animation-delay: -0.8s; }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
/* Orbite (js/orbit.js) : pas de calque propre, pour que les badges passent devant OU derrière l'hexagone */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit.is-orbiting .float-card { left: 50%; top: 50%; right: auto; bottom: auto; animation: none; will-change: transform, opacity; }
.orbit-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit-path path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 7; stroke-linecap: round; }
.orbit-path--back { z-index: 0; }
.orbit-path--front { z-index: 3; }

.hero-lead { max-width: 460px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--fg-soft); margin-bottom: 32px; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 48px; }
.stats { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 4vw, 56px); }
.stats strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -.02em; }
.stats li > span { font-size: .82rem; color: var(--muted); }

/* ---------- 7. Mot en fleurs + animation de l'ordinateur ---------- */
.flower-band { background: linear-gradient(180deg, var(--bg) 0%, #011540 55%, var(--navy) 100%); padding: clamp(32px, 6vw, 80px) 16px 0; }
.flower-text { position: relative; max-width: 1100px; margin: 0 auto; height: clamp(110px, 24vw, 240px); touch-action: pan-y; }
.flower-text canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scroll-story { --orange-light: #FF9A1F; --story-bg: #012171; position: relative; background: var(--story-bg); color: #fff; }
.story-sticky {
  display: grid; gap: 20px; align-content: end; min-height: 80vh; padding: 96px 16px 56px;
  background: var(--story-bg) url(../images/scroll/mobile/f001.webp) center top / cover no-repeat;
}
.story-canvas { display: none; }
.story-step {
  max-width: 480px; padding: 22px 26px; border-radius: var(--radius);
  background: rgba(1, 20, 70, .55); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.story-step h2 { margin-bottom: .35em; font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.story-step p:last-child { margin: 0; color: rgba(255, 255, 255, .85); }
.story-step .eyebrow { margin-bottom: 10px; }
.story-final { text-align: center; margin-inline: auto; }
.story-final h2 { margin-bottom: 24px; }
.story-progress { display: none; }
@media (min-width: 768px) { .story-sticky { background-image: url(../images/scroll/desktop/f001.webp); } }

.is-animated .story-sticky {
  position: relative; display: block; min-height: 0; padding: 0; overflow: hidden;
  height: 100vh; height: 100svh; background: var(--story-bg);
}
.is-animated .story-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is-animated .story-step {
  position: absolute; left: 16px; right: 16px; bottom: 9vh; margin: 0;
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.is-animated .story-final {
  inset: 0; max-width: none; margin: 0; padding: 24px 16px; border: 0; border-radius: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(1, 20, 70, .6), rgba(1, 20, 70, 0) 70%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.is-animated .story-final h2 { max-width: 16ch; font-size: clamp(2.2rem, 5.6vw, 4.2rem); text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.is-animated .story-progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.story-progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- 8. Réalisations ---------- */
.work { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); background: linear-gradient(180deg, var(--navy), var(--bg) 260px); overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: clamp(48px, 7vw, 104px); }
.marquee-track { display: flex; width: max-content; gap: .4em; font-size: clamp(3.6rem, 13vw, 11rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; will-change: transform; }
.marquee-track span { font-weight: 600; text-transform: uppercase; }
.marquee-track span::after { content: "✦"; font-size: .35em; vertical-align: middle; margin-left: .45em; color: var(--orange); }
.marquee-track em { font-weight: 400; text-transform: none; color: var(--orange-light); }

.projects { display: grid; gap: clamp(56px, 9vw, 120px); }
.project { display: grid; gap: 24px; align-items: center; }
.project-media {
  border-radius: 999px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--card);
  will-change: clip-path;
}
.project-media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.project-num { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 14px; }
.project-info h3 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 500; margin-bottom: 16px; }
.project-info h3 em { font-weight: 400; color: var(--fg); }
.project-cat { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-light); border: 1px solid rgba(238, 136, 34, .4); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.project-info p:last-child { color: var(--muted); max-width: 380px; margin: 0; }
.project-info p:not(.project-cat) { color: var(--muted); max-width: 380px; }
a.project-media { display: block; }
.project-media img { transition: scale .8s var(--ease); }
a.project-media:hover img { scale: 1.04; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding-bottom: 2px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color .3s, border-color .3s;
}
.project-link:hover { color: var(--orange-light); border-color: currentColor; }

/* ---------- 9. Phrase d'accroche ---------- */
.manifesto { padding: clamp(80px, 14vw, 200px) 0; }
.manifesto-text { font-size: clamp(2.4rem, 6.6vw, 5.8rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; text-align: center; margin: 0 auto; max-width: 1100px; perspective: 600px; }
.manifesto-text .word { display: inline-block; white-space: nowrap; }
.manifesto-text .char { display: inline-block; transform-origin: 50% 100%; }

/* ---------- 10. Services ---------- */
.services { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 160px); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px;
  padding: 22px var(--gutter); text-decoration: none; overflow: hidden; isolation: isolate;
}
.service-row::before { /* fond qui monte au survol */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(238, 136, 34, .16), rgba(11, 95, 224, .16));
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service-num { font-size: .78rem; color: var(--muted); letter-spacing: .1em; align-self: start; padding-top: .7em; }
.service-name { font-size: clamp(1.6rem, 4.4vw, 3.6rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; transition: transform .5s var(--ease), color .3s; }
.service-desc { grid-column: 2; color: var(--muted); font-size: .95rem; margin-top: 8px; max-width: 420px; }
.service-arrow { grid-column: 3; grid-row: 1; font-size: 1.1rem; color: var(--muted); transform: rotate(-45deg); transition: transform .5s var(--ease), color .3s; }
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleY(1); }
.service-row:hover .service-name, .service-row:focus-visible .service-name { transform: translateX(14px); color: var(--orange-light); }
.service-row:hover .service-arrow, .service-row:focus-visible .service-arrow { transform: rotate(0); color: var(--fg); }

/* ---------- 11. À propos ---------- */
.about { padding: 0 0 clamp(80px, 12vw, 160px); }
.about-statement {
  font-size: clamp(1.7rem, 4.2vw, 3.4rem); font-weight: 400; line-height: 1.18; letter-spacing: -.025em;
  text-align: center; max-width: 1050px; margin: clamp(56px, 9vw, 120px) auto;
}
.about-statement .w { transition: color .2s; }

.founder { display: grid; gap: 40px; align-items: center; }
.founder-photo { margin: 0; position: relative; max-width: 420px; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 999px 999px 32px 32px; background: var(--card); }
.founder-photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 16px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.founder-photo figcaption span { color: var(--muted); font-size: .88rem; }
.founder-text .section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 24px; }
.founder-text > p { color: var(--fg-soft); }
.founder-text p em { font-size: 1.15em; color: var(--fg); }
.mission { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.mission li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.mission span { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-light); margin-bottom: 4px; }


/* ---------- 12. Processus ---------- */
.process { padding: 0 0 clamp(80px, 12vw, 160px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--blue-light)); transform: scaleX(var(--p, 1)); transform-origin: left; }
.step-num { display: block; font-family: var(--font-serif); font-style: italic; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--faint); margin-bottom: 20px; }
.steps h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- 13. Pourquoi nous ---------- */
.why { padding: 0 0 clamp(80px, 12vw, 160px); }
.why-grid { display: grid; gap: 16px; }
.why-grid article { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-2), var(--bg)); transition: border-color .3s, transform .4s var(--ease); }
.why-grid article:hover { border-color: rgba(238, 136, 34, .5); transform: translateY(-4px); }
.why-grid i { font-size: 1.3rem; color: var(--orange-light); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(238, 136, 34, .1); margin-bottom: 20px; }
.why-grid h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.why-grid p { color: var(--muted); margin: 0; }

/* ---------- 14. Nos partenaires (logos qui défilent) ---------- */
.partners { padding: 0 0 clamp(80px, 12vw, 160px); }
.partners-title { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.logo-marquee { overflow: hidden; padding: 8px 0; }
.logo-track { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-card {
  display: flex; align-items: center; gap: 14px; height: 92px; padding: 0 26px 0 14px; border-radius: 20px;
  background: #fff; color: #0a0a0a; border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12); transition: transform .4s var(--ease), box-shadow .4s;
}
.logo-card img { height: 64px; width: auto; max-width: 170px; object-fit: contain; border-radius: 12px; }
.logo-card span:last-child { font-weight: 500; font-size: 1.02rem; }
.logo-badge { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #0B5FE0, #3D8BFF); }
.logo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .18); }
/* animation (activée par js/partners.js) : la bande glisse en continu, pause au survol */
.logo-marquee.is-animated { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-marquee.is-animated .logo-track { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; padding: 0; animation: logos-scroll var(--logos-duration, 30s) linear infinite; }
.logo-marquee.is-animated .logo-track li { margin-right: 20px; }
.logo-marquee.is-animated:hover .logo-track { animation-play-state: paused; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }

/* ---------- 15. FAQ ---------- */
.faq { padding: 0 0 clamp(80px, 12vw, 160px); }
.faq-title { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); transition: border-color .3s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.faq details p a { color: var(--orange-light); font-weight: 500; }
.faq details p strong { color: var(--fg); font-weight: 600; }

/* ---------- 16. Contact (section claire) ---------- */
.contact { transition: background-color .4s, color .4s; background: var(--light-bg); color: var(--light-fg); padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); border-radius: 32px 32px 0 0; }
.contact .eyebrow { color: var(--orange); line-height: 1.4; }
.contact-mail { font-size: clamp(1.25rem, 5.2vw, 4.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-bottom: 32px; word-break: break-word; }
.contact-mail a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.contact-mail a:hover { background-size: 100% 3px; }
.contact-grid { display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--light-line); scroll-margin-top: 80px; }
.contact-info h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 28px; }
.contact-info h3 em { color: var(--orange); }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list i { width: 20px; color: var(--orange); margin-top: 5px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); filter: grayscale(.4); }

.contact-form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
.field label { font-size: .88rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--light-fg); background: var(--input-bg);
  border: 1px solid var(--light-line); border-radius: 14px; padding: 14px 16px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238, 136, 34, .15); }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .92rem; color: #15803d; min-height: 1.4em; }
.form-note.error { color: #b91c1c; }
.form-legal { margin: -6px 0 0; font-size: .8rem; color: var(--light-muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-legal a { color: inherit; }

/* Pages Mentions légales / Politique de confidentialité */
.back-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: .95rem; }
.back-pill:hover { color: var(--orange-light); }
.legal { padding: clamp(120px, 16vw, 170px) 0 clamp(64px, 10vw, 110px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 14px; }
.legal h1 em { color: var(--orange-light); }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--fg-soft); }
.legal ul { padding-left: 20px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--orange-light); }
.legal strong { color: var(--fg); font-weight: 500; }
.todo { background: rgba(238, 136, 34, .16); color: var(--orange-light); padding: 1px 6px; border-radius: 6px; font-weight: 500; }
.legal-footer { padding-top: 8px; }
.legal-footer .footer-bottom { margin-top: 0; }
.legal-footer a { color: inherit; }

/* ---------- 17. Pied de page (clair) ---------- */
.site-footer { background: var(--light-bg); color: var(--light-fg); padding-bottom: 32px; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; border-top: 1px solid var(--light-line); }
.footer-brand .logo { padding: 0; }
.site-footer .footer-tagline { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; color: var(--light-muted); margin: 14px 0; }
.footer-tagline em { color: var(--light-fg); }
.footer-brand p:last-child { color: var(--light-muted); max-width: 340px; font-size: .92rem; }
.site-footer .footer-heading { font-size: .8rem; font-weight: 500; color: #737373; margin: 0 0 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--orange); }
/* Icônes des réseaux sociaux : ronds bleus, icône blanche */
.site-footer .socials { display: flex; flex-wrap: nowrap; gap: 8px; }
.site-footer .socials a {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 1.05rem;
  transition: background .3s, transform .3s var(--ease);
}
.site-footer .socials a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.site-footer p { font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--light-line); font-size: .85rem; color: #737373; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--light-fg); }

/* ---------- 18. Boutons flottants ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.fab a:hover { transform: scale(1.08); }
.fab-wa { background: #25D366; }

/* ---------- 19. Responsive ---------- */
/* Ordinateur : titre à gauche, visuel à droite */
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; }
  .hero-title { font-size: clamp(3.6rem, 5.4vw, 5.6rem); }
  .hero-visual { max-width: 440px; justify-self: center; }
}
/* Téléphone : le titre s'écrit d'un seul bloc (pas de coupures forcées) */
@media (max-width: 639px) {
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 2.8rem); }
  .hero-title .line, .hero-title .line > span { display: inline; }
  .hero-title .line + .line::before { content: " "; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* orbite : hexagone un peu plus petit et badges plus compacts, l'écran étant étroit */
  .hero-core { inset: 18%; }
  .logo-card { height: 72px; gap: 10px; padding: 0 18px 0 10px; border-radius: 16px; }
  .logo-card img, .logo-badge { height: 50px; }
  .logo-card img { max-width: 130px; }
  .logo-badge { width: 50px; font-size: 1.3rem; }
  .logo-card span:last-child { font-size: .92rem; }
  .site-footer .socials { gap: 6px; }
  .site-footer .socials a { width: 34px; height: 34px; font-size: .9rem; }
  .float-card { padding: 7px 12px; font-size: .82rem; gap: 6px; color: #000; font-weight: 600; } /* texte noir bien lisible sur téléphone */
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .steps, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
}

@media (min-width: 900px) {
  .site-header { padding: 24px var(--gutter); }
  .menu { width: 240px; }
  .hero-foot { justify-content: flex-end; } /* chiffres clés à droite sur ordinateur */
  .project { grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .project:nth-child(even) .project-media { order: 2; }
  .project:nth-child(even) .project-info { text-align: right; justify-self: end; }
  .project:nth-child(even) .project-info p:last-child,
  .project:nth-child(even) .project-info p:not(.project-cat) { margin-left: auto; }
  .service-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 360px) 40px; padding-block: 28px; }
  .service-desc { grid-column: 3; grid-row: 1; margin: 0; opacity: .0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
  .service-arrow { grid-column: 4; justify-self: end; }
  .service-row:hover .service-desc, .service-row:focus-visible .service-desc { opacity: 1; transform: none; }
  .founder { grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(48px, 7vw, 112px); }
  .mission { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 7vw, 112px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; } /* colonne Réseaux un peu plus large : 4 icônes sur une ligne */
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
