/* =========================================================
   FasoCode-X — Refonte 2026
   Palette tirée du logo : vert, rouge, jaune + encre profonde
   ========================================================= */

:root {
  --ink: #0b1712;
  --ink-2: #11231b;
  --ink-3: #1a3327;
  --green: #0e8f43;
  --green-600: #0b7636;
  --green-300: #5fd08a;
  --green-50: #eaf5ee;
  --red: #e10b17;
  --yellow: #f7c100;
  --paper: #f6f5f0;
  --white: #ffffff;
  --text: #17211c;
  --muted: #5a6961;
  --line: #e2e4dd;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 18, 0.06), 0 2px 8px rgba(11, 23, 18, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(11, 23, 18, 0.22);
  --shadow-lg: 0 30px 60px -25px rgba(11, 23, 18, 0.45);
  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(14, 143, 67, 0.8); }
.btn-primary:hover { background: var(--green-600); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-50); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { border-color: var(--line-dark); color: #fff; }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Barre d'information ---------- */
.infobar { background: var(--ink); color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.infobar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.infobar-list { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.infobar-list li { display: inline-flex; align-items: center; gap: 8px; }
.infobar-list .icon { color: var(--green-300); }
.infobar a:hover { color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px; padding: 2px; flex: none; }
.lang button {
  background: none; border: 0; color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 23, 18, 0.5); }
.header > .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 54px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.brand-name small { display: block; margin-top: 5px; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: #34413a; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a.is-active { color: var(--green-600); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav .container { padding-block: 12px 22px; display: grid; gap: 2px; }
.mobile-nav a:not(.btn) { padding: 13px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-actions { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14, 143, 67, 0.38), transparent 60%),
    radial-gradient(600px 400px at -5% 110%, rgba(225, 11, 23, 0.16), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding-block: 84px 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.hero .eyebrow { padding: 7px 14px 7px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.04); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(95, 208, 138, 0.2); }
.hero h1 { margin-top: 24px; font-size: clamp(38px, 5.1vw, 66px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--green-300); }
.hero-lead { margin-top: 22px; max-width: 54ch; font-size: 18px; color: rgba(255, 255, 255, 0.76); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin-top: 52px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.hero-stats li { padding: 0 32px; border-left: 1px solid var(--line-dark); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); max-width: 16ch; line-height: 1.4; }

.hero-visual { position: relative; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-flag { position: absolute; top: -10px; right: 28px; display: flex; height: 6px; width: 120px; border-radius: 6px; overflow: hidden; }
.hero-flag i { flex: 1; }
.hero-flag i:nth-child(1) { background: var(--red); }
.hero-flag i:nth-child(2) { background: var(--yellow); }
.hero-flag i:nth-child(3) { background: var(--green); }
.float-card {
  position: absolute; background: #fff; color: var(--text); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.float-card.certs { left: -36px; bottom: 34px; width: 268px; }
.float-card .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.float-card .title { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.float-badges { display: flex; margin-top: 12px; }
.float-badges img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #000; border: 2px solid #fff; margin-left: -8px; }
.float-badges img:first-child { margin-left: 0; }
.float-badges img.on-white { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.float-card.mode { right: -18px; top: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; font-weight: 600; font-size: 14px; }
.float-card.mode .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(14, 143, 67, 0.16); }

/* ---------- Partenaires ---------- */
.partners { border-bottom: 1px solid var(--line); background: #fff; }
.partners .container { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding-block: 34px; }
.partners h2 { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.partners ul { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.partners img { height: 58px; width: auto; max-width: 190px; object-fit: contain; }
.partners li.tall img { height: 78px; }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head.center { display: block; text-align: center; max-width: 720px; margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.dark .kicker { color: var(--green-300); }
.section h2 { margin-top: 16px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 17px; max-width: 56ch; }
.dark .section-head p { color: rgba(255, 255, 255, 0.68); }
.section-head.center p { margin: 16px auto 0; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-md); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.about-photo .caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 20px;
  background: rgba(255, 255, 255, 0.96); border-radius: 12px; border-left: 4px solid var(--green);
}
.about-photo .caption strong { display: block; font-family: var(--font-display); font-size: 18px; }
.about-photo .caption span { font-size: 14px; color: var(--muted); }
.about-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius-lg); background: var(--green-50); z-index: -1; }
.about-text .lead { margin-top: 24px; font-size: 18px; color: #2d3a33; }
.about-text .lead strong { color: var(--ink); font-weight: 600; }
.feature-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; }
.feature-list .ico .icon { width: 21px; height: 21px; }
.feature-list strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.feature-list span { font-size: 14.5px; color: var(--muted); }

/* ---------- Vision / Mission ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px 36px; position: relative; transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.pillar .ico { margin-top: 22px; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--green-300); display: grid; place-items: center; }
.pillar .ico .icon { width: 24px; height: 24px; }
.pillar h3 { margin-top: 22px; font-size: 22px; font-weight: 600; }
.pillar p { margin-top: 12px; color: var(--muted); }

.values { margin-top: 72px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-top: 48px; border-top: 1px solid var(--line); }
.values h3 { font-size: 26px; font-weight: 600; margin-top: 14px; }
.values ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.values li .icon { width: 26px; height: 26px; color: var(--green-600); }
.values li strong { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.values li span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Formations ---------- */
.program {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden;
}
.program::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 0% 0%, rgba(14, 143, 67, 0.35), transparent 65%); pointer-events: none; }
.program > * { position: relative; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(95, 208, 138, 0.14); color: var(--green-300); font-size: 13px; font-weight: 600; }
.program h3 { margin-top: 20px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; }
.program-desc { margin-top: 16px; color: rgba(255, 255, 255, 0.74); font-size: 17px; max-width: 52ch; }
.program-desc strong { color: #fff; font-weight: 600; }
.tracks { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tracks li { font-family: var(--font-mono); font-size: 12.5px; padding: 7px 13px; border: 1px solid var(--line-dark); border-radius: 8px; color: rgba(255, 255, 255, 0.88); }
.checks { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.checks li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.checks .icon { color: var(--green-300); }

.price-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.price-card .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card .amount { margin-top: 6px; font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.price-card .amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-rows { margin: 22px 0 24px; border-top: 1px solid var(--line); }
.price-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-rows dt { color: var(--muted); }
.price-rows dd { margin: 0; font-weight: 600; white-space: nowrap; }
.price-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.price-note strong { color: var(--red); font-weight: 600; }

.catalog { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.catalog-text { display: flex; align-items: center; gap: 18px; }
.catalog-text .ico { width: 50px; height: 50px; flex: none; border-radius: 12px; background: #fdecec; color: var(--red); display: grid; place-items: center; }
.catalog-text .ico .icon { width: 23px; height: 23px; }
.catalog h4 { font-size: 18px; font-weight: 600; }
.catalog p { font-size: 14.5px; color: var(--muted); }

.upcoming { margin-top: 72px; }
.upcoming-head h3 { font-size: 24px; font-weight: 600; }
.upcoming-head p { margin-top: 8px; color: var(--muted); }
.upcoming-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.course { border: 1px dashed #c9cdc4; border-radius: var(--radius-lg); padding: 30px; background: var(--paper); display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.course .ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.course .ico .icon { width: 23px; height: 23px; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.course h4 { font-size: 20px; font-weight: 600; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fff3cc; color: #7a5d00; }
.course p { margin-top: 8px; color: var(--muted); }
.course-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #34413a; }
.course-meta li { display: inline-flex; align-items: center; gap: 8px; }
.course-meta .icon { color: var(--green-600); }

/* ---------- Certifications ---------- */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.035); transition: background-color .2s, border-color .2s, transform .2s; }
.cert:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.cert img { width: 62px; height: 62px; flex: none; border-radius: 12px; object-fit: contain; background: #000; }
.cert img.on-white { background: #fff; padding: 3px; }
.cert strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.cert span { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: rgba(255, 255, 255, 0.55); }

/* ---------- Actualités ---------- */
.news-feature { display: grid; grid-template-columns: 1.1fr 0.9fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.news-feature .media { min-height: 380px; }
.news-feature .media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.news-date { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.news-date .icon { color: var(--green-600); }
.news-feature h3 { margin-top: 16px; font-size: 28px; font-weight: 600; }
.news-feature p { margin-top: 14px; color: var(--muted); }
.news-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover, .news-feature:hover { box-shadow: var(--shadow-md); }
.news-card:hover { transform: translateY(-4px); }
.news-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.news-card .body { padding: 24px 24px 28px; }
.news-card h3 { margin-top: 12px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.news-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #34413a; font-size: 14px; font-weight: 500; transition: all .2s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: var(--ink); color: #fff; text-align: left; display: block; width: 100%; }
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 23, 18, 0.88)); opacity: 0; transition: opacity .25s; }
.tile.video::after, .tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tile.video .tile-caption, .tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; transform: none; }
.tile-caption strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.25; }
.tile-caption span { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); line-height: 1.35; }
.tile-play { position: absolute; top: 50%; left: 50%; translate: -50% -60%; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .2s; }
.tile:hover .tile-play { transform: scale(1.08); }
.tile-play .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 3px; }
.gallery-more { margin-top: 32px; text-align: center; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 12, 9, 0.9); }
.lightbox img, .lightbox video { max-width: min(94vw, 1100px); max-height: 82vh; border-radius: 12px; margin: 0 auto; background: #000; }
.lightbox p { margin-top: 14px; color: #fff; text-align: center; font-size: 15px; }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; }
.lightbox-close .icon { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.form-card h3, .info-card h3 { font-size: 22px; font-weight: 600; }
.form-card form { margin-top: 26px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd3ca; border-radius: 10px; background: #fff;
  font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 143, 67, 0.14); }
.alert { margin-top: 20px; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.alert-success { background: var(--green-50); color: var(--green-600); }
.alert-error { background: #fdecec; color: #b00812; }

.info-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.info-body { padding: 40px 40px 30px; }
.info-list { margin-top: 24px; display: grid; gap: 20px; }
.info-list li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: center; }
.info-list .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); color: var(--green-300); display: grid; place-items: center; }
.info-list small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.info-list a, .info-list p { font-weight: 500; }
.info-list a:hover { color: var(--green-300); }
.socials { margin-top: 28px; display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.map { flex: 1; min-height: 240px; }
.map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; filter: grayscale(.25); }

/* ---------- CTA + pied de page ---------- */
.cta-band { background: var(--green); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; max-width: 22ch; }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.85); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost-dark { border-color: rgba(255, 255, 255, 0.45); }

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-block: 72px 56px; }
.footer-brand img { height: 84px; width: auto; background: #fff; border-radius: 14px; padding: 8px 10px; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.footer h3 { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-flag { display: inline-flex; height: 4px; width: 72px; border-radius: 4px; overflow: hidden; align-self: center; }
.footer-flag i { flex: 1; }
.footer-flag i:nth-child(1) { background: var(--red); }
.footer-flag i:nth-child(2) { background: var(--yellow); }
.footer-flag i:nth-child(3) { background: var(--green); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header-actions .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .float-card.certs { left: 16px; }
  .float-card.mode { right: 16px; }
}
@media (max-width: 980px) {
  .section { padding-block: 76px; }
  .hero .container { grid-template-columns: 1fr; gap: 56px; padding-block: 60px 72px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .about-grid, .program, .news-feature, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 56px; }
  .about-photo { max-width: 460px; }
  .program { padding: 40px 32px; gap: 40px; }
  .pillars, .news-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .values ul { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .news-feature .media { min-height: 0; aspect-ratio: 16 / 10; }
  .partners .container { grid-template-columns: 1fr; gap: 20px; }
  .partners ul { justify-content: flex-start; gap: 24px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .infobar-list li.hide-md { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: min(100% - 32px, var(--container)); }
  .infobar-list li.hide-sm { display: none; }
  .header-actions .btn-primary { display: none; }
  .brand img { height: 46px; }
  .hero-lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
  .hero-stats li { padding: 0 14px; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats span { font-size: 12.5px; }
  .float-card.certs { position: static; width: auto; margin-top: 14px; }
  .float-card.mode { top: 14px; right: 14px; }
  .program { padding: 32px 22px; border-radius: 22px; }
  .price-card { padding: 24px 20px; }
  .price-card .amount { font-size: 32px; }
  .catalog { flex-direction: column; align-items: stretch; }
  .upcoming-grid, .form-row, .certs-grid { grid-template-columns: 1fr; }
  .course { grid-template-columns: 1fr; padding: 24px; }
  .values ul { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-caption { left: 12px; right: 12px; bottom: 10px; }
  .tile-caption span { display: none; }
  .news-feature .body, .form-card, .info-body { padding: 28px 22px; }
  .news-feature h3 { font-size: 23px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
  .cta-band .actions .btn { flex: 1 1 100%; }
}

/* ---------- Ajustements ---------- */
.float-card.certs { width: 292px; }
.form-card { display: flex; flex-direction: column; }
.form-card form { flex: 1; grid-template-rows: auto 1fr auto; }
.form-card form > .field { display: flex; flex-direction: column; }
.form-card form > .field textarea { flex: 1; }
.form-card form .btn { justify-self: start; }
.tile img[src*="conference"] { object-position: 62% center; }
@media (max-width: 640px) {
  .float-card.certs { width: auto; }
  .form-card form .btn { justify-self: stretch; }
}
.mobile-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 24px 40px -24px rgba(11, 23, 18, 0.5); }
@media (max-width: 640px) {
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .06em; }
  .infobar { font-size: 12px; }
}
@media (hover: none) {
  .tile::after { opacity: 1; }
  .tile-caption { opacity: 1; transform: none; }
}

/* =========================================================
   V2 — vidéo en accueil, rentrée, mouvement
   ========================================================= */

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); }
.infobar strong { color: #fff; font-weight: 600; }

/* Hero vidéo */
.hero { min-height: min(820px, calc(100vh - 116px)); display: flex; align-items: center; }
.hero > .container { z-index: 3; grid-template-columns: 1.1fr 0.9fr; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11, 23, 18, 0.95) 0%, rgba(11, 23, 18, 0.82) 48%, rgba(11, 23, 18, 0.55) 100%), radial-gradient(800px 420px at 90% 0%, rgba(14, 143, 67, 0.35), transparent 65%); }
.hero::before { z-index: 2; }
.hero .dot, .status .dot { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(95, 208, 138, 0); } }

.hero-text > *, .session-card { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-text > :nth-child(5) { animation-delay: .42s; }
.session-card { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 em { background: linear-gradient(90deg, var(--green-300), #b7f0a4, var(--green-300)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* Carte « prochaine rentrée » */
.session-card { position: relative; justify-self: end; width: min(100%, 420px); padding: 30px 28px 28px; border-radius: var(--radius-lg); color: #fff; background: rgba(13, 28, 21, 0.62); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow-lg); }
.session-card .hero-flag { top: -3px; right: 28px; height: 5px; width: 96px; }
.session-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-300); }
.session-date { margin-top: 6px; font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.countdown { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { padding: 12px 4px 10px; text-align: center; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); }
.countdown strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.countdown-done { margin-top: 18px; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); }
.session-programs { margin-top: 22px; display: grid; gap: 10px; }
.session-programs li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.session-programs .ico { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(95, 208, 138, 0.16); color: var(--green-300); }
.session-meta { margin: 20px 0 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); display: grid; gap: 9px; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.session-meta li { display: flex; gap: 10px; align-items: flex-start; }
.session-meta .icon { margin-top: 3px; color: var(--green-300); }

/* Bandeau défilant */
.ticker { background: var(--green); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Partenaires défilants */
.partners-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners ul.partners-track { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: marquee 30s linear infinite; }
.partners-track li { padding-right: 72px; flex: none; }
.partners-marquee:hover .partners-track, .ticker:hover .ticker-track { animation-play-state: paused; }

/* Cartes programmes */
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.track-card { position: relative; overflow: hidden; padding: 32px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: transform .3s, box-shadow .3s, border-color .3s; }
.track-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s ease; }
.track-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.track-card:hover::before { transform: scaleX(1); }
.track-card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); transition: background-color .3s, color .3s, transform .3s; }
.track-card:hover .ico { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.05); }
.track-card .ico .icon { width: 25px; height: 25px; }
.track-card h3 { margin-top: 22px; font-size: 21px; font-weight: 600; }
.track-card ul { margin-top: 16px; display: grid; gap: 9px; color: var(--muted); font-size: 15px; }
.track-card li { position: relative; padding-left: 20px; }
.track-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--green); }

/* Boutons : flèche animée */
.btn .icon { transition: transform .2s; }
.btn:hover .icon:last-child, .news-more:hover .icon { transform: translateX(4px); }

/* Actualités : étiquettes, lecture, tout afficher */
.news-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-600); letter-spacing: .06em; }
.news-content p + p { margin-top: 12px; }
.news-card .news-content p:not(:first-child), .news-feature .news-content p:not(:first-child) { display: none; }
.news-card .news-content p { margin-top: 10px; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .news-content p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .body { display: flex; flex-direction: column; flex: 1; }
.news-more { margin-top: auto; padding: 18px 0 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--green-600); font-weight: 600; font-size: 14.5px; }
.news-feature .news-more { margin-top: 0; }
.news-more .icon { transition: transform .2s; }
.news-card, .news-feature { cursor: pointer; }
.news-card .media img, .news-feature .media img { transition: transform .6s ease; }
.news-card:hover .media img, .news-feature:hover .media img { transform: scale(1.05); }
.news-feature .media { overflow: hidden; }
.news-card .media.flyer img { object-position: center top; }
.news-card.is-extra { display: none; }
.news-grid.show-all .news-card.is-extra { display: flex; animation: rise .5s ease both; }
.news-all { margin-top: 36px; text-align: center; }
#newsToggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }

.article { border: 0; padding: 0; width: min(94vw, 780px); max-height: 90vh; border-radius: var(--radius-lg); overflow: auto; color: var(--text); box-shadow: var(--shadow-lg); }
.article::backdrop { background: rgba(6, 12, 9, 0.8); backdrop-filter: blur(3px); }
.article[open] { animation: rise .35s ease both; }
.article-media { background: var(--ink); }
.article-media img { width: 100%; max-height: 440px; object-fit: contain; }
.article-body { padding: 32px 36px 40px; }
.article-body h3 { margin-top: 14px; font-size: 26px; font-weight: 600; }
.article-text { margin-top: 18px; color: #34413a; }
.article-close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.95); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.article-close .icon { width: 20px; height: 20px; }

/* Retour en haut */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-600); }
.to-top .icon { width: 21px; height: 21px; }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero > .container { grid-template-columns: 1fr; }
  .session-card { justify-self: stretch; width: 100%; max-width: 520px; }
  .tracks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .session-date { font-size: 27px; }
  .countdown strong { font-size: 24px; }
  .article-body { padding: 24px 20px 30px; }
  .article-body h3 { font-size: 22px; }
  .partners-track li { padding-right: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .partners ul.partners-track, .hero h1 em, .hero .dot, .status .dot, .hero-text > *, .session-card { animation: none; }
  .partners ul.partners-track { flex-wrap: wrap; width: auto; row-gap: 20px; }
  .partners-track li[aria-hidden="true"] { display: none; }
}

