/* ================================================================
   AMPLIFY IMPAKT – Composants du méga-site (chargé après theme.css)
   Barre écosystème, logos des ventures, études de cas, programmes,
   mur de logos, listes, badges, signature.
   ================================================================ */

/* ── Barre de l'écosystème (au-dessus de la nav des ventures) ── */
.eco-topbar {
  background: var(--plum);
  height: 34px;
  display: flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .04em;
}
.eco-topbar .container { display: flex; align-items: center; gap: 22px; width: 100%; }
.eco-topbar a { color: rgba(255,255,255,.64); transition: color .2s; white-space: nowrap; }
.eco-topbar a:hover { color: #fff; }
.eco-topbar a.is-current { color: var(--yellow); }
.eco-topbar__home { margin-right: auto; color: #fff !important; }
.has-topbar .page-banner, .has-topbar .hero, .has-topbar .hero-media { padding-top: calc(120px + 34px); }
.has-topbar .nav-primary.open { top: calc(72px + 34px); }

/* ── Logos ─────────────────────────────────────────────────────── */
.nav-logo { gap: 8px; }
.logo-impakt, .logo-sub {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 56%, transparent);
  line-height: 1.2;
}
.logo-impakt { font-size: .7rem; color: var(--ink); padding: .2em .5em; border: 1px solid var(--ink); border-radius: 3px; }
.footer .logo-impakt { color: #fff; border-color: rgba(255,255,255,.6); }
.logo-sub { max-width: 7em; }
.nav-item--mobile { display: none; }

/* ── Hero avec image plein écran (Do Creative) ─────────────────── */
.hero-media {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(3rem, 2rem + 4vw, 6rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--plum);
}
.hero-media__bg { position: absolute; inset: 0; z-index: -2; }
.hero-media__bg img, .hero-media__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,27,33,.35) 0%, rgba(33,27,33,.88) 78%);
}
.hero-media .hero__eyebrow { color: rgba(255,255,255,.72); }
.hero-media h1 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(3rem, 2rem + 5vw, 6.5rem);
  max-width: 14ch;
  margin: 18px 0 22px;
}
.hero-media p { font-size: var(--fs-lg); font-weight: 300; color: rgba(255,255,255,.8); max-width: 620px; margin-bottom: 32px; }
.hero-media .hero__cta { justify-content: flex-start; }
.hero-media .btn--outline { color: #fff; border-color: rgba(255,255,255,.8); }
.hero-media .btn--outline:hover { background: #fff; color: var(--plum); }
.hero-media .page-banner__tag { color: #fff !important; border-color: rgba(255,255,255,.7); }

/* Marqueur jaune sur un mot */
.mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}

/* ── Texte en deux colonnes ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.split p + p { margin-top: 16px; }
.prose p {
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
}
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--ink); }
.section--dark .prose p { color: rgba(255,255,255,.72); }
.section--dark .prose strong { color: #fff; }

/* ── Pastilles ────────────────────────────────────────────────── */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li, .pill-list a {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  border-radius: 2em;
  padding: .35em 1em;
  font-size: .86rem;
  font-weight: 300;
  color: var(--ink);
}
.pill-list a { transition: background .2s, border-color .2s; }
.pill-list a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--plum); }
.section--dark .pill-list li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35); }
.hero .pill-list { justify-content: center; }

/* ── Liste à coches ───────────────────────────────────────────── */
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.5em; height: 1.5em;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--plum);
  font-size: .75rem;
  font-weight: 600;
  margin-top: .1em;
}
.section--dark .check-list li { color: rgba(255,255,255,.85); }
.check-list--2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* ── Titre de sous-liste ──────────────────────────────────────── */
.list-label {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 56%, transparent);
  margin: 0 0 12px;
}
.section--dark .list-label { color: rgba(255,255,255,.56); }

/* ── Cartes simples (titre + texte) ───────────────────────────── */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: border-color .25s, transform .35s var(--ease);
  display: flex; flex-direction: column;
}
a.card:hover, .card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card__icon { font-size: 1.8rem; margin-bottom: 16px; }
.card__num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: color-mix(in srgb, var(--ink) 56%, transparent); margin-bottom: 14px; }
.card h3 { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); line-height: 1.25; }
.card p { font-weight: 300; font-size: .95rem; line-height: 1.65; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.card .check-list, .card .pill-list { margin-top: 18px; }
.card .check-list li { font-size: .92rem; }
.card .link-arrow { margin-top: auto; padding-top: 20px; }
.section--dark .card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); }
.section--dark .card:hover { border-color: rgba(255,191,64,.5); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255,255,255,.64); }

