/* ============================================================
   DJURDJURA PHARMA EXPO 2026 — Design System v2
   Charte : azur / bleu profond / bleu nuit + vert pharmacie
   ============================================================ */

:root {
  --night: #082B54;
  --deep: #051B36;
  --blue: #0D58AD;
  --blue-mid: #0E7BD4;
  --azure: #29A8E0;
  --sky: #9BDCF8;
  --green: #3BA935;
  --green-deep: #2E8C2A;
  --teal: #2BB39A;

  --ink: #0B1F3A;
  --ink-soft: #46597B;
  --bg: #FFFFFF;
  --bg-soft: #F3F8FD;
  --hairline: rgba(8, 43, 84, 0.10);

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 30px;
  --radius-xl: 40px;

  --shadow-s: 0 2px 10px rgba(8, 43, 84, 0.06);
  --shadow-m: 0 14px 44px rgba(8, 43, 84, 0.13);
  --shadow-l: 0 34px 90px rgba(8, 43, 84, 0.24);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --header-h: 66px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: rgba(41, 168, 224, 0.28); }

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

section { scroll-margin-top: calc(var(--header-h) + 10px); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--azure), var(--green));
}

.h-display {
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--night);
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.7;
  text-wrap: pretty;
}
.text-gradient {
  background: linear-gradient(92deg, var(--azure) 0%, var(--teal) 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
  will-change: transform;
  white-space: nowrap;
}
/* hover gaté : au tap, :hover reste collé et le bouton resterait « soulevé » */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px) scale(1.015); }
}
.btn:active { transform: translateY(0) scale(0.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 400px) {
  .btn { padding: 14px 20px; font-size: 14.5px; white-space: normal; text-align: center; max-width: 100%; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 88, 173, 0.35);
}
@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 16px 40px rgba(13, 88, 173, 0.45); }
}
.btn-green {
  background: linear-gradient(135deg, #46BE3E, var(--green-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(59, 169, 53, 0.35);
}
@media (hover: hover) {
  .btn-green:hover { box-shadow: 0 16px 40px rgba(59, 169, 53, 0.45); }
}
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(4, 20, 45, 0.25); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline { border: 1.5px solid rgba(13, 88, 173, 0.35); color: var(--blue); background: transparent; }
.btn-outline:hover { background: rgba(13, 88, 173, 0.06); }

/* ============================================================
   BARRE DE PROGRESSION
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--azure), var(--teal), var(--green));
  z-index: 200;
  border-radius: 0 3px 3px 0;
}

/* ============================================================
   HEADER + COMPTE À REBOURS
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 4px 24px rgba(8, 43, 84, 0.06);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--night); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--azure), var(--green));
}

/* Compte à rebours (header) */
.count-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 123, 212, 0.10), rgba(59, 169, 53, 0.10));
  border: 1px solid rgba(13, 88, 173, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--night);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.count-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); }
.count-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(59, 169, 53, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(59, 169, 53, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(59, 169, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 169, 53, 0); }
}
.count-chip b { color: var(--blue); font-weight: 800; }
.count-chip time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-weight: 600;
}

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--night);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

