/* =========================================================
   LP x3 — IBM SkillsBuild × Tralalère
   Charte : fond crème, encre marine, violet / corail / vert d'eau, CTA jaune,
   bordures épaisses + ombre décalée. Police : Bricolage Grotesque.
   Mobile-first ; paliers : 640 px (tablette), 900 px, 960 px (ordinateur).
   ========================================================= */

:root {
  --cream: #fff5ea;
  --ink: #16122f;
  --ink-2: #5b5470;        /* texte secondaire */
  --violet: #6a2bff;
  --violet-soft: #ede6ff;
  --coral: #ff5b3a;
  --coral-soft: #ffe2da;
  --teal: #0a7f6d;         /* contraste AA avec le texte blanc */
  --teal-dark: #0b6b5c;
  --teal-soft: #dcf4ee;
  --yellow: #ffd43b;
  --yellow-glow: #ffe68a;
  --white: #ffffff;

  --border: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 28px;
  --radius-sm: 18px;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --section-y: 56px;       /* espacement vertical de toutes les sections */
  --max: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.frame { border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.u-violet { color: var(--violet); }
.u-yellow { color: var(--yellow); }

/* ---------- Typographie ---------- */
.h1 { font-size: clamp(1.875rem, 8.4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.h1__line { display: block; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 7vw, 2.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.h2--light { color: var(--white); }
.hook { margin-top: 16px; font-size: 1.25rem; line-height: 1.35; font-weight: 600; text-wrap: pretty; }
.lead { margin-top: 8px; font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sub { margin-top: 10px; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Pastille du hero ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 8px 18px;
  font-weight: 600; font-size: 1rem;
  border: var(--border); border-radius: 999px;
}
.tag--coral { background: var(--coral-soft); }

/* ---------- Boutons CTA (jaune, bordure, ombre, halo, reflet lumineux) ---------- */
.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 12px 18px;
  font: 800 clamp(1.125rem, 5.2vw, 1.3125rem)/1.15 var(--font); letter-spacing: -0.01em;
  white-space: nowrap; color: var(--ink); text-decoration: none;
  background: var(--yellow); border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow), 0 0 0 7px var(--yellow-glow);
  transition: transform 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink), 0 0 0 7px var(--yellow-glow); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink), 0 0 0 7px var(--yellow-glow); }
.btn__play { font-size: 1.1rem; line-height: 1; }
.btn, .topbar__cta { overflow: hidden; isolation: isolate; }
.btn::after, .topbar__cta::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 38%; z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.topbar__cta::after { animation-delay: 0.6s; }
@keyframes shine {
  0%, 62% { transform: translateX(-160%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}

.checks { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; font-weight: 600; font-size: 1.0625rem; }
.checks li::before { content: "✓ "; font-weight: 800; }
.checks--col { flex-direction: column; gap: 10px; }

/* ---------- En-tête fixe : pastille au chargement, bouton CTA une fois le hero dépassé ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--cream); border-bottom: 2px solid transparent;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.topbar.is-stuck { border-bottom-color: var(--ink); box-shadow: 0 6px 18px rgba(22,18,47,0.08); }
.topbar__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.topbar__brands { display: flex; align-items: center; gap: 5px; flex: none; }
.topbar__logo { height: 14px; width: auto; }
.topbar__x { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); line-height: 1; }
.topbar__tl { height: 21px; width: auto; }
.partner {
  flex: none;
  font-size: 0.75rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  padding: 5px 10px; border: 1.5px solid #e2d6c8; border-radius: 999px;
  transition: opacity 150ms ease;
}
.topbar__cta {
  position: absolute; right: var(--gutter); top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  font: 800 0.9375rem/1 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--yellow); border: var(--border); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-50%) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.topbar__cta span { font-size: 0.75rem; }
.topbar__cta:active { box-shadow: 1px 1px 0 var(--ink); }
.topbar.is-cta .partner { opacity: 0; visibility: hidden; }
.topbar.is-cta .topbar__cta { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity 180ms ease, transform 180ms ease, visibility 0s; }
@media (max-width: 439px) {
  .topbar__cta { padding: 8px 12px; font-size: 0.875rem; gap: 6px; } /* ne recouvre pas le logo Tralalère */
}
@media (max-width: 359px) {
  .partner { font-size: 0.6875rem; padding: 4px 8px; }
  .topbar__logo { height: 12px; }
  .topbar__tl { height: 18px; }
  .topbar__cta { padding: 8px 10px; font-size: 0.8125rem; }
}
@media (min-width: 440px) {
  .topbar__logo { height: 18px; }
  .topbar__tl { height: 27px; }
  .topbar__brands { gap: 9px; }
  .partner { font-size: 0.875rem; padding: 7px 14px; }
}
@media (min-width: 640px) {
  .topbar__cta { min-height: 48px; padding: 10px 22px; font-size: 1.0625rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--flush { padding-top: 0; }   /* deux sections de même fond : pas de double espacement */
.section--tint { background: var(--white); }

/* 1. Hero */
.hero { padding: 12px 0 var(--section-y); }
.hero__grid { display: grid; gap: 36px; }
.hero__cta { margin-top: 26px; }
.hero__media { background: var(--violet-soft); }
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* 2. Problème : bulles de discussion */
.bubbles { margin-top: 22px; display: grid; gap: 12px; }
.bubble {
  position: relative; max-width: 94%;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  background: var(--white); border: var(--border); border-radius: 22px 22px 22px 6px;
}
.bubble--right { justify-self: end; background: var(--violet-soft); border-radius: 22px 22px 6px 22px; }
.bubble__ico { flex: none; font-size: 1.375rem; line-height: 1.2; }
.bubble__quote { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
.bubble__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }

/* 2. Solution : cartes formations */
.solution__title { margin-top: var(--section-y); }
.modules { margin-top: 26px; display: grid; gap: 22px; }
.module {
  padding: 22px 18px 18px; color: var(--white);
  border: var(--border); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink);
}
.module--violet { background: var(--violet); }
.module--coral { background: var(--coral); color: var(--ink); }
.module--teal { background: var(--teal); }
.module__top { display: flex; align-items: center; justify-content: space-between; }
.time {
  display: inline-block; padding: 5px 14px;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink);
  background: var(--white); border: var(--border); border-radius: 999px;
}
.module__emoji { font-size: 2.5rem; line-height: 1; }
.module__title { margin-top: 12px; font-size: 2rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.module__text { margin-top: 6px; font-size: 1.0625rem; line-height: 1.4; }
.module__card {
  margin-top: 16px; padding: 10px 10px 14px;
  background: var(--white); color: var(--ink);
  border: var(--border); border-radius: var(--radius-sm);
}
.module__card img { width: 100%; border-radius: 10px; }
.module__course { margin-top: 10px; padding-inline: 6px; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.module__course strong { color: var(--ink); font-weight: 600; }

/* 3. Inscription en 3 étapes : cartes empilées sur mobile, 3 colonnes ensuite */
.steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.steps__cta { margin-top: 28px; }   /* aligné à gauche, comme le titre et les cartes */
.step {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink);
}
/* Captures recadrées au format du cadre (16/10) : elles le remplissent bord à bord */
.step__shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--border); }
.step__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.step__body { position: relative; padding: 16px 18px 18px 64px; }
.step__num {
  position: absolute; left: 16px; top: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); border: var(--border); font-weight: 800; font-size: 1.125rem; color: var(--ink);
}
.step__title { font-weight: 800; font-size: 1.125rem; line-height: 1.25; color: var(--ink); }
.step__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* 4. Bénéfices */
.benefits { display: grid; gap: 32px; }
.perks { margin-top: 22px; display: grid; gap: 18px; }
.perks li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.perk__ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--yellow); border: var(--border); border-radius: 50%;
}
.perks strong { display: block; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; }
.perks span { color: var(--ink-2); font-size: 1rem; line-height: 1.4; }