/* ── Études de cas / programmes ───────────────────────────────── */
.case-list { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.case {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  scroll-margin-top: 120px;
}
.case__num { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: color-mix(in srgb, var(--ink) 56%, transparent); }
.case__client {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  margin: 14px 0 12px;
  color: var(--ink);
}
.case__headline { font-size: var(--fs-xl); font-weight: 300; letter-spacing: -0.02em; line-height: 1.3; color: color-mix(in srgb, var(--ink) 76%, transparent); }
.case__body > p { font-size: 1.02rem; font-weight: 300; line-height: 1.7; color: color-mix(in srgb, var(--ink) 76%, transparent); }
.case__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-top: 26px; }
.case__cols ul.dot-list li { font-size: .92rem; }
.case__impact {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--cream);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
}
.case__impact strong { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: color-mix(in srgb, var(--ink) 56%, transparent); }

/* Liste à puces jaunes */
.dot-list { display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 18px; font-weight: 300; line-height: 1.5; color: var(--ink); }
.dot-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.section--dark .dot-list li { color: rgba(255,255,255,.82); }

/* ── Mur de logos (texte) ─────────────────────────────────────── */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li {
  display: grid; place-items: center;
  min-height: 110px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  transition: background .2s, color .2s;
}
.logo-wall li:hover { background: var(--yellow-soft); color: var(--ink); }

/* ── Chiffres clés ────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.kpi { padding: 28px 24px 8px 0; }
.kpi__num { font-weight: 200; letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.5rem); color: var(--ink); }
.kpi__num sup { color: var(--yellow); font-weight: 400; font-size: .45em; }
.kpi__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; color: color-mix(in srgb, var(--ink) 60%, transparent); line-height: 1.5; max-width: 22ch; }
.section--dark .kpis { border-color: rgba(255,255,255,.14); }
.section--dark .kpi__num { color: #fff; }
.section--dark .kpi__label { color: rgba(255,255,255,.6); }

/* ── Badge de statut ──────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  padding: .45em .9em;
  border-radius: 2em;
  background: #E5F6EC; color: #17663A;
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #1DB86A; }

/* ── Bloc « Bientôt disponible » / média à intégrer ──────────── */
.soon {
  border: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  text-align: center;
}
.soon .status { background: var(--yellow-soft); color: var(--ink); margin-bottom: 18px; }
.soon .status::before { background: var(--yellow); }
.soon h3 { font-weight: 500; font-size: var(--fs-xl); letter-spacing: -0.02em; margin-bottom: 12px; }
.soon p { font-weight: 300; color: color-mix(in srgb, var(--ink) 70%, transparent); max-width: 560px; margin: 0 auto 20px; }
.soon .pill-list { justify-content: center; }
.media-slot {
  aspect-ratio: 9 / 16;
  max-height: 520px;
  width: 100%;
  border-radius: var(--r-lg);
  background: radial-gradient(60% 50% at 50% 100%, rgba(255,191,64,.35), transparent 70%), var(--plum);
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-align: center; padding: 24px;
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* ── Signature géante ─────────────────────────────────────────── */
.signature {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .98;
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 7rem);
  color: #fff;
  text-wrap: balance;
}
.signature em { font-style: normal; color: var(--yellow); }

/* ── Sous-titre de section (h3 en tête de bloc) ──────────────── */
.block-title { font-weight: 500; font-size: var(--fs-xl); letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 14px; color: var(--ink); }
.section--dark .block-title { color: #fff; }
.stack > * + * { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

/* Formulaire : champs sur fond sombre impossible → reste clair */
.contact-form { background: var(--white); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split, .case { grid-template-columns: 1fr; }
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
  .check-list--2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .eco-topbar { display: none; }
  .has-topbar .page-banner, .has-topbar .hero, .has-topbar .hero-media { padding-top: 120px; }
  .has-topbar .nav-primary.open { top: 72px; }
  .nav-item--mobile { display: block; }
  .logo-sub { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* Titres des bannières : plus compacts (les titres des docs sont longs) */
.page-banner h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 4rem); }
/* Mot surligné sur photo : jaune plein, lisible */
.hero-media .mark { background: none; color: var(--yellow); padding: 0; }

/* Logo lisible dans le pied de page sombre */
.footer .logotype { color: #fff; }