/* ≤1140px : la navigation passe en menu plein écran (hamburger) */
@media (max-width: 1140px) {
  .main-nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 26px 28px 40px;
    background: rgba(255, 255, 255, 0.93);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden; /* opacity:0 seule laisse 8+ liens invisibles focalisables au clavier/lecteur d'écran */
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.nav-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
  .main-nav a {
    font-size: 21px;
    font-weight: 600;
    color: var(--night);
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--hairline);
  }
  .main-nav a.active::after { display: none; }
  .header-cta { display: none; }
  .main-nav .nav-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 22px; }
  .main-nav .nav-actions .btn { width: 100%; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  body.nav-open { overflow: hidden; }
  html:has(body.nav-open) { overflow: hidden; } /* iOS : overflow sur body seul ne bloque pas le scroll tactile */
  .site-header .count-chip { margin-left: auto; }
  /* sans count-chip dans le header (page inscription), le toggle garde margin-left:auto
     et reste à droite ; avec chip (index), le chip pousse et le toggle se colle à lui */
  .site-header .count-chip ~ .nav-toggle { margin-left: 0; }
  .main-nav .count-chip { margin: 18px 0 0; align-self: stretch; justify-content: center; padding: 14px; font-size: 15px; }
  .main-nav .count-chip time { display: inline; }
}
@media (max-width: 640px) {
  /* barre 66px sur 320px : chrome réduit + chip rétrécissable, sinon le libellé long
     du compte à rebours (« Édition terminée ») éjecte le hamburger hors de l'écran */
  .header-inner { gap: 12px; padding: 0 16px; }
  .header-inner > .count-chip { padding: 8px 12px; min-width: 0; }
  .header-inner > .count-chip .dot { flex: none; }
  .header-inner > .count-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* scopé au chip de la barre : celui du menu plein écran garde son compteur hh:mm:ss */
  .header-inner > .count-chip time { display: none; }
}
@media (min-width: 1141px) {
  .main-nav .nav-actions, .main-nav .count-chip { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 30px) 0 130px;
  color: #fff;
  background: linear-gradient(168deg, #3FB9E6 0%, #1B8AC8 34%, #0D58AD 66%, #082B54 100%);
  overflow: hidden;
  isolation: isolate;
}

/* blobs "aurora" animés */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
}
.aurora-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(155, 220, 248, 0.75), transparent 65%);
  top: -180px; right: -120px;
  animation: drift-1 16s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(43, 179, 154, 0.45), transparent 65%);
  bottom: -160px; left: -140px;
  animation: drift-2 20s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(140, 233, 127, 0.28), transparent 65%);
  top: 30%; left: 42%;
  animation: drift-3 24s ease-in-out infinite alternate;
}
@keyframes drift-1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes drift-2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(110px, -60px) scale(1.1); } }
@keyframes drift-3 { from { transform: translate(0, 0) scale(0.9); } to { transform: translate(-70px, -90px) scale(1.2); } }

.hero-net { position: absolute; inset: 0; pointer-events: none; opacity: 0.45; mix-blend-mode: screen; z-index: -1; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 40px;
  align-items: center;
}

