/* ==========================================================================
   Institut IA — feuille de styles
   Couleurs alignées sur le logo : marine + rouge.
   Mobile d'abord : les règles de base visent le téléphone,
   puis @media (min-width) ajoute la tablette et l'ordinateur.
   ========================================================================== */

/* Polices hébergées sur le site (variables, sous-ensemble latin) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --navy: #16264a;
  --navy-700: #1e3260;
  --navy-900: #0d1932;
  --red: #e3101e;
  --red-600: #c20d19;
  --red-50: #fdecee;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --tint: #f2f4f8;
  --ink: #16264a;
  --muted: #5a6478;
  --muted-light: #aeb8cc;
  --line: #e4e7ee;
  --line-dark: rgba(255, 255, 255, .12);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 38, 74, .06), 0 2px 8px rgba(22, 38, 74, .04);
  --shadow: 0 2px 4px rgba(22, 38, 74, .04), 0 12px 32px rgba(22, 38, 74, .08);
  --shadow-lg: 0 4px 8px rgba(22, 38, 74, .05), 0 24px 60px rgba(22, 38, 74, .14);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 68px;
  --gutter: 20px;
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.section-shell { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-pad { padding-block: var(--section-y); }

/* ---------- Boutons ---------- */
.button {
  --bg-btn: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 12px;
  background: var(--bg-btn); color: #fff;
  font-weight: 600; font-size: .98rem; line-height: 1.2; text-align: center;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), color .2s;
}
.button .icon { transition: transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover .icon { transform: translateX(3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-primary { background: var(--navy); box-shadow: 0 6px 18px rgba(22, 38, 74, .22); }
.button-primary:hover { background: var(--navy-700); box-shadow: 0 10px 26px rgba(22, 38, 74, .28); }
.button-secondary { background: var(--surface); color: var(--navy); border-color: var(--line); }
.button-secondary:hover { border-color: var(--navy); }
.button-red { background: var(--red); box-shadow: 0 8px 22px rgba(227, 16, 30, .3); }
.button-red:hover { background: var(--red-600); }
.button-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.button-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.button-small { min-height: 42px; padding: 0 18px; font-size: .92rem; border-radius: 10px; }
.button-full { width: 100%; }

/* ---------- Titres de section ---------- */
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-kicker.light { color: #ff6a74; }
.section-heading { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading > p, .heading-row > p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .section-kicker { justify-content: center; }
.heading-row { max-width: none; display: grid; gap: 4px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: .96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e3101e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-8.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check-list.light li { color: rgba(255, 255, 255, .88); }
.check-list.light li::before { background-color: rgba(255, 255, 255, .1); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(22, 38, 74, .06); background: rgba(251, 250, 247, .92); }
.nav-shell {
  width: min(1240px, 100% - 2 * var(--gutter)); height: var(--header-h); margin: auto;
  display: flex; align-items: center; gap: 24px;
  transition: height .3s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 2; }
.brand-logo { width: auto; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-name strong { color: var(--red); font-weight: 800; }
.brand-text { display: grid; line-height: 1.15; }
.brand-tagline { margin-top: 2px; color: var(--red); font-size: .7rem; font-weight: 500; letter-spacing: .06em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a:not(.button) {
  position: relative; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-size: .95rem; font-weight: 500; white-space: nowrap;
  transition: color .2s;
}
.main-nav a:not(.button)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:not(.button):hover, .main-nav a.is-active { color: var(--navy); }
.main-nav a:not(.button):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-mobile-cta { display: none; }

.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22, 38, 74, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 38, 74, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; }
.glow-red { width: 560px; height: 560px; right: -220px; top: -220px; background: radial-gradient(circle, rgba(227, 16, 30, .14), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.glow-navy { width: 620px; height: 620px; right: 10%; top: 30%; background: radial-gradient(circle, rgba(30, 50, 96, .1), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }

.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--red); }
.hero-lead { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--red-50); color: var(--red); }

/* Démo de conversation */
.hero-demo { position: relative; min-width: 0; width: 100%; max-width: 520px; margin-inline: auto; padding: 28px 22px; }
.chat-window {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-topbar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.assistant-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--navy); }
.assistant-avatar img { width: 24px; height: auto; }
.assistant-name { display: grid; min-width: 0; line-height: 1.3; }
.assistant-name strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant-name small { color: var(--muted); font-size: .8rem; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #138a52; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #1cbf71; box-shadow: 0 0 0 0 rgba(28, 191, 113, .5); animation: pulse 2s infinite; }
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 270px; padding: 22px 18px; background: linear-gradient(180deg, #fafbfd, #fff); }
.message { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: .95rem; line-height: 1.5; }
.message-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.message-ai { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--tint); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-light); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.quick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-options span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: .84rem; font-weight: 500; }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted-light); font-size: .9rem; }
.chat-input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-input button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--red); color: #fff; }
.chat-input .icon { transform: rotate(-90deg); }

/* Étapes de la conversation (pilotées par app.js) */
.chat-step { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chat-body.is-playing .chat-step { opacity: 0; transform: translateY(10px) scale(.98); }
.chat-body.is-playing .chat-step.is-shown { opacity: 1; transform: none; }
.chat-body.is-playing .typing:not(.is-shown) { position: absolute; }
.chat-body:not(.is-playing) .typing { display: none; }

.float-chip {
  position: absolute; z-index: 2;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--navy);
  animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 22px; height: 22px; }
.chip-mail { left: 0; top: 118px; }
.chip-calendar { right: 0; bottom: 92px; animation-delay: -2s; }
.chip-spark { right: 18px; top: 0; background: var(--red); border-color: var(--red); color: #fff; animation-delay: -4s; }

/* Entrée du hero au chargement */
.intro, .hero h1 .line { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
.hero h1 .line { clip-path: inset(0 0 -10% 0); }

/* ==========================================================================
   Révélation au défilement
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Variantes : glissé latéral, zoom flou, dévoilement d'image */
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.94); filter: blur(6px); transition-property: opacity, transform, filter; }
.js .reveal.zoom.is-visible { filter: none; }
.js .reveal.from-left.is-visible, .js .reveal.from-right.is-visible, .js .reveal.zoom.is-visible { transform: none; }
.js .reveal-img { clip-path: inset(0 100% 0 0 round var(--radius-lg)); transition: clip-path 1.2s var(--ease) .15s; }
.js .reveal-img img { transform: scale(1.15); transition: transform 1.6s var(--ease) .15s; }
.js .is-visible .reveal-img, .js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .is-visible .reveal-img img, .js .reveal-img.is-visible img { transform: none; }
/* Le trait des sur-titres se dessine à l'apparition */
.js .reveal .section-kicker::before { width: 0; transition: width .7s var(--ease) .25s; }
.js .reveal.is-visible .section-kicker::before { width: 22px; }
/* Les listes à cocher apparaissent ligne par ligne */
.js .reveal .check-list li, .js .reveal .cross-list li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible .check-list li, .js .reveal.is-visible .cross-list li { opacity: 1; transform: none; }
.js .reveal.is-visible :is(.check-list, .cross-list) li:nth-child(1) { transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
.js .reveal.is-visible :is(.check-list, .cross-list) li:nth-child(2) { transition-delay: calc(var(--i, 0) * 90ms + 400ms); }
.js .reveal.is-visible :is(.check-list, .cross-list) li:nth-child(3) { transition-delay: calc(var(--i, 0) * 90ms + 500ms); }
.js .reveal.is-visible :is(.check-list, .cross-list) li:nth-child(n+4) { transition-delay: calc(var(--i, 0) * 90ms + 600ms); }

/* ==========================================================================
   Point de départ
   ========================================================================== */
.audience-grid { display: grid; gap: 16px; }
.audience-card {
  --pad: 26px;
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: var(--pad); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.audience-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.audience-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.audience-card:hover::after { transform: scaleX(1); }
.audience-photo { width: calc(100% + 2 * var(--pad)); max-width: none; height: auto; aspect-ratio: 16 / 10; margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 6px; object-fit: cover; background: var(--tint); transition: transform .6s var(--ease); }
.audience-card:hover .audience-photo { transform: scale(1.04); }
.audience-card .card-top { position: relative; z-index: 1; margin-top: -48px; }
.audience-card .card-icon { border: 4px solid var(--surface); box-sizing: content-box; }
.audience-card .card-number { align-self: flex-end; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--navy); transition: transform .4s var(--ease); }
.card-icon.is-red { background: var(--red-50); color: var(--red); }
.card-icon .icon { width: 24px; height: 24px; }
.audience-card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-number { color: var(--muted-light); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.audience-card p { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--red); font-weight: 600; }
.card-link .icon { transition: transform .3s var(--ease); }
.audience-card:hover .card-link .icon { transform: translateX(5px); }

/* ==========================================================================
   L'IA en termes simples (section foncée)
   ========================================================================== */
.simple-ai { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.simple-ai::before { content: ""; position: absolute; width: 600px; height: 600px; left: -240px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .18), transparent 65%); }
.simple-ai h2 { color: #fff; }
.simple-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.simple-copy { min-width: 0; }
.simple-copy > p { margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 1.08rem; }
.mini-steps { display: grid; gap: 12px; margin-top: 30px; }
.mini-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .04); transition: background-color .3s, border-color .3s; }
.mini-steps li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.mini-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--red); font-family: var(--font-display); font-weight: 800; }
.mini-steps strong { display: block; font-weight: 600; }
.mini-steps small { display: block; color: rgba(255, 255, 255, .62); font-size: .9rem; }

