/* =========================================================================
   AMBITION 360 — Feuille de style
   Charte alignée sur le logo : bleu nuit · teal · vert émeraude
   Typo : Playfair Display (titres) · Inter (corps)
   ========================================================================= */

:root {
  /* Palette signature */
  --ink:        #16314F;   /* bleu nuit profond */
  --ink-deep:   #0E2236;   /* footer / fonds très sombres */
  --ink-soft:   #1E3D5E;   /* cards sur fond sombre */
  --emerald:    #3FA66E;   /* accent principal */
  --teal:       #2E8C8C;   /* accent secondaire */
  --paper:      #F2F4F5;   /* gris très clair */
  --cream:      #FBFBFA;   /* blanc cassé */
  --text-dark:  #1C2B38;   /* texte sur clair */
  --text-mute:  #5A6B78;   /* texte secondaire clair */
  --line-dark:  rgba(255,255,255,.12);
  --line-light: rgba(28,43,56,.12);

  /* Accent commutable (Tweaks) — défaut émeraude */
  --accent:     var(--emerald);
  --accent-2:   var(--teal);

  --grad: linear-gradient(120deg, var(--ink) 0%, var(--accent-2) 55%, var(--accent) 100%);
  --grad-soft: linear-gradient(120deg, rgba(46,140,140,.16), rgba(63,166,110,.16));

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --shadow-1: 0 1px 2px rgba(14,34,54,.06), 0 6px 18px rgba(14,34,54,.06);
  --shadow-2: 0 18px 48px rgba(14,34,54,.16);
  --shadow-dark: 0 24px 60px rgba(0,0,0,.38);

  --ease: cubic-bezier(.22,.61,.36,1);

  --ff-serif: "Playfair Display", Georgia, serif;
  --ff-sans:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* Reserve each image-slot's box before the JS upgrade runs (the component's
   shadow :host{display:inline-block} only applies post-upgrade). Without this,
   an unupgraded <image-slot> is display:inline — its width/height are ignored,
   so the slot collapses then expands when image-slot.js loads, shifting the
   layout (CLS). Matching the host's display here makes the reserved box correct
   from first paint; the final rendering is identical. */
image-slot { display: inline-block; vertical-align: top; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 150px); }

/* Sections sombres / claires */
.s-dark  { background: var(--ink); color: #fff; }
.s-deep  { background: var(--ink-deep); color: #fff; }
.s-light { background: var(--cream); color: var(--text-dark); }
.s-paper { background: var(--paper); color: var(--text-dark); }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--ff-serif); font-weight: 700; line-height: 1.06; margin: 0; letter-spacing: -.01em; }