.hero-official {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #6FE05A; box-shadow: 0 0 12px #6FE05A; }

.hero h1 { color: #fff; margin-bottom: 20px; }
/* évite les retours à la ligne forcés (mauvaises coupures) sur petits écrans */
@media (max-width: 759px) { .hero h1 br { display: none; } }
.hero h1 .hl-green {
  background: linear-gradient(92deg, #8CE97F, #46BE3E);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero h1 .hl-sky {
  background: linear-gradient(92deg, #CDEDFF, #8FD4F6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-theme {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-theme em { font-style: normal; font-weight: 600; color: #fff; }

/* --- Timeline des dates (nouvelle visualisation) --- */
.date-line { margin-bottom: 36px; max-width: 460px; }
.date-line .dl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 14px;
}
.date-line .dl-month {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9BDCF8;
}
.date-line .dl-place {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.date-line .dl-place svg { width: 15px; height: 15px; color: #8CE97F; }
.dl-track {
  position: relative;
  display: flex;
  justify-content: space-between;
}
.dl-track::before {
  content: "";
  position: absolute;
  left: 28px; right: 28px; top: 27px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8CE97F, #4FC6EE 55%, rgba(255, 255, 255, 0.35));
}
.dl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 56px;
}
.dl-node .day {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}
.dl-node.open .day {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(4, 20, 45, 0.4);
}
.dl-node.open::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}
.dl-node .wd {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.dl-node .tag {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8CE97F;
  white-space: nowrap;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.hero-visual .capsule-wrap { will-change: transform; transition: transform 0.25s ease-out; }
.hero-visual img {
  width: min(320px, 64vw);
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(4, 20, 45, 0.45));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* --- Ticker géant bas de héro --- */
.ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 0 18px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 27, 54, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0; /* l'espacement vient du padding-right des spans : avec un gap, -50% ≠ une période et la boucle sautait de 21px */
  width: max-content;
  animation: ticker 30s linear infinite;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.ticker i {
  font-style: normal;
  color: #8CE97F;
  font-size: 13px;
}

/* animations du héro en pause quand il est hors écran (classe posée par js/site.js) :
   elles tournaient en continu et dégradaient le scroll des sections suivantes */
.hero.offscreen .aurora,
.hero.offscreen .ticker-track,
.hero.offscreen .hero-visual img,
.hero.offscreen .dl-node.open::before { animation-play-state: paused; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { order: -1; min-height: 0; margin-bottom: 6px; }
  /* capsule bornée en HAUTEUR (l'image est très verticale : 150px de large = 360px de haut,
     le titre passait sous la ligne de flottaison) ; 150px = repli si svh non supporté */
  .hero-visual img { width: auto; height: 150px; height: clamp(110px, 16svh, 160px); }
  /* 96px en bas : le ticker ne mesure que ~60px, 150px laissait une bande vide */
  .hero { padding: calc(var(--header-h) + 18px) 0 96px; }
  .date-line { max-width: 100%; }
  /* blobs figés : les filtres blur animés saccadent sur GPU mobiles
     (.theme-blob est traité plus bas — sa règle de base arrive après celle-ci) */
  .aurora { animation: none; }
}
@media (max-width: 560px) {
  /* .dl-top wrappe sur 2 lignes sous ~470px : la ligne du lieu passait sous le tag « Ouverture » (top:-26px) */
  .date-line .dl-top { margin-bottom: 32px; }
}

/* ============================================================
   BENTO — L'ESSENTIEL
   ============================================================ */
.section { padding: clamp(76px, 9vw, 128px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head .h-section { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 132px;
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-s);
  padding: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

.t-2x2 { grid-column: span 2; grid-row: span 2; }
.t-2x1 { grid-column: span 2; }
.t-1x2 { grid-row: span 2; }

.tile .t-kpi {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.tile .t-kpi .unit { font-size: 0.45em; font-weight: 700; margin-left: 4px; color: var(--blue-mid); }
.tile .t-label { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); margin-top: 8px; }
.tile .t-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.tile .t-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.tile:hover .t-link svg { transform: translateX(4px); }

.tile-main {
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(41, 168, 224, 0.18), transparent 60%),
    linear-gradient(160deg, #FFFFFF, #EFF7FD);
}
.tile-main .t-kpi { font-size: clamp(4rem, 8vw, 6.4rem); }

.tile-dark {
  background:
    radial-gradient(360px 220px at 90% -10%, rgba(41, 168, 224, 0.4), transparent 60%),
    var(--night);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  justify-content: center;
}
.tile-dark .t-quote { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.tile-dark .t-label { color: rgba(255, 255, 255, 0.65); }

.tile-photo { padding: 0; }
.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.tile-photo:hover img { transform: scale(1.06); }
.tile-photo .t-overlay {
  position: relative;
  z-index: 1;
  padding: 22px;
  margin-top: auto;
  background: linear-gradient(transparent, rgba(5, 27, 54, 0.78));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tile-photo .t-overlay svg { width: 16px; height: 16px; }

.tile-green {
  background:
    radial-gradient(300px 200px at 0% 100%, rgba(140, 233, 127, 0.35), transparent 60%),
    linear-gradient(150deg, #46BE3E, var(--green-deep));
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.tile-green .t-kpi, .tile-green .t-kpi .unit { color: #fff; }
.tile-green .t-label { color: rgba(255, 255, 255, 0.85); }

.tile-recap { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.tile-recap .r-item { flex: 1 1 100px; }
.tile-recap .r-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--night); font-variant-numeric: tabular-nums; }
.tile-recap .r-lab { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.tile-recap .r-title {
  flex: 1 1 100%;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
  .t-2x2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .t-2x2, .t-2x1, .t-1x2 { grid-column: span 1; grid-row: span 1; }
  .tile { min-height: 0; } /* 132px + contenu plaqué en bas = bande morte en haut de chaque tuile KPI */
  .tile-photo { min-height: 230px; }
  .tile-main { min-height: 230px; }
}

/* ============================================================
   BANDE SOMBRE : THÈME + POURQUOI PARTICIPER
   ============================================================ */
.theme {
  position: relative;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(14, 123, 212, 0.4), transparent 60%),
    radial-gradient(760px 480px at 95% 105%, rgba(43, 179, 154, 0.25), transparent 60%),
    var(--deep);
  color: #fff;
  overflow: hidden;
}
.theme .eyebrow { color: #8FD4F6; }
.theme-blob {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 168, 224, 0.35), transparent 62%);
  filter: blur(60px);
  top: -140px; right: -80px;
  animation: drift-1 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.theme-quote {
  font-size: clamp(1.8rem, 4.8vw, 3.5rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 940px;
  margin-top: 22px;
}
.theme-note { margin-top: 24px; max-width: 640px; color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(44px, 6vw, 64px);
}
.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease), background 0.45s ease;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.why-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.why-card .sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #8CE97F;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why-card ul { display: grid; gap: 11px; }
.why-card li { display: flex; gap: 11px; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.55; }
.check {
  flex: none;
  width: 21px; height: 21px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(140, 233, 127, 0.18);
  color: #8CE97F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check svg { width: 11px; height: 11px; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  /* placé APRÈS les règles de base (ordre source) : blob figé + backdrop-filter retiré,
     ré-échantillonner un fond flouté animé à chaque frame saccade sur GPU mobiles */
  .theme-blob { animation: none; }
  .why-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.08); }
}

/* ============================================================
   PROGRAMME — RAIL HORIZONTAL
   ============================================================ */
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 88, 173, 0.25);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease), opacity 0.2s;
}
.rail-btn:hover { background: rgba(13, 88, 173, 0.07); transform: scale(1.06); }
.rail-btn[disabled] { opacity: 0.3; pointer-events: none; }
.rail-btn svg { width: 20px; height: 20px; }

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px; /* sinon le snap plaque les cartes au ras du bord de l'écran */
  padding: 6px 24px 26px;
  margin: 0 -24px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  position: relative;
  flex: 0 0 min(330px, 82vw);
  scroll-snap-align: start;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-s);
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.rail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.rail-card .rc-num {
  position: absolute;
  top: 6px; right: 14px;
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13, 88, 173, 0.14);
}
.rail-card .icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(41, 168, 224, 0.13), rgba(13, 88, 173, 0.13));
  color: var(--blue-mid);
  margin-bottom: 44px;
}
.rail-card:nth-child(2) .icon { background: linear-gradient(135deg, rgba(59, 169, 53, 0.13), rgba(43, 179, 154, 0.13)); color: var(--green-deep); }
.rail-card:nth-child(3) .icon { background: linear-gradient(135deg, rgba(43, 179, 154, 0.13), rgba(41, 168, 224, 0.13)); color: var(--teal); }
.rail-card:nth-child(4) .icon { background: linear-gradient(135deg, rgba(14, 123, 212, 0.13), rgba(8, 43, 84, 0.11)); color: var(--blue); }
.rail-card .icon svg { width: 26px; height: 26px; }
.rail-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--night); margin-bottom: 10px; }
.rail-card p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .rail-head { flex-wrap: wrap; align-items: flex-start; }
  .rail-btn { flex: none; } /* sans quoi flex-shrink déforme les cercles */
}
@media (max-width: 560px) {
  /* les flèches écrasaient le titre ; le rail reste balayable au doigt (scroll-snap natif) */
  .rail-nav { display: none; }
}