/* Aucun défilement horizontal parasite (décor de la photo, bandeaux) */
body { overflow-x: clip; }
@media (max-width: 640px) { .about-photo::before { inset: 14px -8px -14px 14px; } .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* =========================================================
   V3 — accueil épuré, tricolore, effets
   ========================================================= */
:root { --red-600: #b80913; --yellow-50: #fff4cc; --red-50: #fdecec; }

/* ---------- Rouge et jaune en avant ---------- */
.infobar { background: var(--red); color: rgba(255, 255, 255, 0.92); }
.infobar-list .icon { color: var(--yellow); }
.lang { border-color: rgba(255, 255, 255, 0.4); }
.lang button { color: rgba(255, 255, 255, 0.85); }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

.btn-primary { position: relative; overflow: hidden; background: var(--red); box-shadow: 0 10px 24px -12px rgba(225, 11, 23, 0.85); }
.btn-primary:hover { background: var(--red-600); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn-primary:hover::after { left: 130%; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--yellow)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--red); }

.ticker { background: var(--yellow); color: var(--ink); font-weight: 500; }
.ticker-track span::after { background: var(--red); }

.cta-band { background: var(--yellow); color: var(--ink); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(225, 11, 23, 0.14); animation: spin 26s linear infinite; }
.cta-band::after { content: ""; position: absolute; left: 38%; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: rgba(14, 143, 67, 0.16); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band p { color: rgba(11, 23, 18, 0.78); }
.cta-band .btn-light { background: var(--red); color: #fff; }
.cta-band .btn-light:hover { background: var(--red-600); }
.cta-band .btn-ghost-dark { border-color: rgba(11, 23, 18, 0.45); color: var(--ink); }
.cta-band .btn-ghost-dark:hover { background: rgba(11, 23, 18, 0.08); border-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.feature-list li:nth-child(1) .ico { background: var(--red-50); color: var(--red); }
.feature-list li:nth-child(2) .ico { background: var(--yellow-50); color: #8a6a00; }
.about-photo .caption { border-left-color: var(--red); }
.about-photo::before { background: var(--yellow); opacity: .9; }

.track-card:nth-child(1) .ico { background: var(--red-50); color: var(--red); }
.track-card:nth-child(1):hover .ico { background: var(--red); color: #fff; }
.track-card:nth-child(1) li::before { background: var(--red); }
.track-card:nth-child(2) .ico { background: var(--yellow-50); color: #8a6a00; }
.track-card:nth-child(2):hover .ico { background: var(--yellow); color: var(--ink); }
.track-card:nth-child(2) li::before { background: var(--yellow); }
.track-card { transform-style: preserve-3d; will-change: transform; }
.price-card .amount { color: var(--red); }
.program .tracks li:nth-child(1) { border-color: rgba(225, 11, 23, 0.7); }
.program .tracks li:nth-child(2) { border-color: rgba(247, 193, 0, 0.7); }
.program .tracks li:nth-child(3) { border-color: rgba(95, 208, 138, 0.7); }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.to-top { background: var(--red); }
.to-top:hover { background: var(--red-600); }
.info-list .ico { color: var(--yellow); }

/* ---------- Accueil épuré : la vidéo d'abord ---------- */
.hero.hero-v3 { flex-direction: column; align-items: stretch; min-height: max(600px, calc(100vh - 116px)); background: var(--ink); }
.hero-v3::before { display: none; }
.hero-v3 .hero-video { transform-origin: 50% 40%; will-change: transform; }
.hero-v3 .hero-shade { background: linear-gradient(90deg, rgba(11, 23, 18, 0.72) 0%, rgba(11, 23, 18, 0.34) 52%, rgba(11, 23, 18, 0.08) 100%), linear-gradient(180deg, rgba(11, 23, 18, 0) 55%, rgba(11, 23, 18, 0.6) 100%); }
.hero-v3 > .container { flex: 1; display: flex; align-items: center; padding-block: 72px 56px; }
.hero-v3 .hero-text { max-width: 780px; }
.hero-v3 .eyebrow { background: var(--red); border-color: transparent; color: #fff; }
.hero-v3 .eyebrow .dot { background: var(--yellow); animation-name: pulse-y; }
@keyframes pulse-y { 0% { box-shadow: 0 0 0 0 rgba(247, 193, 0, 0.65); } 100% { box-shadow: 0 0 0 12px rgba(247, 193, 0, 0); } }
.hero-v3 h1 { font-size: clamp(42px, 6.2vw, 84px); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.hero-v3 h1 em { background-image: linear-gradient(90deg, var(--yellow), #ffe98a, var(--yellow)); }
.hero-typed { margin-top: 24px; font-family: var(--font-display); font-size: clamp(19px, 2.1vw, 26px); font-weight: 500; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); min-height: 1.5em; }
.hero-typed .typed { color: var(--yellow); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 4px; vertical-align: -0.15em; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-v3 .btn-ghost-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }

.hero-bar { position: relative; z-index: 3; background: rgba(11, 23, 18, 0.5); backdrop-filter: blur(14px) saturate(140%); border-top: 1px solid rgba(255, 255, 255, 0.16); animation: rise .8s .5s both; }
.hero-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--green) 66.6%); }
.hero-bar .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 18px; flex-wrap: wrap; }
.hero-bar-date span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hero-bar-date strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--yellow); }
.hero-bar .countdown { margin: 0; display: flex; gap: 10px; }
.hero-bar .countdown div { min-width: 68px; padding: 9px 6px 8px; background: rgba(255, 255, 255, 0.1); }
.hero-bar .countdown strong { font-size: 24px; }
.hero-bar .countdown-done { margin: 0; }
.hero-bar-mode { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14.5px; color: rgba(255, 255, 255, 0.9); }
.hero-bar-mode .icon { color: var(--yellow); }

/* ---------- Chiffres clés ---------- */
.stats-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 56px 56px; }
.stats-band ul { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-band li { padding: 56px 32px; text-align: center; border-left: 1px solid var(--line-dark); }
.stats-band li:first-child { border-left: 0; }
.stats-band strong { display: block; font-family: var(--font-display); font-size: clamp(56px, 7vw, 92px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-band span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.stats-band .c-red strong { color: #ff4a55; }
.stats-band .c-yellow strong { color: var(--yellow); }
.stats-band .c-green strong { color: var(--green-300); }

/* ---------- Vision & mission : panneaux tricolores ---------- */
.vm { display: flex; gap: 16px; height: 440px; }
.vm-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; border-radius: 26px; cursor: pointer; transition: flex .7s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, filter .3s; }
.vm-panel.is-active { flex: 3.6; box-shadow: var(--shadow-md); }
.vm-panel:not(.is-active) { filter: saturate(.85); }
.vm-panel.c-red { background: linear-gradient(150deg, #f0202b, var(--red-600)); color: #fff; }
.vm-panel.c-yellow { background: linear-gradient(150deg, #ffd43b, #f0b400); color: var(--ink); }
.vm-panel.c-green { background: linear-gradient(150deg, #13a550, var(--green-600)); color: #fff; }
.vm-num { position: absolute; top: 30px; left: 32px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; opacity: .85; }
.vm-ico { position: absolute; top: 22px; right: 24px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.22); transition: transform .5s; }
.vm-panel.c-yellow .vm-ico { background: rgba(11, 23, 18, 0.12); }
.vm-panel.is-active .vm-ico { transform: rotate(360deg) scale(1.08); }
.vm-ico .icon { width: 25px; height: 25px; }
.vm-ghost { position: absolute; right: -50px; bottom: -70px; width: 320px; height: 320px; stroke-width: 0.9; opacity: 0; transform: rotate(-12deg) scale(.8); transition: opacity .6s, transform .9s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.vm-panel.is-active .vm-ghost { opacity: .16; transform: none; }
.vm-panel h3 { position: relative; font-size: 34px; font-weight: 600; white-space: nowrap; }
.vm-panel p { position: relative; margin-top: 14px; max-width: 44ch; font-size: 17.5px; line-height: 1.6; }
.vm-panel:not(.is-active) h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 22px; align-self: flex-start; }
.vm-panel:not(.is-active) p { display: none; }
.vm-panel.is-active h3, .vm-panel.is-active p { animation: rise .6s .18s both; }
.vm-panel.is-active p { animation-delay: .28s; }

.values-v3 { margin-top: 72px; }
.values-v3 ul { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values-v3 li { position: relative; overflow: hidden; padding: 26px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, color .3s, border-color .3s; }
.values-v3 li::before { content: ""; position: absolute; inset: 0; background: var(--c, var(--green)); transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.values-v3 li > * { position: relative; }
.values-v3 li:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--on, #fff); border-color: transparent; }
.values-v3 li:hover::before { transform: none; }
.values-v3 .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--soft, var(--green-50)); color: var(--deep, var(--green-600)); transition: background-color .3s, color .3s, transform .4s; }
.values-v3 li:hover .ico { background: rgba(255, 255, 255, 0.25); color: inherit; transform: rotate(-8deg) scale(1.08); }
.values-v3 .ico .icon { width: 22px; height: 22px; }
.values-v3 strong { display: block; margin-top: 18px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.values-v3 li > span:last-child { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); transition: color .3s; }
.values-v3 li:hover > span:last-child { color: inherit; opacity: .9; }
.values-v3 li:nth-child(3n+1) { --c: var(--red); --soft: var(--red-50); --deep: var(--red); }
.values-v3 li:nth-child(3n+2) { --c: var(--yellow); --on: var(--ink); --soft: var(--yellow-50); --deep: #8a6a00; }

/* ---------- Certifications : mur de badges interactif ---------- */
.section.dark#certifications { position: relative; overflow: hidden; }
#certifications::before, #certifications::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
#certifications::before { width: 420px; height: 420px; left: -120px; top: -80px; background: rgba(225, 11, 23, 0.28); }
#certifications::after { width: 460px; height: 460px; right: -140px; bottom: -160px; background: rgba(247, 193, 0, 0.2); animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
#certifications .container { position: relative; z-index: 1; }
.certs-grid { perspective: 1200px; gap: 18px; }
.cert { position: relative; overflow: hidden; flex-direction: column; text-align: center; gap: 18px; padding: 34px 18px 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); will-change: transform; }
.cert::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(247, 193, 0, 0.3), transparent 62%); opacity: 0; transition: opacity .35s; }
.cert:hover::before { opacity: 1; }
.cert:hover { border-color: rgba(247, 193, 0, 0.7); background: rgba(255, 255, 255, 0.08); }
.cert > * { position: relative; }
.cert img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.8); animation: bob 5s ease-in-out infinite; }
.cert:nth-child(2n) img { animation-delay: -1.6s; }
.cert:nth-child(3n) img { animation-delay: -3.1s; }
.cert:hover img { animation-play-state: paused; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(2deg); } }
.cert strong { font-size: 17px; }
.cert span { margin-top: 6px; color: var(--yellow); opacity: .85; }
.js .cert.reveal:not(.is-visible) { transform: scale(.6) rotate(-8deg); }
.js .cert.reveal { transition: opacity .5s ease, transform .75s cubic-bezier(.2, 1.5, .4, 1), background-color .2s, border-color .2s; }

/* ---------- Actualités : à la une animée ---------- */
.is-spotlit { display: none !important; }
.spot { display: grid; grid-template-columns: 1.5fr 1fr; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.spot-stage { position: relative; min-height: 560px; overflow: hidden; }
.spot-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.spot-slide.is-active { opacity: 1; visibility: visible; }
.spot-slide .media { position: absolute; inset: 0; overflow: hidden; }
.spot-slide .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.spot-slide.is-active .media img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1); } }
.spot-slide.is-flyer .media::before { content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(30px) brightness(.5) saturate(1.2); }
.spot-slide.is-flyer .media img { position: relative; height: calc(100% - 215px); margin-top: 22px; object-fit: contain; object-position: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55)); }
.spot-slide.is-flyer.is-active .media img { animation: flyer-in .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes flyer-in { from { opacity: 0; transform: translateY(30px) scale(.9) rotate(-2deg); } to { opacity: 1; transform: none; } }
.spot-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 110px 36px 32px; background: linear-gradient(180deg, transparent, rgba(11, 23, 18, 0.9) 42%, rgba(11, 23, 18, 0.97)); }
.spot-slide.is-active .spot-caption > * { animation: rise .7s both; }
.spot-slide.is-active .spot-caption > :nth-child(2) { animation-delay: .1s; }
.spot-slide.is-active .spot-caption > :nth-child(3) { animation-delay: .2s; }
.spot-slide.is-active .spot-caption > :nth-child(4) { animation-delay: .3s; }
.spot-caption .news-date { color: var(--yellow); }
.spot-caption .news-date .icon { color: var(--yellow); }
.spot .news-tag { background: var(--yellow); color: var(--ink); }
.spot-caption h3 { margin-top: 12px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; max-width: 26ch; }
.spot-caption .news-content p:not(:first-child) { display: none; }
.spot-caption .news-content p { margin-top: 10px; max-width: 62ch; color: rgba(255, 255, 255, 0.8); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-caption .news-more { margin-top: 18px; padding: 10px 18px; border-radius: 999px; background: var(--red); color: #fff; transition: background-color .2s, transform .2s; }
.spot-caption .news-more:hover { background: var(--red-600); transform: translateY(-1px); }

.spot-list { display: flex; flex-direction: column; border-left: 1px solid var(--line-dark); }
.spot-list li { flex: 1; display: flex; }
.spot-item { position: relative; flex: 1; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; padding: 16px 26px 16px 30px; background: none; border: 0; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, 0.55); text-align: left; transition: background-color .3s, color .3s, padding .3s; }
.spot-list li:last-child .spot-item { border-bottom: 0; }
.spot-item:hover { color: #fff; background: rgba(255, 255, 255, 0.04); padding-left: 36px; }
.spot-item.is-active { color: #fff; background: rgba(255, 255, 255, 0.07); }
.spot-item .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.spot-item.is-active .num { color: var(--yellow); }
.spot-item .news-date { font-size: 10.5px; color: inherit; opacity: .8; }
.spot-item .news-date .icon { display: none; }
.spot-item .news-tag { background: none; padding: 0; color: inherit; }
.spot-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.spot-item .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.spot-item.is-active .bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--red), var(--yellow), var(--green)); transform-origin: 50% 0; animation: fill-y 6.5s linear both; }
.spot.is-paused .spot-item.is-active .bar::after { animation-play-state: paused; }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.news-sub { margin: 64px 0 24px; font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 16px; }
.news-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.news-grid { margin-top: 0; perspective: 1400px; }
.news-card { position: relative; will-change: transform; }
.news-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s ease; z-index: 1; }
.news-card:hover::after { transform: scaleX(1); }
.news-card .news-date { color: var(--red); }
.news-card .news-date .icon { color: var(--red); }
.news-more { color: var(--red); }
.js .news-card.reveal:not(.is-visible) { transform: translateY(40px) rotateX(14deg); transform-origin: 50% 0; }

/* ---------- Effets généraux ---------- */
.js .reveal .kicker::before, .js .kicker.reveal::before { width: 0; transition: width .8s .25s ease; }
.js .reveal.is-visible .kicker::before, .js .kicker.reveal.is-visible::before { width: 28px; }
.js .about-photo.reveal:not(.is-visible) { transform: translateX(-50px); }
.js .about-text.reveal:not(.is-visible) { transform: translateX(50px); }
.js .track-card.reveal:not(.is-visible), .js .values-v3 li.reveal:not(.is-visible) { transform: translateY(34px) scale(.94); }
.js .stats-band li.reveal:not(.is-visible) { transform: scale(.8); }
.js .vm.reveal:not(.is-visible) { transform: translateY(40px) scale(.97); }
.js .reveal { transition-duration: .75s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
.section h2 { background: linear-gradient(90deg, currentColor 0 0) 0 100% / 0 3px no-repeat; }

@media (max-width: 1180px) {
  .spot { grid-template-columns: 1fr; }
  .spot-stage { min-height: 520px; }
  .spot-list { flex-direction: row; border-left: 0; border-top: 1px solid var(--line-dark); }
  .spot-item { grid-template-columns: 1fr; padding: 16px 0; text-align: center; border-bottom: 0; }
  .spot-item:hover { padding-left: 0; }
  .spot-item .txt { display: none; }
  .spot-item .bar { top: 0; bottom: auto; right: 0; width: auto; height: 4px; }
  .spot-item.is-active .bar::after { transform-origin: 0 50%; animation-name: fill-x; }
  .values-v3 ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .vm { flex-direction: column; height: auto; }
  .vm-panel, .vm-panel.is-active { flex: none; padding-top: 96px; filter: none; }
  .vm-panel:not(.is-active) h3 { writing-mode: horizontal-tb; transform: none; font-size: 28px; }
  .vm-panel h3 { font-size: 28px; white-space: normal; }
  .vm-panel:not(.is-active) p { display: block; }
  .vm-ghost, .vm-panel.is-active .vm-ghost { opacity: .14; transform: none; width: 220px; height: 220px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero.hero-v3 { min-height: max(560px, calc(100vh - 110px)); }
  .hero-v3 > .container { padding-block: 48px 40px; }
  .hero-v3 .hero-shade { background: linear-gradient(180deg, rgba(11, 23, 18, 0.55), rgba(11, 23, 18, 0.35) 45%, rgba(11, 23, 18, 0.7)); }
  .hero-bar .container { justify-content: center; text-align: center; padding-block: 16px; }
  .hero-bar-mode { display: none; }
  .hero-bar .countdown div { min-width: 60px; }
  .stats-band ul { grid-template-columns: 1fr; }
  .stats-band li { padding: 34px 20px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .stats-band li:first-child { border-top: 0; }
  .values-v3 ul { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert { padding: 24px 10px 20px; }
  .cert img { width: 76px; height: 76px; }
  .cert strong { font-size: 15px; }
  .spot { border-radius: 22px; }
  .spot-stage { min-height: 500px; }
  .spot-caption { padding: 90px 20px 24px; }
  .news-sub { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cert img, .caret, .cta-band::before, #certifications::before, #certifications::after, .hero-bar, .spot-slide.is-active .media img, .spot-slide.is-active .spot-caption > * { animation: none; }
}
html { overflow-x: clip; }

/* =========================================================
   V4 — accueil « affiche verte », parallaxe, effets au survol
   ========================================================= */
:root { --font-poster: "Unbounded", "Space Grotesk", system-ui, sans-serif; --poster-yellow: #ffe500; }

/* ---------- Accueil : fond vert des affiches ---------- */
.poster {
  position: relative; overflow: hidden; color: #fff; --px: 0; --py: 0;
  background:
    radial-gradient(760px 560px at 76% 46%, #19c257 0%, rgba(25, 194, 87, 0) 62%),
    radial-gradient(620px 460px at 4% 0%, #0b9a3f 0%, rgba(11, 154, 63, 0) 70%),
    linear-gradient(125deg, #08782f 0%, #055c23 46%, #023a16 100%);
}
.poster::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.22) 1.5px, transparent 2px);
  background-size: 64px 64px, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 32px 32px;
  mask-image: radial-gradient(90% 90% at 30% 40%, #000 0%, transparent 78%);
}
.poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(1, 34, 12, 0.5), transparent 55%), linear-gradient(0deg, rgba(1, 34, 12, 0.45), transparent 40%); }
.poster-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.poster-bar { position: absolute; height: 10px; background: var(--poster-yellow); }
.poster-bar-a { top: 0; right: 0; width: 150px; }
.poster-bar-b { bottom: 0; left: 0; width: 220px; opacity: 0; }
.poster-disc, .poster-ring { position: absolute; right: max(-60px, calc((100vw - 1180px) / 2 - 40px)); top: 50%; width: min(52vw, 640px); aspect-ratio: 1; border-radius: 50%; translate: 0 -46%; }
.poster-disc { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 62%, transparent 70%); }
.poster-ring { border: 2px dashed rgba(255, 229, 0, 0.55); animation: spin 60s linear infinite; scale: 1.08; }
.chip { position: absolute; display: block; transform: translate(calc(var(--px) * var(--d, 20px)), calc(var(--py) * var(--d, 20px))); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.chip i { display: grid; place-items: center; width: var(--s, 88px); height: var(--s, 88px); border-radius: 50%; color: #fff; background: radial-gradient(circle at 32% 28%, #ff5a5f, #e10b17 55%, #a40610); box-shadow: 0 18px 36px -10px rgba(120, 0, 8, 0.75), inset 0 -8px 14px rgba(0, 0, 0, 0.22); animation: float 7s ease-in-out infinite; }
.chip .icon { width: 46%; height: 46%; stroke-width: 2.6; }
.chip-1 { left: 3%; top: 16%; --s: 74px; --d: 26px; filter: blur(1.5px); }
.chip-1 i { rotate: -24deg; }
.chip-2 { right: 3.5%; top: 52%; --s: 128px; --d: -38px; filter: blur(3px); }
.chip-2 i { rotate: 18deg; animation-delay: -2.5s; }
.chip-3 { left: 44%; bottom: 20%; --s: 58px; --d: 16px; }
.chip-3 i { rotate: -12deg; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-16px) rotate(6deg); } }

.poster-people { position: absolute; z-index: 2; right: max(16px, calc((100vw - 1180px) / 2)); bottom: 84px; width: min(44vw, 540px); height: calc(100% - 118px); transform: translateX(calc(var(--px) * -12px)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.poster-person { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transform: translateX(90px) scale(.94); filter: blur(6px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1), filter .7s ease; }
.poster-person.is-active { opacity: 1; transform: none; filter: none; transition-delay: .15s; }
.poster-person.is-leaving { opacity: 0; transform: translateX(-70px) scale(.96); }
.poster-person img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 30px 40px rgba(0, 40, 14, 0.55)); }

.poster-inner { position: relative; z-index: 3; display: flex; align-items: center; min-height: clamp(520px, calc(100vh - 204px), 680px); padding-block: 56px 48px; }
.poster-copy { width: min(100%, 640px); }
.poster-slides { display: grid; }
.poster-slide { grid-area: 1 / 1; align-self: center; visibility: hidden; transition: visibility 0s .6s; }
.poster-slide.is-active { visibility: visible; transition-delay: 0s; }
.poster-kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-poster); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.poster-kicker::before { content: ""; width: 34px; height: 3px; background: var(--poster-yellow); }
.poster-title { margin-top: 18px; font-family: var(--font-poster); font-weight: 800; text-transform: uppercase; font-size: clamp(27px, 4.3vw, 56px); line-height: 1.02; letter-spacing: -0.025em; text-shadow: 0 6px 30px rgba(0, 40, 14, 0.45); text-wrap: nowrap; }
.poster-title.big { font-size: clamp(40px, 6.6vw, 92px); }
.poster-title .line { display: block; overflow: hidden; padding-block: .04em; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path .9s cubic-bezier(.7, 0, .2, 1); }
.poster-title .line > span { display: block; transform: translateY(60%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.poster-title .line.y { color: var(--poster-yellow); }
.poster-sub { margin-top: 22px; max-width: 46ch; font-size: 18px; color: rgba(255, 255, 255, 0.9); opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.poster-sub strong { color: var(--poster-yellow); font-weight: 600; }
.poster-slide.is-active .poster-kicker { opacity: 1; transform: none; transition-delay: .1s; }
.poster-slide.is-active .line { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.poster-slide.is-active .line > span { transform: none; }
.poster-slide.is-active .line:nth-child(1), .poster-slide.is-active .line:nth-child(1) > span { transition-delay: .15s; }
.poster-slide.is-active .line:nth-child(2), .poster-slide.is-active .line:nth-child(2) > span { transition-delay: .3s; }
.poster-slide.is-active .line:nth-child(3), .poster-slide.is-active .line:nth-child(3) > span { transition-delay: .45s; }
.poster-slide.is-active .poster-sub { opacity: 1; transform: none; transition-delay: .6s; }
.poster .hero-cta { margin-top: 32px; }
.poster .btn-ghost-dark { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }

.poster-nav { margin-top: 38px; display: flex; align-items: center; gap: 18px; }
.poster-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; display: grid; place-items: center; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.poster-arrow:hover { background: var(--poster-yellow); border-color: var(--poster-yellow); color: var(--ink); transform: scale(1.08); }
.poster-arrow.prev .icon { rotate: 180deg; }
.poster-count { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, 0.75); }
.poster-count b { color: #fff; font-weight: 500; }
.poster-progress { position: relative; display: block; width: 110px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.poster-progress i { position: absolute; inset: 0; background: var(--poster-yellow); transform: scaleX(0); transform-origin: 0 50%; }
.poster-progress.is-running i { animation: fill-x 6.5s linear both; }
.poster.is-paused .poster-progress i { animation-play-state: paused; }

.poster-strip { position: relative; z-index: 4; background: linear-gradient(180deg, #ffffff, #e9ebe6); color: var(--ink); box-shadow: 0 -14px 40px -18px rgba(0, 30, 10, 0.7); }
.poster-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 36px; flex-wrap: wrap; min-height: 84px; padding-block: 14px; }
.poster-strip-date { display: flex; align-items: center; gap: 14px; }
.poster-strip-date > .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--green); color: #fff; }
.poster-strip-date span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.poster-strip-date strong { display: block; font-family: var(--font-poster); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: -0.01em; }
.poster-strip .countdown { margin: 0; display: flex; gap: 8px; }
.poster-strip .countdown div { min-width: 66px; padding: 9px 6px 8px; background: var(--ink); border: 0; color: #fff; }
.poster-strip .countdown strong { font-size: 23px; }
.poster-strip .countdown-done { margin: 0; color: var(--ink); }
.poster-strip-tags { font-family: var(--font-poster); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Vision & mission : une couleur, image en parallaxe ---------- */
.vision-px { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.px-bg { position: absolute; inset: -16% 0; }
.px-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.px-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 44, 20, 0.86), rgba(4, 44, 20, 0.7) 45%, rgba(4, 44, 20, 0.9)); }
.vision-px .container { position: relative; z-index: 1; }
.vision-px .kicker { color: var(--green-300); }
.vision-px .kicker::before { background: var(--green-300); }
.vision-px .vm-panel { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px) saturate(130%); color: #fff; filter: none; transition: flex .7s cubic-bezier(.2, .7, .2, 1), background-color .5s, border-color .5s, box-shadow .3s; }
.vision-px .vm-panel.is-active { background: linear-gradient(150deg, rgba(19, 165, 80, 0.94), rgba(11, 118, 54, 0.94)); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.vision-px .vm-ico { background: rgba(255, 255, 255, 0.18); }
.vision-px .values-v3 li, .vision-px .values-v3 li:nth-child(n) { --c: var(--green); --on: #fff; --soft: rgba(95, 208, 138, 0.18); --deep: var(--green-300); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); color: #fff; }
.vision-px .values-v3 li > span:last-child { color: rgba(255, 255, 255, 0.72); }

/* ---------- Cartes programmes : remplissage + icône qui pivote ---------- */
.tracks-grid .track-card { transform-style: flat; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .45s; }
.tracks-grid .track-card::before { top: 0; height: 100%; background: linear-gradient(160deg, #13a550, var(--green-600)); transform: translateY(101%); transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.tracks-grid .track-card::after { content: ""; position: absolute; right: -46px; bottom: -46px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, 0.12); transform: scale(0); transition: transform .6s .1s cubic-bezier(.2, .7, .2, 1); }
.tracks-grid .track-card > * { position: relative; z-index: 1; }
.tracks-grid .track-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(11, 118, 54, 0.75); border-color: transparent; }
.tracks-grid .track-card:hover::before { transform: none; }
.tracks-grid .track-card:hover::after { transform: scale(1); }
.tracks-grid .track-card .ico { background: var(--green-50); color: var(--green-600); transition: transform .6s cubic-bezier(.2, .7, .2, 1), background-color .4s, color .4s; }
.tracks-grid .track-card:hover .ico { background: #fff; color: var(--green-600); transform: rotateY(180deg); }
.tracks-grid .track-card h3, .tracks-grid .track-card ul { transition: color .4s; }
.tracks-grid .track-card:hover h3 { color: #fff; }
.tracks-grid .track-card:hover ul { color: rgba(255, 255, 255, 0.9); }
.tracks-grid .track-card li::before { background: var(--green); transition: background-color .4s, width .4s; }
.tracks-grid .track-card:hover li::before { background: var(--poster-yellow); width: 12px; }

/* ---------- Boutons : le texte « roule » au survol ---------- */
.roll { display: inline-block; overflow: hidden; line-height: 1.3; vertical-align: bottom; }
.roll > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .roll > span { transform: translateY(-1.3em); }

/* ---------- Titres : apparition mot par mot ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(115%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.is-visible .w > span, .no-reveal .w > span { transform: none; }

/* ---------- Actualités : image floue qui glisse au survol ---------- */
.news-card::after { display: none; }
.news-card .media { position: relative; }
.img-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(50%) scaleX(2); filter: blur(10px); transition: transform .6s ease, opacity .6s ease, filter .6s ease; pointer-events: none; }
.news-card .media.flyer .img-ghost { object-position: center top; }
.news-card:hover .img-ghost { animation: swipe .7s ease both; }
@keyframes swipe { 0% { opacity: .9; transform: translateX(0) scaleX(1); filter: blur(0); } 100% { opacity: 0; transform: translateX(-50%) scaleX(2); filter: blur(12px); } }
.news-card .news-more { position: relative; }
.news-card .news-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s ease; }
.news-card:hover .news-more::after { transform: scaleX(1); transform-origin: 0 50%; }

@media (max-width: 980px) {
  .poster-inner { display: block; min-height: 0; padding-block: 44px 0; }
  .poster-people { position: relative; right: auto; bottom: auto; width: 100%; height: 360px; margin-top: 8px; }
  .poster-disc, .poster-ring { right: 50%; top: auto; bottom: 30px; width: 380px; translate: 50% 0; }
  .chip-2 { --s: 84px; top: auto; bottom: 34%; }
  .chip-3 { display: none; }
  .poster-strip-tags { display: none; }
  .poster-strip .container { justify-content: center; }
}
@media (max-width: 640px) {
  .poster-sub { font-size: 16.5px; }
  .poster-people { height: 300px; }
  .poster-disc, .poster-ring { width: 300px; }
  .poster .hero-cta .btn { flex: 1 1 100%; }
  .poster-strip .countdown div { min-width: 58px; }
  .chip-1 { --s: 52px; top: 6%; left: auto; right: 6%; }
}
@media (prefers-reduced-motion: reduce) {
  .poster-ring, .chip i, .news-card:hover .img-ghost { animation: none; }
  .w > span { transform: none; }
}
.chip-1 { left: 41%; top: 9%; }
@media (max-width: 640px) { .chip-1 { left: auto; right: 6%; top: 6%; } }
.poster-strip-tags { font-size: 11px; }
@media (max-width: 1300px) { .poster-strip-tags { display: none; } }
@media (max-width: 1180px) { .infobar-list li.hide-md { display: none; } }
@media (max-width: 980px) {
  .poster { display: flex; flex-direction: column; }
  .poster-inner { order: 1; padding-bottom: 8px; }
  .poster-people { order: 2; margin-top: 0; }
  .poster-strip { order: 3; }
}

/* Photos détourées de l accueil */
.poster-people { width: min(46vw, 600px); height: calc(100% - 96px); }
.poster-person.is-wide img { max-width: 112%; }
.poster-person img { width: auto; height: auto; }
@media (max-width: 980px) { .poster-people { width: 100%; height: 340px; } .poster-person.is-wide img { max-width: 100%; } }
@media (max-width: 640px) { .poster-people { height: 300px; } }
.poster-person.is-wide { justify-content: flex-end; }
@media (max-width: 980px) { .poster-person.is-wide { justify-content: center; } }

/* =========================================================
   V5 — images des formations, parallaxe adoucie, page Galerie
   ========================================================= */

/* ---------- Formations : image en tête de carte ---------- */
.tracks-grid .track-card { padding: 0; display: flex; flex-direction: column; }
.track-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; }
.track-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.track-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 44, 20, 0) 45%, rgba(4, 44, 20, 0.55)); transition: opacity .5s; }
.track-media .track-num { position: absolute; z-index: 1; right: 16px; top: 14px; font-family: var(--font-poster); font-weight: 800; font-size: 13px; letter-spacing: .04em; color: var(--ink); background: var(--poster-yellow); padding: 6px 10px; border-radius: 999px; }
.tracks-grid .track-card:hover .track-media img { transform: scale(1.1); filter: saturate(1.15); }
.track-body { position: relative; padding: 0 28px 30px; flex: 1; }
.tracks-grid .track-body .ico { margin-top: -27px; border: 4px solid #fff; width: 60px; height: 60px; box-shadow: var(--shadow-sm); }
.tracks-grid .track-card:hover .track-body .ico { border-color: #fff; }
.tracks-grid .track-card h3 { margin-top: 18px; }

/* ---------- Vision & mission : parallaxe plus discrète ---------- */
.px-bg { inset: -6% 0; }

/* ---------- Bandeau des pages intérieures ---------- */
.page-hero .poster-ring { right: -140px; top: 50%; width: 520px; }
.page-hero-inner { position: relative; z-index: 3; padding-block: 64px 72px; }
.page-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; font-weight: 500; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); transition: color .2s, gap .2s; }
.page-back .icon { rotate: 180deg; }
.page-back:hover { color: var(--poster-yellow); gap: 14px; }
.page-hero .poster-kicker { display: flex; }
.page-hero.is-in .poster-kicker { opacity: 1; transform: none; transition-delay: .1s; }
.page-hero.is-in .line { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition-delay: .2s; }
.page-hero.is-in .line > span { transform: none; transition-delay: .2s; }
.page-hero.is-in .line:nth-child(2), .page-hero.is-in .line:nth-child(2) > span { transition-delay: .35s; }
.page-hero.is-in .poster-sub { opacity: 1; transform: none; transition-delay: .55s; }
html:not(.js) .page-hero .poster-kicker, html:not(.js) .page-hero .poster-sub { opacity: 1; transform: none; }
html:not(.js) .page-hero .line { clip-path: none; }
html:not(.js) .page-hero .line > span { transform: none; }

/* ---------- Page Galerie ---------- */
.gallery-page { padding-top: 56px; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-bar .filters { margin-bottom: 0; }
.gallery-count { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gallery-count b { color: var(--red); font-weight: 500; font-size: 15px; }
.gallery-full .tile.is-in { animation: tile-in .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(26px) scale(.92); } to { opacity: 1; transform: none; } }
.gallery-full .tile { transition: box-shadow .3s; }
.gallery-full .tile:hover { box-shadow: 0 24px 40px -24px rgba(11, 23, 18, 0.7); }
.gallery-full .tile::before { content: ""; position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 4px; background: var(--poster-yellow); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s ease; }
.gallery-full .tile:hover::before { transform: scaleX(1); }

.lightbox-nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.lightbox-nav:hover { background: var(--poster-yellow); color: var(--ink); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.prev .icon { rotate: 180deg; }
.lightbox-nav.next { right: 18px; }
.lightbox-nav .icon { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .page-hero-inner { padding-block: 44px 52px; }
  .track-body { padding: 0 22px 26px; }
  .lightbox-nav { top: auto; bottom: 18px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-full .tile.is-in { animation: none; }
}

/* Vision & mission : fond fixe, comme la section « Nos valeurs » de l ancien site */
.vision-px { background: linear-gradient(rgba(4, 44, 20, 0.8), rgba(4, 44, 20, 0.8)), url("../images/students-tech.jpg") center / cover no-repeat fixed; }
@media (hover: none), (max-width: 980px) { .vision-px { background-attachment: scroll, scroll; } }

/* Vignette d une vidéo sans image de couverture */
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.news-empty { color: var(--muted); }

/* Section à fond fixe (Vision & mission) : bande moins haute */
.section.vision-px { padding-block: 64px; }
.vision-px .section-head { margin-bottom: 32px; }
.vision-px .section-head h2 { font-size: clamp(26px, 2.8vw, 36px); }
.vision-px .vm { height: 320px; }
.vision-px .vm-panel { padding: 26px; }
.vision-px .vm-panel h3 { font-size: 28px; }
.vision-px .vm-panel p { font-size: 16px; margin-top: 10px; }
.vision-px .vm-ghost { width: 240px; height: 240px; }
.vision-px .values-v3 { margin-top: 40px; }
.vision-px .values-v3 li { padding: 18px 18px; }
.vision-px .values-v3 strong { margin-top: 12px; }
@media (max-width: 980px) { .section.vision-px { padding-block: 52px; } .vision-px .vm { height: auto; } .vision-px .vm-panel, .vision-px .vm-panel.is-active { padding-top: 80px; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: flex; align-items: center; flex-direction: row-reverse; color: #fff; }
.wa-float .icon { position: relative; width: 58px; height: 58px; padding: 13px; border-radius: 50%; background: #25d366; box-shadow: 0 12px 28px -8px rgba(18, 140, 70, 0.75); transition: transform .25s, background-color .25s; }
.wa-float::before { content: ""; position: absolute; right: 0; bottom: 0; width: 58px; height: 58px; border-radius: 50%; background: #25d366; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.75); opacity: 0; } }
.wa-float:hover .icon, .wa-float:focus-visible .icon { transform: scale(1.08); background: #1ebe5b; }
.wa-float-label { margin-right: 12px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: var(--shadow-md); opacity: 0; transform: translateX(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
.to-top { bottom: 94px; right: 27px; }
.price-card .btn .icon:first-child { width: 1.3em; height: 1.3em; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-float .icon, .wa-float::before { width: 52px; height: 52px; }
  .wa-float .icon { padding: 12px; }
  .wa-float-label { display: none; }
  .to-top { right: 18px; bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; opacity: 0; } }

/* ---------- Formation sans photo ---------- */
.tracks-grid .track-card.no-media .track-body { padding-top: 30px; }
.tracks-grid .track-card.no-media .track-body .ico { margin-top: 0; }

/* ---------- Témoignages ---------- */
.testimonials { background: #fff; }
.tm-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 20px; }
.tm-track::-webkit-scrollbar { display: none; }
.tm-card { position: relative; margin: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px 30px 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); scroll-snap-align: start; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, background-color .35s; }
.tm-card::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s ease; }
.tm-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-md); }
.tm-card:hover::before { transform: scaleX(1); }
.tm-quote { width: 38px; height: 38px; color: var(--green); }
.tm-card blockquote { margin: 0; flex: 1; color: #2d3a33; font-size: 16px; line-height: 1.7; }
.tm-card blockquote p + p { margin-top: 10px; }
.tm-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.tm-avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green-50); }
.tm-c1 { background: var(--red); }
.tm-c2 { background: var(--yellow); color: var(--ink); }
.tm-who strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.tm-who small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.tm-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.tm-nav[hidden] { display: none; }
.tm-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s; }
.tm-arrow:hover:not(:disabled) { background: var(--green); border-color: var(--green); color: #fff; }
.tm-arrow:disabled { opacity: .35; cursor: default; }
.tm-arrow.prev .icon { rotate: 180deg; }
@media (max-width: 980px) { .tm-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .tm-track { grid-auto-columns: 88%; gap: 16px; } .tm-card { padding: 26px 22px 22px; } }