/* ---------- Carrousel (exemples avant / après + avis) ---------- */
.ex { min-width: 0; }
.ex__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ex__title { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.ex__nav { display: flex; gap: 8px; }
.ex__arrow {
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 800 1.125rem/1 var(--font); color: var(--ink);
  background: var(--white); border: var(--border); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease;
}
.ex__arrow:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ex__track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 8px 10px 2px; margin: -4px -8px 0 -2px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.ex__track::-webkit-scrollbar { display: none; }
.ex__slide { scroll-snap-align: start; border: var(--border); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.ex__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ex__dots button {
  position: relative; width: 10px; height: 10px; padding: 0;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  cursor: pointer; transition: width 200ms ease, background-color 200ms ease;
}
.ex__dots button::after { content: ""; position: absolute; inset: -12px -6px; } /* zone tactile élargie */
.ex__dots button[aria-current="true"] { width: 28px; background: var(--ink); }
.ex--dark .ex__title { color: var(--white); }
.ex--dark .ex__dots button { border-color: var(--white); }
.ex--dark .ex__dots button[aria-current="true"] { background: var(--white); }

/* Carte exemple avant / après */
.ba { background: var(--white); }
.ba__label {   /* étiquette + « Exemple illustratif » sur une seule ligne, tailles proportionnelles sur mobile */
  display: flex; align-items: center; gap: min(2.2vw, 10px);
  padding: 10px min(3.6vw, 16px);
  font-size: min(2.9vw, 0.8125rem); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-2); background: var(--cream); border-bottom: var(--border);
}
.ba__theme {
  flex: none; padding: 3px min(2.4vw, 10px); border-radius: 999px;
  font-size: min(3.2vw, 0.8125rem); font-weight: 800; letter-spacing: 0; text-transform: none; white-space: nowrap;
  color: var(--white);
}
.ba__row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 16px 18px; font-size: 1.0625rem; line-height: 1.4; }
.ba__row span { font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; padding-top: 3px; }
.ba__row--before { color: var(--ink-2); }
.ba__row--before span { color: #9a91aa; }
.ba__row--after { border-top: 2px dashed #e2d6c8; font-weight: 600; }
.ba__row--after span { color: var(--teal-dark); }

/* 5. Preuve sociale (fond encre) */
.proof { background: var(--ink); color: var(--white); }
.stats-car { margin-top: 26px; }
.stats { margin-top: 0; }   /* annule le décalage haut du carrousel */
.stats > li {
  scroll-snap-align: start;
  padding: 18px 16px; border-radius: 22px;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.18);
}
.stats__score { display: block; margin-bottom: 6px; font-size: 1.75rem; line-height: 1; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.stars { display: flex; gap: 3px; }
.stars svg { width: clamp(18px, 5.6vw, 24px); height: clamp(18px, 5.6vw, 24px); fill: var(--yellow); }
.stars svg.star--half { fill: url(#half-fill); }
.stats__label { display: block; margin-top: 10px; font-size: 0.9375rem; line-height: 1.35; color: #d8d3e6; }
.stats__learners { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--white); }
.stats__cap { width: 22px; height: 22px; fill: var(--yellow); flex: none; }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; font-weight: 600; font-size: 0.9375rem;
  color: var(--ink); background: var(--white); border-radius: 999px;
}
@media (min-width: 640px) {   /* avis : 3 colonnes, plus de carrousel */
  .stats-car .ex__head, .stats-car .ex__dots { display: none; }
  .stats { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; }
}

/* 6. Différenciation : sans méthode / avec IBM SkillsBuild */
.versus { margin-top: 26px; display: grid; gap: 16px; }
.vs { padding: 20px 20px 22px; border-radius: var(--radius); }
.vs--alone { background: transparent; border: 2.5px dashed #c9bdb0; color: var(--ink-2); }
.vs--ibm { background: var(--teal-soft); }
.vs__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.vs ul { margin-top: 12px; display: grid; gap: 10px; }
.vs li { position: relative; padding-left: 30px; font-size: 1.0625rem; line-height: 1.4; }
.vs li::before { position: absolute; left: 4px; top: 2px; font-weight: 800; }
.vs--alone li::before { content: "✕"; color: var(--coral); }
.vs--ibm li { font-weight: 600; }
.vs--ibm li::before { content: "✓"; color: var(--teal-dark); }
.vs__tag {
  display: table; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.5; color: var(--white);
}
.vs--alone .vs__tag { opacity: 0.75; }
/* Couleurs des pastilles CV / Entretien / LinkedIn (exemples + comparatif), après les styles de base */
.ba__theme--violet, .vs__tag--violet { background: var(--violet); }
.ba__theme--coral, .vs__tag--coral { background: var(--coral); color: var(--ink); }
.ba__theme--teal, .vs__tag--teal { background: var(--teal); }
.vs li.vs__extra { padding-top: 10px; border-top: 1.5px dashed rgba(10,127,109,0.35); }
.vs li.vs__extra::before { top: 12px; }
@media (min-width: 640px) {   /* lignes CV / Entretien / LinkedIn alignées d'une carte à l'autre */
  .versus { grid-template-columns: 1fr 1fr; }
  @supports (grid-template-rows: subgrid) {
    .versus { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .vs { display: grid; grid-row: 1 / span 5; grid-template-rows: subgrid; row-gap: 14px; }
    .vs ul { display: contents; }
  }
}

/* 7. CTA final */
.final__box {
  background: #fdf5f2; padding: 28px 20px 26px;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); /* bords alignés sur le contenu */
}
.final__duo { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 22px; }
.final__list { margin-top: 0; font-size: 1.0625rem; line-height: 1.3; }
@media (max-width: 639px) {   /* le bouton tient dans le cadre, plus étroit que la page */
  .final__box { padding-inline: 16px; }
  .final__box .btn { font-size: min(4.4vw, 1.3125rem); gap: 10px; padding-inline: 12px; }
}
@media (min-width: 640px) {   /* bénéfices à gauche, bouton à droite */
  .final__duo { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
}

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--white); padding: 26px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 12px; }
.footer__brands { display: flex; align-items: center; gap: 10px; }
.footer__sb { height: 18px; width: auto; filter: brightness(0) invert(1); }   /* logo IBM en blanc */
.footer__x { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.7); line-height: 1; }
.footer__tl { height: 28px; width: auto; }
.footer__links { display: flex; flex-wrap: nowrap; gap: min(3vw, 22px); white-space: nowrap; }   /* une seule ligne, même sur mobile */
.footer__links a { font-weight: 600; font-size: min(2.75vw, 0.8125rem); padding-block: 6px; color: var(--white); text-underline-offset: 3px; }
.footer__links a:hover { color: var(--yellow); }
.footer :focus-visible { outline-color: var(--yellow); }

/* ---------- Bandeau cookies ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  max-height: calc(100dvh - 24px); overflow-y: auto;   /* détail déplié : défile au lieu de dépasser l'écran */
  padding: 16px 16px 14px;
  background: var(--white); color: var(--ink);
  border: var(--border); border-radius: 22px; box-shadow: var(--shadow);
}
.consent__title { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.consent__text { margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.consent__more {
  padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline;
  background: none; border: 0; cursor: pointer;
}
.consent__details { display: grid; gap: 8px; margin-top: 10px; }
.consent__details[hidden] { display: none; }
.consent__save { width: 100%; }
.consent__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); background: var(--cream); border-radius: 12px; cursor: pointer; }
.consent__opt input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); }
.consent__opt strong { color: var(--ink); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.consent__btn {
  min-height: 46px; padding: 8px 14px;
  font: 800 1rem/1 var(--font); color: var(--ink);
  background: var(--white); border: var(--border); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.consent__btn:hover { background: var(--cream); }
.consent__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (min-width: 640px) {
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 420px; }
}

/* Message temporaire en haut d'écran (mode équipe activé / désactivé, URL d'inscription manquante) */
.toast {
  position: fixed; left: 50%; top: 14px; z-index: 30; transform: translate(-50%, -160%);
  max-width: calc(100% - 28px); padding: 12px 18px;
  background: var(--ink); color: var(--white); font-size: 0.9375rem; border-radius: 16px;
  transition: transform 240ms ease;
}
.toast.is-visible { transform: translate(-50%, 0); }

/* =========================================================
   Tablette ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 32px; --section-y: 72px; }
  .hero__cta .btn, .steps__cta .btn, .final__box .btn { width: auto; display: inline-flex; padding-inline: 36px; }
  .bubbles { gap: 16px; }
  .bubble { max-width: 78%; padding: 18px 20px; }   /* conversation gauche / droite */
  .module { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 22px; align-items: center; padding: 26px; }
  .module__top, .module__title, .module__text { grid-column: 1; }
  .module__card { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }   /* texte à gauche, visuel à droite */
  .ex__track { grid-auto-columns: 70%; }
  .final__box { padding: 36px 32px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .hero__media { max-width: 520px; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* =========================================================
   Ordinateur ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  :root { --section-y: 88px; }
  .topbar__logo { height: 24px; }
  .topbar__tl { height: 36px; }
  .topbar__brands { gap: 12px; }
  .topbar__x { font-size: 1.25rem; }
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr 500px; gap: 64px; }
  .bubbles { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
  .bubble { max-width: none; flex-direction: column; gap: 12px; padding: 22px 22px 24px; }
  .bubble--right { justify-self: stretch; }
  .bubble__ico { font-size: 1.75rem; }
  .bubble__quote { font-size: 1.1875rem; }
  .bubble__text { font-size: 1rem; }
  .modules { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .module { display: flex; flex-direction: column; align-items: stretch; padding: 22px 18px 18px; }   /* 3 cartes de même hauteur */
  .module__card { margin-top: auto; }
  .module__text { margin-bottom: 16px; }
  .benefits { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .ex__track { grid-auto-columns: 100%; }
  .final__box { padding: 48px 56px; }
  .final__duo { column-gap: 48px; }
  .final__list { font-size: 1.25rem; gap: 14px; }
  .footer { padding-bottom: 32px; }
  .footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }   /* logo à gauche, liens à droite */
  .footer__links { justify-content: flex-end; }
}

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