.simple-visual { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.ring-1 { inset: 0; border-style: dashed; animation: spin 60s linear infinite; }
.ring-2 { inset: 16%; animation: spin 40s linear infinite reverse; }
.ring-2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.ring-3 { inset: 32%; border-color: rgba(255, 255, 255, .22); background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%); }
.core {
  position: absolute; inset: 38%;
  display: grid; place-items: center; border-radius: 28%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .03), 0 20px 50px rgba(0, 0, 0, .35);
  animation: breathe 5s ease-in-out infinite;
}
.core img { width: 58%; height: auto; }
.tag {
  position: absolute; padding: 8px 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: .88rem; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  animation: float 7s ease-in-out infinite;
}
.tag-1 { left: 4%; top: 18%; }
.tag-2 { right: 0; top: 40%; animation-delay: -2.5s; background: var(--red); color: #fff; }
.tag-3 { left: 14%; bottom: 8%; animation-delay: -5s; }

/* ==========================================================================
   Formations
   ========================================================================== */
.course-grid { display: grid; gap: 20px; }
.course-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-art { position: relative; height: 230px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.course-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background-size: 22px 22px; }
.art-index { position: absolute; left: 20px; top: 16px; font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .08em; }
.course-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.course-card:hover .course-photo { transform: scale(1.05); }
.art-photo::before { z-index: -1; background: linear-gradient(180deg, rgba(13, 25, 50, .55), transparent 45%) no-repeat; background-size: 100% 100%; }
.art-photo .art-index { color: #fff; }
.course-photo.is-intro { object-position: 50% 42%; }
.course-photo.is-prompt { object-position: 50% 0%; }


.course-content { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 26px; }
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .88rem; }
.duration { display: inline-flex; align-items: center; gap: 6px; }
.duration .icon { width: 16px; height: 16px; color: var(--muted-light); }
.level { padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 600; font-size: .8rem; }
.level.is-red { background: var(--red-50); color: var(--red-600); }
.course-content h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); }
.course-content > p { color: var(--muted); }
.course-content .check-list { margin-bottom: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.course-content .button { margin-top: auto; }
.button-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.button-outline:hover { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(22, 38, 74, .22); }
.heading-aside { padding-left: 18px; border-left: 3px solid var(--red); }
.course-note { margin-top: 24px; padding: 16px 20px; border: 1px dashed #d3d8e2; border-radius: var(--radius); color: var(--muted); text-align: center; font-size: .95rem; }
.course-note strong { color: var(--navy); }

/* ==========================================================================
   Courtiers immobiliers
   ========================================================================== */
.broker-section { position: relative; overflow: hidden; background: var(--surface); border-block: 1px solid var(--line); }
.broker-section::before { content: ""; position: absolute; width: 520px; height: 520px; left: -260px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .08), transparent 65%); pointer-events: none; }
.broker-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.broker-copy { min-width: 0; }
.broker-copy .section-heading { margin-bottom: 28px; }

