/* =========================================================================
   SITE PUBLIC AltiusForms — une seule feuille pour toutes les pages
   publiques du portail (vitrine, tarifs, documentation, blog, connexion).

   Direction « Net », la même que l'application : fonds clairs, filets de
   1 px, presque pas d'ombres, IBM Plex Sans (Plex Mono pour les petites
   capitales), sarcelle de la marque employée avec parcimonie, corail
   réservé au point du logo et aux rares accents.

   Aucune page ne porte de style en ligne : tout composant vit ici.
   ========================================================================= */

/* ── Jetons ───────────────────────────────────────────────────────────── */
:root {
  --teal-50: #e9f4f3;
  --teal-100: #cfe7e5;
  --teal-500: #0b9488;
  --teal-600: #088178;
  --teal-700: #066b63;
  --teal-800: #05544e;
  --coral: #ff5757;
  --ink: #101211;
  --cream: #f4f3f0;

  --gray-50: #f8f8f7;
  --gray-100: #f0efec;
  --gray-200: #e3e2de;
  --gray-300: #cfcdc8;
  --gray-500: #7a7873;
  --gray-600: #5f5d59;
  --gray-700: #45443f;
  --gray-900: #1d1e1c;

  --bg: #ffffff;
  --bg-soft: var(--cream);
  --surface: #ffffff;
  --border: var(--gray-200);
  --text: var(--ink);
  --text-soft: var(--gray-600);
  --text-faint: var(--gray-500);
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);
  --on-primary: #ffffff;
  --accent-bg: var(--teal-50);
  --accent-fg: var(--teal-700);
  --danger: #c2410c;
  --danger-bg: #fff1eb;
  --success-bg: #ecf7f1;
  --success-fg: #166534;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: clamp(26px, 2.2vw + 14px, 34px);
  --fs-2xl: clamp(34px, 3.6vw + 16px, 56px);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  --shadow-pop: 0 12px 32px -12px rgba(16, 18, 17, .18);
  --focus: 0 0 0 3px color-mix(in oklab, var(--primary) 30%, transparent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1110;
    --bg-soft: #161917;
    --surface: #171a18;
    --border: #2a2e2b;
    --text: #eceae5;
    --text-soft: #b3b0a9;
    --text-faint: #8b8882;
    --primary: #12a598;
    --primary-hover: #19b9ab;
    --on-primary: #06110f;
    --accent-bg: #10302c;
    --accent-fg: #6fd3c8;
    --gray-50: #141715;
    --gray-100: #1c201e;
    --gray-200: #2a2e2b;
    --danger-bg: #3a1d12;
    --danger: #ff9b73;
    --success-bg: #12291c;
    --success-fg: #86efac;
    --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1110;
  --bg-soft: #161917;
  --surface: #171a18;
  --border: #2a2e2b;
  --text: #eceae5;
  --text-soft: #b3b0a9;
  --text-faint: #8b8882;
  --primary: #12a598;
  --primary-hover: #19b9ab;
  --on-primary: #06110f;
  --accent-bg: #10302c;
  --accent-fg: #6fd3c8;
  --gray-50: #141715;
  --gray-100: #1c201e;
  --gray-200: #2a2e2b;
  --danger-bg: #3a1d12;
  --danger: #ff9b73;
  --success-bg: #12291c;
  --success-fg: #86efac;
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: var(--fs-2xl); letter-spacing: -.025em; }
h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
.sr-only {
  position: absolute; 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: -48px; z-index: 100; background: var(--surface); padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--text { max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: 14px;
}
.lead { font-size: var(--fs-md); color: var(--text-soft); max-width: 46em; }
.muted { color: var(--text-soft); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 16px; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  font: 500 var(--fs-sm)/1 var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gray-300); color: var(--text); background: var(--gray-50); }
.btn--link { background: none; color: var(--primary); padding-inline: 4px; }
.btn--link:hover { text-decoration: underline; }
.btn--lg { height: 48px; padding: 0 22px; font-size: var(--fs-base); }
.btn--sm { height: 34px; padding: 0 12px; }
.btn--block { width: 100%; }
.btn .bi { font-size: 1.05em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .actions { justify-content: center; }

/* ── En-tête ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--radius-md);
  color: var(--text-soft); text-decoration: none; font-size: var(--fs-sm); font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--gray-100); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--gray-100); }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  background: none; color: var(--text-soft); cursor: pointer; font-size: 17px;
}
.icon-btn:hover { background: var(--gray-100); color: var(--text); }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-dark { display: inline; }
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
}

/* Choix de la langue : un menu <details>, sans script. */
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
  border-radius: var(--radius-md); cursor: pointer; color: var(--text-soft);
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: .06em;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--gray-100); color: var(--text); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); margin: 0; list-style: none;
}
.lang__menu button {
  width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-md); color: var(--text); font: inherit; font-size: var(--fs-sm);
  display: flex; justify-content: space-between; align-items: center;
}
.lang__menu button:hover { background: var(--gray-100); }
.lang__menu button[aria-current="true"] { color: var(--accent-fg); font-weight: 600; }
.lang__menu form { margin: 0; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .site-nav, .site-header__end .btn--ghost { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-nav[data-open] { display: block; border-top: 1px solid var(--border); padding: 8px 0 16px; }
  .mobile-nav a {
    display: block; padding: 12px var(--gutter); color: var(--text); text-decoration: none; font-weight: 500;
  }
  .mobile-nav a:hover { background: var(--gray-100); }
  .mobile-nav .actions { padding: 12px var(--gutter) 0; }
}
@media (max-width: 520px) {
  .site-header__end .btn--primary { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--line { border-top: 1px solid var(--border); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head.center { margin-inline: auto; }
.section__head p { color: var(--text-soft); font-size: var(--fs-md); margin: 0; }

/* Bandeau sombre (appel à l'action) */
.band-ink { background: var(--ink); color: #eceae5; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .lead, .band-ink p { color: #b8b5ae; }
.band-ink .eyebrow { color: #6fd3c8; }
.band-ink .btn--ghost { background: transparent; color: #fff; border-color: #3b403d; }
.band-ink .btn--ghost:hover { background: #1d211f; }

/* ── Héros ────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero h1 { max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-bottom: 28px; }
.hero__note { margin-top: 16px; font-size: var(--fs-sm); color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .bi { color: var(--primary); }

/* Capture d'écran dans un cadre de fenêtre */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--gray-50); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.shot__bar span { margin-left: 10px; font: 400 var(--fs-xs)/1 var(--font-mono); color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: var(--fs-sm); color: var(--text-soft); border-top: 1px solid var(--border); }

/* ── Grilles ──────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grid--gap-lg { gap: 32px; }

/* Rangée texte + image, alternée */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--reverse > :first-child { order: 2; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

/* ── Cartes ───────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-soft); margin: 0; font-size: var(--fs-sm); }
.card p + p { margin-top: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--gray-300); }
a.card:hover h3 { color: var(--primary); }
.card__icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: var(--radius-md); background: var(--accent-bg); color: var(--accent-fg); font-size: 19px;
}
.card__more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: var(--fs-sm); font-weight: 500; color: var(--primary); }

/* Liste à coches */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23088178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks--sm { font-size: var(--fs-sm); }

/* Points forts chiffrés / repères */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.fact { padding: 22px 24px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact__value { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.fact__label { display: block; font-size: var(--fs-sm); color: var(--text-soft); }
@media (max-width: 700px) { .fact + .fact { border-left: 0; border-top: 1px solid var(--border); } }

/* Étapes numérotées */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; color: var(--accent-fg);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); }

/* Étiquettes */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 500; line-height: 1;
  padding: 6px 8px; border-radius: var(--radius-sm);
  background: var(--gray-100); color: var(--text-soft);
}
.tag--accent { background: var(--accent-bg); color: var(--accent-fg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Types de champs : une mosaïque compacte */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: var(--fs-sm); color: var(--text);
}
.chip .bi { color: var(--primary); }

/* ── Tarifs ───────────────────────────────────────────────────────────── */
.billing-switch {
  display: inline-flex; padding: 4px; gap: 4px; margin-bottom: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.billing-switch button {
  height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-md);
  background: none; color: var(--text-soft); font: 500 var(--fs-sm)/1 var(--font-sans); cursor: pointer;
}
.billing-switch button[aria-pressed="true"] { background: var(--gray-100); color: var(--text); }
.billing-switch .tag { margin-left: 6px; padding: 3px 6px; }
.prices { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.price--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.price__badge { position: absolute; top: -11px; left: 24px; background: var(--primary); color: var(--on-primary); }
.price__name { font-size: var(--fs-md); margin-bottom: 4px; }
.price__tagline { color: var(--text-soft); font-size: var(--fs-sm); margin-bottom: 20px; min-height: 2.6em; }
.price__amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price__amount strong { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price__amount span { color: var(--text-soft); font-size: var(--fs-sm); }
.price__note { font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: 22px; min-height: 1.6em; }
.price .checks { margin-bottom: 26px; font-size: var(--fs-sm); }
.price .btn { margin-top: auto; }
[data-cycle="monthly"] [data-show="yearly"], [data-cycle="yearly"] [data-show="monthly"] { display: none; }

/* Calculateur du prix du stockage (page Tarifs) */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.calc__field { margin: 0; }
.calc__input { display: flex; align-items: center; gap: 10px; }
.calc__input input { max-width: 180px; font-size: var(--fs-md); }
.calc__input span { font-weight: 500; color: var(--text-soft); }
.calc__result { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius-md); background: var(--accent-bg); color: var(--accent-fg); }
.calc__amount { color: var(--text-soft); font-size: var(--fs-sm); }
.calc__amount strong { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text); margin-right: 4px; }
.calc__detail { font-size: var(--fs-sm); }
@media (max-width: 720px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Adresse d'instance : saisie suivie du domaine */
.address-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.address-input:focus-within { border-color: var(--primary); box-shadow: var(--focus); }
.field .address-input input { border: 0; box-shadow: none; min-width: 0; flex: 1; }
.address-input__suffix { display: flex; align-items: center; padding: 0 12px; color: var(--text-soft); font-size: var(--fs-sm); background: var(--gray-50); border-left: 1px solid var(--border); border-radius: 0 var(--radius-md) var(--radius-md) 0; white-space: nowrap; }
.form-summary { margin: 4px 0 22px; color: var(--text-soft); }

/* Tableau de comparaison */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font: 500 var(--fs-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); background: var(--gray-50); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 500; }
.table .bi-check-lg { color: var(--primary); font-size: 18px; }
.table .bi-dash { color: var(--text-faint); }

/* ── Questions fréquentes ─────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-weight: 500; font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--font-mono); color: var(--text-faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--text-soft); max-width: 62em; }
.faq details > div p:last-child { margin: 0; }

/* ── Messages ─────────────────────────────────────────────────────────── */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); font-size: var(--fs-sm);
}
.notice .bi { font-size: 18px; line-height: 1.3; }
.notice--success { background: var(--success-bg); border-color: transparent; color: var(--success-fg); }
.notice--error { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.notice--info { background: var(--accent-bg); border-color: transparent; color: var(--accent-fg); }
.notice p { margin: 0; }

/* ── Formulaires (connexion, inscription, contact) ───────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 18px; align-content: start; }
.field label, .field__label { font-size: var(--fs-sm); font-weight: 500; }
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }
.field__error { font-size: var(--fs-xs); color: var(--danger); }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: var(--fs-base); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); margin-top: 16px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: var(--fs-xs); margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Pages d'authentification : une carte centrée */
.auth { display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) var(--gutter); background: var(--bg-soft); flex: 1 0 auto; }
.auth__card { width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.auth__card--wide { max-width: 560px; }
.auth__card h1 { font-size: var(--fs-xl); margin-bottom: 6px; }
.auth__card > p { color: var(--text-soft); }
.auth__plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px; border-radius: var(--radius-md); background: var(--accent-bg); color: var(--accent-fg); font-size: var(--fs-sm); }

/* ── Documentation et blog ────────────────────────────────────────────── */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.page-head h1 { font-size: var(--fs-xl); margin-bottom: 8px; }
.page-head p { color: var(--text-soft); margin: 0; max-width: 46em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--text-faint); margin-bottom: 14px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gray-300); }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; }
.docs__nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: var(--fs-sm); }
.docs__nav h4 { font: 500 var(--fs-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 20px 0 8px; }
.docs__nav h4:first-child { margin-top: 0; }
.docs__nav ul { list-style: none; padding: 0; margin: 0; }
.docs__nav a { display: block; padding: 6px 10px; border-radius: var(--radius-md); color: var(--text-soft); text-decoration: none; }
.docs__nav a:hover { background: var(--gray-100); color: var(--text); }
.docs__nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent-fg); font-weight: 500; }
.docs__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs__pager a { display: grid; gap: 2px; text-decoration: none; font-weight: 500; }
.docs__pager a span { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 400; }
.docs__pager a:last-child { text-align: right; margin-left: auto; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs__nav { position: static; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
}

.search { display: flex; gap: 8px; max-width: 560px; }
.search .input { flex: 1; }

/* Contenu rédigé (Markdown converti) */
.prose { font-size: var(--fs-base); line-height: 1.75; color: var(--text); max-width: 72ch; }
.prose h2 { font-size: var(--fs-lg); margin: 2em 0 .6em; }
.prose h3 { font-size: var(--fs-md); margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li + li { margin-top: .3em; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--gray-100); padding: .15em .35em; border-radius: var(--radius-sm); }
.prose pre { background: var(--ink); color: #e9e7e1; padding: 16px 18px; border-radius: var(--radius-lg); overflow-x: auto; font-size: var(--fs-sm); line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--primary); background: var(--accent-bg); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose th { background: var(--gray-50); }
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--gray-100); border-bottom: 1px solid var(--border); }
.post-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.post-card__meta { font-size: var(--fs-xs); color: var(--text-faint); display: flex; gap: 10px; flex-wrap: wrap; }
.post-card h3 { margin: 0; }
.article-head { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-faint); font-size: var(--fs-sm); }
.article-cover { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); margin: 32px 0; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text); font-size: var(--fs-sm); }
.pagination [aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-soft); }
.empty .bi { font-size: 28px; color: var(--text-faint); display: block; margin-bottom: 10px; }