/* ============================================================
   GALERIE 2025
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.g-item {
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s ease;
}
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(5, 27, 54, 0.45));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.g-item:hover::after { opacity: 1; }
.g-2x2 { grid-column: span 2; grid-row: span 2; }
.g-1x2 { grid-row: span 2; }
.g-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(240px 160px at 80% 0%, rgba(41, 168, 224, 0.25), transparent 60%),
    var(--night);
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  cursor: pointer;
}
.g-more span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; }
.g-more:hover { background: radial-gradient(240px 160px at 80% 0%, rgba(41, 168, 224, 0.4), transparent 60%), var(--night); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 16, 33, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1300px);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.07); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: max(18px, 3vw); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(18px, 3vw); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.07); }
.lb-next:hover { transform: translateY(-50%) scale(1.07); }
.lb-close { top: 20px; right: 20px; }
.lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
@media (max-width: 560px) {
  /* les flèches latérales recouvraient ~30% de la photo ; elles passent sous l'image
     (balayage tactile déjà géré par le JS) — env() : barre home iOS */
  .lightbox img { max-height: 72vh; }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: scale(1.07); }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-count { bottom: calc(36px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   PROGRAMME SCIENTIFIQUE — VERROUILLÉ (en préparation)
   ============================================================ */
.sched {
  position: relative;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.sched-inner {
  padding: clamp(24px, 4vw, 40px);
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.sched-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.sched-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
}
.sched-tab.active {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  color: #fff;
  border-color: transparent;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.sched-row:first-of-type { border-top: none; }
.sr-time {
  flex: none;
  width: 64px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.sr-bars { flex: 1; display: grid; gap: 8px; }
.sr-bar {
  height: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(13, 88, 173, 0.16), rgba(41, 168, 224, 0.10));
}
.sr-bar.b2 { width: 62%; background: linear-gradient(90deg, rgba(59, 169, 53, 0.18), rgba(43, 179, 154, 0.10)); }
.sr-badge {
  flex: none;
  width: 88px; height: 28px;
  border-radius: 999px;
  background: rgba(13, 88, 173, 0.08);
}
@media (max-width: 560px) {
  /* 188px de largeurs fixes par rangée à 320px : les barres du faux planning devenaient des points */
  .sr-badge { display: none; }
  .sr-time { width: 44px; }
}
@media (max-width: 360px) {
  /* l'overlay du verrou affleure la hauteur du squelette à 320px (2px de marge) : on lui redonne de l'air */
  .sched-lock { padding: 20px 16px; }
  .sched-lock p { font-size: 14px; }
}

.sched-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55));
}
.lock-badge {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-mid), var(--night));
  box-shadow: 0 18px 44px rgba(13, 88, 173, 0.4);
  margin-bottom: 12px;
}
.lock-badge svg { width: 30px; height: 30px; }
.sched-lock b {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--night);
}
.sched-lock p {
  max-width: 440px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.sched-lock .soon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 169, 53, 0.1);
  border: 1px solid rgba(59, 169, 53, 0.25);
  color: var(--green-deep);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sched-lock .soon-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-out infinite;
}