.eyebrow {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.s-dark .eyebrow { color: #6fd29c; }

/* kicker du hero en pastille verte */
.hero .eyebrow {
  color: #fff; background: var(--grad); padding: 9px 18px; border-radius: 999px;
  letter-spacing: .14em; font-size: 12px;
  box-shadow: 0 8px 20px rgba(63,166,110,.28);
}
.hero .eyebrow::before { display: none; }

.h-xxl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.h-xl  { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h-lg  { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.lead  { font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--text-mute); }
.s-dark .lead, .s-deep .lead { color: rgba(255,255,255,.78); }

.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }

.accent-text { color: var(--accent); }
.serif-em { font-style: italic; }

/* trait dégradé */
.hr-grad { height: 3px; width: 64px; border: 0; border-radius: 3px; background: var(--grad); margin: 0; }

/* ====================================================================== */
/* HEADER                                                                  */
/* ====================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(22,49,79,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-block: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-slot {
  width: 42px; height: 42px; border-radius: 9px;
}
.brand-word { font-family: var(--ff-serif); font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: .01em; }
.brand-word b { color: var(--accent); font-weight: 700; }
.brand-kicker {
  display: none; align-self: center; padding-left: 14px; margin-left: 4px;
  border-left: 1px solid var(--line-dark);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
@media (min-width: 1080px) { .brand-kicker { display: inline-block; } }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink {
  color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; position: relative; padding-block: 4px;
}
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav a.navlink:hover { color: #fff; }
.nav a.navlink:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--accent); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  box-shadow: 0 8px 22px rgba(63,166,110,.28);
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46,140,140,.34); }
.btn:hover::before { opacity: 1; }

.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.32); box-shadow: none;
}
.btn-ghost::before { background: rgba(255,255,255,.08); }
.btn-ghost:hover { box-shadow: none; border-color: rgba(255,255,255,.6); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.btn-dark::before { background: var(--grad); }

/* lien fléché */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.link-arrow .arr { transition: transform .3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

/* ====================================================================== */
/* HERO                                                                    */
/* ====================================================================== */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 96px; overflow: hidden; }
.hero::before {
  /* filigrane sphère / rubans */
  content: ""; position: absolute; right: -16%; top: -10%; width: 70vmax; height: 70vmax;
  background:
    radial-gradient(closest-side, rgba(63,166,110,.20), transparent 70%),
    radial-gradient(closest-side, rgba(46,140,140,.16), transparent 72%);
  background-position: 30% 30%, 60% 60%;
  background-repeat: no-repeat;
  filter: blur(8px);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(46,140,140,.10), transparent 60%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  width: 100%;
}
.hero h1 { margin: 6px 0 0; }
.hero .line-2 { display: block; color: rgba(255,255,255,.62); font-weight: 600; }
.hero .hero-sub { margin: 28px 0 0; max-width: 54ch; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero .micro { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,.55); font-size: .9rem; }
.hero .micro b { color: #fff; font-weight: 600; }

.hero-portrait { position: relative; }
.hero-portrait .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(255,255,255,.10);
}
.hero-portrait .frame > img { display: block; width: 100%; height: min(64vh, 580px); object-fit: cover; object-position: 50% 45%; }
.hero-portrait .frame::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: inset 0 -90px 120px -50px rgba(14,34,54,.7);
  pointer-events: none;
}
.hero-portrait .badge {
  position: absolute; left: -22px; bottom: 30px; z-index: 3;
  background: #fff; color: var(--ink); border-radius: var(--r);
  padding: 16px 20px; box-shadow: var(--shadow-2); max-width: 220px;
}
.hero-portrait .badge .n { font-family: var(--ff-serif); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.hero-portrait .badge .t { font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
[data-portrait="bw"] .hero-portrait image-slot { filter: grayscale(1) contrast(1.02); }

/* ====================================================================== */
/* SECTION TÊTE                                                            */
/* ====================================================================== */
.s-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.s-head.center { margin-inline: auto; text-align: center; }
.s-head.center .eyebrow { justify-content: center; }
.s-head p { margin: 22px 0 0; }

/* ====================================================================== */
/* QUI JE SUIS                                                             */
/* ====================================================================== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.about-portrait { position: sticky; top: 110px; }
.about-portrait .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line-light); }
.about-portrait image-slot { width: 100%; height: min(70vh, 640px); }
.about-portrait .cap { margin-top: 16px; font-size: .9rem; color: var(--text-mute); display: flex; align-items: center; gap: 10px; }
.about-portrait .cap::before { content:""; width: 22px; height: 2px; background: var(--accent); }

.about-body h2 { margin-bottom: 26px; }
.about-body p { margin: 0 0 20px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0; }
.pillar {
  border: 1px solid var(--line-light); border-radius: var(--r); padding: 18px 20px; background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.pillar .k { font-family: var(--ff-serif); font-size: 1.05rem; color: var(--ink); }
.pillar .v { font-size: .92rem; color: var(--text-mute); margin-top: 4px; }

.signature-line {
  margin-top: 30px; padding: 22px 26px; border-radius: var(--r);
  background: var(--grad-soft); border: 1px solid var(--line-light);
  font-family: var(--ff-serif); font-size: 1.2rem; font-style: italic; color: var(--ink); line-height: 1.4;
}

/* ====================================================================== */
/* CARDS GÉNÉRIQUES (hover premium)                                        */
/* ====================================================================== */
.card {
  position: relative; border-radius: var(--r-lg); padding: 30px 30px 32px;
  background: #fff; border: 1px solid var(--line-light);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-2); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

/* cards sur fond sombre */
.card-dark {
  background: var(--ink-soft); border: 1px solid var(--line-dark); color: #fff;
}
.card-dark:hover { box-shadow: var(--shadow-dark); border-color: transparent; }
.card-dark .card-num { color: #6fd29c; }

.card .card-num { font-family: var(--ff-serif); font-size: 1rem; color: var(--accent); opacity: .9; }
.card h3 { font-size: 1.32rem; margin: 14px 0 12px; }
.card p { margin: 0; color: var(--text-mute); font-size: 1rem; }
.card-dark p { color: rgba(255,255,255,.74); }

/* ---------- Défis (effet miroir) ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { padding: 28px 26px 30px; }
.pain p { color: var(--text-dark); font-size: 1.06rem; line-height: 1.5; }
.pain .q {
  font-family: var(--ff-serif); font-size: 1.6rem; line-height: 1; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.pivot {
  margin-top: 52px; text-align: center;
  font-family: var(--ff-serif); font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.35; color: var(--ink);
  max-width: 30ch; margin-inline: auto; text-wrap: balance;
}
.pivot .accent-text { font-style: italic; }

/* ---------- Expertise ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exp .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.exp .tag {
  font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: rgba(255,255,255,.82);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.card-dark:hover .tag { border-color: rgba(111,210,156,.4); }
.exp-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px; color: rgba(255,255,255,.6); font-size: .95rem; }
.exp-meta b { color: #fff; }

/* bandeau formation */
.formation {
  margin-top: 48px; display: grid; grid-template-columns: 1fr .8fr; gap: 36px; align-items: center;
  background: linear-gradient(120deg, rgba(46,140,140,.14), rgba(63,166,110,.10));
  border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 36px;
}
.formation h3 { font-size: 1.5rem; margin-bottom: 12px; }
.formation .belts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.formation .belt { font-size: .8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: rgba(255,255,255,.85); }
.formation .belt-extra {
  border: 1px solid transparent; color: #fff; font-weight: 600;
  background: var(--grad-soft);
  position: relative;
}
.formation .belt-extra::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.formation image-slot { width: 100%; height: 260px; border-radius: var(--r); }
.formation-photo { width: 100%; height: 280px; object-fit: cover; object-position: center 38%; border-radius: var(--r); display: block; }

/* ---------- Preuves / résultats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { text-align: left; padding: 30px 28px; }
.stat .big { font-family: var(--ff-serif); font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: .95; color: var(--ink); }
.s-dark .stat .big, .s-deep .stat .big { color: #fff; }
.stat .big .u { color: var(--accent); }
.stat .lbl { margin-top: 12px; font-size: 1rem; color: var(--text-mute); }
.s-dark .stat .lbl { color: rgba(255,255,255,.7); }

.sectors-head { margin: 64px 0 22px; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sector-chip {
  font-size: .9rem; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-light); background: #fff; color: var(--text-dark);
  transition: all .35s var(--ease);
}
.sector-chip:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }

.env-line {
  margin: 22px 0 4px; font-size: 1.02rem; color: var(--text-mute);
}
.env-line strong { color: var(--ink); font-weight: 600; }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 22px; }
.logo-cell {
  aspect-ratio: 3/2; border: 1px dashed var(--line-light); border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-mute); font-size: .72rem;
  font-family: ui-monospace, monospace; text-align: center; padding: 8px; background: #fff;
  transition: border-color .35s var(--ease);
}
.logo-cell image-slot { width: 100%; height: 100%; }
.logo-cell:hover { border-color: var(--accent); }

/* ---------- Bandeau logos défilant (marquee) ---------- */
.logo-marquee {
  margin-top: 30px; overflow: hidden; position: relative; padding-block: 8px;
}
.logo-track {
  display: flex; width: max-content; align-items: center; gap: 40px; padding-inline: 20px;
  will-change: transform; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.logo-track.grabbing { cursor: grabbing; }
.logo-track img, .logo-track image-slot { pointer-events: none; -webkit-user-drag: none; }
.lg-logo {
  flex: none; width: 132px; height: 76px; border-radius: var(--r-sm);
  display: block; overflow: hidden; background: #fff; border: 1px solid var(--line-light);
  filter: grayscale(1); opacity: .55;
  transition: filter .45s var(--ease), opacity .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.lg-logo image-slot { width: 100%; height: 100%; }
.lg-logo:hover {
  filter: grayscale(0); opacity: 1; transform: translateY(-3px);
  box-shadow: var(--shadow-1); border-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { flex-wrap: wrap; width: 100%; cursor: default; }
  .logo-track > [aria-hidden="true"] { display: none; }
  .lg-logo { filter: grayscale(0); opacity: .85; }
}
@media (max-width: 560px) {
  .lg-logo { width: 108px; height: 64px; }
  .logo-track { gap: 24px; }
}

/* témoignages */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.tmn { padding: 30px 28px 28px; }
.tmn .mark { font-family: var(--ff-serif); font-size: 3rem; line-height: .6; color: var(--accent); height: 28px; display:block; }
.tmn .quote { font-size: 1.05rem; color: var(--text-dark); margin: 8px 0 22px; }
.tmn .who { display: flex; align-items: center; gap: 12px; }
.tmn .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); flex: none; display: grid; place-items: center; color: #fff; font-family: var(--ff-serif); font-weight: 700; font-size: 1rem; }
.tmn .who .nm { font-weight: 600; font-size: .92rem; color: var(--ink); }
.tmn .who .fn { font-size: .82rem; color: var(--text-mute); }
.tmn-cta {
  margin: 36px 0 0; text-align: center;
  font-family: var(--ff-serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--text-mute);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.tmn-cta .link-arrow { font-family: var(--ff-sans); font-size: .98rem; }

/* ====================================================================== */
/* MANIFESTE (Sénèque)                                                     */
/* ====================================================================== */
.manifesto {
  min-height: 100svh; display: flex; align-items: center; text-align: center;
  padding-block: clamp(80px, 12vh, 160px);
  background:
    radial-gradient(70% 100% at 88% 12%, rgba(46,140,140,.20), transparent 58%),
    radial-gradient(60% 90% at 0% 100%, rgba(63,166,110,.14), transparent 60%),
    var(--ink);
  overflow: hidden;
}
/* énorme guillemet en filigrane, centré en haut */
.manifesto > .qmark {
  position: absolute; z-index: 1; pointer-events: none;
  top: clamp(-1rem, 1vw, 2rem); left: 50%; transform: translateX(-50%);
  font-family: var(--ff-serif); font-weight: 700;
  font-size: clamp(14rem, 32vw, 36rem); line-height: .7;
  color: var(--accent); opacity: .10;
}
.manifesto-inner { position: relative; z-index: 2; width: 100%; }
.manifesto-inner .eyebrow { margin-bottom: clamp(24px, 4vw, 40px); justify-content: center; }
.manifesto blockquote {
  margin: 0 auto; max-width: none; position: relative; z-index: 2;
}
.manifesto blockquote p {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1.18; color: #fff; margin: 0;
  letter-spacing: -.02em;
}
.manifesto blockquote .l1 { display: block; }
.manifesto blockquote .l2 { display: block; margin-top: .5em; color: rgba(255,255,255,.55); }
.manifesto blockquote .em { font-style: italic; color: #8fdcb1; }
.manifesto cite {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: clamp(36px, 5vw, 56px); font-style: normal;
  color: var(--accent); font-size: clamp(.82rem, 1.1vw, .95rem); font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
}
.manifesto cite::before { content: ""; width: clamp(40px, 6vw, 72px); height: 2px; background: var(--accent); opacity: .85; }
@media (max-width: 600px) {
  .manifesto blockquote br { display: none; }
}

/* ====================================================================== */
/* ÉCOSYSTÈME Lean × IA                                                    */
/* ====================================================================== */
.eco-note { max-width: 60ch; margin-bottom: 40px; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.venture {
  display: flex; flex-direction: column; min-height: 280px;
}
.venture .role { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.s-dark .venture .role { color: #6fd29c; }
.venture h3 { font-size: 1.7rem; margin: 12px 0 10px; }
.venture p { flex: 1; }
.venture .go { margin-top: 22px; }
.venture .ext { position: absolute; top: 26px; right: 26px; opacity: .5; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.venture:hover .ext { opacity: 1; transform: translate(2px,-2px); }

/* ====================================================================== */
/* L'HOMME DERRIÈRE                                                        */
/* ====================================================================== */
.man-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.man-card { padding: 0; overflow: hidden; }
.man-card image-slot { width: 100%; height: 440px; }
.man-photo { width: 100%; height: 440px; object-fit: cover; object-position: center 16%; display: block; }
.man-card .body { padding: 28px 30px 30px; }
.man-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.man-card .body p { color: var(--text-mute); }
.man-card .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.man-card .meta .chip { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-light); }

/* Carte Engagements en bleu nuit (contraste volontaire avec Ultra-trail) */
.man-card-dark { background: var(--ink); border-color: var(--line-dark); }
.man-card-dark h3 { color: #fff; }
.man-card-dark .body p { color: rgba(255,255,255,.74); }
.man-card-dark .meta .chip {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.24);
}
/* Pastilles blanches pour logos couleur sur fond sombre */
.man-card .meta .logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 6px 12px; border-radius: 9px; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.man-card .meta .logo-chip img { height: 100%; width: auto; display: block; object-fit: contain; }

/* ====================================================================== */
/* CONTACT                                                                 */
/* ====================================================================== */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(70% 90% at 50% 120%, rgba(63,166,110,.22), transparent 60%);
}
.contact .inner { position: relative; z-index: 2; max-width: 780px; margin-inline: auto; }
.contact h2 { margin-bottom: 22px; }
.contact .channels { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }
.contact .direct { margin-top: 34px; color: rgba(255,255,255,.7); font-size: 1rem; }
.contact .direct a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; transition: border-color .3s; }
.contact .direct a:hover { border-color: var(--accent); }

/* ====================================================================== */
/* FOOTER                                                                  */
/* ====================================================================== */
.site-footer { padding-block: 64px 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-brand .brand-word { font-size: 1.5rem; }
.footer-brand .logo-slot { width: 48px; height: 48px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .95rem; margin: 18px 0 0; max-width: 34ch; }
.footer-col h4 { font-family: var(--ff-sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: rgba(255,255,255,.48); font-size: .84rem;
}
.footer-bottom .place { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .place::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ====================================================================== */
/* SCROLL REVEAL                                                           */
/* ====================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* Hero text: staggered entrance via pure CSS (runs on load, not gated by the JS
   scroll-reveal). The above-fold hero therefore paints immediately — the hero
   portrait is the LCP element and stays instant; the text fades/slides in. */
@keyframes heroFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#hero .hero-copy > * { animation: heroFade .7s var(--ease) both; }
#hero .hero-copy > .d1 { animation-delay: .06s; }
#hero .hero-copy > .d2 { animation-delay: .12s; }
#hero .hero-copy > .d3 { animation-delay: .18s; }
#hero .hero-copy > .d4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */

/* Les titres ancrés ne passent pas sous le header fixe au tap de la nav */
section[id], #about { scroll-margin-top: 84px; }
/* Les images <image-slot> ne doivent pas bloquer le scroll vertical tactile :
   le shadow img porte touch-action:none (réservé au reframe en mode édition). */
image-slot::part(image) { touch-action: pan-y; }

/* Replis TACTILES — pas de survol sur écran tactile : tout doit être lisible d'emblée */
@media (hover: none), (pointer: coarse) {
  /* Logos directement lisibles (couleur pleine), avec un soupçon d'animation au défilement */
  .lg-logo { filter: grayscale(0); opacity: 1; }
  /* Icône « lien externe » des ventures visible sans survol */
  .venture .ext { opacity: .85; }
  /* Indice de glissement sur le bandeau de logos, masqué dès la 1re interaction */
  .logo-marquee:not(.touched)::after {
    content: "Glissez pour parcourir";
    position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
    font-size: 11px; letter-spacing: .04em; color: var(--text-mute);
    background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 999px;
    border: 1px solid var(--line-light); pointer-events: none; white-space: nowrap;
    animation: hint-pulse 2.4s ease-in-out infinite;
  }
  @keyframes hint-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
}

@media (max-width: 1080px) {
  .pains, .exp-grid, .eco-grid, .stats, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav { gap: 14px; }
  .nav .navlink { display: none; }
  .nav > .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    position: absolute; top: calc(100% + 6px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch;
    background: rgba(14,34,54,.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--line-dark); border-radius: var(--r); padding: 12px; gap: 4px;
    box-shadow: var(--shadow-dark);
  }
  .nav.open .navlink { display: block; padding: 15px 12px; font-size: 1.02rem; border-radius: 10px; min-height: 48px; }
  .nav.open .navlink:hover { background: rgba(255,255,255,.06); }
  .nav.open .navlink::after { display: none; }
  .nav.open > .btn { display: inline-flex; justify-content: center; margin-top: 8px; padding: 16px 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 440px; margin-inline: auto; }
  .hero-portrait .badge { left: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 440px; }
  .formation { grid-template-columns: 1fr; }
  .man-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pains, .exp-grid, .eco-grid, .stats, .testimonials { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; }

  /* Boutons de contact : zones tactiles confortables, pleine largeur */
  .contact .channels { flex-direction: column; gap: 12px; }
  .contact .channels .btn { width: 100%; justify-content: center; padding: 17px 24px; font-size: 1.02rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 16px 24px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  /* Grands titres : lisibilité et césure propre sur petit écran */
  .h-xxl { font-size: clamp(2.15rem, 9.5vw, 3rem); line-height: 1.08; }
  .h-xl  { font-size: clamp(1.75rem, 7.5vw, 2.3rem); line-height: 1.12; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .hero { padding-top: 88px; min-height: auto; padding-bottom: 64px; }
  .hero .micro { gap: 8px 18px; }
  .hero-portrait .frame > img { height: min(56vh, 420px); }
  .stat .big { font-size: clamp(3rem, 18vw, 4rem); }
  .pivot { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .section-pad { padding-block: clamp(56px, 14vw, 96px); }
  .formation { padding: 24px; }
  .card { padding: 24px 22px 26px; }
  .man-card { padding: 0; }
  .man-card image-slot, .man-photo { height: 360px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================ FOOTER LEGAL LINKS ============================ */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

/* ============================ LEGAL PAGES (mentions, confidentialité) ============================ */
.legal-page { background: var(--paper); }
.legal-hero { background: var(--grad); color: #fff; padding: clamp(96px, 14vw, 140px) 0 clamp(40px, 7vw, 64px); }
.legal-hero .eyebrow { color: rgba(255,255,255,.72); }
.legal-hero h1 { font-family: var(--ff-serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; margin: 10px 0 0; }
.legal-hero .updated { margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: .92rem; }
.legal-body { padding-block: clamp(48px, 8vw, 80px); }
.legal-body .measure { max-width: 72ch; margin-inline: auto; }
.legal-body h2 { font-family: var(--ff-serif); font-size: clamp(1.3rem, 3vw, 1.65rem); color: var(--ink); margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; color: var(--ink); margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--text-mute); line-height: 1.7; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--ink); }
.legal-body .dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 24px; margin: 0 0 16px; }
.legal-body .dl dt { color: var(--ink); font-weight: 600; }
.legal-body .dl dd { color: var(--text-mute); margin: 0; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 600; color: var(--accent); }
@media (max-width: 620px) {
  .legal-body .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-body .dl dd { margin-bottom: 10px; }
}
