/**
 * Module: vitrine
 * File: modules/vitrine/assets/vitrine.css
 * Mission unique : styles de la page publique du site vitrine (mobile d'abord, RTL par propriétés logiques, AA).
 * Depends on: aucune ressource externe (polices système). Mise en page inspirée de TemplateMo 622 ClearWave.
 * Version: 1.1.0 — 2026-11-25 (palette corail Skolarbook)
 */

/* ---------- Jetons de design ---------- */
:root {
  /* Palette Skolarbook (core-theme/theme.css) : corail --pri #c9737c, --pri-d #a85860, fonds crème. */
  --bg: #fdf9f7;
  --bg-alt: #f4efeb;
  --surface: #ffffff;
  --ink: #0e0906;
  --ink-2: #5a544e;
  --ink-3: #5f5852;
  --accent: #a85860;
  --accent-hover: #8e4850;
  --accent-ink: #8e4850;
  --accent-ink-hover: #73383f;
  --accent-mid: #c9737c;
  --accent-soft: #e8b0b5;
  --accent-ghost: rgba(201, 115, 124, .12);
  --accent-line: rgba(168, 88, 96, .28);
  --coral: #a3434f;
  --coral-soft: #f6dcdc;
  --deep: #5c2a30;
  --deep-2: #74363d;
  --night: #2a1517;
  --line: rgba(14, 9, 6, .1);
  --shadow-sm: 0 2px 12px rgba(42, 21, 23, .06);
  --shadow-md: 0 10px 32px rgba(42, 21, 23, .10);
  --shadow-lg: 0 28px 64px rgba(42, 21, 23, .16);
  --silk: cubic-bezier(.16, 1, .3, 1);
  --r: 16px;
  --r-lg: 24px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px #8e4850;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Kufi Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
  --dir: 1;
  --header-h: 64px;
}
[dir="rtl"] { --dir: -1; }

/* ---------- Base ---------- */
*, *::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);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
main:focus { outline: none; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .95em; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2.5rem); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: .75rem; color: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--silk), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(168, 88, 96, .28); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-ghost); }
.btn-outline { background: var(--surface); color: var(--accent-ink); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent-ink); }
.btn-light:hover { background: #fbeaec; color: var(--accent-hover); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-on-dark:focus-visible, .btn-light:focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px #fff; }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface); color: var(--accent-ink); border: 1px solid var(--accent-line); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--accent); color: #fff; }
[dir="rtl"] .flip { transform: scaleX(-1); transform-origin: center; transform-box: fill-box; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 247, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .85rem;
  border-radius: 999px; border: 1px solid var(--accent-line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--silk), opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--surface); border-block-end: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: .75rem 1.25rem 1.25rem; display: none;
}
.site-nav.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { position: static; display: block; box-shadow: none; padding: 0 0 1rem; background: transparent; border: 0; }
html:not(.js) .header-inner { flex-wrap: wrap; }
/* Sans JS, le menu est déplié : l'en-tête n'est plus collant (il masquerait la cible des ancres, ex. #contact). */
@media (max-width: 1179.98px) { html:not(.js) .site-header { position: static; } }
.nav-links a {
  display: block; padding: .7rem .25rem; color: var(--ink); text-decoration: none; font-weight: 550;
  border-block-end: 1px solid var(--line);
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-block-start: 1rem; }
.lang-switch { display: flex; gap: .25rem; margin-inline-end: auto; }
@media (max-width: 1179.98px) {
  .lang-switch { flex-basis: 100%; }
  .nav-tools .btn { flex: 1 1 10rem; }
}
.lang-switch a {
  display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 .4rem;
  border-radius: 10px; color: var(--ink-2); font-weight: 650; font-size: .85rem; text-decoration: none;
}
.lang-switch a:hover { background: var(--accent-ghost); color: var(--accent-ink); }
.lang-switch a[aria-current="true"] { background: var(--accent); color: #fff; }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav, html:not(.js) .site-nav {
    position: static; display: flex !important; align-items: center; gap: 1.25rem; flex: 1;
    background: transparent; border: 0; box-shadow: none; padding: 0;
  }
  html:not(.js) .header-inner { flex-wrap: nowrap; }
  .nav-links { display: flex; gap: .1rem; margin-inline: auto; }
  .nav-links a, .nav-tools .btn { white-space: nowrap; }
  .nav-links a { border: 0; padding: .45rem .6rem; border-radius: 999px; font-size: .92rem; color: var(--ink-2); }
  .nav-links a:hover { background: var(--accent-ghost); }
  .nav-tools { margin: 0; flex-wrap: nowrap; }
  .lang-switch { margin-inline-end: .25rem; }
}