/* ============================================================
   RESSOURCES / TÉLÉCHARGEMENTS
   ============================================================ */
.res-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.poster-frame {
  position: relative;
  justify-self: center;
  max-width: 380px;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
/* le tilt JS n'est actif qu'en pointeur fin : inutile de promouvoir l'image en couche GPU en tactile */
@media (hover: hover) and (pointer: fine) {
  .poster-frame { will-change: transform; transform-style: preserve-3d; }
}
.poster-frame img { width: 100%; height: auto; }
.poster-frame .shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.poster-frame:hover .shine { transform: translateX(120%); }

.dl-list { display: grid; gap: 14px; margin-top: 30px; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-s);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.dl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-m); }
.dl-card .icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(41, 168, 224, 0.14), rgba(13, 88, 173, 0.14));
  color: var(--blue-mid);
}
.dl-card:nth-child(2) .icon { background: linear-gradient(135deg, rgba(59, 169, 53, 0.14), rgba(43, 179, 154, 0.14)); color: var(--green-deep); }
.dl-card:nth-child(3) .icon { background: linear-gradient(135deg, rgba(43, 179, 154, 0.14), rgba(41, 168, 224, 0.14)); color: var(--teal); }
.dl-card .icon svg { width: 23px; height: 23px; }
.dl-card .dl-info { flex: 1; min-width: 0; }
.dl-card .dl-info b { display: block; font-size: 16px; font-weight: 700; color: var(--night); letter-spacing: -0.01em; }
.dl-card .dl-info span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.dl-card .dl-arrow {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(13, 88, 173, 0.07);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.25s ease;
}
.dl-card:hover .dl-arrow { transform: translateY(3px); background: rgba(13, 88, 173, 0.13); }
.dl-card .dl-arrow svg { width: 17px; height: 17px; }
@media (max-width: 400px) {
  /* 166px de chrome fixe laissaient ~106px au texte : titres sur 3-4 lignes */
  .dl-card { gap: 12px; padding: 16px 14px; }
  .dl-card .dl-arrow { display: none; } /* toute la carte reste cliquable (c'est un <a>) */
}
@media (max-width: 900px) {
  .res-grid { grid-template-columns: 1fr; }
  .poster-frame { max-width: 300px; }
}

/* ============================================================
   PARTENAIRES
   ============================================================ */