/* Appréciation d'une page de documentation */
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--fs-sm); color: var(--text-soft); }
.feedback form { display: flex; gap: 8px; margin: 0; }

/* ── Applications mobiles ─────────────────────────────────────────────── */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; min-width: 200px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  text-decoration: none; color: var(--text);
}
.store .bi { font-size: 26px; }
.store small { display: block; font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.2; }
.store strong { display: block; font-weight: 600; line-height: 1.2; }
.store[aria-disabled="true"] { opacity: .7; cursor: default; }

/* ── Erreurs ──────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.error-page__code { font: 500 var(--fs-sm)/1 var(--font-mono); letter-spacing: .1em; color: var(--accent-fg); }
.error-page h1 { font-size: var(--fs-xl); margin: 16px 0 10px; }
.error-page p { color: var(--text-soft); margin-bottom: 28px; }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__logo { width: 120px; margin-bottom: 14px; }
.site-footer p { color: var(--text-soft); max-width: 30em; }
.site-footer h4 { font: 500 var(--fs-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: var(--fs-xs); }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ── Apparition douce au défilement (désactivée si mouvement réduit) ─── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* Capture de l'application dans un cadre de téléphone */
.phone {
  margin: 0 auto; width: min(100%, 300px);
  padding: 10px; border-radius: 44px; background: var(--ink);
  box-shadow: var(--shadow-pop);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

/* Étapes et cartes posées sur le bandeau sombre */
.band-ink .steps li, .band-ink .card { background: #191c1a; border-color: #2c302d; }
.band-ink .steps li::before { color: #6fd3c8; }
.band-ink .steps p, .band-ink .card p { color: #b8b5ae; }
[data-billing] + p, [data-prices] + p { margin-top: 28px; }
.card__icon { display: grid; }
.card .checks { margin-top: 16px; }
.card .actions { margin-top: 24px; }
.card h2 { font-size: var(--fs-lg); }

/* Bouton d'envoi pendant que le formulaire part (un seul envoi) */
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