/* ---------- Notices ---------- */
.notice { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; padding: .9rem 1.1rem; border-radius: var(--r); margin-block: 1rem; }
.notice-ok { background: #e4f3ea; color: #1b5433; border: 1px solid #a9d6bb; }
.notice-err { background: #fdecea; color: #8c1d18; border: 1px solid #f3b8b2; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 2.5rem 3.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(closest-side, rgba(232, 176, 181, .45), transparent 70%);
}
[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: .85rem; font-weight: 650;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.hero-title {
  margin-block: 1rem .9rem; font-size: clamp(2rem, 7.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
  text-wrap: balance;
}
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.3; }
.hl {
  color: var(--accent-ink); background-image: linear-gradient(transparent 68%, rgba(242, 167, 173, .55) 68%, rgba(242, 167, 173, .55) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .05em;
}
.hero-sub { color: var(--ink-2); font-size: clamp(1.02rem, 2.6vw, 1.18rem); max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.6rem; }
.hero-student { margin-block-start: 1rem; color: var(--ink-2); font-size: .95rem; }
.hero-student a { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
[dir="rtl"] .hero-student a { text-decoration-skip-ink: auto; text-underline-offset: .45em; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block-start: 1.6rem; color: var(--ink-2); font-size: .9rem; }
.trust li, .plan-features li, .case-res { display: flex; align-items: flex-start; gap: .5rem; }
.chk { flex: none; color: var(--accent-mid); margin-block-start: .2em; }

.hero-visual { position: relative; justify-self: center; width: min(290px, 72vw); }
.device {
  border-radius: 34px; background: #2a1517; padding: 10px; box-shadow: var(--shadow-lg);
  transform: rotate(calc(var(--dir) * 2deg));
}
.device-bar { display: none; }
.device img { border-radius: 26px; width: 100%; height: auto; background: #fff; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 650;
  animation: float 6s ease-in-out infinite;
}
.fc-l { color: var(--ink-3); font-weight: 600; }
.fc-k { font-family: "Times New Roman", serif; font-style: italic; font-size: 1.05rem; color: var(--accent-ink); }
.fc-1 { inset-inline-start: -4%; top: 12%; }
.fc-2 { inset-inline-end: -4%; top: 46%; animation-delay: -2s; }
.fc-3 { inset-inline-start: -2%; bottom: 8%; animation-delay: -4s; }
@media (min-width: 900px) { .fc-1 { inset-inline-start: -14%; } .fc-2 { inset-inline-end: -12%; } .fc-3 { inset-inline-start: -8%; } }
.fc-ring { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--accent-mid) 0 72%, var(--bg-alt) 0); mask: radial-gradient(circle, transparent 6px, #000 7px); -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px); }
.fc-qr { width: 22px; height: 22px; border-radius: 4px; background:
  conic-gradient(from 90deg at 40% 40%, #2a1517 25%, transparent 0) 0 0 / 8px 8px, #fff; outline: 2px solid #2a1517; outline-offset: -2px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 900px) {
  .hero { padding-block: 4.5rem 5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero-visual { width: 330px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 720px; margin-inline: auto; margin-block-end: 2.5rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  margin-block-end: .6rem;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.section-head h2 { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
[dir="rtl"] .section-head h2 { letter-spacing: 0; line-height: 1.35; }
.section-sub { color: var(--ink-2); margin-block-start: .75rem; font-size: 1.05rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }

/* ---------- Carrousel ---------- */
.screens { background: linear-gradient(var(--bg), var(--bg-alt)); }
.carousel { position: relative; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 1rem 1.5rem; scrollbar-width: thin; }
.carousel-track { display: flex; gap: 1.25rem; padding-inline: 1.25rem; width: max-content; }
.slide { scroll-snap-align: center; width: 240px; flex: none; }
.slide figure { display: grid; gap: .9rem; }
.phone { border-radius: 30px; background: #2a1517; padding: 8px; box-shadow: var(--shadow-md); }
.phone img { width: 100%; height: auto; border-radius: 23px; background: #fff; }
.slide figcaption { text-align: center; display: grid; gap: .15rem; }
.slide figcaption strong { font-size: 1rem; }
.slide figcaption span { color: var(--ink-2); font-size: .9rem; }
.carousel-controls { display: none; align-items: center; justify-content: center; gap: 1rem; margin-block-start: .5rem; }
.carousel-dots { display: flex; gap: .35rem; }
.carousel-dots button {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center;
}
.carousel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: #8f7c80; transition: width .3s var(--silk), background-color .3s; }
.carousel-dots button[aria-current="true"]::before { width: 26px; background: var(--accent); }
.carousel-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Version enrichie par JS : éventail façon ClearWave */
.carousel.is-fan { --pw: clamp(200px, 56vw, 270px); --gap1: clamp(120px, 34vw, 300px); --gap2: clamp(200px, 58vw, 540px); }
.carousel.is-fan .carousel-viewport { overflow: hidden; scroll-snap-type: none; padding-block: 1rem 0; }
.carousel.is-fan .carousel-track { position: relative; width: auto; height: calc(var(--pw) * 1.78 + 6.5rem); padding: 0; display: block; }
.carousel.is-fan .slide {
  position: absolute; top: 0; inset-inline: 0; margin-inline: auto; width: var(--pw);
  transition: transform .6s var(--silk), opacity .6s var(--silk), filter .6s;
  transform: translateX(calc(var(--off, 0) * var(--dir) * var(--gap1))) scale(.84);
  opacity: .55; filter: saturate(.7); cursor: pointer;
}
.carousel.is-fan .slide[data-off="0"] { transform: none; opacity: 1; filter: none; z-index: 3; cursor: default; }
.carousel.is-fan .slide[data-off="-1"], .carousel.is-fan .slide[data-off="1"] { z-index: 2; }
.carousel.is-fan .slide[data-off="-2"] { transform: translateX(calc(-1 * var(--dir) * var(--gap2))) scale(.7); opacity: .3; z-index: 1; }
.carousel.is-fan .slide[data-off="2"] { transform: translateX(calc(var(--dir) * var(--gap2))) scale(.7); opacity: .3; z-index: 1; }
.carousel.is-fan .slide:not([data-off="0"]) figcaption { visibility: hidden; }
.carousel.is-fan .slide figcaption { width: min(460px, 100vw - 2.5rem); margin-inline: calc((var(--pw) - min(460px, 100vw - 2.5rem)) / 2); }
.carousel.is-fan .carousel-controls { display: flex; }
@media (min-width: 900px) { .carousel.is-fan { --pw: 270px; --gap1: 250px; --gap2: 470px; } }

/* ---------- Fonctionnalités ---------- */
.feature-grid { display: grid; gap: 1rem; }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--silk), box-shadow .35s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-ghost); color: var(--accent-ink); margin-block-end: 1rem; }
.feature h3 { font-size: 1.08rem; margin-block-end: .35rem; }
.feature p { color: var(--ink-2); font-size: .95rem; }
.tag { display: inline-block; margin-block-start: .85rem; padding: .15rem .6rem; border-radius: 999px; background: var(--bg-alt); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- Chiffres ---------- */
.stats { background: var(--accent-hover); color: #fff; padding-block: 3rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; text-align: center; gap: .2rem; }
.stat dd { font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat dt { color: #fbeaec; font-size: .95rem; max-width: 16em; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } .stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .2); } }

/* ---------- Tarifs ---------- */
.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block-end: 2.25rem; }
html:not(.js) [data-js-only] { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent-line); box-shadow: var(--shadow-sm); }
.seg button {
  min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg-badge { font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; background: var(--coral-soft); color: #7a2e36; }
.seg button[aria-pressed="true"] .seg-badge { background: #fff; color: var(--accent-ink); }
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.plan-top { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-pop {
  position: absolute; top: 0; inset-inline-start: 50%; transform: translate(calc(-50% * var(--dir)), -50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 750; padding: .3rem .85rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.2rem; }
.plan-tag { color: var(--ink-3); font-size: .92rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; margin-block: .9rem 1rem; min-height: 4.6rem; }
.amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.amount-text { font-size: 2rem; }
.per { color: var(--ink-3); font-weight: 600; }
.equiv { flex-basis: 100%; color: var(--accent-ink); font-size: .9rem; font-weight: 650; }
.plan-features { display: grid; align-content: start; gap: .55rem; margin-block-end: 1.5rem; color: var(--ink-2); font-size: .95rem; flex: 1; }
.pricing-note { text-align: center; color: var(--ink-2); margin-block-start: 1.75rem; font-size: .95rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan-top { transform: translateY(-10px); } }

/* ---------- Cas d'usage ---------- */
.usecases { background: var(--surface); }
.case-grid { display: grid; gap: 1.25rem; }
.case { padding: 1.6rem; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); display: grid; gap: .55rem; align-content: start; }
.case-num { font-size: .85rem; font-weight: 800; color: var(--coral); letter-spacing: .08em; }
.case h3 { font-size: 1.12rem; }
.case-ctx { color: var(--accent-ink); font-weight: 650; font-size: .9rem; }
.case p { color: var(--ink-2); }
.case .case-res { color: var(--ink); font-weight: 600; padding-block-start: .6rem; border-block-start: 1px dashed var(--accent-line); }
.disclaimer { text-align: center; color: var(--ink-3); font-size: .88rem; margin-block-start: 1.5rem; font-style: italic; }
@media (min-width: 900px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Impact ---------- */
.pillars { display: grid; gap: 1rem; margin-block-end: 2.5rem; }
.pillar { padding: 1.4rem 1.5rem; background: var(--surface); border-radius: var(--r); border-inline-start: 4px solid var(--accent-mid); box-shadow: var(--shadow-sm); }
.pillar h3 { font-size: 1.05rem; margin-block-end: .3rem; }
.pillar p { color: var(--ink-2); font-size: .95rem; }
.impact-split { display: grid; gap: 1.5rem; }
.roadmap, .team { background: var(--surface); border-radius: var(--r-lg); padding: 1.6rem; border: 1px solid var(--line); }
.roadmap h3, .team h3 { font-size: 1.15rem; margin-block-end: 1.1rem; }
.timeline { position: relative; display: grid; gap: 1.2rem; }
.tl { position: relative; padding-inline-start: 1.6rem; }
.tl::before { content: ""; position: absolute; inset-inline-start: 0; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid #8f7c80; }
.tl::after { content: ""; position: absolute; inset-inline-start: 5px; top: 1.4rem; bottom: -1.2rem; width: 2px; background: var(--line); }
.tl:last-child::after { display: none; }
.tl-done::before { background: var(--accent); border-color: var(--accent); }
.tl-now::before { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.tl-when { font-size: .85rem; font-weight: 700; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tl-title { font-weight: 700; }
.tl-text { color: var(--ink-2); font-size: .93rem; }
.pill { font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; }
.pill-done { background: #e4f3ea; color: #1b5433; }
.pill-now { background: var(--coral-soft); color: #7a2e36; }
.pill-next { background: #ece6e1; color: #5a544e; }
.member { display: flex; gap: 1rem; align-items: flex-start; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; }
.m-name { font-weight: 750; }
.m-role { color: var(--accent-ink); font-weight: 650; font-size: .9rem; }
.m-bio { color: var(--ink-2); font-size: .93rem; margin-block-start: .35rem; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } .impact-split { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Intégrations ---------- */
.integrations { background: var(--bg-alt); }
.int-grid { display: grid; gap: .9rem; }
.int { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.int-mono { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-ghost); color: var(--accent-ink); font-weight: 800; }
.int h3 { font-size: 1rem; }
.int p { color: var(--ink-2); font-size: .9rem; }
@media (min-width: 640px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; font-weight: 650; min-height: 44px; border-radius: var(--r);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-ghost); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .3s var(--silk); }
.faq-ico::after { transform: rotate(90deg); }
.faq-item[open] .faq-ico::after { transform: rotate(0); }
.faq-a { padding: 0 1.25rem 1.2rem; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { padding-block: 1rem 4rem; }
.cta-box {
  text-align: center; color: #fff; border-radius: 28px; padding: 3rem 1.5rem;
  background: radial-gradient(120% 140% at 100% 0, var(--deep-2) 0, transparent 55%), linear-gradient(135deg, var(--deep), #431d22);
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; text-wrap: balance; }
.cta-box p { color: #fbeaec; margin-block-start: .6rem; }
.cta-box .hero-ctas { justify-content: center; }

/* ---------- Formulaire ---------- */
.contact { padding-block-start: 1rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-md); }
.lead-form { display: grid; gap: 1rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label { font-weight: 650; font-size: .9rem; }
.opt { color: var(--ink-3); font-weight: 500; font-size: .85em; }
.req { color: var(--coral); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #8c7f79; border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 88, 96, .28); border-radius: 12px; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: end; }
[dir="rtl"] .field input:not([type="checkbox"]), [dir="rtl"] .field textarea { unicode-bidi: plaintext; }
[dir="rtl"] code, [dir="rtl"] .fc-k, [dir="rtl"] .int h3 { unicode-bidi: isolate; }
.field [aria-invalid="true"] { border-color: #b3261e !important; background: #fff8f7 !important; }
.err { color: #b3261e; font-size: .85rem; font-weight: 600; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .2rem .7rem; }
.field-check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
.field-check .err { grid-column: 1 / -1; }
.hp { position: absolute !important; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: .75rem 1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-status.is-error { background: #fdecea; color: #8c1d18; border: 1px solid #f3b8b2; }
.form-status.is-info { background: var(--accent-ghost); color: var(--accent-ink); }

/* ---------- Fenêtre de demande ---------- */
.lead-dialog {
  width: min(680px, 100% - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
.lead-dialog::backdrop { background: rgba(42, 21, 23, .55); backdrop-filter: blur(3px); }
.lead-dialog[open] { animation: pop .35s var(--silk); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 1.25rem 1rem; background: var(--surface); border-block-end: 1px solid var(--line);
}
.dlg-head h2 { font-size: 1.3rem; line-height: 1.25; }
.dlg-head p { color: var(--ink-2); font-size: .92rem; margin-block-start: .2rem; }
.dlg-close { flex: none; }
.dlg-body { padding: 1.25rem; }
.dlg-success { text-align: center; display: grid; justify-items: center; gap: .75rem; padding-block: 1.5rem; }
.dlg-success h3 { font-size: 1.3rem; }
.dlg-success p { color: var(--ink-2); }
.dlg-success .ref, .notice code { white-space: nowrap; unicode-bidi: isolate; direction: ltr; }
.dlg-success:focus { outline: none; }
body.dlg-open { overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #e3cfd1; padding-block: 3.5rem 1.5rem; }
.site-footer a { color: #f7e9ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px #e8a2a9; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.f-brand { grid-column: 1 / -1; display: grid; gap: .6rem; }
.f-brand .brand { color: #fff; }
.made { color: #cfadb1; font-size: .9rem; }
.f-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #d6b4b8; margin-block-end: .8rem; }
[dir="rtl"] .f-h { letter-spacing: 0; font-size: .9rem; }
.site-footer nav ul { display: grid; gap: .35rem; }
.site-footer nav a { display: inline-block; padding-block: .3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #cfadb1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .f-brand { grid-column: auto; } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--silk), transform .8s var(--silk); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .d1 { transition-delay: .08s; }
.js .d2 { transition-delay: .16s; }
.js .d3 { transition-delay: .24s; }
.js .d4 { transition-delay: .32s; }

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

@media (forced-colors: active) {
  .btn, .seg button, .round-btn { border: 1px solid ButtonText; }
  :focus-visible { outline: 2px solid Highlight; }
}

@media print {
  .site-header, .carousel-controls, .lead-dialog, .contact, .toggles { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