.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 60px);
}
.sponsor-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 18px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.sponsor-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-m); }
.sponsor-card img { max-height: 56px; width: auto; max-width: 165px; object-fit: contain; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  padding: 10px 0;
  animation: marquee 46s linear infinite;
}
/* gaté : en tactile, un tap laissait :hover collé et gelait le défilement indéfiniment */
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-track img {
  height: 60px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.35s ease, transform 0.35s ease;
}
@media (hover: hover) {
  .marquee-track img:hover { filter: grayscale(0) opacity(1); transform: scale(1.07); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   FINAL : COMPTE À REBOURS GÉANT + INFOS + CTA
   ============================================================ */
.final {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(52px, 7vw, 90px) clamp(24px, 5vw, 72px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 88% -25%, rgba(155, 220, 248, 0.5), transparent 60%),
    radial-gradient(640px 420px at 5% 118%, rgba(43, 179, 154, 0.35), transparent 60%),
    linear-gradient(150deg, var(--blue-mid), var(--blue) 52%, var(--night));
  box-shadow: var(--shadow-l);
  text-align: center;
}
.final .eyebrow { color: #9BDCF8; justify-content: center; }
.final h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 14px 0 8px;
}
.final .sub { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto; font-size: 1.06rem; }

.count-grid {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  margin: clamp(34px, 5vw, 48px) 0;
  flex-wrap: wrap;
}
.count-cell {
  min-width: clamp(84px, 12vw, 130px);
  padding: clamp(18px, 2.6vw, 28px) 10px;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* ≤560px : 4 cellules ne tiennent pas côte à côte (wrap 3+1 dissymétrique) → grille 2×2 */
@media (max-width: 560px) {
  .count-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .count-cell { min-width: 0; }
}
.count-cell b {
  display: block;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-cell span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.final-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(30px, 4vw, 40px);
}
.f-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.3s var(--ease);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
a.f-chip:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.f-chip svg { width: 17px; height: 17px; color: #8CE97F; flex: none; }
@media (max-width: 560px) {
  /* l'email (~300px rendus) cassait au milieu d'un mot ; en 13px il tient sur une ligne dès ~375px */
  .f-chip { font-size: 13px; padding: 10px 14px; gap: 8px; }
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(56px, 7vw, 84px) 0 36px;
  margin-top: clamp(76px, 9vw, 128px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; max-width: 300px; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 15px; transition: color 0.2s ease; }
.footer-links a:hover { color: #8FD4F6; }
.footer-contact { display: grid; gap: 12px; font-size: 15px; }
.footer-contact a { display: flex; align-items: center; gap: 10px; transition: color 0.2s ease; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #8FD4F6; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: #8FD4F6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   PAGE INSCRIPTION
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(120px, 14vw, 150px);
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(155, 220, 248, 0.5), transparent 60%),
    linear-gradient(155deg, #3FB9E6 0%, #1B8AC8 40%, #0D58AD 78%, #082B54 110%);
  text-align: center;
  overflow: hidden;
}
/* ≤640px : héro resserré pour que la carte du formulaire apparaisse dès le premier écran
   (clairance héro/carte : 88 − 56 = 32px, pas de chevauchement) */
@media (max-width: 640px) {
  .page-hero { padding: calc(var(--header-h) + 28px) 0 88px; }
  .form-wrap { margin-top: -56px; }
}
@media (max-width: 480px) {
  /* pilule badge : le texte long éclatait sur 2-3 lignes dans un radius 999px */
  .page-hero .hero-badge .badge-extra { display: none; }
  .page-hero .hero-badge { font-size: 11.5px; letter-spacing: 0.03em; padding: 8px 14px; border-radius: 14px; }
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 760px;
  margin: 18px auto 0;
}
.page-hero .hero-badge { margin-bottom: 0; }
.page-hero p.sub { margin: 18px auto 0; max-width: 560px; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
/* APRÈS les règles de base (ordre source, même spécificité) : héro compacté sur mobile */
@media (max-width: 640px) {
  .page-hero h1 { margin-top: 14px; }
  .page-hero p.sub { margin-top: 14px; font-size: 0.95rem; }
}

.form-wrap { position: relative; z-index: 5; margin-top: clamp(-90px, -10vw, -70px); padding-bottom: clamp(56px, 8vw, 90px); }
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: clamp(28px, 4.5vw, 44px);
}
.form-card .form-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--night); margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(8, 43, 84, 0.14);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #9AA9C0; }
.field input:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 4px rgba(14, 123, 212, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card .btn { width: 100%; margin-top: 10px; padding: 16px 30px; white-space: normal; }
.form-side-note { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }
.form-side-note a { color: var(--blue); font-weight: 600; }

/* ============================================================
   FORMULAIRE PRO — INSCRIPTION PROFESSIONNELS DE LA SANTÉ
   ============================================================ */
.form-card.form-xl { max-width: 800px; }

/* Sections numérotées */
.form-section { border: none; margin: 0; padding: 30px 0 10px; border-top: 1px solid var(--hairline); min-width: 0; }
.form-section:first-of-type { border-top: none; padding-top: 0; }
.fs-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.fs-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(41, 168, 224, 0.14), rgba(13, 88, 173, 0.14));
  font-variant-numeric: tabular-nums;
}
.fs-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--night); line-height: 1.25; }
.fs-head p { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }

/* Champs : selects assortis aux inputs */
.field select {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346597B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center;
  border: 1.5px solid rgba(8, 43, 84, 0.14);
  border-radius: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  text-overflow: ellipsis; /* valeurs longues (wilayas, catégories) coupées net sans ça sur petits écrans */
  cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 4px rgba(14, 123, 212, 0.14); }
.field select.is-empty { color: #9AA9C0; }
.field select option { color: var(--ink); }

.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.req { color: #D64545; font-weight: 700; }
.form-note .req { margin-right: 2px; }

.field input:user-invalid, .field select:user-invalid { border-color: #D64545; }

/* Chips à cocher (jours, centres d'intérêt) */
.chip-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--night); margin-bottom: 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(8, 43, 84, 0.16);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.chip:hover span { border-color: rgba(13, 88, 173, 0.4); transform: translateY(-1px); }
.chip input:checked + span {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 88, 173, 0.28);
}
.chip input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }

/* Bloc consentement — protection des données */
.consent-box {
  border: 1.5px solid rgba(13, 88, 173, 0.16);
  background: linear-gradient(160deg, #F7FBFE, #EFF6FC);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 18px;
}
.consent-item { display: flex; align-items: flex-start; gap: 13px; cursor: pointer; }
.consent-item input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border: 1.5px solid rgba(8, 43, 84, 0.32);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.consent-item input:checked { background: linear-gradient(135deg, var(--blue-mid), var(--blue)); border-color: transparent; }
.consent-item input:checked::before {
  content: "";
  width: 13px; height: 13px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") center/contain no-repeat;
}
.consent-item input:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; }
.consent-item input:user-invalid { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.consent-item span { font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.consent-item .opt-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(59, 169, 53, 0.12);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Notice d'information dépliable (loi 18-07) */
.notice-details { border: 1px solid var(--hairline); border-radius: 14px; background: #fff; overflow: hidden; }
.notice-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.notice-details summary::-webkit-details-marker { display: none; }
.notice-details summary svg { width: 16px; height: 16px; flex: none; }
.notice-details summary .chev { margin-left: auto; transition: transform 0.3s var(--ease); color: var(--ink-soft); }
.notice-details[open] summary .chev { transform: rotate(180deg); }
.notice-body { padding: 2px 18px 20px; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); display: grid; gap: 11px; }
/* l'email/URL insécable forçait un débordement des <p> sur très petits écrans */
.notice-body p { min-width: 0; overflow-wrap: anywhere; }
.notice-body b { color: var(--night); font-weight: 700; }
.notice-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Pied de formulaire */
.form-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}
.form-secure svg { width: 15px; height: 15px; flex: none; color: var(--green-deep); }

@media (max-width: 560px) {
  .consent-box { padding: 18px 16px; }
  .fs-head { gap: 12px; }
}
@media (max-width: 400px) {
  /* 52px de gouttières par côté à 320px : on récupère 40px de largeur utile pour les champs */
  .form-wrap .container { padding: 0 16px; }
  .form-wrap .form-card { padding: 24px 16px; }
}

/* ============================================================
   RÉVÉLATIONS AU SCROLL
   ============================================================ */
/* opacité + translation uniquement : le flou animé sur de grandes
   zones (galerie, bento) provoquait des saccades sur GPU modestes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

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