.use-grid { display: grid; gap: 12px; }
.use-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.use-item:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.use-item .card-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; }
.use-item .card-icon .icon { width: 20px; height: 20px; }
.use-item strong { display: block; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.3; }
.use-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.broker-offer { display: grid; gap: 16px; margin-top: 24px; padding: 22px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.broker-offer .course-meta { color: rgba(255, 255, 255, .7); }
.broker-offer .duration .icon { color: rgba(255, 255, 255, .5); }
.broker-offer .level { background: var(--red); color: #fff; }
.broker-offer h3 { color: #fff; font-size: 1.3rem; }
.broker-offer .check-list { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.broker-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.broker-actions .button { flex: 1 1 auto; }
.broker-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.broker-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--red); }

.broker-visual { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 24px 18px 40px; }
.broker-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.broker-house { position: absolute; left: -6px; bottom: 0; width: 44%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 5px solid var(--surface); box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite -2s; }
.listing-card {
  position: absolute; right: -4px; bottom: 20%; width: min(250px, 66%);
  display: grid; gap: 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg); animation: float 6s ease-in-out infinite;
}
.listing-card > span { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.listing-card > span .icon { width: 14px; height: 14px; }
.listing-card p { color: var(--ink); font-size: .86rem; line-height: 1.5; }
.listing-card small { display: inline-flex; align-items: center; gap: 6px; color: #138a52; font-size: .78rem; font-weight: 600; }
.listing-card small .icon { width: 14px; height: 14px; }

/* ==========================================================================
   Méthode
   ========================================================================== */
.method-section { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.method-section::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .2), transparent 65%); pointer-events: none; }
.method-section h2 { color: #fff; }
.method-section .section-heading > p { color: rgba(255, 255, 255, .7); }

/* Téléphone : chronologie verticale */
.method-track { position: relative; display: grid; gap: 22px; max-width: 420px; margin-inline: auto; padding-left: 4px; }
.progress-line { position: absolute; left: 25px; top: 22px; bottom: 22px; width: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.progress-line span { position: absolute; inset: 0; background: var(--red); border-radius: 2px; transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.method-track.is-visible .progress-line span { transform: scaleY(1); }
.method-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: center; }
.method-step i {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(255, 255, 255, .25);
  font-style: normal; font-family: var(--font-display); font-weight: 800;
  transition: background-color .5s, border-color .5s, transform .5s var(--ease), box-shadow .5s;
}
.method-step strong { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.method-step small { color: rgba(255, 255, 255, .62); font-size: .92rem; }
.method-step.is-on i { background: var(--red); border-color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(227, 16, 30, .18); }

/* ==========================================================================
   PME
   ========================================================================== */
.pme-panel {
  position: relative; display: grid; gap: 40px; overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(20px, 3vw, 32px);
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
}
.pme-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.pme-copy { position: relative; min-width: 0; }
.pme-copy h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.pme-copy > p { margin-top: 16px; color: rgba(255, 255, 255, .72); }
.pme-copy .check-list { margin: 26px 0 32px; }
.pme-copy .button { white-space: normal; }

.pme-visual { position: relative; width: min(100%, 460px); margin-inline: auto; padding: 18px 10px; }
.pme-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 0 0 10px rgba(255, 255, 255, .04), 0 24px 60px rgba(0, 0, 0, .4); }
.pme-badge {
  position: absolute; right: -4px; bottom: -6px;
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px;
  background: var(--red); box-shadow: 0 0 0 8px rgba(227, 16, 30, .15), 0 16px 36px rgba(0, 0, 0, .35);
  animation: float 6s ease-in-out infinite -3s;
}
.pme-badge img { width: 58%; height: auto; }
.floating-note { position: absolute; padding: 7px 14px; border-radius: 999px; background: rgba(13, 25, 50, .72); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); animation: float 6s ease-in-out infinite; }
.note-one { left: -6px; top: 34%; }
.note-two { right: -6px; top: 8%; animation-delay: -2s; }
.note-three { left: 12%; bottom: 0; animation-delay: -4s; }

/* ==========================================================================
   Ressource gratuite
   ========================================================================== */
.resource-card { display: grid; overflow: hidden; }
.resource-cover-wrap { display: grid; place-items: center; padding: 36px 24px; background: linear-gradient(135deg, var(--tint), #e8ecf4); perspective: 900px; }
.resource-cover {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  width: min(220px, 70%); aspect-ratio: 3 / 4; padding: 22px;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff; box-shadow: -6px 0 0 rgba(0, 0, 0, .18) inset, 0 24px 50px rgba(22, 38, 74, .35);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .7s var(--ease);
}
.resource-card:hover .resource-cover { transform: rotateY(0) rotateX(0) translateY(-6px); }
.cover-badge { position: absolute; top: 14px; right: -10px; padding: 5px 12px; border-radius: 6px; background: var(--red); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(227, 16, 30, .4); }
.resource-cover small { color: rgba(255, 255, 255, .6); font-size: .8rem; line-height: 1.4; }
.resource-cover span { color: #ff6a74; font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.resource-cover strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.resource-cover img { width: 32px; height: auto; margin-top: auto; }
.resource-cover::after { content: ""; position: absolute; left: 22px; right: 22px; top: 62%; height: 3px; border-radius: 2px; background: var(--red); width: 40px; }
.resource-copy { min-width: 0; padding: 30px 26px; }
.resource-copy h3 { font-size: 1.45rem; }
.resource-copy > p { margin-top: 10px; color: var(--muted); }
.resource-copy .check-list { margin: 22px 0 28px; }
.resource-copy .button { align-self: flex-start; }

input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(22, 38, 74, .1); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, box-shadow .3s; }
.faq-list details[open] { border-color: #cfd5e1; box-shadow: var(--shadow-sm); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--tint); transition: background-color .3s, transform .4s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--navy); transition: transform .4s var(--ease), background-color .3s; }
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon { background: var(--red); transform: rotate(180deg); }
details[open] .faq-icon::before, details[open] .faq-icon::after { background: #fff; }
details[open] .faq-icon::after { transform: rotate(0); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 22px 22px; color: var(--muted); }

/* ==========================================================================
   Appel final + pied de page
   ========================================================================== */
.final-section { padding-top: 0; }
.final-cta {
  position: relative; display: grid; gap: 28px; overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--red); color: #fff;
}
.final-cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.final-cta::after { content: ""; position: absolute; width: 220px; height: 220px; right: 140px; bottom: -150px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.final-copy, .final-actions { position: relative; z-index: 1; min-width: 0; }
.final-cta h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.final-cta p { margin-top: 14px; color: rgba(255, 255, 255, .85); }
.final-cta .section-kicker.light { color: #fff; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final-actions .button-red { background: #fff; color: var(--red); box-shadow: 0 10px 26px rgba(0, 0, 0, .15); }
.final-actions .button-red:hover { background: var(--bg); }

.site-footer { padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--navy-900); color: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.footer-brand-col { grid-column: 1 / -1; }
.footer-brand { color: #fff; }
.footer-brand .brand-name strong { color: #ff4d58; }
.nowrap { white-space: nowrap; }
.footer-brand-col p { margin-top: 14px; max-width: 300px; font-size: .95rem; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col strong { margin-bottom: 4px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.footer-col a { width: fit-content; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .88rem; }

/* ==========================================================================
   Fenêtres de formulaire
   ========================================================================== */
.form-dialog {
  width: min(560px, 100% - 32px); max-height: min(92dvh, 900px);
  padding: 32px; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(13, 25, 50, .35);
  overflow-y: auto; overscroll-behavior: contain;
}
.form-dialog[open] { animation: dialog-in .45s var(--ease); }
.form-dialog.is-closing { animation: dialog-out .25s ease-in forwards; }
.form-dialog::backdrop { background: rgba(13, 25, 50, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.form-dialog[open]::backdrop { animation: fade-in .35s ease; }
.form-dialog.is-closing::backdrop { animation: fade-out .25s ease forwards; }
.dialog-close {
  position: sticky; top: 0; float: right; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; margin: -12px -12px 0 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--navy);
  transition: transform .3s var(--ease), background-color .2s;
}
.dialog-close:hover { transform: rotate(90deg); background: var(--tint); }
.dialog-intro h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); }
.dialog-intro p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.form-dialog form { display: grid; gap: 16px; margin-top: 24px; }
.form-dialog label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form-dialog label > span { color: var(--muted); font-weight: 400; font-size: .82rem; }
.form-grid { display: grid; gap: 16px; }
.form-summary { display: grid; gap: 2px; padding: 14px 16px; border-left: 3px solid var(--red); border-radius: 10px; background: var(--tint); }
.form-summary span { color: var(--muted); font-size: .8rem; }
.form-summary strong { font-family: var(--font-display); }
.form-dialog .checkbox { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
.form-dialog .checkbox > span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.form-dialog input, .form-dialog select, .form-dialog textarea { font-weight: 400; }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--red); }

/* ---------- Notification ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1000;
  width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 14px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: .95rem;
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(28, 191, 113, .5); } 70% { box-shadow: 0 0 0 8px rgba(28, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(28, 191, 113, 0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ==========================================================================
   TÉLÉPHONE ET PETITE TABLETTE (jusqu'à 899 px) — menu plein écran
   ========================================================================== */
@media (max-width: 899px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    height: 100vh; height: 100dvh; overflow-y: auto;
    background: var(--bg);
    visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .main-nav a:not(.button) {
    padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
    color: var(--navy); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
    opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s;
  }
  .main-nav a:not(.button)::after { display: none; }
  .main-nav a.is-active { color: var(--red); }
  .nav-mobile-cta { display: inline-flex; margin-top: 32px; min-height: 56px; opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: .05s; }
  .main-nav.open a:nth-child(2) { transition-delay: .1s; }
  .main-nav.open a:nth-child(3) { transition-delay: .15s; }
  .main-nav.open a:nth-child(4) { transition-delay: .2s; }
  .main-nav.open a:nth-child(5) { transition-delay: .25s; }
  .main-nav.open a:nth-child(6) { transition-delay: .3s; }
  .main-nav.open a:nth-child(7) { transition-delay: .35s; }
  .site-header:has(.main-nav.open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

  .simple-visual { width: min(100%, 340px); }
}

/* ==========================================================================
   TÉLÉPHONE (jusqu'à 599 px)
   ========================================================================== */
@media (max-width: 599px) {
  :root { --gutter: 18px; --header-h: 64px; }
  .brand-logo { height: 28px; }
  .hero { padding-top: 28px; }
  .hero-copy { text-align: left; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 8px 16px; font-size: .88rem; }
  .hero-demo { padding: 20px 10px; }
  .chat-body { min-height: 250px; padding: 18px 14px; }
  .message { max-width: 92%; font-size: .92rem; }
  .status { display: none; }
  .float-chip { width: 42px; height: 42px; border-radius: 13px; }
  .float-chip .icon { width: 19px; height: 19px; }
  .chip-mail { top: 96px; left: -4px; }
  .chip-calendar { right: -4px; bottom: 84px; }
  .chip-spark { right: 10px; }
  .audience-card { --pad: 22px; }
  .simple-visual { width: min(100%, 300px); }
  .tag { padding: 6px 12px; font-size: .8rem; }
  .course-art { height: 190px; }
  .course-meta { gap: 8px 10px; font-size: .82rem; }
  .course-content { padding: 22px; }
  .pme-visual { padding: 14px 6px; }
  .floating-note { font-size: .74rem; padding: 5px 10px; }
  .pme-copy .button, .final-actions .button { width: 100%; }
  .resource-copy { padding: 26px 22px; }
  .resource-cover { width: min(180px, 62%); }
  .faq-list summary { padding: 18px; font-size: 1rem; }
  .faq-body p { padding: 0 18px 18px; }

  /* Les panneaux en bas d'écran pour les formulaires */
  .form-dialog {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .form-dialog::before { content: ""; display: block; width: 44px; height: 5px; margin: -14px auto 18px; border-radius: 3px; background: var(--line); }
  .form-dialog[open] { animation: sheet-in .45s var(--ease); }
  .form-dialog.is-closing { animation: sheet-out .3s ease-in forwards; }
}

/* ==========================================================================
   GRAND TÉLÉPHONE ET PLUS (600 px et +)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid > :last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .final-actions .button { flex: 1 1 auto; }
}

/* ==========================================================================
   TABLETTE (768 px et +)
   ========================================================================== */
@media (min-width: 768px) {
  .heading-row { grid-template-columns: 1fr minmax(260px, 380px); align-items: end; gap: 40px; }
  .heading-row > p { margin: 0 0 8px; }
  .resource-card { grid-template-columns: minmax(240px, 2fr) 3fr; }
  .resource-cover-wrap { padding: 44px 32px; }
  .resource-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px; }

  /* Méthode : passage à l'horizontale */
  .method-track { grid-template-columns: repeat(5, 1fr); align-items: start; gap: 12px; max-width: none; padding: 0; }
  .progress-line { left: 10%; right: 10%; top: 26px; grid-row: 1; bottom: auto; width: auto; height: 2px; grid-column: 1 / -1; }
  .progress-line span { transform: scaleX(0); transform-origin: left; }
  .method-track.is-visible .progress-line span { transform: scaleX(1); }
  .method-step { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; row-gap: 6px; }
  .method-step i { grid-row: auto; width: 54px; height: 54px; margin-bottom: 10px; font-size: 1.1rem; }
  .method-step strong { font-size: 1.05rem; }
  .method-step small { font-size: .86rem; max-width: 160px; }

  .final-cta { grid-template-columns: 1fr auto; align-items: center; }
  .final-actions { flex-direction: column; }
}

/* ==========================================================================
   ORDINATEUR (900 px et +)
   ========================================================================== */
@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .site-header.is-scrolled .nav-shell { height: 64px; }
  .brand-logo { height: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero-demo { margin-right: 0; }
  .simple-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .pme-panel { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer-brand-col { grid-column: auto; }
}

@media (min-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .audience-grid > :last-child { grid-column: auto; }
  .audience-card { --pad: 30px; }
  .course-grid { gap: 28px; }
  .course-art { height: 260px; }
  .course-content { padding: 30px 32px 32px; }
}

/* Écrans larges et peu hauts (portable) : hero qui tient dans l'écran */
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-block: 40px 72px; }
  .hero h1 { font-size: clamp(2.4rem, 1rem + 3.6vw, 3.9rem); }
  .chat-body { min-height: 240px; }
}

/* ==========================================================================
   Accessibilité : animations réduites
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .intro, .hero h1 .line, .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .reveal-img, .about-portrait { clip-path: none !important; }
  .js .reveal-img img, .js .reveal li, .portrait-photo { opacity: 1 !important; transform: none !important; }
  .js .reveal .section-kicker::before { width: 22px !important; }
  .progress-line span { transform: none !important; }
}

/* ==========================================================================
   Pages légales
   ========================================================================== */
.checkbox a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-col a[aria-current="page"] { color: #fff; }

.legal-hero { padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #f4f2ec); }
.legal-hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.legal-back:hover { color: var(--red); }
.legal-hero .section-kicker { display: flex; }
.legal-lead { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.legal-date { margin-top: 20px; color: var(--muted-light); font-size: .88rem; font-weight: 500; }

.legal-layout { display: grid; gap: 28px; padding-block: 36px var(--section-y); }
.legal-toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-toc summary { padding: 14px 18px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.legal-toc ol { display: grid; gap: 2px; padding: 0 10px 12px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: .9rem; line-height: 1.4; transition: background-color .2s, color .2s; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted-light); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-toc a:hover, .legal-toc a.is-active { background: var(--tint); color: var(--navy); }
.legal-toc a.is-active::before { color: var(--red); }

.legal-body { min-width: 0; max-width: 760px; }
.legal-body section { padding-block: 8px 34px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body section + section { padding-top: 34px; border-top: 1px solid var(--line); }
.legal-body h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 700; }
.legal-body h2 span { color: var(--red); font-size: .8em; font-variant-numeric: tabular-nums; }
.legal-body p, .legal-body li { color: #3d475b; font-size: 1.02rem; line-height: 1.75; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul, .legal-body .legal-card + p { margin-top: 14px; }
.legal-body ul { display: grid; gap: 8px; }
.legal-body li { position: relative; padding-left: 22px; }
.legal-body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.legal-body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(227, 16, 30, .5); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--red); }
.legal-card { display: grid; gap: 4px; margin-top: 14px; padding: 18px 20px; border-left: 3px solid var(--red); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-card span { color: var(--muted); font-size: .95rem; }
mark.todo { padding: 1px 6px; border-radius: 5px; background: #fff3c4; color: #7a5b00; font-weight: 600; font-size: .92em; }

@media (min-width: 900px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .legal-toc summary { pointer-events: none; list-style: none; }
  .legal-toc summary::-webkit-details-marker { display: none; }
}

/* ==========================================================================
   Page « Le créateur »
   ========================================================================== */
.about-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #f4f2ec); }
.about-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .1), transparent 65%); pointer-events: none; }
.about-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.about-copy { min-width: 0; }
.about-copy .section-kicker { display: flex; }
.about-copy h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.about-lead { max-width: 580px; margin-top: 20px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.about-facts { display: grid; gap: 10px; margin-top: 28px; }
.about-facts li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.about-facts .card-icon { width: 38px; height: 38px; border-radius: 11px; }
.about-facts .card-icon .icon { width: 18px; height: 18px; }

.about-portrait { position: relative; width: min(100%, 380px); margin-inline: auto; padding: 16px; }
.portrait-frame {
  position: relative; display: grid; place-items: center; align-content: center; gap: 16px;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  box-shadow: var(--shadow-lg); color: rgba(255, 255, 255, .7); text-align: center;
}
.portrait-frame > img:not(.portrait-photo) { width: 34%; height: auto; opacity: .9; }
.portrait-frame .portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-frame small { max-width: 80%; font-size: .85rem; }
.about-portrait::before { content: ""; position: absolute; inset: 0 32px 32px 0; border: 2px solid var(--red); border-radius: 32px; transform: translate(-6px, -6px); z-index: -1; }
.portrait-tag { position: absolute; right: -2px; bottom: 34px; padding: 8px 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: .85rem; font-weight: 600; box-shadow: 0 12px 28px rgba(227, 16, 30, .35); animation: float 6s ease-in-out infinite; }

.story-grid { display: grid; gap: 28px; }
.story-body { display: grid; gap: 16px; max-width: 680px; }
.story-body p { color: #3d475b; font-size: 1.06rem; line-height: 1.75; }
.about-quote { margin: 12px 0 0; padding: 24px 26px; border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); box-shadow: var(--shadow-sm); }
.about-quote p { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.35; color: var(--ink); }
.about-quote footer { margin-top: 10px; color: var(--muted); font-size: .92rem; }

.values-section { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.values-section::before { content: ""; position: absolute; width: 600px; height: 600px; left: -240px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .18), transparent 65%); }
.values-section h2, .values-section h3 { color: #fff; }
.value-grid { position: relative; display: grid; gap: 14px; }
.value-card { display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); transition: background-color .3s, border-color .3s; }
.value-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }
.value-card .card-icon { background: rgba(255, 255, 255, .08); color: #fff; }
.value-card .card-icon.is-red { background: var(--red); color: #fff; }
.value-card p { color: rgba(255, 255, 255, .7); }

.timeline { position: relative; display: grid; gap: 18px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 40px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--red); }
.timeline strong { display: block; color: var(--red); font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; }
.timeline h3 { margin-top: 2px; }
.timeline p { margin-top: 4px; color: var(--muted); }

/* Notre approche : ce que les formations sont, et ne sont pas */
.promise-grid { display: grid; gap: 16px; }
.promise-card { display: grid; align-content: start; gap: 16px; padding: 26px; }
.promise-card h3 { font-size: 1.2rem; }
.promise-card.is-trainers { border-radius: var(--radius-lg); background: var(--navy); color: rgba(255, 255, 255, .78); }
.promise-card.is-trainers h3 { color: #fff; }
.promise-card.is-trainers .card-link { color: #fff; }
.cross-list { display: grid; gap: 10px; }
.cross-list li { position: relative; padding-left: 30px; font-size: .96rem; color: var(--muted); }
.cross-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235a6478' stroke-width='3' stroke-linecap='round' d='m7.5 7.5 9 9m0-9-9 9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Page créateur : photo terrain et formateurs */
.story-photo { overflow: hidden; margin: 8px 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: auto; }
.story-photo figcaption { padding: 12px 18px; background: var(--surface); color: var(--muted); font-size: .88rem; }
.trainer-grid { display: grid; gap: 14px; margin-top: 8px; }
.trainer-card { display: grid; gap: 10px; padding: 22px; }
.trainer-card h3 { font-size: 1.08rem; }
.trainer-card p { color: var(--muted); font-size: .96rem; }

/* Animations : page fondateur et cartes d'approche */
.about-portrait { animation: portrait-in 1.2s var(--ease) .25s both; }
.about-portrait::before { animation: frame-in 1.1s var(--ease) .7s both; }
.portrait-photo { transition: transform 1.2s var(--ease); }
.about-portrait:hover .portrait-photo { transform: scale(1.05); }
.portrait-tag { animation: tag-pop .7s var(--ease) 1.1s both, float 6s ease-in-out 1.8s infinite; }
.about-facts li .card-icon { transition: transform .4s var(--ease); }
.about-facts li:hover .card-icon { transform: rotate(-8deg) scale(1.1); }

.story-photo img { transition: transform 1.2s var(--ease); }
.story-photo:hover img { transform: scale(1.04); }

.promise-card, .trainer-card { position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.promise-card::after, .trainer-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.promise-card:hover, .trainer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.promise-card:hover::after, .trainer-card:hover::after { transform: scaleX(1); }
.promise-card:hover .card-icon, .trainer-card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }
.promise-card.is-trainers::before { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 16, 30, .35), transparent 65%); transition: transform .8s var(--ease); pointer-events: none; }
.promise-card.is-trainers:hover::before { transform: scale(1.25); }
.promise-card.is-trainers .card-link:hover .icon { transform: translateX(5px); }

.value-card { transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.value-card:hover { transform: translateY(-6px); }
.value-card .card-icon { transition: transform .4s var(--ease); }
.value-card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

/* Ligne du temps : le trait se trace, puis chaque étape s'allume */
.js .timeline.reveal::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .2s; }
.js .timeline.reveal.is-visible::before { transform: scaleY(1); }
.js .timeline.reveal li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .timeline.reveal li::before { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .timeline.reveal.is-visible li, .js .timeline.reveal.is-visible li::before { opacity: 1; transform: none; }
.js .timeline.reveal.is-visible li:nth-child(1), .js .timeline.reveal.is-visible li:nth-child(1)::before { transition-delay: .3s; }
.js .timeline.reveal.is-visible li:nth-child(2), .js .timeline.reveal.is-visible li:nth-child(2)::before { transition-delay: .7s; }
.js .timeline.reveal.is-visible li:nth-child(3), .js .timeline.reveal.is-visible li:nth-child(3)::before { transition-delay: 1.1s; }

@keyframes portrait-in { from { opacity: 0; clip-path: inset(100% 0 0 0 round 28px); transform: translateY(30px); } to { opacity: 1; clip-path: inset(-40px -40px -40px -40px); transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translate(10px, 10px); } to { opacity: 1; transform: translate(-6px, -6px); } }
@keyframes tag-pop { from { opacity: 0; transform: scale(.6) translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-grid { grid-template-columns: 1fr 1fr; }
  .promise-card.is-trainers { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
  .trainer-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-card.is-trainers { grid-column: auto; }
}

@media (min-width: 900px) {
  .broker-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; }
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
  .story-grid { grid-template-columns: minmax(220px, .8fr) 2fr; gap: 64px; align-items: start; }
  .story-grid > .section-heading { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Ordinateur étroit : on resserre le menu pour qu'il tienne sur une ligne */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-cta { display: none; }
  .main-nav a:not(.button) { padding-inline: 11px; }
  .main-nav a:not(.button)::after { left: 11px; right: 11px; }
}

@media (max-width: 599px) {
  .broker-offer { padding: 20px 18px; }
  .broker-actions .button { width: 100%; }
  .listing-card { bottom: 16%; }
  .portrait-tag { right: 4px; }
}

/* ==========================================================================
   Blogue : liste des articles et page d'article
   ========================================================================== */
.post-list { display: grid; gap: 24px; padding-block: clamp(36px, 5vw, 64px) var(--section-y); }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-content { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 24px; }
.post-content h2, .post-content h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.post-content > p { color: var(--muted); }
.post-content .card-link { padding-top: 6px; }
.post-card:hover .card-link .icon { transform: translateX(5px); }
.post-link::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .86rem; }
.post-meta .icon { width: 15px; height: 15px; }
.post-meta span:not(.level) { display: inline-flex; align-items: center; gap: 6px; }

.article-hero { padding-block: clamp(36px, 6vw, 72px) 0; background: linear-gradient(180deg, var(--bg), #f4f2ec); }
.article-head { max-width: 780px; }
.article-head .section-kicker { display: flex; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.article-lead { margin-top: 18px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.article-head .post-meta { margin-top: 22px; }
.article-cover { max-width: 980px; margin: clamp(32px, 5vw, 48px) auto 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(clamp(24px, 4vw, 48px)); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body { max-width: 720px; margin-inline: auto; padding-block: clamp(64px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { margin-top: 44px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 800; }
.article-body h3 { margin-top: 28px; }
.article-body p, .article-body li { color: #3d475b; font-size: 1.06rem; line-height: 1.78; }
.article-body ul, .article-body ol { display: grid; gap: 10px; }
.article-body ul li { position: relative; padding-left: 24px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: .74em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.article-body ol { counter-reset: step; }
.article-body ol li { position: relative; padding-left: 44px; counter-increment: step; }
.article-body ol li::before { content: counter(step); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--red-50); color: var(--red); font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.article-body strong { color: var(--ink); }
.article-body a:not(.button) { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(227, 16, 30, .5); text-underline-offset: 3px; }
.article-summary { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.article-summary > strong { display: block; margin-bottom: 10px; font-family: var(--font-display); }
.article-summary ul { gap: 6px; }
.prompt-box { padding: 20px 22px; border-radius: var(--radius); background: var(--navy-900); color: rgba(255, 255, 255, .88); }
.prompt-box span { display: block; margin-bottom: 8px; color: #ff6a74; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.prompt-box p { color: inherit; font-size: 1rem; line-height: 1.65; }
.article-body .about-quote { margin-top: 28px; }
.article-cta { display: grid; gap: 16px; margin-top: 44px; padding: 28px; border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; background: var(--red-50); }
.article-cta h2 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.article-cta p { color: #3d475b; }
.article-cta .button { width: fit-content; }

.related-section { padding-block: 0 var(--section-y); }
.related-section .post-list { padding-block: 0; }

@media (min-width: 700px) {
  .post-list { grid-template-columns: 1fr 1fr; }
  .post-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .post-card.is-featured .post-thumb { aspect-ratio: auto; min-height: 340px; }
  .post-card.is-featured .post-content { justify-content: center; padding: clamp(28px, 4vw, 48px); }
  .post-card.is-featured h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; }
}
@media (min-width: 1024px) {
  .post-list { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-thumb img { transition: none !important; }
}
.article-reassure { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: var(--radius); background: var(--tint); }
.article-body .article-reassure span { color: var(--ink); font-size: 1rem; line-height: 1.6; }
.article-reassure .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--red); }

/* ---------- Blogue : filtres par catégorie ---------- */
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: clamp(28px, 4vw, 44px); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.filter-chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .78rem; text-align: center; transition: background-color .2s, color .2s; }
.filter-chip:hover { border-color: var(--navy); }
.filter-chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.filter-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .16); color: #fff; }
.blog-count { color: var(--muted); font-size: .9rem; }
.blog-tools + .post-list { padding-top: 24px; }
.post-card[hidden] { display: none; }
.post-list .post-meta time { font-variant-numeric: tabular-nums; }

/* ---------- Article : sommaire, à retenir, progression ---------- */
.article-layout { display: grid; gap: 28px; padding-block: clamp(64px, 9vw, 104px) clamp(40px, 6vw, 72px); }
.article-layout .article-body { width: 100%; padding-block: 0; }
.article-toc { width: 100%; max-width: 720px; margin-inline: auto; }
.article-body h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.article-takeaway { margin-top: 44px !important; padding: 24px 26px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .86); }
.article-takeaway > strong { display: block; margin-bottom: 12px; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.article-body .article-takeaway li { color: rgba(255, 255, 255, .86); font-size: 1rem; }
.article-body .article-takeaway li::before { background: #ff6a74; }
.article-cover { position: relative; }
.article-cover figcaption { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 25, 50, .62); color: rgba(255, 255, 255, .88); font-size: .74rem; backdrop-filter: blur(6px); }
.article-cover figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.read-progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.post-list.is-related .post-content { padding: 20px 22px; }

@media (min-width: 1100px) {
  .article-layout { grid-template-columns: 230px minmax(0, 720px); justify-content: center; gap: 56px; }
  .article-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .article-toc details { border: 0; background: none; }
  .article-toc summary { padding: 0 8px 10px; color: var(--muted-light); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; list-style: none; pointer-events: none; }
  .article-toc summary::-webkit-details-marker { display: none; }
  .article-toc ol { padding: 0; }
}
@media (min-width: 1024px) {
  .post-list.is-related { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Témoins : bannière de consentement ---------- */
.footer-link { width: fit-content; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; transition: color .2s; }
.footer-link:hover { color: #fff; }
.cookie-banner { position: fixed; inset: auto 12px 12px; z-index: 90; display: grid; gap: 16px; max-width: 440px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner h2 { font-size: 1.08rem; font-weight: 700; }
.cookie-banner p { margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.cookie-banner p a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(227, 16, 30, .5); text-underline-offset: 3px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .button { min-height: 46px; padding: 0 16px; }
@media (min-width: 600px) {
  .cookie-banner { inset: auto auto 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-summary select { margin-top: 6px; }
