/* ==========================================================================
   GESTU — feuille de style principale
   Structure et typographie reprises du site proxicod.com (même famille de sites).
   Charte du logo GESTU : marine #08314A, vert d'eau #3E9C8F, soleil #FCAD19, fond crème #F6F5F1
   Polices : Schibsted Grotesk (texte), IBM Plex Mono (étiquettes)
   ========================================================================== */

:root {
  --bg: #F6F5F1;
  --white: #FFFFFF;
  --ink: #08314A;          /* marine du logo : titres, texte, sections sombres */
  --ink-2: #2A4757;
  --ink-3: #3D5A69;
  --muted: #566C78;
  --accent: #23766A;       /* vert d'eau foncé : liens, étiquettes, numéros (contraste AA) */
  --teal: #3E9C8F;         /* vert d'eau du logo : décor */
  --teal-bg: #E7F3F1;
  --sun: #FCAD19;          /* soleil du logo : boutons principaux, pastilles */
  --sun-bg: #FFF4DC;
  --navy-deep: #062639;
  --photo-bg: #E4EBED;
  --error: #B42318;
  --whatsapp: #25D366;
  --line: rgba(8, 49, 74, .12);
  --line-strong: rgba(8, 49, 74, .16);
  --line-light: rgba(8, 49, 74, .1);
  --on-dark: #EAF1F4;
  --on-dark-muted: #C3D2DA;
  --on-dark-dim: #AFC0C9;
  --on-dark-faint: #8FA5B1;
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --radius: 20px;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { left: 16px; color: #fff; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- Typographie ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.title-xl { font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.title-lg { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.title-md { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.title-sm { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.title-md em, .title-lg em, .title-xl em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.text-muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.max-760 { max-width: 760px; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { padding: 13px 22px; font-size: 15px; }
.btn--primary { background: var(--sun); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: rgba(8, 49, 74, .22); color: var(--ink); font-weight: 500; background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--sun); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; font-weight: 500; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.site-footer .btn--primary:hover, .section--dark .btn--primary:hover { background: #fff; color: var(--ink); }
.link-arrow { font-weight: 600; font-size: 16px; color: var(--accent); }
.link-arrow:hover { color: var(--ink); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--sun); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- En-tête -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--muted); white-space: nowrap;
}
.site-nav a:hover { background: rgba(8, 49, 74, .06); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(252, 173, 25, .22); }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.site-header__login { padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.site-header__login:hover { color: var(--accent); }
.site-header__cta { padding: 10px 18px; font-size: 15px; }
.burger {
  display: none; width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(8, 49, 74, .16); background: #fff; cursor: pointer;
}
.burger svg { display: block; }
.burger svg path { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }
.mobile-panel {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(8, 49, 74, .08);
}
.mobile-panel a:not(.btn) {
  padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid rgba(8, 49, 74, .08);
}
.mobile-panel a:not(.btn):hover, .mobile-panel a[aria-current="page"] { color: var(--ink); }
.mobile-panel .btn { margin-top: 14px; }
@media (max-width: 1180px) {
  .site-nav, .site-header__actions { display: none; }
  .burger { display: flex; }
  .mobile-panel:not([hidden]) { display: flex; }
}

/* --- Sections ------------------------------------------------------------- */
.section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.section--white { background: var(--white); border-top: 1px solid var(--line-light); }
.section--white + .section--white { border-top: 0; }
.section--bordered { border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--sun); }
.section--dark h2 { color: #fff; }
.section--dark .section-head p.on-dark { color: var(--on-dark-muted); }
.section--sun { background: var(--sun); color: var(--ink); }
.section--sun .eyebrow { color: var(--ink); }
.stack-v { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; } .gap-48 { gap: 48px; } .gap-56 { gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head--row {
  flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 16px 40px; max-width: none;
}
.section-head--row > div { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

.page-hero {
  padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 6vw, 88px);
  display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px);
}
.page-hero--deep { padding-bottom: clamp(64px, 8vw, 112px); }
.page-hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 960px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* --- Grille de cellules (bordures 1px) ------------------------------------ */
.cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cells--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cell { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cell h3 { font-size: 22px; letter-spacing: -.02em; text-wrap: balance; }
.cell p { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* Cartes modules de l'accueil */
.cells--home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); } /* 6 cartes : 3, 2 ou 1 colonnes */
.cells--home .cell { background: var(--bg); padding: 32px 28px; gap: 16px; min-height: 300px; color: var(--ink); }
.cells--home .cell:hover { background: var(--white); color: var(--ink); }
.cells--home .cell h3 { font-size: 26px; }
.cells--home .cell p { flex: 1; }
.cell__sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cell__more { font-weight: 600; font-size: 15px; color: var(--accent); }
/* Cellules « Pour qui » */
.ref { background: var(--white); padding: 28px 24px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ref__name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ref__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
a.ref { color: var(--ink); transition: background-color .2s; }
a.ref:hover { background: var(--bg); color: var(--accent); }
.ref__arrow { color: var(--accent); font-weight: 400; }

/* --- Accueil -------------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 86px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 52ch; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__note a { font-weight: 600; }
.hero__media { position: relative; }
.hero__photo { aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Petites fiches « application » posées sur la photo */
.app-chip {
  position: absolute; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(8, 49, 74, .14);
  font-size: 14px; line-height: 1.35; max-width: 270px;
}
.app-chip strong { display: block; font-size: 14px; color: var(--ink); }
.app-chip__text { color: var(--muted); }
.app-chip__mark {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
}
.app-chip__mark--sun { background: var(--sun-bg); color: #8A5A00; }
.app-chip__mark--teal { background: var(--teal-bg); color: var(--accent); }
.app-chip--a { top: 22px; left: -22px; }
.app-chip--b { bottom: 22px; right: -18px; }
@media (max-width: 1100px) { .app-chip--a { left: 14px; } .app-chip--b { right: 14px; } }
@media (max-width: 520px) { .app-chip { position: static; max-width: none; margin-top: 12px; box-shadow: none; } }

.stats-band { background: var(--white); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.stat__label { font-size: 15px; color: var(--muted); }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; padding: 20px 12px 20px 0; }
}

.audience { padding-top: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 32px; }
.audience .section-head--row p { font-size: 16px; line-height: 1.55; max-width: 44ch; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 96px);
}
.split__sticky { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 100px; }
.split__sticky p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
@media (max-width: 760px) { .split__sticky, .toc { position: static; } }
.numbered-list { border-top: 1px solid var(--line); }
.numbered-list li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.numbered-list .num { width: 28px; flex-shrink: 0; }
.numbered-list__body { display: flex; flex-direction: column; gap: 6px; }
.numbered-list__label { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.numbered-list__text { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 56ch; }

/* Piliers (fond sombre) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px 32px; }
.pillars li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .2); }
.pillars li:first-child { border-top-color: var(--sun); }
.pillars .num { color: var(--sun); }
.pillars h3 { font-size: 22px; letter-spacing: -.02em; color: #fff; }
.pillars p { font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); }

/* Citation (bande soleil) */
.quote { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.quote__photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: rgba(8, 49, 74, .1); }
.quote__photo img { width: 100%; height: 100%; object-fit: cover; }
.quote__body { display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.quote blockquote p { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.02em; font-weight: 600; max-width: 38ch; text-wrap: pretty; }
.quote footer { font-size: 16px; }
.quote footer span { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; margin-top: 4px; }
@media (max-width: 640px) { .quote { grid-template-columns: minmax(0, 1fr); } .quote__photo { max-width: 160px; } }

/* --- Pages fonctionnalités ------------------------------------------------ */
.module-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.module-hero__text { display: flex; flex-direction: column; gap: 24px; }
.brief { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.brief .eyebrow { margin-bottom: 12px; }
.brief__row { display: grid; grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.brief__row:first-of-type { border-top: 0; }
.brief__k { font-size: 14px; color: var(--muted); }
.brief__v { font-size: 16px; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .2); }
.steps li:first-child { border-top-color: var(--sun); }
.steps .num { color: var(--sun); }
.steps h3 { font-size: 22px; letter-spacing: -.02em; color: #fff; }
.steps p { font-size: 16px; line-height: 1.55; color: var(--on-dark-muted); }
/* Variante claire des étapes */
.steps--light li { border-top-color: var(--line-strong); }
.steps--light li:first-child { border-top-color: var(--sun); }
.steps--light .num { color: var(--accent); }
.steps--light h3 { color: var(--ink); }
.steps--light p { color: var(--muted); }

.faq-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.faq-section--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 860px) { .faq-section--wide { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 22px 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 66ch; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group .eyebrow { margin-bottom: 16px; }

.other { border-top: 1px solid var(--line-light); }
.other .container { padding-top: 56px; padding-bottom: clamp(64px, 8vw, 104px); display: flex; flex-direction: column; gap: 24px; }
.other__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.other__grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); } /* 6 liens : 3 + 3 */
.other__link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-size: 18px; font-weight: 600;
}
.other__link:hover { border-color: var(--teal); color: var(--accent); }
.other__link .num { margin-right: 10px; }

/* Liste des modules (page Fonctionnalités) */
.module-list { border-top: 1px solid var(--line-strong); }
.module-list__item {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px 48px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-strong);
  color: var(--ink); align-items: start;
}
.module-list__item:hover { color: var(--accent); }
.module-list__title { display: flex; gap: 20px; align-items: baseline; }
.module-list__title h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.module-list__body { display: flex; flex-direction: column; gap: 14px; }
.module-list__body p { font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.module-list__more { font-weight: 600; font-size: 15px; color: var(--accent); }
.dash-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 24px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.dash-list li { display: flex; gap: 10px; }
.dash-list li::before { content: "—"; font-weight: 700; color: var(--teal); }

/* Chips (profils, documents…) */
.stack { border-top: 1px solid var(--line); }
.stack__row {
  display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 16px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.stack__label { margin: 0; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
@media (max-width: 560px) { .stack__row { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* --- Vidéos (Comment ça marche) ------------------------------------------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 28px; }
.episode { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.episode h3 { font-size: 21px; letter-spacing: -.02em; }
.episode p { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--ink); cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0 0 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sun); color: var(--ink); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video noscript a { position: absolute; left: 12px; bottom: 12px; color: #fff; }
a.video { display: block; }
.episode .num { margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.episode__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Visionneuse des tutoriels (dialog natif) */
.player {
  padding: 0; border: 0; border-radius: var(--radius); background: var(--navy-deep); color: #fff;
  width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: auto;
}
.player::backdrop { background: rgba(6, 38, 57, .88); }
.player__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.player__main { display: flex; flex-direction: column; min-width: 0; }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__info { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 28px; }
.player__info .eyebrow { color: var(--sun); }
.player__info h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: #fff; }
.player__info p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); max-width: 70ch; }
.player__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 8px; }
.player__nav .btn[disabled] { opacity: .35; cursor: default; }
.player__yt { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.player__yt:hover { color: var(--sun); }
.player__side { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-left: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.player__side .eyebrow { color: var(--on-dark-faint); padding: 0 8px; }
.player__list { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.player__list button {
  width: 100%; display: flex; gap: 12px; align-items: baseline; padding: 10px 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--on-dark-muted); font-size: 15px; line-height: 1.35; text-align: left; cursor: pointer;
}
.player__list button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.player__list button[aria-current="true"] { background: rgba(252, 173, 25, .16); color: #fff; }
.player__list .num { color: var(--on-dark-faint); flex-shrink: 0; }
.player__list button[aria-current="true"] .num { color: var(--sun); }
.player__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(6, 38, 57, .7); color: #fff; font-size: 18px; cursor: pointer;
}
.player__close:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
@media (min-width: 901px) {
  /* La liste prend la hauteur du lecteur et défile si besoin, sans agrandir la fenêtre. */
  .player__list { flex: 1 1 0; min-height: 0; contain: size; }
}
@media (max-width: 900px) {
  .player__inner { grid-template-columns: minmax(0, 1fr); }
  .player__side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .player__info { padding: 20px; }
}
@media (max-width: 640px) {
  .player { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .player__yt { margin-left: 0; width: 100%; }
}

/* --- Équipe (repris de proxicod.com) -------------------------------------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 32px 24px; } /* 7 personnes : 4 + 3 */
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.member { display: flex; flex-direction: column; gap: 10px; }
.member__photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--photo-bg); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.member__role { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: -4px; }
a.member { color: var(--ink); }
a.member .member__photo img { transition: transform .4s; }
a.member:hover .member__photo img { transform: scale(1.03); }
a.member:hover .member__name { color: var(--accent); }
.member__more { font-size: 14px; font-weight: 600; color: var(--accent); }

/* Page Accompagnement (portrait de la responsable support) */
.profile { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile figcaption { display: flex; flex-direction: column; gap: 2px; }
.profile figcaption strong { font-size: 19px; letter-spacing: -.01em; }
.profile figcaption span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--accent); }
@media (max-width: 900px) { .profile { justify-self: start; max-width: 320px; } }
.quote--solo { grid-template-columns: minmax(0, 1fr); }
.quote__statement { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; max-width: 24ch; text-wrap: balance; }

/* --- Galerie -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gallery--teaser { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery-item {
  position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--photo-bg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(6, 38, 57, .78)); color: #fff; font-size: 14px; line-height: 1.35;
  opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-item__caption, .gallery-item:focus-visible .gallery-item__caption { opacity: 1; }
@media (hover: none) { .gallery-item__caption { opacity: 1; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 38, 57, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 72px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); width: auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; font-size: 15px; text-align: center; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer;
}
.lightbox__btn:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox figure { padding: 64px 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

/* --- Contact -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 32px; }
.contact__info .lead { max-width: 46ch; }
.info-list { border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row__k { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.info-row__v { font-size: 17px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.info-row__v a { color: var(--ink); }
.info-row__v a:hover { color: var(--accent); }
.info-row__v a.is-accent { color: var(--accent); }
.info-row__v a.is-accent:hover { color: var(--ink); }
.u { text-decoration: underline; text-underline-offset: 3px; }
.wa-badge {
  display: inline-block; margin-left: 8px; vertical-align: middle;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--whatsapp); color: #fff;
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); }
.card:focus { outline: none; }

.form { display: flex; flex-direction: column; gap: 22px; }
.form__group { display: flex; flex-direction: column; gap: 10px; }
.form__label { font-size: 14px; font-weight: 600; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  position: relative; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid rgba(8, 49, 74, .16); background: var(--white); color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.topic:has(input:checked), .topic.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(8, 49, 74, .16);
  background: var(--bg); font-size: 16px; font-weight: 400; color: var(--ink); outline: none;
  transition: border-color .15s, background-color .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); background-color: var(--white); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { font-size: 13px; font-weight: 400; color: var(--error); }
.form__error { font-size: 14px; color: var(--error); }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 38ch; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; min-height: 420px; justify-content: center; }
.form-success__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sun); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.form-success h2 { font-size: 32px; letter-spacing: -.03em; }
.form-success p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.form-success .btn { align-self: flex-start; margin-top: 8px; }

/* --- Mentions légales / pages texte --------------------------------------- */
.legal { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); }
.toc { display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 100px; }
.toc .eyebrow { margin-bottom: 6px; }
.toc a { font-size: 15px; color: var(--muted); }
.toc a:hover { color: var(--accent); }
.legal__body { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.legal article { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.legal article h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .legal { grid-template-columns: minmax(0, 1fr); } }

/* Plan du site */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 48px; }
.sitemap__col { display: flex; flex-direction: column; gap: 10px; }
.sitemap__col .eyebrow { margin-bottom: 6px; }
.sitemap__col a { font-size: 17px; color: var(--ink); }
.sitemap__col a:hover { color: var(--accent); }

/* --- Pied de page --------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); }
.footer-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end;
  padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta__left { display: flex; flex-direction: column; gap: 20px; }
.footer-cta .eyebrow { color: var(--sun); }
.footer-cta h2 { font-size: clamp(34px, 4.8vw, 66px); line-height: 1.02; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.footer-cta__right { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-cta__right p { font-size: 18px; line-height: 1.55; color: var(--on-dark-muted); max-width: 46ch; text-wrap: pretty; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 6px; }
.footer-col a { color: var(--on-dark); font-size: 15px; }
.footer-col a:hover { color: var(--sun); }
.footer-col__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-dim); margin-top: 4px; }
.footer-wa { color: var(--whatsapp); }
.footer-brand { gap: 16px; }
.footer-brand img { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--on-dark-dim); }
.footer-brand p a { font-size: inherit; color: #fff; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-faint);
}
.footer-bottom a { color: var(--on-dark-faint); white-space: nowrap; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- Page 404 ------------------------------------------------------------- */
.error-page { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); display: flex; flex-direction: column; gap: 24px; max-width: 760px; }

/* --- Impression ----------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .burger, .skip-link { display: none !important; }
  body { background: #fff; }
}
