/* Équipora — site vitrine. Feuille de style unique, sans dépendance externe. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Couleurs (clair par défaut, sombre selon le système ou le choix mémorisé) ---------- */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #0e1621;
  --muted: #4b5668;
  --border: #d9dee6;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-ink: #ffffff;
  --brand-soft: #e7eeff;
  --brand-text: #1d4ed8;
  --accent: #c2410c;
  --accent-soft: #fff1e8;
  --ok: #15803d;
  --ok-soft: #e8f6ee;
  --warn: #92400e;
  --warn-soft: #fff6e0;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 7%);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / 8%), 0 24px 60px rgb(15 23 42 / 16%);
  /* Bandeaux sombres (accueil, appels à l'action) : identiques dans les deux thèmes */
  --ink: #0a111c;
  --ink-2: #111b2b;
  --ink-text: #eef2f8;
  --ink-muted: #aab6c9;
  --ink-line: rgb(148 170 210 / 14%);
  --ink-accent: #ffb27a;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Space Grotesk", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1018;
    --surface: #111925;
    --surface-2: #172131;
    --text: #e8edf4;
    --muted: #a6b1c3;
    --border: #253244;
    --brand: #6f97ff;
    --brand-hover: #94b2ff;
    --brand-ink: #08101e;
    --brand-soft: #16233d;
    --brand-text: #8fb0ff;
    --accent: #fb923c;
    --accent-soft: #2c1a0e;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --warn: #fbbf24;
    --warn-soft: #2a2010;
    --danger: #f87171;
    --danger-soft: #2c1515;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 24px 60px rgb(0 0 0 / 45%);
    --ink: #070c14;
    --ink-2: #0e1624;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1018;
  --surface: #111925;
  --surface-2: #172131;
  --text: #e8edf4;
  --muted: #a6b1c3;
  --border: #253244;
  --brand: #6f97ff;
  --brand-hover: #94b2ff;
  --brand-ink: #08101e;
  --brand-soft: #16233d;
  --brand-text: #8fb0ff;
  --accent: #fb923c;
  --accent-soft: #2c1a0e;
  --ok: #4ade80;
  --ok-soft: #10261a;
  --warn: #fbbf24;
  --warn-soft: #2a2010;
  --danger: #f87171;
  --danger-soft: #2c1515;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 24px 60px rgb(0 0 0 / 45%);
  --ink: #070c14;
  --ink-2: #0e1624;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--brand-ink); }
