/* =========================================================
   Nafema — Site vitrine
   Charte : Bleu #2A5EA9 · Jaune #FFEC01 · Gris #E4EAEA · Montserrat
   Ratio de surfaces : ~60 % neutres · 30 % bleu · 10 % jaune
   ========================================================= */

:root {
  /* Couleurs de marque */
  --blue: #2A5EA9;
  --blue-600: #234F90;
  --blue-700: #1C4078;
  --blue-900: #12284B;
  --blue-50: #EEF3FA;
  --blue-100: #DCE6F4;
  --yellow: #FFEC01;
  --yellow-soft: #FFF8A6;
  --gray: #E4EAEA;
  --gray-50: #F5F8F8;

  /* Neutres */
  --ink: #14223A;
  --text: #3B4759;
  --muted: #667085;
  --line: #DCE3E8;
  --white: #FFFFFF;

  /* Système */
  --font: "Montserrat", Arial, Helvetica, sans-serif;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 40, 75, .06), 0 2px 8px rgba(18, 40, 75, .05);
  --shadow: 0 10px 30px -10px rgba(18, 40, 75, .18);
  --shadow-lg: 0 30px 60px -20px rgba(18, 40, 75, .28);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--gray { background: var(--gray-50); }
.section--blue { background: var(--blue); color: rgba(255,255,255,.86); }
.section--blue h2, .section--blue h3 { color: #fff; }

/* Petite barre jaune (signature de la charte) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 5px; border-radius: 3px; background: var(--yellow); }
.section--blue .eyebrow { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text); line-height: 1.65; }

/* Surlignage jaune derrière un mot clé */
.mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font: 700 .95rem/1 var(--font); letter-spacing: .01em;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(42,94,169,.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { box-shadow: 0 12px 24px -10px rgba(200,180,0,.7); }
.btn--ghost { --bg: transparent; --fg: var(--blue); border-color: var(--blue-100); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-50); }
.btn--white-ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--white-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18,40,75,.35); background: rgba(255,255,255,.94); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 38px; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand__name span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 999px;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__cta { margin-left: 10px; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--blue-50); cursor: pointer; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 20px; height: 2.5px; margin-left: -10px; border-radius: 2px;
  background: var(--blue); transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; margin-left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%); }
