/* =========================================================
   PLUTON CLAX PRO — Page vitrine (plutonclax-web.com)
   Charte : teal #128C7E · Sora (titres) · Inter (texte) · IBM Plex Mono (chiffres)
   ========================================================= */

:root {
  --brand: #128C7E;
  --brand-600: #0E6F64;
  --brand-800: #0A4F47;
  --brand-900: #073630;
  --brand-50: #EAF6F4;
  --brand-100: #D3EDE9;

  /* Édition Primaire : vert menthe + soleil */
  --prim: #0E8A6A;
  --prim-600: #0B6F55;
  --prim-50: #E8F7F1;
  --sun: #F5B53D;

  /* Édition Secondaire : bleu pétrole */
  --sec: #1D4E89;
  --sec-600: #173E6D;
  --sec-50: #EAF0F8;
  --sky: #5AA9E6;

  --ink: #0F1F1D;
  --ink-2: #2B3B38;
  --muted: #5B6B68;
  --line: #E2EBE9;
  --bg: #FFFFFF;
  --tint: #F4F8F7;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(7, 54, 48, .06), 0 2px 8px rgba(7, 54, 48, .05);
  --shadow: 0 10px 30px -12px rgba(7, 54, 48, .22), 0 2px 6px rgba(7, 54, 48, .06);
  --shadow-lg: 0 30px 60px -20px rgba(7, 54, 48, .35);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px rgba(18, 140, 126, .6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primaire { background: var(--prim); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 138, 106, .7); }
.btn-primaire:hover { background: var(--prim-600); }
.btn-secondaire { background: var(--sec); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 78, 137, .7); }
.btn-secondaire:hover { background: var(--sec-600); }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-light:hover { background: var(--brand-50); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn svg { transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(7,54,48,.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand img { border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-text { font-family: var(--font-head); font-size: 17px; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 6px; }
.brand-text strong { font-weight: 800; }
.brand-text em { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .12em; color: #fff; background: var(--brand); padding: 3px 7px; border-radius: 6px; transform: translateY(-2px); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background-color .15s, color .15s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand-600); background: var(--brand-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.access-menu { position: relative; }
.access-menu [data-dropdown-toggle] svg { transition: transform .2s ease; }
.access-menu [aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  box-shadow: var(--shadow-lg); animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px 8px; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--tint); }
.dropdown-item strong { display: block; font-size: 15px; }
.dropdown-item small { color: var(--muted); font-size: 13px; }
.ed-dot { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }
.ed-dot--primaire { background: linear-gradient(135deg, #19B38A, var(--prim)); }
.ed-dot--secondaire { background: linear-gradient(135deg, #2F6DB5, var(--sec)); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 20px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Héro ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(90, 169, 230, .18), transparent 70%),
    radial-gradient(640px 420px at 70% 55%, rgba(18, 140, 126, .20), transparent 70%),
    radial-gradient(520px 360px at 8% 10%, rgba(245, 181, 61, .16), transparent 70%),
    linear-gradient(180deg, #F2F9F7 0%, #fff 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(7,54,48,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(7,54,48,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brand-800);
  background: #fff; border: 1px solid var(--brand-100); padding: 7px 14px 7px 8px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.flag { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(90deg, #F77F00 0 33.3%, #fff 33.3% 66.6%, #009E60 66.6%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -0.035em; }
.hero h1 .hl { background: linear-gradient(100deg, var(--brand) 0%, #19B38A 45%, var(--sec) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }

.hero-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 26px; max-width: 560px; }
.choice-btn {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto;
  column-gap: 12px; padding: 18px 18px 16px; text-align: left; border-radius: 18px; color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.choice-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.choice-btn::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -60px; top: -70px; z-index: -1; opacity: .35; transition: transform .35s ease; }
.choice-btn--primaire::before { background: linear-gradient(140deg, #16A884 0%, var(--prim) 55%, #08644C 100%); }
.choice-btn--primaire::after { background: var(--sun); }
.choice-btn--secondaire::before { background: linear-gradient(140deg, #2D6CB3 0%, var(--sec) 55%, #102F55 100%); }
.choice-btn--secondaire::after { background: var(--sky); }
.choice-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.choice-btn:hover::after { transform: scale(1.15); }
.choice-tag { grid-column: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; font-weight: 600; }
.choice-name { grid-column: 1; font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.choice-sub { grid-column: 1; font-family: var(--font-mono); font-size: 13px; opacity: .9; margin-top: 2px; }
.choice-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .2s ease, background-color .2s; }
.choice-btn:hover .choice-arrow { transform: translateX(3px); background: rgba(255,255,255,.28); }
.last-used { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; background: #fff; color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.choice-btn.is-last .choice-arrow { grid-row: 2 / span 2; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--brand); }

/* Visuel héro */
.hero-visual { position: relative; min-height: 480px; }
.browser {
  position: absolute; top: 10px; left: 0; right: 70px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center;
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #F4F7F6; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E7E5; }
.dots i:nth-child(1) { background: #FF6159; } .dots i:nth-child(2) { background: #FFBD2E; } .dots i:nth-child(3) { background: #28C941; }
.url { flex: 1; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-family: var(--font-mono); }
.browser-body { display: grid; grid-template-columns: 54px 1fr; min-height: 330px; }
.mock-side { background: var(--brand-900); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.mock-logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #3CC3AE, var(--brand)); margin-bottom: 8px; }
.mock-side i { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.15); }
.mock-side i.on { background: #3CC3AE; }
.mock-main { padding: 18px 20px; background: #FAFCFB; }
.mock-kicker { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--brand); }
.mock-title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 18px; margin: 2px 0 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-kpis b { display: block; white-space: nowrap; font-family: var(--font-mono); font-size: 20px; color: var(--ink); }
.mock-kpis span { font-size: 11px; color: var(--muted); }
.mock-chart { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 6px; }
.mock-chart p { font-size: 12px; font-weight: 600; color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 100px; padding: 8px 2px 18px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3CC3AE, var(--brand)); position: relative; transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.bars span:nth-child(n+5) { background: linear-gradient(180deg, #5A8FD0, var(--sec)); }
.bars span:nth-child(2) { animation-delay: .06s; } .bars span:nth-child(3) { animation-delay: .12s; } .bars span:nth-child(4) { animation-delay: .18s; }
.bars span:nth-child(5) { animation-delay: .24s; } .bars span:nth-child(6) { animation-delay: .3s; } .bars span:nth-child(7) { animation-delay: .36s; }
.bars em { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mock-pills { display: flex; gap: 8px; margin-top: 10px; }
.mock-pills span { font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.mock-pills b { color: var(--brand-600); font-family: var(--font-mono); }

.hero-phone { position: absolute; right: -10px; bottom: -10px; width: 230px; margin: 0; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3;
}
.float-card b { display: block; color: var(--ink); }
.float-card small { color: var(--muted); }
.fc-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--prim-50); color: var(--prim); font-weight: 800; }
.fc-icon--b { background: #FFF4DC; color: #B7791F; }
.float-card--a { left: -18px; bottom: 20px; animation: float 6s ease-in-out infinite .5s; }
.float-card--b { right: 150px; top: -14px; animation: float 8s ease-in-out infinite 1s; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 64px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.stats dd { margin: 4px 0 4px; font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--ink); letter-spacing: -0.02em; }
.stats p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head--left { text-align: left; margin: 0; }
.kicker, .section-head .kicker, .app-copy > .kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Éditions ---------- */
.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.edition {
  position: relative; padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.edition::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.edition::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -140px; top: -160px; z-index: -1; opacity: .5; filter: blur(10px); }
.edition--primaire::before { background: linear-gradient(90deg, var(--prim), #19B38A, var(--sun)); }
.edition--primaire::after { background: radial-gradient(circle, var(--prim-50), transparent 70%); }
.edition--secondaire::before { background: linear-gradient(90deg, var(--sec), #2F6DB5, var(--sky)); }
.edition--secondaire::after { background: radial-gradient(circle, var(--sec-50), transparent 70%); }
.edition:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edition--primaire:hover { border-color: rgba(14,138,106,.35); }
.edition--secondaire:hover { border-color: rgba(29,78,137,.35); }
.edition.is-last { outline: 2px solid currentColor; outline-offset: 4px; }
.edition--primaire.is-last { color: var(--prim); }
.edition--secondaire.is-last { color: var(--sec); }
.edition-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.edition-badge { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.edition--primaire .edition-badge { background: var(--prim-50); color: var(--prim-600); }
.edition--secondaire .edition-badge { background: var(--sec-50); color: var(--sec); }
.last-used-pill { font-size: 12px; font-weight: 600; color: var(--ink-2); background: #FFF4DC; border: 1px solid #F8DFA6; padding: 4px 10px; border-radius: 999px; }
.edition h3 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.edition-desc { color: var(--muted); color: var(--muted); margin-bottom: 20px; }
.edition p, .edition li { color: var(--ink-2); }
.edition .edition-desc { color: var(--muted); }

.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.levels span { font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--tint); border: 1px solid var(--line); color: var(--ink); }
.edition--primaire .levels span { background: var(--prim-50); border-color: #CDEBDF; color: var(--prim-600); }
.edition--secondaire .levels span { background: var(--sec-50); border-color: #D2DEEE; color: var(--sec); }
.levels .lv-series { background: transparent !important; border-style: dashed !important; }

.checklist { display: grid; gap: 10px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230E6F64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.edition--secondaire .checklist li::before { background-color: var(--sec-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231D4E89' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.edition-cta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.edition-url { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--muted) !important; }
.edition-url::before { content: "🔒 "; }

/* ---------- Onglets fonctionnalités ---------- */
.tabs { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.tab { position: relative; z-index: 1; border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .2s; }
.tab[aria-selected="true"] { color: #fff; }
.tab-indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--prim); transition: transform .3s cubic-bezier(.3,.8,.3,1), width .3s, background-color .3s; }
.tabs[data-active="secondaire"] .tab-indicator { background: var(--sec); }

.tab-panel { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature--wide { grid-column: span 2; }
.feature h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.f-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--prim-50); color: var(--prim); }
.f-icon svg { width: 24px; height: 24px; }
#panel-secondaire .f-icon { background: var(--sec-50); color: var(--sec); }
.feature--accent { background: linear-gradient(135deg, var(--brand-800), var(--brand-900)); border-color: transparent; }
#panel-secondaire .feature--accent { background: linear-gradient(135deg, var(--sec), #0F2C50); }
.feature--accent h3 { color: #fff; }
.feature--accent p { color: rgba(255,255,255,.78); }
.feature--accent .f-icon, #panel-secondaire .feature--accent .f-icon { background: rgba(255,255,255,.12); color: #fff; }
.panel-cta { text-align: center; margin-top: 32px; }

/* ---------- Application mobile ---------- */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.app-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
.app-copy > p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.screen-list { display: grid; gap: 6px; margin-bottom: 30px; }
.screen-list button { width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; transition: background-color .2s, border-color .2s; }
.screen-list button:hover { background: var(--tint); }
.screen-list button[aria-pressed="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.screen-list .num { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--muted); padding-top: 1px; }
.screen-list button[aria-pressed="true"] .num { color: var(--brand); }
.screen-list b { display: block; color: var(--ink); font-size: 16px; }
.screen-list small { color: var(--muted); font-size: 14px; }
.store-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 11px 20px 11px 16px; border-radius: 14px; transition: transform .18s, background-color .18s; }
.store-badge:hover { transform: translateY(-2px); background: #000; }
.store-badge svg { width: 26px; height: 26px; color: #3DDC84; }
.store-badge small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store-badge b { font-family: var(--font-head); font-size: 18px; line-height: 1.1; }
.qr { display: flex; align-items: center; gap: 12px; margin: 0; }
.qr img { width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.qr figcaption { font-size: 13px; color: var(--muted); max-width: 90px; line-height: 1.35; }

.app-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.app-visual::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -52%); background: radial-gradient(circle, rgba(18,140,126,.22), rgba(18,140,126,0) 68%); z-index: -1; }
.phone-stage { position: relative; width: 320px; aspect-ratio: 640 / 1000; }
.phone-stage .screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .45s ease, transform .45s ease; }
.phone-stage .screen.is-active { opacity: 1; transform: none; }
.stage-dots { display: flex; gap: 8px; margin-top: 18px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .3s, background-color .3s; }
.stage-dots i.on { width: 26px; background: var(--brand); }

/* ---------- Acteurs ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); font-size: 24px; }
.role h3 { font-size: 18px; margin: 14px 0 6px; }
.role p { color: var(--muted); font-size: 15px; }

/* ---------- Comparatif ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.compare thead th { font-family: var(--font-head); font-size: 17px; color: var(--ink); background: var(--tint); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare td { color: var(--ink-2); }
.th-primaire, .th-secondaire { position: relative; padding-left: 40px !important; }
.th-primaire::before, .th-secondaire::before { content: ""; position: absolute; left: 22px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
.th-primaire::before { background: var(--prim); }
.th-secondaire::before { background: var(--sec); }
.compare tr:last-child > * { border-bottom: 0; }
.row-cta td, .row-cta th { background: var(--tint); }

/* ---------- Engagements ---------- */
.section--dark { background: radial-gradient(900px 400px at 10% 0%, rgba(60,195,174,.18), transparent 60%), linear-gradient(160deg, var(--brand-900), #06231F); color: rgba(255,255,255,.8); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.pillar { padding-top: 22px; border-top: 2px solid rgba(255,255,255,.14); position: relative; }
.pillar::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: #3CC3AE; }
.pillar h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.pillar p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-grid .section-head p { margin-bottom: 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230E6F64' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 20px 0; color: var(--muted); }

/* ---------- CTA final ---------- */
.section--cta { padding-top: 0; }
.cta-panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px; color: rgba(255,255,255,.85);
  background: radial-gradient(500px 300px at 90% 0%, rgba(90,169,230,.35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(245,181,61,.22), transparent 70%), linear-gradient(135deg, var(--brand), var(--brand-800));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-panel h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-panel p { font-size: 17px; margin-bottom: 28px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 14px 16px; color: #fff; }
.contact-list small { display: block; font-size: 12px; opacity: .75; }
.contact-list a { color: #fff; font-weight: 600; word-break: break-all; }
.c-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); flex-shrink: 0; }
.c-ic svg { width: 20px; height: 20px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #06231F; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.brand--footer { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lead { margin: 0 auto; }
  .trust-row { justify-content: center; }
  .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .edition-grid, .app-grid, .faq-grid, .cta-panel { grid-template-columns: 1fr; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .cta-panel { padding: 40px 32px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand-text { font-size: 14px; gap: 5px; }
  .brand-text em { font-size: 10px; padding: 2px 6px; }
  .brand img { width: 32px; height: 32px; }
  .hero { padding-top: 40px; }
  .hero-choice { grid-template-columns: 1fr; width: 100%; }
  .choice-name { font-size: 24px; }
  .hero-visual { min-height: 360px; }
  .browser { right: 40px; transform: none; }
  .browser-body { grid-template-columns: 40px 1fr; min-height: 280px; }
  .mock-side { padding: 12px 8px; }
  .mock-side i { width: 20px; }
  .mock-main { padding: 14px; }
  .mock-kpis b { font-size: 14px; }
  .mock-kpis div { padding: 8px; }
  .mock-kpis span { font-size: 10px; }
  .bars { gap: 6px; height: 80px; }
  .hero-phone { width: 150px; right: -6px; bottom: -20px; }
  .float-card--b { display: none; }
  .float-card--a { left: -6px; bottom: 16px; }
  .stats > div { padding: 18px; }
  .stats dd { font-size: 22px; }
  .edition { padding: 26px 22px; }
  .edition h3 { font-size: 23px; }
  .edition-cta .btn { width: 100%; white-space: normal; }
  .feature-grid, .roles, .pillars { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .tab { padding: 9px 14px; font-size: 14px; }
  .phone-stage { width: 250px; }
  .app-visual::before { width: 320px; height: 320px; }
  .cta-panel { padding: 32px 22px; border-radius: 22px; }
  .cta-buttons .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .dropdown { position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) + 6px); width: auto; }
  .header-inner { gap: 8px; }
  .access-menu .btn { padding: 8px 12px; font-size: 13.5px; }
  .nav-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .nav-toggle span:nth-child(1) { top: 13px; } .nav-toggle span:nth-child(2) { top: 19px; } .nav-toggle span:nth-child(3) { top: 25px; }
  .access-menu .btn svg { display: none; }
  .header-actions { margin-left: auto; gap: 8px; }
  .brand { min-width: 0; }
  /* Comparatif en cartes empilées */
  .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { background: var(--tint); padding: 12px 16px; font-family: var(--font-head); }
  .compare td { padding: 10px 16px 10px 16px; border-bottom: 1px dashed var(--line); }
  .compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
  .compare td[data-label="Primaire"]::before { color: var(--prim); }
  .compare td[data-label="Secondaire"]::before { color: var(--sec); }
  .compare tr.row-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; background: transparent; border: 0; }
  .compare tr.row-cta th { display: none; }
  .compare tr.row-cta td { padding: 0; border: 0; background: transparent; }
  .compare tr.row-cta .btn { width: 100%; }
}
@media (max-width: 400px) {
  .brand-text em { display: none; }
}

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