[hidden] { display: none !important; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 600 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.small { font-size: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgb(29 78 216 / 25%); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-light { background: #fff; color: #0a111c; }
.btn-light:hover { background: #e8eefc; color: #0a111c; transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--ink-text); border-color: rgb(255 255 255 / 30%); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-small { min-height: 38px; padding: .45rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font: 700 1.25rem/1 var(--font-title); letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo img, .logo svg { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav-list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-list a:hover { background: var(--surface-2); color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-text); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.theme-toggle .t-dark, .theme-toggle .t-auto { display: none; }
:root[data-theme="dark"] .theme-toggle .t-light { display: none; }
:root[data-theme="dark"] .theme-toggle .t-dark { display: block; }
:root[data-theme-choice="auto"] .theme-toggle .t-light, :root[data-theme-choice="auto"] .theme-toggle .t-dark { display: none; }
:root[data-theme-choice="auto"] .theme-toggle .t-auto { display: block; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 16px 1.5rem; max-height: calc(100dvh - 68px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: .8rem .75rem; font-size: 1.05rem; }
  .nav-actions { margin: 0; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1 1 auto; }
  .header-tools { margin-left: auto; display: flex; gap: .5rem; }
}
@media (min-width: 1061px) { .header-tools { display: contents; } }

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink-text);
  background:
    radial-gradient(900px 500px at 85% 10%, rgb(29 78 216 / 38%), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgb(194 65 12 / 22%), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--ink-accent); }
.hero .lead { color: var(--ink-muted); }
.hero .eyebrow { color: var(--ink-accent); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .55rem; color: var(--ink-text); }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; }
.hero-points svg { width: 20px; height: 20px; color: #7ee2a8; flex: none; margin-top: 3px; }
.hero-visual { position: relative; }
.hero-visual .shot { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero-phone { position: absolute; right: -10px; bottom: -36px; width: 30%; max-width: 190px; border-radius: 22px; border: 6px solid #1c2638; box-shadow: var(--shadow-lg); overflow: hidden; background: #1c2638; }
.hero-phone img { border-radius: 16px; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: var(--ink-muted); }

.page-hero { position: relative; overflow: hidden; color: var(--ink-text); background: radial-gradient(800px 400px at 90% 0%, rgb(29 78 216 / 35%), transparent 60%), var(--ink); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.page-hero .wrap { position: relative; padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: var(--ink-muted); }
.page-hero .eyebrow { color: var(--ink-accent); }

/* ---------- Captures ---------- */
.video { margin: 0 auto; max-width: 960px; border-radius: 14px; overflow: hidden; background: #0a111c; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.video video { display: block; width: 100%; height: auto; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; background: #0f1724; border: 1px solid rgb(255 255 255 / 10%); box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1a2333; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a465b; }
.shot-bar span:nth-child(1) { background: #ef6b5b; }
.shot-bar span:nth-child(2) { background: #f2b74b; }
.shot-bar span:nth-child(3) { background: #5fc46a; }
.shot-bar small { margin-left: 10px; color: #8f9bb0; font-size: .75rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; }
.shot-light { border-color: var(--border); }
figure figcaption { font-size: .88rem; color: var(--muted); padding: .7rem .2rem 0; }

/* ---------- Bandeau de chiffres / atouts ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.strip > div { background: var(--surface); padding: 1.3rem 1.4rem; }
.strip strong { display: block; font: 650 1.15rem/1.3 var(--font-title); margin-bottom: .25rem; }
.strip span { color: var(--muted); font-size: .93rem; }

/* ---------- Cartes et grilles ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); color: inherit; transform: translateY(-2px); }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 1rem; }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.accent { background: var(--accent-soft); color: var(--accent); }
.icon-tile.ok { background: var(--ok-soft); color: var(--ok); }
.module-card { display: flex; flex-direction: column; }
.module-card .tags { margin-top: auto; padding-top: .8rem; }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin: 0 .3rem .3rem 0; }
.tag-brand { background: var(--brand-soft); color: var(--brand-text); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.check-list li.no::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23748096' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / 70% no-repeat; }
.check-list li.no { color: var(--muted); }

/* ---------- Mise en avant capture + texte ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 96px); }
.feature-row.reverse > :first-child { order: 2; }

/* ---------- Onglets (vitrine des écrans) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.tabs [role="tab"] { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: .55rem 1rem; border-radius: 999px; font: 600 .92rem/1.2 var(--font); cursor: pointer; }
.tabs [role="tab"]:hover { border-color: var(--brand); }
.tabs [role="tab"][aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }

/* ---------- Chez vous / hébergé ---------- */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.choice .card { display: flex; flex-direction: column; }
.choice .art { border-radius: 10px; background: var(--surface-2); margin-bottom: 1.2rem; aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; }
.choice .art svg { width: 100%; height: 100%; }

/* Illustrations (couleurs suivant le thème) */
.ill-ground { fill: color-mix(in srgb, var(--border) 60%, transparent); }
.ill-wall { fill: var(--surface); stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.ill-roof { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ill-window { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.ill-door { fill: var(--brand); }
.ill-server { fill: var(--text); }
.ill-slot { fill: color-mix(in srgb, var(--bg) 25%, var(--text)); }
.ill-led { fill: #4ade80; }
.ill-link { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 5 6; stroke-linecap: round; }
.ill-cloud { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2; }
.ill-device { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
main:focus { outline: none; }
.h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.h3 { font-size: 1.2rem; }
.section-sub { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.center-row { justify-content: center; margin-top: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; }
.contact-list svg { width: 22px; height: 22px; color: var(--brand-text); flex: none; }
.tarifs-periodes { margin-bottom: 2rem; }
.tarifs-periodes p { margin-top: .6rem; }
#tarifs-etat, #commande-etat, #compte-etat, #commande-retour, #compte-message, #suivi-commande { margin-bottom: 2rem; }
.amount { font-variant-numeric: tabular-nums; }
legend.label { font: 600 .94rem/1.3 var(--font); margin-bottom: .4rem; }
aside > .h3 { margin-top: 0; }
.auth-layout aside .notice { margin-top: 1rem; }

/* ---------- Bandeau sombre (appel à l'action, sécurité) ---------- */
.band { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, rgb(29 78 216 / 35%), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgb(194 65 12 / 18%), transparent 60%); pointer-events: none; }
.band .wrap { position: relative; }
.band h2 { color: #fff; }
.band .lead, .band p { color: var(--ink-muted); }
.band .eyebrow { color: var(--ink-accent); }
.band .card { background: var(--ink-2); border-color: rgb(255 255 255 / 9%); box-shadow: none; color: var(--ink-text); }
.band .card p { color: var(--ink-muted); }
.band .icon-tile { background: rgb(111 151 255 / 14%); color: #a9c1ff; }
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }

/* ---------- Éditions et tarifs ---------- */
.editions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.edition { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.edition.featured { border: 2px solid var(--brand); }
.edition .ribbon { position: absolute; top: -12px; left: 22px; background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: .25rem .65rem; border-radius: 999px; }
.edition h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.edition .for { color: var(--muted); font-size: .93rem; min-height: 3em; }
.edition .size { font-weight: 600; font-size: .92rem; margin: .4rem 0 1rem; display: flex; gap: .4rem; align-items: center; }
.edition .size svg { width: 18px; height: 18px; color: var(--brand-text); }
.edition .price { margin: .2rem 0 1rem; min-height: 4.2rem; }
.edition .price .amount { font: 700 2.1rem/1 var(--font-title); letter-spacing: -0.03em; }
.edition .price .per { color: var(--muted); font-size: .9rem; }
.edition .price .on-request { font: 650 1.35rem/1.2 var(--font-title); }
.edition .price .sub { display: block; color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.edition .check-list { font-size: .94rem; flex: 1; }
.edition .btn { margin-top: 1rem; }
.tiers { width: 100%; border-collapse: collapse; font-size: .9rem; margin: -.2rem 0 1rem; }
.tiers th, .tiers td { text-align: left; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.tiers td:last-child, .tiers th:last-child { text-align: right; }

.segmented { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: .5rem 1rem; border-radius: 9px; font-weight: 600; font-size: .93rem; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }
.segmented em { font-style: normal; color: var(--ok); font-size: .8rem; margin-left: .3rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
.yes { color: var(--ok); font-weight: 700; }
.opt { color: var(--accent); font-weight: 600; font-size: .88rem; }
.dash { color: var(--muted); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 600; font-size: .94rem; }
.field .hint { font-size: .84rem; color: var(--muted); }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 0; border-color: var(--brand); }
input[aria-invalid="true"] { border-color: var(--danger); }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice-card { position: relative; display: block; border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1rem; background: var(--surface); cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card strong { display: block; }
.choice-card small { color: var(--muted); display: block; line-height: 1.4; margin-top: .2rem; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; background: var(--brand-soft); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option-list { display: grid; gap: .5rem; }
.option-item { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem; background: var(--surface); }
.option-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.option-item small { display: block; color: var(--muted); }
.option-item .incl { margin-left: auto; white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 650 1.05rem/1.3 var(--font-title); padding: 0; margin-bottom: .7rem; }

/* ---------- Messages ---------- */
.notice { border-radius: 12px; padding: 1rem 1.1rem; border: 1px solid var(--border); background: var(--surface); display: flex; gap: .8rem; align-items: flex-start; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { display: block; }
.notice-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.notice-info svg { color: var(--brand-text); }
.notice-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice-warn svg { color: var(--warn); }
.notice-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.notice-error svg { color: var(--danger); }
.notice-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.notice-ok svg { color: var(--ok); }
.form-status:empty { display: none; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-brand { background: var(--brand-soft); color: var(--brand-text); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Boutique ---------- */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.summary { position: sticky; top: 90px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1px solid var(--border); padding-top: .8rem; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.summary .total strong { font: 700 1.6rem/1 var(--font-title); }
.summary .total-ttc { border-top: 0; padding-top: .3rem; font-weight: 600; }
.summary .total-ttc strong { font-size: 1.15rem; }
.summary .discount { color: var(--ok); }

/* Promotions et prix TTC */
.promo-tag { display: inline-block; margin-right: .4rem; padding: .1rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .78rem/1.4 var(--font); vertical-align: middle; }
s.before, .before { color: var(--muted); font-weight: 400; margin-right: .3rem; }
.ttc { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); }
.promo-banner ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.input-row { display: flex; gap: .5rem; }
.input-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.auth-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.auth-tabs a { padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs a[aria-current="true"] { color: var(--text); border-bottom-color: var(--brand); }
.key-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: 0; }
.key-row code { font-size: 1rem; letter-spacing: .06em; background: var(--surface-2); padding: .4rem .65rem; border-radius: 8px; word-break: break-all; }
.key-row .meta { color: var(--muted); font-size: .88rem; flex-basis: 100%; }
.transfer { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; }
.transfer dt { color: var(--muted); }
.transfer dd { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Divers ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font: 700 1rem/1 var(--font-title); }
.faq details { border-bottom: 1px solid var(--border); padding: .4rem 0; }
.faq summary { cursor: pointer; list-style: none; padding: .8rem 2rem .8rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .55rem; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.todo { background: var(--warn-soft); color: var(--warn); padding: .05rem .35rem; border-radius: 5px; font-weight: 600; }
.module-index { display: flex; flex-wrap: wrap; gap: .4rem; }
.module-index a { text-decoration: none; font-size: .9rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); color: var(--ink-text); }
.module-index a:hover { border-color: #fff; color: #fff; }
.module { scroll-margin-top: 90px; }
.module + .module { border-top: 1px solid var(--border); }
.module-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(40px, 6vw, 72px) 0; }
.module-grid.no-shot { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.module-title { display: flex; gap: .9rem; align-items: center; margin-bottom: .6rem; }
.module-title .icon-tile { margin: 0; flex: none; }
.module-title h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; }
.editions-in { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 1rem; align-items: center; font-size: .85rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font: 650 .82rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: .86rem; }

/* ---------- Apparition au défilement (désactivée si mouvement réduit) ---------- */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .anim .reveal { opacity: 1; transform: none; }
  .hero-visual .shot { transform: none; }
}

/* ---------- Adaptation aux écrans ---------- */
@media (max-width: 1060px) {
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .hero-grid, .feature-row, .tabpanel, .module-grid, .auth-layout, .cta { grid-template-columns: minmax(0, 1fr); }
  .feature-row.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual .shot { transform: none; }
  .hero-phone { right: 4px; bottom: -24px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .choice, .editions, .form-row, .strip { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-phone { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .tabs [role="tab"] { flex: none; }
  table.data th, table.data td { padding: .6rem .7rem; }
  .segmented { display: flex; }
  .segmented label { flex: 1 1 auto; text-align: center; }
}
/* ---------- Ajustements ---------- */
.grid + p.center, .grid + .btn-row, .editions + p.center { margin-top: 2rem; margin-bottom: 0; }
.edition .check-list { align-content: start; }
#liste-exemples .amount { font: 700 1.6rem/1.1 var(--font-title); letter-spacing: -0.02em; }
@media (min-width: 1061px) {
  .nav { order: 2; }
  .theme-toggle { order: 3; margin-left: .25rem; }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
}
@media (max-width: 640px) {
  #table-options thead { display: none; }
  #table-options tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; border-bottom: 1px solid var(--border); }
  #table-options tr:last-child { border-bottom: 0; }
  #table-options th, #table-options td { border: 0; }
  #table-options td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; color: var(--muted); font-size: .9rem; }
}
@media print {
  .site-header, .site-footer, .btn, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
.nowrap { white-space: nowrap; }