.hero__arc {
  position: absolute; right: -14vw; top: -8vw; width: 62vw; max-width: 900px; aspect-ratio: 1;
  border-radius: 50%; border: clamp(40px, 7vw, 110px) solid var(--blue-50); pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* Maquette d'interface dans le hero */
.mock { position: relative; }
.mock__window {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--gray-50); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__bar b { margin-left: 10px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mock__body { display: grid; grid-template-columns: 64px 1fr; min-height: 340px; }
.mock__side { background: var(--blue); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mock__side img { width: 30px; height: 32px; margin-bottom: 8px; }
.mock__side span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); }
.mock__side span.on { background: var(--yellow); }
.mock__main { padding: 20px; display: grid; gap: 14px; align-content: start; }
.mock__title { font-weight: 700; color: var(--ink); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.mock__title small { font-weight: 600; color: var(--muted); font-size: .72rem; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi small { display: block; font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi strong { font-size: 1.15rem; }
.kpi--blue { background: var(--blue); border-color: var(--blue); }
.kpi--blue small { color: rgba(255,255,255,.75); }
.kpi--blue strong { color: #fff; }
.mock__chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.mock__chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--blue-100); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.mock__chart span:nth-child(odd) { background: var(--blue); }
.mock__chart span.y { background: var(--yellow); }
@keyframes grow { from { transform: scaleY(0); } }

.toast {
  position: absolute; display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); font-size: .8rem; line-height: 1.35; max-width: 250px;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; color: var(--ink); font-size: .84rem; }
.toast span { color: var(--muted); }
.toast__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.toast__ico svg { width: 20px; height: 20px; }
.toast--pay { left: -28px; bottom: 44px; }
.toast--pay .toast__ico { background: var(--yellow); color: var(--ink); }
.toast--abs { right: -18px; top: -26px; animation-delay: -3s; }
.toast--abs .toast__ico { background: var(--blue); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Bandeau institutionnel ---------- */
.institution {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--yellow);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.institution__ico { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.institution__ico svg { width: 32px; height: 32px; }
.institution h2 { font-size: 1.15rem; margin-bottom: .35em; }
.institution p { margin: 0; font-size: .95rem; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); margin: 8px 8px 0 0; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card h3 { margin-bottom: .5em; }
.card p { margin: 0; font-size: .95rem; }
.card__num { position: absolute; right: 22px; top: 16px; font-size: 3rem; font-weight: 800; color: var(--blue-50); line-height: 1; letter-spacing: -.04em; }
.card__ico {
  width: 56px; height: 56px; border-radius: 16px 16px 16px 4px; display: grid; place-items: center;
  background: var(--blue); color: #fff; margin-bottom: 20px; position: relative;
}
.card__ico::before { content: ""; position: absolute; left: -4px; top: -4px; width: 16px; height: 16px; background: var(--yellow); border-radius: 4px 4px 4px 0; }
.card__ico svg { width: 26px; height: 26px; position: relative; }
.card--gray { background: var(--gray-50); }

/* Profils */
.profile { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .3s, transform .3s var(--ease); }
.profile:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.profile__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.profile__ico svg { width: 24px; height: 24px; }
.profile h3 { font-size: 1.05rem; margin-bottom: .3em; }
.profile p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.82); }

/* Arc décoratif sur sections bleues */
.section--blue::before {
  content: ""; position: absolute; right: -180px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  border: 80px solid rgba(255,255,255,.05); pointer-events: none;
}
.section--blue { overflow: hidden; }

/* ---------- Bloc média + texte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.split__media::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 90px; height: 90px;
  background: var(--yellow); border-radius: 18px 18px 18px 4px; z-index: -1;
}
.split__media .floating-stat {
  position: absolute; right: -14px; bottom: 26px; background: var(--blue); color: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow);
}
.floating-stat strong { color: #fff; display: block; font-size: 1.6rem; line-height: 1.1; }
.floating-stat span { font-size: .8rem; opacity: .85; }

.checklist li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A5EA9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 26px 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--blue); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .86rem; font-weight: 600; color: var(--muted); }

/* Paiements mobiles */
.pay-logos { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.pay-logos li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink); }
.pay-logos i { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- En-tête de page interne ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--blue); color: rgba(255,255,255,.88); padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(255,255,255,.06);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 680px; }
.page-hero .eyebrow { color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; margin: 0 0 22px; padding: 0; list-style: none; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb [aria-current] { color: var(--yellow); font-weight: 600; }

/* ---------- Modules (page Solutions) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; justify-content: center; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font: 600 .92rem var(--font); color: var(--ink); cursor: pointer;
  transition: all .25s var(--ease);
}
.tab span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: .78rem; font-weight: 800; transition: inherit; }
.tab:hover { border-color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(42,94,169,.7); }
.tab[aria-selected="true"] span { background: var(--yellow); color: var(--ink); }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow-sm); }
.panel[hidden] { display: none; }
.panel.is-in { animation: fadeUp .5s var(--ease) both; }
.panel__features { display: grid; gap: 14px; }
.feature { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid transparent; transition: border-color .25s, background .25s; }
.feature:hover { border-color: var(--blue-100); background: var(--blue-50); }
.feature__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.feature__ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; margin-bottom: .25em; }
.feature p { margin: 0; font-size: .9rem; }
.callout { border-left: 5px solid var(--yellow); background: var(--yellow-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; color: var(--ink); font-size: .95rem; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Galerie campagnes ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--blue); }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan__name { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 18px; }
.plan__price { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan__price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__per { font-size: .82rem; color: var(--muted); margin: 6px 0 22px; }
.plan__rows { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 24px; display: grid; gap: 10px; font-size: .9rem; }
.plan__rows li { display: flex; justify-content: space-between; gap: 10px; }
.plan__rows b { color: var(--ink); }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--blue); border-color: var(--blue); color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__price, .plan--featured .plan__rows b { color: #fff; }
.plan--featured .plan__name, .plan--featured .plan__per, .plan--featured .plan__price small { color: rgba(255,255,255,.75); }
.plan--featured .plan__rows { border-color: rgba(255,255,255,.2); }
.plan__tag { position: absolute; top: -14px; left: 24px; background: var(--yellow); color: var(--ink); font-size: .74rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }

/* Simulateur */
.simulator { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.range-out { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.range-out output { font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--blue) var(--p, 20%), var(--gray) var(--p, 20%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--blue); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--blue); }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg label { display: block; text-align: center; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .86rem; cursor: pointer; margin: 0; transition: all .2s; color: var(--text); }
.seg input:checked + label { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.seg input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sim-result { background: var(--blue); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.sim-result::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.sim-result small { font-weight: 600; opacity: .8; font-size: .85rem; }
.sim-result .big { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--yellow); margin: 6px 0 18px; }
.sim-result dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; position: relative; z-index: 1; }
.sim-result dt { opacity: .82; }
.sim-result dd { margin: 0; font-weight: 700; text-align: right; }

/* Tableau */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--blue); color: #fff; font-weight: 700; font-size: .84rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--blue-50); }
td:first-child { font-weight: 700; color: var(--ink); }
.caption { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 12px; }

/* Étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px 14px 14px 4px; background: var(--yellow); color: var(--ink); font-weight: 800; margin-bottom: 18px; }
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1.3rem; font-weight: 500; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); color: var(--ink); }
.faq .faq__a { padding: 0 24px 22px; margin: 0; }

/* ---------- Formulaire ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; left: clamp(24px, 4vw, 44px); top: 0; width: 60px; height: 5px; background: var(--yellow); border-radius: 0 0 4px 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font: 500 1rem var(--font); color: var(--ink); background: var(--gray-50);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #98A2B3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.field.has-error .input, .field.has-error .select { border-color: #D92D20; background: #FEF3F2; }
.field__error { display: none; color: #B42318; font-size: .82rem; font-weight: 600; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.req { color: #D92D20; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-success { display: none; text-align: center; padding: 24px 0 8px; }
.form-success.is-visible { display: block; animation: fadeUp .5s var(--ease) both; }
.form-success__ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; color: var(--ink); }
.form-success__ico svg { width: 34px; height: 34px; }

.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.contact-card__ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: .3em; }
.contact-card p { margin: 0; font-size: .92rem; word-break: break-word; }
.contact-card a { font-weight: 600; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue);
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; color: rgba(255,255,255,.88);
}
.cta-band::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); }
.cta-band::after { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 10px; background: var(--yellow); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* ---------- Pied de page ---------- */
.footer { background: var(--blue-900); color: rgba(255,255,255,.72); padding: 72px 0 0; margin-top: 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand__name span { color: var(--yellow); }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--yellow); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* Bouton WhatsApp flottant + retour haut */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 26px; bottom: 92px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Animations d'apparition ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound strong { display: block; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.05em; }

.split--form { grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); }
.inline-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .grid--4, .pricing { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1.02rem; border-radius: 12px; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--blue-50); }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }

  .hero .container, .split, .panel, .simulator { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .mock { max-width: 560px; margin: 0 auto; width: 100%; }
  .grid--3, .steps { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .pricing, .steps, .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .institution { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .toast { position: relative; left: auto; right: auto; top: auto; bottom: auto; max-width: none; margin-top: 12px; animation: none; }
  .mock__kpis { grid-template-columns: 1fr 1fr; }
  .mock__kpis .kpi:last-child { grid-column: 1 / -1; }
  .mock__body { grid-template-columns: 48px 1fr; min-height: 0; }
  .split__media::before { left: -8px; top: -8px; width: 60px; height: 60px; }
  .split__media .floating-stat { right: 10px; }
  .hero__arc { width: 120vw; right: -60vw; }
  .seg { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 20px; bottom: 82px; }
}

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

@media print {
  .header, .footer, .wa-float, .to-top, .cta-band { display: none !important; }
  main { padding-top: 0; }
}
