/* ==========================================================================
   Design system néo-brutaliste — valeurs relevées sur mivtsaim.com/l'incubateur
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
}

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #0a0e1a;
  --text: #2e3547;
  --green: #5cc83a;
  --green-dark: #2f7d1b;
  --green-soft: #e6f4d9;
  --danger: #c62828;

  --bw: 4px;
  --bw-sm: 3px;
  --shadow-sm: 4px 4px 0 var(--green);
  --shadow-md: 8px 8px 0 var(--green);
  --shadow-lg: 14px 14px 0 var(--green);

  --font-title: "Bricolage Grotesque", "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section: 96px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.7 var(--font-text);
  overflow-x: hidden;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 800;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 700; }

mark {
  background: var(--green);
  color: var(--ink);
  padding: 0 .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.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;
}

/* ---------- Mise en page ---------- */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.section { padding: var(--section) 0; }
.section--white { background: var(--surface); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section--ink { background: var(--ink); color: #e9e7e0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding: 64px 0; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head p { font-size: 1.25rem; color: var(--text); margin: 0; }
.section--ink .section-head p { color: #d7d5ce; }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: 1.0625rem;
  color: var(--green-dark); margin-bottom: 12px;
}
.section--ink .eyebrow { color: var(--green); }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

.center { text-align: center; }
.stack > * + * { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px;
  background: var(--green); color: var(--ink);
  font: 700 1.125rem/1.2 var(--font-text); text-decoration: none; text-align: center;
  border: var(--bw-sm) solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
  cursor: pointer;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn--dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn--dark:hover { box-shadow: none; transform: translateY(-1px); }
.btn--dark:active { transform: translateY(1px); }

.btn--white { background: #fff; }
.btn--block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 600; text-decoration: none; min-height: 44px;
}
.btn-link:hover { text-decoration: underline; }
.btn-link svg { width: 22px; height: 22px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.center .btn-row, .btn-row--center { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 1rem;
}
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* ---------- Cartes ---------- */

.card {
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin: 0 8px 8px 0;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
a.card, .card--link { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--green); }
a.card:active { transform: translate(8px, 8px); box-shadow: 0 0 0 var(--green); }

.card h3 { margin-bottom: 8px; }
.card .role { color: var(--green-dark); font-weight: 700; margin-bottom: 12px; display: block; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); border: var(--bw-sm) solid var(--ink);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; }

.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--ink); }
.card__more::after { content: "→"; transition: transform .12s ease-out; }
a.card:hover .card__more::after { transform: translateX(4px); }

.card--ink { background: var(--ink); color: #e9e7e0; }
.card--ink h3 { color: #fff; }

.card--feature { border-width: var(--bw); box-shadow: var(--shadow-lg); margin: 0 14px 14px 0; }

.num {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 800 1.375rem/1 var(--font-title); margin-bottom: 20px;
}

/* Profil équipe */
.profile { display: grid; gap: 24px; align-content: start; }
@media (min-width: 768px) { .profile { grid-template-columns: 180px 1fr; align-items: start; } }
.profile__photo { border: var(--bw-sm) solid var(--ink); aspect-ratio: 4 / 5; width: 100%; max-width: 240px; object-fit: cover; background: var(--green-soft); }

/* ---------- Pastilles ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border: var(--bw-sm) solid var(--ink); border-radius: 999px;
  padding: 8px 24px 8px 8px; font-weight: 700; color: var(--ink); margin: 0;
}
.pill__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; flex: none;
}
.pill__icon svg { width: 22px; height: 22px; }

/* ---------- Héros ---------- */

.hero { padding: 56px 0 88px; }
.hero h1 { margin-bottom: 24px; }
.hero__lead { font-size: 1.25rem; max-width: 640px; margin-bottom: 32px; }
.hero__note { font-size: 1rem; margin-top: 20px; color: var(--text); }
.hero--center { text-align: center; }
.hero--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero--center .btn-row { justify-content: center; }
.hero .badge { margin-bottom: 24px; }

.hero-panel {
  background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg);
  padding: 32px; margin: 0 14px 14px 0;
}
.hero-panel h2 { font-size: 1.5rem; margin-bottom: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 40px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 2px solid var(--ink);
}
.section--ink .checklist li::before { border-color: var(--green); }

/* Page header (pages intérieures) */
.page-hero { padding: 64px 0 72px; }
.page-hero .hero__lead { margin-bottom: 0; }
.breadcrumb { font-size: .9375rem; margin-bottom: 24px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--text); }
.breadcrumb a { color: var(--text); }

/* ---------- Navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: var(--bw) solid var(--ink);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.5rem/1 var(--font-title); letter-spacing: -0.02em; }
.logo__img { height: 34px; width: auto; display: block; }
.site-footer .logo__img { height: 30px; }
@media (max-width: 767px) { .logo__img { height: 28px; } }
.logo small { display: block; font: 600 .8125rem/1.2 var(--font-text); color: var(--green-dark); letter-spacing: 0; margin-top: 2px; }

.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; }
.nav__links a { white-space: nowrap; font-size: 1rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: none; color: var(--ink); border-radius: 999px; }
.nav__links a:hover { background: #fff; }
.nav__links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav__cta { display: none; }
.nav .btn { min-height: 48px; padding: 10px 22px; font-size: 1rem; }

.nav__toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: #fff; border: var(--bw-sm) solid var(--ink); border-radius: 50%; cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 24px; height: 24px; }

@media (min-width: 1240px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 24px; overflow-y: auto; display: none;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 32px; }
.mobile-menu li { border-bottom: var(--bw-sm) solid var(--ink); margin: 0; }
.mobile-menu li a { display: block; padding: 16px 0; font: 800 1.5rem/1.2 var(--font-title); text-decoration: none; color: var(--ink); }
body.menu-open { overflow: hidden; }

/* ---------- Bandeau rentrée / info ---------- */

.topbar { background: var(--ink); color: #fff; font-size: .9375rem; text-align: center; padding: 10px var(--gutter); }
.topbar a { color: var(--green); font-weight: 700; }

.alert {
  background: var(--green-soft); border: var(--bw-sm) solid var(--ink);
  padding: 20px 24px; margin: 24px 0;
}
.alert p:last-child { margin-bottom: 0; }
.alert strong:first-child { display: block; margin-bottom: 4px; }

/* ---------- Tableau ---------- */

.table-frame {
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-md);
  background: #fff; overflow-x: auto; margin: 0 8px 32px 0;
}
.table-frame table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table-frame th, .table-frame td { text-align: left; padding: 16px 20px; vertical-align: top; }
.table-frame thead th { background: var(--ink); color: #fff; font-weight: 700; }
.table-frame tbody tr + tr td, .table-frame tbody tr + tr th { border-top: 2px solid var(--ink); }
.table-frame tbody th { color: var(--ink); font-weight: 700; }
.table-frame td ul { margin: 0; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.faq details {
  background: #fff; border: var(--bw-sm) solid var(--ink); box-shadow: var(--shadow-sm);
  margin: 0 8px 4px 0; transition: box-shadow .2s ease-out;
}
.faq details[open] { box-shadow: var(--shadow-md); border-width: var(--bw); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 24px; font: 700 1.1875rem/1.4 var(--font-text); color: var(--ink); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0e1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 2px solid var(--ink); transition: transform .2s ease-out;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq__body { padding: 0 24px 24px; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Formulaire ---------- */

.form { display: grid; gap: 24px; }
.form__row { display: grid; gap: 24px; }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-size: .9375rem; margin: 6px 0 0; }
.field input, .field textarea, .field select {
  width: 100%; background: #fff; color: var(--ink);
  border: var(--bw-sm) solid var(--ink); border-radius: 0;
  padding: 14px 16px; font: inherit; font-size: 1.0625rem;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--green-dark); outline-offset: 2px; box-shadow: none; transform: translate(2px, 2px);
}
.field[data-error] input, .field[data-error] textarea, .field[data-error] select { border-color: var(--danger); }
.field__error { color: var(--danger); font-weight: 600; font-size: .9375rem; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check input { width: 24px; height: 24px; flex: none; margin-top: 3px; accent-color: var(--green-dark); }

/* ---------- Calendrier cal.com ---------- */

.cal-frame {
  background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg);
  margin: 0 14px 14px 0; min-height: 640px; overflow: auto; position: relative;
}
.cal-fallback { padding: 24px; margin: 0; text-align: center; }
.cal-frame.is-loaded .cal-fallback { position: absolute; bottom: 0; left: 0; right: 0; font-size: .9375rem; padding: 12px; background: #fff; }
@media (max-width: 767px) { .cal-frame { margin: 0 9px 9px 0; } }

/* ---------- Article / prose ---------- */

.prose { background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-md); padding: 48px; margin: 0 8px 8px 0; }
.prose h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 1.375rem; }
.prose a { color: var(--green-dark); font-weight: 600; }
.prose blockquote { margin: 24px 0; padding: 16px 24px; border-left: 8px solid var(--green); background: var(--green-soft); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-frame { box-shadow: var(--shadow-sm); margin-right: 4px; }
.prose .table-frame table { min-width: 520px; font-size: 1rem; }
.prose .sources { font-size: 1rem; }
.prose .sources li { margin-bottom: 10px; word-break: break-word; }
.prose .callout { background: var(--ink); color: #e9e7e0; padding: 24px 28px; margin: 32px 0; }
.prose .callout strong { color: #fff; }
.prose .callout a { color: var(--green); }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 1rem; font-weight: 600; margin-top: 8px; }
.tag { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: .875rem; font-weight: 700; color: var(--ink); background: var(--green-soft); }

.post-card { display: flex; flex-direction: column; height: calc(100% - 8px); }
.post-card h3 { font-size: 1.375rem; }
.post-card .tag { align-self: flex-start; margin-bottom: 16px; }
.post-card p { flex: 1; }

/* ---------- Statistiques ---------- */

.stat { text-align: left; }
.stat__value { display: block; font: 800 clamp(2.5rem, 5vw, 3.5rem)/1 var(--font-title); color: var(--ink); margin-bottom: 12px; letter-spacing: -0.03em; }
.stat__value mark { padding: 0 .12em; }
.stat__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.stat__src { font-size: .875rem; }
.stat__src a { color: var(--green-dark); }

/* ---------- CTA bandeau ---------- */

.cta-band {
  background: var(--green); border: var(--bw) solid var(--ink); box-shadow: 14px 14px 0 var(--ink);
  padding: 56px 40px; text-align: center; margin: 0 14px 14px 0;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--ink); font-size: 1.25rem; max-width: 720px; margin: 0 auto 32px; }
.cta-band .btn { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 #fff; }
.cta-band .btn:hover { box-shadow: 2px 2px 0 #fff; }
.cta-band .btn--white { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cta-band .btn--white:hover { box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink); color: #e9e7e0; padding: 80px 0 32px; font-size: 1rem; }
.site-footer a { color: #f6f3ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1.125rem; font-family: var(--font-text); font-weight: 700; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo small { color: var(--green); }

.qualiopi-box {
  border: var(--bw-sm) solid var(--green); padding: 20px; margin-top: 8px; background: #11162a;
}
.qualiopi-box strong { color: #fff; display: block; margin-bottom: 6px; }
.qualiopi-box p { font-size: .9375rem; margin-bottom: 12px; }
.qualiopi-box a.btn { font-size: 1rem; min-height: 46px; padding: 10px 20px; box-shadow: 4px 4px 0 #fff; text-decoration: none; color: var(--ink); }

.footer-legal { border-top: 2px solid #2b3047; margin-top: 56px; padding-top: 24px; font-size: .875rem; color: #c9c7c0; }
.footer-legal p { margin-bottom: 8px; }

/* ---------- Apparition au scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .35s ease-out; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 48px; --section: 104px; }
}
@media (max-width: 767px) {
  :root {
    --bw: 3px;
    --shadow-md: 6px 6px 0 var(--green);
    --shadow-lg: 9px 9px 0 var(--green);
    --section: 72px;
  }
  .card { padding: 24px 20px; margin: 0 6px 6px 0; }
  .card--feature, .hero-panel { margin: 0 9px 9px 0; }
  .hero-panel { padding: 24px 20px; }
  .prose { padding: 28px 20px; margin: 0 6px 6px 0; }
  .cta-band { padding: 40px 20px; box-shadow: 9px 9px 0 var(--ink); margin: 0 9px 9px 0; }
  .pills { flex-direction: column; align-items: stretch; }
  .hero { padding: 48px 0 72px; }
  .btn-row .btn { width: 100%; }
  .table-frame { margin-right: 6px; }
}

/* ==========================================================================
   Blocs marketing et animations (une seule fois, jamais en boucle)
   ========================================================================== */

.section--green { background: var(--green); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section--green .eyebrow, .section--green p, .section--green .section-head p { color: var(--ink); }
.section--green mark { background: #fff; }
.section--soft { background: var(--green-soft); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section + .section--soft, .section--white + .section--green { border-top: 0; }

/* Surlignage qui se « dessine » à l'apparition */
.js-ready h1 mark, .js-ready h2 mark {
  background: linear-gradient(var(--green), var(--green)) no-repeat left center / 0% 100%;
  transition: background-size .6s cubic-bezier(.2,.8,.2,1) .15s;
}
.js-ready .section--green h2 mark { background-image: linear-gradient(#fff, #fff); }
.js-ready h1 mark.is-drawn, .js-ready h2 mark.is-drawn { background-size: 100% 100%; }

/* Héros enrichi */
.hero { position: relative; overflow: hidden; }
.hero__visual { position: relative; padding: 0 14px 14px 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; font-weight: 600; font-size: 1rem; color: var(--ink); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero__trust svg { width: 20px; height: 20px; color: var(--green-dark); }

.chat {
  background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.chat__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: var(--bw-sm) solid var(--ink); background: var(--bg); font-weight: 700; color: var(--ink); font-size: .9375rem; }
.chat__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.chat__dot:first-child { background: var(--green); }
.chat__body { padding: 20px; display: grid; gap: 14px; min-height: 330px; align-content: start; }
.bubble { max-width: 88%; padding: 12px 16px; border: var(--bw-sm) solid var(--ink); font-size: 1rem; line-height: 1.5; color: var(--ink); }
.bubble--user { justify-self: end; background: var(--green-soft); }
.bubble--ai { justify-self: start; background: #fff; box-shadow: 4px 4px 0 var(--green); }
.bubble__label { display: block; font-size: .8125rem; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.bubble ul { margin: 6px 0 0; padding-left: 1.1em; }
.bubble li { margin: 0 0 2px; }
.js-ready .chat .bubble { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s ease-out, transform .35s ease-out; }
.js-ready .chat.is-visible .bubble { opacity: 1; transform: none; }
.js-ready .chat.is-visible .bubble:nth-child(2) { transition-delay: .7s; }
.js-ready .chat.is-visible .bubble:nth-child(3) { transition-delay: 1.5s; }
.typing { display: inline-flex; gap: 4px; }

.sticker {
  position: absolute; z-index: 2; background: var(--ink); color: #fff;
  border: var(--bw-sm) solid var(--ink); padding: 10px 16px; font: 800 1rem/1.2 var(--font-title);
  box-shadow: 4px 4px 0 var(--green); transform: rotate(-4deg);
}
.sticker strong { color: var(--green); font-size: 1.5rem; display: block; }
.sticker--green { background: var(--green); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(3deg); }
.sticker--green strong { color: var(--ink); }
.sticker--tl { top: -22px; left: -18px; }
.sticker--br { bottom: -6px; right: -4px; }
.js-ready .sticker { opacity: 0; transform: scale(.6) rotate(-12deg); transition: opacity .3s ease-out 2s, transform .4s cubic-bezier(.3,1.6,.5,1) 2s; }
.js-ready .is-visible .sticker { opacity: 1; transform: rotate(-4deg); }
.js-ready .is-visible .sticker--green { transform: rotate(3deg); transition-delay: 2.3s; }
.sticker small { display: block; font: 500 .75rem/1.3 var(--font-text); margin-top: 4px; max-width: 190px; }

/* Bande de chiffres */
.kpis { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: var(--bw) solid var(--ink); padding: 24px; box-shadow: 6px 6px 0 var(--ink); margin: 0 6px 6px 0; }
.kpi__value { display: block; font: 800 clamp(2.5rem, 5vw, 3.25rem)/1 var(--font-title); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 10px; }
.kpi__label { display: block; font-weight: 600; color: var(--ink); line-height: 1.45; font-size: 1rem; }
.kpi__src { display: block; font-size: .8125rem; margin-top: 10px; color: var(--text); }
.kpi__src a { color: var(--green-dark); }

/* Problème / solution */
.pain { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.pain li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: var(--bw-sm) solid var(--ink); padding: 18px 20px; margin: 0; }
.pain__x { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pain strong { display: block; }

.compare { display: grid; gap: 32px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border: var(--bw) solid var(--ink); padding: 32px; margin: 0 8px 8px 0; }
.compare__col--before { background: #fff; box-shadow: 8px 8px 0 var(--ink); }
.compare__col--after { background: var(--ink); color: #e9e7e0; box-shadow: var(--shadow-md); }
.compare__col--after h3 { color: #fff; }
.compare__col ul { list-style: none; padding: 0; margin: 0; }
.compare__col li { padding: 12px 0; border-top: 2px solid currentColor; margin: 0; display: flex; gap: 12px; }
.compare__col li:first-child { border-top: 0; }
.compare__tag { display: inline-block; font-weight: 800; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; border: var(--bw-sm) solid var(--ink); }
.compare__col--before .compare__tag { background: var(--bg); }
.compare__col--after .compare__tag { background: var(--green); color: var(--ink); border-color: var(--green); }

/* Onglets cas d'usage */
.tabs__list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.tabs__btn {
  font: 700 1rem/1 var(--font-text); color: var(--ink); background: #fff; cursor: pointer;
  border: var(--bw-sm) solid var(--ink); border-radius: 999px; padding: 12px 20px; min-height: 48px;
  transition: transform .12s ease-out, box-shadow .12s ease-out, background .12s;
}
.tabs__btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--green); }
.tabs__panel { animation: none; }
.tabs__panel[hidden] { display: none; }
.js-ready .tabs__panel.is-in { animation: tab-in .3s ease-out; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.usecase { display: grid; gap: 24px; }
@media (min-width: 768px) { .usecase { grid-template-columns: repeat(3, 1fr); } }
.usecase .card { height: calc(100% - 8px); }
.usecase__time { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--green-dark); font-size: .9375rem; }

/* Livrables */
.deliverables { display: grid; gap: 20px; }
@media (min-width: 640px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverable { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: var(--bw-sm) solid var(--ink); padding: 20px; box-shadow: var(--shadow-sm); margin: 0 4px 4px 0; transition: transform .12s ease-out, box-shadow .12s ease-out; }
.deliverable:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--green); }
.deliverable .card__icon { width: 52px; height: 52px; margin: 0; flex: none; }
.deliverable .card__icon svg { width: 24px; height: 24px; }
.deliverable h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.deliverable p { margin: 0; font-size: 1rem; line-height: 1.55; }

/* Frise d'étapes */
.timeline { display: grid; gap: 24px; counter-reset: step; position: relative; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: var(--bw); background: var(--ink); z-index: 0; }
}
.timeline .card { position: relative; z-index: 1; }
.timeline .num { background: var(--green); color: var(--ink); border: var(--bw-sm) solid var(--ink); }

/* Pas de double espace entre deux sections claires consécutives */
.section--cta { padding-top: 0; }
:is(.section--white, .section--green, .section--soft, .section--ink) + .section--cta { padding-top: var(--section); }
.page-hero + .section--cta { padding-top: 0; }

/* Profils en 3 colonnes : photo au-dessus */
@media (min-width: 768px) { .grid--3 .profile { grid-template-columns: 1fr; } }
.grid--3 .profile__photo { max-width: none; }

/* Équipe en aperçu */
.team-strip { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: 0 auto; }
.team-strip figure { margin: 0; text-align: center; }
.team-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--bw-sm) solid var(--ink); box-shadow: 6px 6px 0 var(--green); background: var(--green-soft); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.team-strip figure:hover img { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 var(--green); }
.team-strip figcaption { margin-top: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; font-size: 1rem; }
.team-strip figcaption span { display: block; font-weight: 600; color: var(--green-dark); font-size: .875rem; }

/* Engagements */
.promise { display: grid; gap: 16px; }
@media (min-width: 768px) { .promise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise > div { border-top: var(--bw) solid var(--ink); padding-top: 16px; }
.promise h3 { font-size: 1.25rem; }
.promise p { font-size: 1rem; margin: 0; }

/* Icônes de carte qui « sautent » au survol */
.card__icon { transition: transform .15s ease-out; }
a.card:hover .card__icon, .card--hover:hover .card__icon { transform: rotate(-8deg) scale(1.06); }

/* Mention de source sous un bloc */
.source-note { font-size: .875rem; text-align: center; margin-top: 24px; }
.source-note a { color: var(--green-dark); }

@media (max-width: 767px) {
  .team-strip { gap: 12px; }
  .sticker--tl { left: -6px; top: -26px; }
  .sticker { padding: 8px 12px; }
  .sticker strong { font-size: 1.25rem; }
  .compare__col { padding: 24px 20px; }
  .chat__body { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready h1 mark, .js-ready h2 mark { background-size: 100% 100%; }
  .js-ready .chat .bubble, .js-ready .sticker { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .topbar, .cta-band, .nav__toggle { display: none !important; }
  body { background: #fff; }
  .card, .prose, .table-frame { box-shadow: none; }
}
