/* ==========================================================================
   Digital BizDev — feuille de style v02
   Écrite à la main, sans framework ni compilation : modifiez-la directement.
   ========================================================================== */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  /* Charte Digital BizDev */
  --blue: #04578E;          /* bleu du logo */
  --orange: #EA580C;        /* orange du logo : accents et grands éléments */
  --orange-strong: #C2410C; /* orange des boutons (contraste suffisant avec le blanc) */
  --orange-soft: #FB923C;   /* orange lisible sur fond bleu nuit */

  /* Dérivés */
  --ink: #032F4D;           /* bleu nuit : texte principal et bandeau sombre */
  --muted: #4A5D6B;         /* texte secondaire */
  --paper: #F3F7FA;         /* fond teinté */
  --mist: #DCE6EE;          /* aplats légers */
  --line: #C6D5E1;          /* filets */
  --white: #FFFFFF;

  /* États (diagnostic) */
  --good: #1E7B45;
  --warn: #B45309;
  --bad: #B91C1C;

  --font-ui: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --section-space: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-ui);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 650; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 650; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem;
  font-family: var(--font-ui); font-size: 0.9rem; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Boutons et liens d'action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 1.35rem;
  font-family: var(--font-ui); font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange-strong); color: var(--white); }
.btn-primary:hover { background: #9A3412; color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }

.link {
  display: inline-block; margin-top: 0.4rem; margin-right: 1.4rem;
  font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600;
  color: var(--blue); text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.link:hover { color: var(--ink); }
.link-light { color: var(--white); text-decoration-color: var(--orange-soft); }
.link-light:hover { color: var(--white); text-decoration-color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { width: 149px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"], .site-nav ul a.is-active { border-bottom-color: var(--orange); }
.nav-short { display: none; }

.nav-toggle, .header-mobile-actions { display: none; }

@media (max-width: 960px) {
  .header-mobile-actions { display: flex; align-items: center; gap: 0.6rem; }
  .header-contact { min-height: 40px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .nav-cta { display: none !important; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
    padding: 0.5rem 0.8rem; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
    color: var(--ink); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--mist); font-size: 1.05rem; }
  .site-nav ul a[aria-current="page"], .site-nav ul a.is-active { border-bottom-color: var(--mist); color: var(--orange-strong); }
}
@media (max-width: 420px) {
  .brand img { width: 118px; }
  .header-mobile-actions { gap: 0.45rem; }
  .nav-toggle { padding: 0.5rem 0.65rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section-tint { background: var(--paper); }
.section-intro { color: var(--muted); margin-top: -0.4em; margin-bottom: 2.5rem; }

.section-ink { background: var(--ink); color: #E6EEF4; }
.section-ink h2, .section-ink h3 { color: var(--white); }

/* ---------- Accroche ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 4vw, 48px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 15ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ink); margin: 1.6rem 0 2rem; max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.hero-proof {
  font-size: 1rem; color: var(--muted); max-width: 46em;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}

.hero-portrait { margin: 0; position: relative; }
.hero-portrait::before {
  /* Aplat bleu de la charte, décalé derrière le portrait et prolongé jusqu'au bord droit */
  content: ""; position: absolute; z-index: -1;
  top: 9%; bottom: 14%; left: 22%; right: -100vw;
  background: var(--blue);
}
.hero-portrait img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-portrait figcaption {
  font-family: var(--font-ui); font-size: 0.82rem; line-height: 1.45; color: var(--muted);
  margin-top: 0.9rem; max-width: 30ch;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 260px; }
  .hero-portrait::before { top: 12%; bottom: 18%; left: 30%; }
  .hero-portrait figcaption { position: absolute; left: 0; right: 0; bottom: -2.6rem; }
  .hero-text { margin-top: 2.2rem; }
}

/* ---------- Profils (onglets) ---------- */
.tab-list {
  display: flex; flex-wrap: wrap; gap: 0 2rem;
  border-bottom: 1px solid var(--line); margin: 2rem 0 2.5rem;
}
.tab-list [role="tab"] {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 0.9rem 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500; color: var(--muted);
}
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--orange); }

.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.tab-panel[hidden] { display: none; }
.panel-col h3 { font-size: 0.95rem; color: var(--muted); font-weight: 500; margin-bottom: 0.6rem; }
.panel-col p { font-size: 1.2rem; line-height: 1.6; }

@media (max-width: 720px) {
  .tab-list { flex-direction: column; gap: 0; border-bottom: 0; border-left: 1px solid var(--line); }
  .tab-list [role="tab"] { text-align: left; padding: 0.7rem 1rem; border-bottom: 0; border-left: 3px solid transparent; margin: 0 0 0 -1px; }
  .tab-list [role="tab"][aria-selected="true"] { border-left-color: var(--orange); }
  .tab-panel { grid-template-columns: 1fr; }
}

/* ---------- Offres ---------- */
.offers { margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.offer {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr) minmax(200px, 0.9fr);
  grid-template-areas: "head body meta" "head body link";
  gap: 0.4rem clamp(24px, 4vw, 56px);
  padding: 2.2rem 0; border-bottom: 1px solid var(--line);
}
.offer-head { grid-area: head; }
.offer-body { grid-area: body; }
.offer-meta { grid-area: meta; margin: 0; }
.offer > .link { grid-area: link; align-self: end; }

.offer h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -0.02em; }
.offer h3 a { color: var(--ink); text-decoration: none; }
.offer h3 a:hover { color: var(--blue); }
.offer-brand { font-family: var(--font-ui); font-size: 0.85rem; color: var(--orange-strong); margin-top: 0.35rem; }
.offer-promise { font-size: 1.25rem; font-weight: 600; line-height: 1.45; margin-bottom: 0.7rem; }
.offer-evidence { font-style: italic; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 1rem; margin-top: 1rem; }
.offer-meta dt { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.offer-meta dd { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: 0.98rem; font-weight: 500; line-height: 1.45; }

.offer-entry .offer-promise { font-weight: 500; }

@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; grid-template-areas: "head" "body" "meta" "link"; gap: 0.9rem; }
}

/* ---------- Méthode : frise proportionnelle aux semaines ---------- */
.timeline { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.timeline li { flex: var(--weeks) 1 0; min-width: 0; padding-right: 1rem; }
.timeline li::before {
  content: ""; display: block; height: 10px; margin-bottom: 1.2rem;
  background: var(--blue);
}
.timeline li:first-child::before { background: var(--orange); }
.timeline-weeks { display: block; font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.timeline h3 { margin-bottom: 0.5rem; }
.timeline p { font-size: 1rem; }

@media (max-width: 760px) {
  .timeline { flex-direction: column; gap: 0; }
  .timeline li { display: grid; grid-template-columns: 10px 1fr; column-gap: 1.2rem; padding: 0 0 1.8rem; }
  .timeline li::before { grid-row: 1 / span 3; width: 10px; height: auto; margin: 0; }
}

/* ---------- Parcours (bandeau sombre) ---------- */
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.track-intro p { color: #CFDCE6; }
.track-results { margin: 0; display: grid; gap: 0; }
.track-results > div { padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.track-results > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.track-results dt {
  font-family: var(--font-ui); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 650;
  letter-spacing: -0.02em; color: var(--orange-soft); line-height: 1.1; margin-bottom: 0.4rem;
}
.track-results dd { margin: 0; color: #E6EEF4; font-size: 1.05rem; max-width: 48ch; }

@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } }

/* ---------- Références ---------- */
.logo-group { margin-top: 2.5rem; }
.logo-group h3 { font-size: 0.95rem; font-weight: 500; color: var(--muted); padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.logos li { display: flex; align-items: center; justify-content: center; height: 110px; padding: 1rem; border-bottom: 1px solid var(--mist); }
.logos img { max-height: 52px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }

/* ---------- Publications ---------- */
.writings { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.writings li { display: flex; flex-direction: column; }
.writings h3 { border-top: 2px solid var(--ink); padding-top: 1.1rem; }

/* Vignettes des publications */
.thumb, .thumb-img {
  width: 100%; aspect-ratio: 4 / 3; margin-bottom: 1.4rem;
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
}
.thumb-img { object-fit: cover; }

.thumb-blog { display: flex; flex-direction: column; }
.thumb-browser {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.55rem 0.8rem; background: var(--mist); border-bottom: 1px solid var(--line);
}
.thumb-dots { display: flex; gap: 5px; }
.thumb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.thumb-url {
  flex: 1; background: var(--white); border-radius: 4px; padding: 0.15rem 0.6rem;
  font-family: var(--font-ui); font-size: 0.72rem; color: var(--muted);
}
.thumb-blog .thumb-wordmark {
  margin: auto 0 0; padding: 0 1.4rem;
  font-family: var(--font-ui); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.03em; color: var(--ink);
}
.thumb-wordmark span { color: var(--orange); }
.thumb-blog .thumb-baseline { margin: 0.2rem 0 auto; padding: 0 1.4rem; font-size: 0.95rem; color: var(--muted); }

.thumb-book { display: flex; align-items: center; justify-content: center; background: var(--mist); }
.book {
  height: 78%; aspect-ratio: 2 / 3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem 0.9rem 0.8rem 1.1rem; color: var(--white);
  border-left: 8px solid rgba(0, 0, 0, 0.22);
  box-shadow: 6px 8px 0 rgba(3, 47, 77, 0.14);
}
.book-blue { background: var(--blue); }
.book-ink { background: var(--ink); }
.book-title { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
.book-publisher {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 500;
  padding-top: 0.5rem; border-top: 2px solid var(--orange); align-self: stretch;
}
.writings h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.writings cite { font-style: normal; }
.writings p { font-size: 1rem; color: var(--muted); }
@media (max-width: 800px) { .writings { grid-template-columns: 1fr; } }

/* ---------- Questions fréquentes ---------- */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.3rem 3rem 1.3rem 0;
  font-family: var(--font-ui); font-size: 1.08rem; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--orange-strong);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 3rem 1.4rem 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.next-steps { margin: 1.5rem 0 2rem; padding-left: 1.3rem; }
.next-steps li { margin-bottom: 0.4rem; padding-left: 0.3rem; }
.next-steps li::marker { font-family: var(--font-ui); font-weight: 600; color: var(--orange-strong); }
.contact-direct { font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.8; color: var(--muted); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4, 87, 142, 0.18); }
.form-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.contact-form .btn { width: 100%; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-family: var(--font-ui); font-size: 0.95rem; padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 4px solid; }
.form-status-ok { background: #EAF6EE; border-color: #1E7B45; color: #14532D; }
.form-status-error { background: #FDF0EA; border-color: var(--orange-strong); color: #7C2D12; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #CFDCE6; padding: clamp(48px, 7vw, 80px) 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.footer-tagline { font-family: var(--font-ui); font-size: 0.92rem; color: var(--white); margin-top: 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.site-footer a { color: #E6EEF4; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--orange-soft); }
.footer-person { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.footer-person img { width: 56px; height: 56px; border-radius: 50%; }
.footer-person p { font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.4; }
.footer-person strong { color: var(--white); }
.site-footer address { font-style: normal; margin-bottom: 0.8rem; }
.footer-small { font-size: 0.88rem; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-ui); font-size: 0.85rem;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */

/* ---------- Accroche des pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-hero h1 { max-width: 18ch; }
.page-hero-compact h1 { max-width: none; }
.page-kicker { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--orange-strong); margin-bottom: 0.8rem; }

.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-family: var(--font-ui); font-size: 0.98rem; font-weight: 500; line-height: 1.45; }

@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Comparatif avant / après ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.compare-col { padding: clamp(20px, 4vw, 40px); }
.compare-after { border-left: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--orange); }
.compare-col h3 { margin-bottom: 1rem; }
.compare-list { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.compare-list li { margin-bottom: 0.3rem; }
.compare-figures { display: flex; gap: 2.5rem; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--mist); }
.compare-figures dt { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); }
.compare-figures dd { margin: 0; font-family: var(--font-ui); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em; }
.compare-after .compare-figures dd { color: var(--blue); }
.compare-result { margin-top: 1.5rem; font-size: 1.15rem; }

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare-after { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); border-top: 1px solid var(--line); }
.agent { display: grid; grid-template-columns: 88px 1fr; gap: 1.4rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.agent-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.agent-pillar { font-family: var(--font-ui); font-size: 0.85rem; color: var(--orange-strong); margin-bottom: 0.3rem; }
.agent h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.agent-body > p:not(.agent-pillar) { font-size: 1.02rem; }
.agent-cases { margin-top: 0.8rem; }
.agent-cases summary {
  cursor: pointer; font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; color: var(--blue);
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.agent-cases ul { margin: 1rem 0 0; padding-left: 1.1rem; font-size: 0.98rem; }
.agent-cases li { margin-bottom: 0.6rem; }
@media (max-width: 860px) { .agents { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .agent { grid-template-columns: 64px 1fr; gap: 1rem; } .agent-avatar { width: 64px; height: 64px; } }

/* ---------- Livrables ---------- */
.deliverables-title { margin: 3.5rem 0 1rem; }
.deliverables { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.deliverables li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); }
.deliverables li::before { content: ""; position: absolute; left: 0.2rem; top: 1.35rem; width: 0.85rem; height: 2px; background: var(--orange); }

/* ---------- Simulateur ---------- */
.simulator-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.simulator-grid .field input { max-width: 260px; }
.simulator-result { background: var(--ink); color: #E6EEF4; padding: clamp(24px, 4vw, 48px); }
.simulator-result dl { margin: 0 0 1.5rem; }
.simulator-result dl > div { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.simulator-result dt { font-family: var(--font-ui); font-size: 0.88rem; color: #CFDCE6; }
.simulator-result dd { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 650; letter-spacing: -0.02em; color: var(--orange-soft); }
.simulator-hypotheses { font-size: 0.92rem; color: #CFDCE6; }
@media (max-width: 860px) { .simulator-grid { grid-template-columns: 1fr; } }

/* ---------- Calendrier AI Act ---------- */
.deadlines { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.deadline { position: relative; padding: 0 0 1.8rem 2rem; }
.deadline::before {
  content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue);
}
.deadline-past::before { background: var(--blue); }
.deadline-next::before { background: var(--orange); border-color: var(--orange); }
.deadline-date { font-family: var(--font-ui); font-weight: 650; font-size: 1.1rem; margin-bottom: 0.3rem; }
.deadline-tag { display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.55rem; font-size: 0.78rem; font-weight: 600; border-radius: 999px; background: var(--mist); color: var(--ink); vertical-align: 0.1em; }
.deadline-next .deadline-tag { background: var(--orange-strong); color: var(--white); }
.deadline p:last-child { color: var(--muted); }
.penalties { margin-top: 2rem; padding: 1.5rem 1.8rem; background: var(--white); border-left: 4px solid var(--orange); }
.penalties h3 { margin-bottom: 0.5rem; }

/* ---------- Cartographie des risques ---------- */
.pillars { border-top: 2px solid var(--ink); }
.pillar { border-bottom: 1px solid var(--line); }
.pillar summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding: 1.2rem 3rem 1.2rem 0;
}
.pillar summary::-webkit-details-marker { display: none; }
.pillar summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-family: var(--font-ui); font-size: 1.6rem; color: var(--orange-strong); }
.pillar[open] summary::after { content: "−"; }
.pillar-number { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.pillar-name { font-family: var(--font-ui); font-size: 1.12rem; font-weight: 600; }
.pillar-scope { font-size: 0.98rem; color: var(--muted); }
.risks { list-style: none; margin: 0 0 1.5rem 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.risks li { background: var(--paper); padding: 1.2rem 1.3rem; }
.risks h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.risks p { font-size: 0.96rem; margin-bottom: 0.6rem; }
.risk-label { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 900px) {
  .pillar summary { grid-template-columns: 2rem 1fr; }
  .pillar-scope { grid-column: 2; }
  .risks { grid-template-columns: 1fr; margin-left: 0; }
}

/* ---------- Bandeau d'appel, colonnes, encadré ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band p { color: #CFDCE6; max-width: 60ch; }
.two-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.note-box { background: var(--paper); padding: 1.6rem 1.8rem; border-top: 4px solid var(--blue); }
.note-box h3 { margin-bottom: 0.6rem; }
@media (max-width: 860px) { .two-cols { grid-template-columns: 1fr; } }

/* ---------- Lexique ---------- */
.glossary { margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.glossary > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--font-ui); font-weight: 600; }
.glossary dd { margin: 0; font-size: 1rem; }
.source-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) { .glossary > div { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---------- Choix d'agents dans le formulaire ---------- */
.field-choices { border: 0; padding: 0; margin: 0 0 1.2rem; }
.field-choices legend { font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.field .choice { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-family: var(--font-text); font-size: 0.98rem; font-weight: 400; cursor: pointer; }
.field .choice input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }

/* ---------- Diagnostic ---------- */
.quiz, .result { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 5vw, 48px); }
.quiz-progress { height: 6px; background: var(--mist); margin-bottom: 1rem; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .25s; }
.quiz-counter { font-family: var(--font-ui); font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.quiz-step { border: 0; padding: 0; margin: 0; }
.quiz-step legend { font-family: var(--font-ui); font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.5rem; padding: 0; }
.quiz-step legend:focus { outline: none; }
.quiz-options { display: grid; gap: 0.8rem; }
.quiz-option {
  text-align: left; cursor: pointer; padding: 1rem 1.2rem; min-height: 56px;
  font-family: var(--font-text); font-size: 1.05rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.quiz-option:hover { border-color: var(--blue); background: var(--paper); }
.quiz-option[aria-pressed="true"] { border-color: var(--blue); background: var(--mist); }
.quiz-back { margin-top: 1.4rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-ui); font-size: 0.9rem; color: var(--blue); text-decoration: underline; }
.quiz-help { margin-top: 2rem; font-size: 0.92rem; color: var(--muted); }

.result-print-head { display: none; }
.result h2:focus { outline: none; }
.result-score { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center; padding: 1.5rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.result-number { font-family: var(--font-ui); font-size: clamp(3.2rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.result-max { font-size: 0.4em; color: var(--muted); letter-spacing: 0; }
.result[data-level="bad"] .result-number { color: var(--bad); }
.result[data-level="warn"] .result-number { color: var(--warn); }
.result[data-level="good"] .result-number { color: var(--good); }
.result-level { font-family: var(--font-ui); font-size: 1.2rem; font-weight: 650; margin-bottom: 0.3rem; }
.result-axes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin: 2rem 0; }
.radar { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-shape { fill: rgba(4, 87, 142, 0.18); stroke: var(--blue); stroke-width: 2; }
.radar-dot { stroke: var(--white); stroke-width: 2; }
.radar-label { font-family: var(--font-ui); font-size: 11px; fill: var(--ink); }
.axis-bars { list-style: none; margin: 0; padding: 0; }
.axis-bars li { display: grid; grid-template-columns: 1fr 3.5rem; grid-template-areas: "name value" "track track"; gap: 0.25rem 0.5rem; padding: 0.6rem 0; border-bottom: 1px solid var(--mist); }
.axis-name { grid-area: name; font-family: var(--font-ui); font-size: 0.9rem; }
.axis-value { grid-area: value; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; text-align: right; }
.axis-track { grid-area: track; height: 8px; background: var(--mist); }
.axis-fill { display: block; height: 100%; }
.result h3 { margin: 1rem 0 0.8rem; }
.action-plan { padding-left: 1.3rem; }
.action-plan li { margin-bottom: 0.7rem; }
.action-plan li::marker { font-family: var(--font-ui); font-weight: 600; color: var(--orange-strong); }
.result-disclaimer { font-size: 0.88rem; color: var(--muted); margin: 1.5rem 0; }
.result-actions { margin-bottom: 0; }
@media (max-width: 720px) {
  .result-axes { grid-template-columns: 1fr; }
  .radar { margin: 0 auto; }
  .result-score { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* Impression du bilan (bouton « Enregistrer en PDF ») */
@media print {
  .site-header, .site-footer, .skip-link, .page-hero, .quiz, .result-actions { display: none !important; }
  body { font-size: 11pt; }
  .section { padding: 0; background: none; }
  .result { border: 0; padding: 0; }
  .result-print-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-family: var(--font-ui); font-size: 9pt; color: var(--muted); }
  .result-axes { grid-template-columns: 1fr 1fr; break-inside: avoid; }
  .axis-track, .axis-fill, .radar-shape { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Situations, thèmes (grille de blocs titrés) ---------- */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); margin-top: 1.5rem; }
.situation { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.situation h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.situation p { font-size: 1.02rem; }
.situation .link { margin-top: 0.6rem; }
.situation-example { margin-top: 1.5rem; }
@media (max-width: 760px) { .situations { grid-template-columns: 1fr; } }

/* ---------- Étapes numérotées ---------- */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--font-ui); font-size: 1.5rem; font-weight: 650; color: var(--orange-strong); line-height: 1.2; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { font-size: 1rem; }

/* ---------- Formats de formation ---------- */
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin: 1.5rem 0 0; }
.formats > div { background: var(--white); border-top: 4px solid var(--blue); padding: 1.3rem 1.3rem 1.5rem; }
.formats dt { font-family: var(--font-ui); font-size: 1.15rem; font-weight: 650; }
.formats dd { margin: 0; font-size: 0.98rem; }
.formats .format-duration { font-family: var(--font-ui); font-size: 0.9rem; color: var(--orange-strong); margin: 0.2rem 0 0.7rem; }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .formats { grid-template-columns: 1fr; } }

/* ---------- À propos ---------- */
.about-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-role { font-family: var(--font-ui); font-size: 1.1rem; color: var(--orange-strong); margin: 0.6rem 0 0; }
.about-hero .lead { margin-top: 1.4rem; }
.about-photo { margin: 0; position: relative; }
.about-photo::before { content: ""; position: absolute; z-index: -1; top: 12%; bottom: -8%; left: 14%; right: -100vw; background: var(--blue); }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}

.career { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.career li { display: grid; grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.career-years { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 600; color: var(--blue); margin: 0.15rem 0 0; }
.career h3 { margin-bottom: 0.4rem; }
.career p { font-size: 1.02rem; }
.career-more { margin-top: 1.2rem; }
@media (max-width: 640px) { .career li { grid-template-columns: 1fr; gap: 0.3rem; } }

.plain-list { margin: 0; padding-left: 1.1rem; }
.plain-list li { margin-bottom: 0.6rem; font-size: 1rem; }
.about-personal { margin-top: 2rem; color: var(--muted); font-style: italic; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Pages légales et 404 ---------- */
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.7rem; }
.legal h2:first-child { margin-top: 0; }
.legal-table { margin: 0; border-top: 1px solid var(--line); }
.legal-table > div { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); gap: 1.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.legal-table dt { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; }
.legal-table dd { margin: 0; font-size: 1rem; }
@media (max-width: 640px) { .legal-table > div { grid-template-columns: 1fr; gap: 0.2rem; } }
.optout { background: var(--paper); padding: 1.4rem 1.6rem; border-left: 4px solid var(--blue); }
.optout .btn { margin: 0.4rem 0 1rem; }
.notfound-links { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.notfound-links li { margin-bottom: 0.4rem; }

/* ==========================================================================
   Bandeaux d'accueil sur fond bleu nuit (home et Automatisation)
   ========================================================================== */
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero-x, .hero-team { background: var(--ink); color: #D5E2EC; overflow: hidden; }
.hero-x h1, .hero-team h1 { color: var(--white); }
.hero-x .lead, .hero-team .lead { color: #D5E2EC; }
.hero-team .page-kicker { color: var(--orange-soft); }

/* ---------- Home : workflow augmenté ---------- */
.hero-x { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 112px); }
.hero-x-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-x h1, .hero-team h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hero-x h1 { max-width: 17ch; }
.hero-x-sign { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.6rem; font-family: var(--font-ui); font-size: 0.95rem; color: #CFDCE6; }
.hero-x-sign img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--orange-soft); }
.hero-x-proof { font-size: 0.98rem; color: #A9BDCC; max-width: 46em; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }

.flow {
  margin: 0; background: var(--white); color: var(--ink);
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius);
  box-shadow: 12px 12px 0 var(--blue);
}
.flow-head { display: block; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.flow-label { display: block; font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); }
.flow-title { display: block; font-family: var(--font-ui); font-size: 1.12rem; font-weight: 650; margin-top: 0.2rem; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-steps li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--mist);
}
.flow-step { font-size: 0.98rem; line-height: 1.35; }
.flow-check {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--blue);
}
.flow-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flow-human { background: #FFF3EC; }
.flow-human .flow-check { background: var(--orange-strong); border-color: var(--orange-strong); }
.flow-who { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.flow-ai { background: var(--mist); color: var(--ink); }
.flow-you { background: var(--orange-strong); color: var(--white); }
.flow-foot { margin: 1.1rem 0 0; font-size: 0.92rem; color: var(--muted); }
.flow-foot strong { font-family: var(--font-ui); color: var(--blue); font-size: 1.05rem; white-space: nowrap; }

/* Une seule animation, au chargement : les étapes s'allument tour à tour */
@media (prefers-reduced-motion: no-preference) {
  .flow.is-playing .flow-steps li { animation: flow-row 0.5s ease-out both; animation-delay: calc(0.5s + var(--i) * 0.55s); }
  .flow.is-playing .flow-check { animation: flow-dot 0.35s ease-out both; animation-delay: calc(0.75s + var(--i) * 0.55s); }
  .flow.is-playing .flow-check::after { animation: flow-tick 0.25s ease-out both; animation-delay: calc(0.95s + var(--i) * 0.55s); }
  .flow.is-playing .flow-human { animation-name: flow-row-human; }
  .flow.is-playing .flow-foot { animation: flow-row 0.6s ease-out both; animation-delay: 3.6s; }
}
@keyframes flow-row { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes flow-row-human { from { opacity: 0.3; background: transparent; } to { opacity: 1; background: #FFF3EC; } }
@keyframes flow-dot { from { background: var(--white); border-color: var(--line); } }
@keyframes flow-tick { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-x-grid { grid-template-columns: 1fr; }
  .flow { box-shadow: 8px 8px 0 var(--blue); margin-right: 8px; }
}

/* ---------- Home : le marketeur augmenté ---------- */
.augmented { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1rem; border: 1px solid var(--line); }
.augmented-col { padding: clamp(20px, 4vw, 40px); }
.augmented-ai { background: var(--paper); border-top: 4px solid var(--blue); }
.augmented-you { background: var(--white); border-top: 4px solid var(--orange-strong); }
.augmented h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.augmented ul { list-style: none; margin: 0; padding: 0; }
.augmented li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--mist); }
.augmented li:last-child { border-bottom: 0; }
.augmented li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.7rem; height: 0.7rem; }
.augmented-ai li::before { background: var(--blue); }
.augmented-you li::before { background: var(--orange-strong); border-radius: 50%; }
.augmented-gain { margin: 1.6rem 0 0.4rem; font-size: 1.15rem; max-width: 60ch; }
@media (max-width: 760px) { .augmented { grid-template-columns: 1fr; } }

/* ---------- Home : portrait dans la section Parcours ---------- */
.track-portrait { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 2rem; box-shadow: 10px 10px 0 var(--blue); }

/* ---------- Publications : visuels réels ---------- */
.thumb-shot { display: block; }
.thumb-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thumb-cover { display: flex; align-items: center; justify-content: center; background: var(--mist); }
.thumb-cover img { height: 82%; width: auto; max-width: 70%; object-fit: contain; box-shadow: 6px 8px 0 rgba(3, 47, 77, 0.16); }

/* ---------- Automatisation : l'équipe d'agents ---------- */
.hero-team { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 104px); }
.hero-team-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-team h1 { max-width: 15ch; }
.hero-team-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-team-facts dt { font-family: var(--font-ui); font-size: 0.8rem; color: #A9BDCC; }
.hero-team-facts dd { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; color: var(--white); line-height: 1.4; }

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.team li { display: flex; }
.team a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem;
  padding: 1.3rem 0.8rem 1.2rem; text-decoration: none; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color .15s, border-color .15s;
}
.team a:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--orange-soft); }
.team img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue); background: var(--blue); margin-bottom: 0.4rem; }
.team-name { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 650; color: var(--white); }
.team-pillar { font-family: var(--font-ui); font-size: 0.78rem; line-height: 1.35; color: #A9BDCC; }
@media (prefers-reduced-motion: no-preference) {
  .team.is-playing li { animation: team-in 0.5s ease-out both; animation-delay: calc(0.3s + var(--i) * 0.12s); }
}
@keyframes team-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) { .hero-team-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-team-facts { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--orange-strong); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs-sep { margin: 0 0.5rem; color: var(--line); }
.crumbs [aria-current] { color: var(--muted); }
.crumbs-dark { color: #A9BDCC; }
.crumbs-dark a { color: var(--orange-soft); }
.crumbs-dark .crumbs-sep { color: rgba(255, 255, 255, 0.35); }
.crumbs-dark [aria-current] { color: #CFDCE6; }

/* ---------- Home : sous-missions du conseil ---------- */
.offer-subs { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.offer-subs li { padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.offer-subs li:first-child { border-top: 0; padding-top: 0.2rem; }
.offer-subs a { font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem; }
.offer-sub-brand { font-family: var(--font-ui); font-size: 0.8rem; color: var(--orange-strong); margin-left: 0.4rem; white-space: nowrap; }

/* ---------- Bandeau AI Act (home) ---------- */
.section-band { background: var(--blue); color: #E6EEF4; padding: clamp(36px, 5vw, 56px) 0; }
.aiact-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.aiact-band-date { background: var(--white); color: var(--ink); padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); }
.aiact-band-label { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); margin: 0; }
.aiact-band-day { font-family: var(--font-ui); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; color: var(--orange-strong); margin: 0.2rem 0 0; white-space: nowrap; }
.aiact-band h2 { color: var(--white); font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 0.4rem; }
.aiact-band-text p { color: #E6EEF4; font-size: 1.02rem; }
.aiact-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
@media (max-width: 900px) { .aiact-band { grid-template-columns: 1fr; } .aiact-band-date { justify-self: start; } }

/* ---------- Page Conseil : carte échéance et missions ---------- */
.hero-consulting h1 { max-width: 12ch; }
.deadline-card { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); box-shadow: 12px 12px 0 var(--blue); }
.deadline-card-label { font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.deadline-card-date { font-family: var(--font-ui); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--orange-strong); line-height: 1.1; margin-bottom: 0.8rem; }
.deadline-card p:not([class]) { font-size: 1rem; margin-bottom: 1.2rem; }
.deadline-card-note { font-family: var(--font-ui); font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0; }
@media (max-width: 900px) { .deadline-card { box-shadow: 8px 8px 0 var(--blue); margin-right: 8px; } }

.missions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: 1.5rem; }
.mission { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px); background: var(--paper); border-radius: var(--radius); }
.mission-compliance { background: var(--white); border: 1.5px solid var(--line); }
.mission-brand { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--orange-strong); margin-bottom: 0.3rem; }
.mission h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 650; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.mission h3 a { color: var(--ink); text-decoration: none; }
.mission h3 a:hover { color: var(--blue); }
.mission-promise { font-size: 1.08rem; }
.mission-list { list-style: none; margin: 0.4rem 0 1.2rem; padding: 0; }
.mission-list li { position: relative; padding: 0.5rem 0 0.5rem 1.5rem; border-bottom: 1px solid var(--mist); font-size: 1rem; }
.mission-list li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 0.65rem; height: 0.65rem; background: var(--blue); }
.mission-compliance .mission-list li::before { background: var(--orange-strong); border-radius: 50%; }
.mission-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.2rem; }
.mission-meta dt { font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); }
.mission-meta dd { margin: 0.2rem 0 0; font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
.mission .link { margin-top: auto; align-self: flex-start; }
.mission .link + .link { margin-top: 0.5rem; }
@media (max-width: 860px) { .missions { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mission-meta { grid-template-columns: 1fr; } }

/* ---------- Pied de page : sous-liens ---------- */
.footer-sublinks { list-style: none; margin: 0.45rem 0 0.2rem; padding: 0 0 0 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.footer-sublinks li { margin-bottom: 0.35rem; font-size: 0.92rem; }

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

/* Sur petit écran, le radar devient illisible : les barres suffisent */
@media (max-width: 720px) { .radar { display: none; } }
