/* Plus Jakarta Sans auto-hébergée (police variable 400 à 800) : aucune requête vers Google Fonts. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   annicit — feuille de styles principale
   Charte : encre #17153B · violet #5B3DF5 · corail #FF6A4D
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --brand-ink: #17153B;
  --brand-violet: #5B3DF5;
  --brand-violet-soft: #8A72FF;
  --brand-corail: #FF6A4D;

  /* Surfaces (thème clair par défaut) */
  --bg: #FFFFFF;
  --bg-alt: #F6F5FC;
  --bg-elevated: #FFFFFF;
  --bg-inset: #F0EEFA;

  /* Texte */
  --text: #17153B;
  --text-muted: #5A5878;
  --text-faint: #8B89A3;
  --text-on-brand: #FFFFFF;

  /* Lignes */
  --border: #E4E1F2;
  --border-strong: #CFCBE6;

  /* Accents dérivés */
  --accent: var(--brand-violet);
  --accent-hover: #4A2FE0;
  --accent-wash: rgba(91, 61, 245, 0.08);
  --corail-wash: rgba(255, 106, 77, 0.12);
  --star: #FFB020;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(23, 21, 59, 0.06);
  --shadow-md: 0 4px 16px rgba(23, 21, 59, 0.08);
  --shadow-lg: 0 16px 48px rgba(23, 21, 59, 0.12);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Rythme */
  --space: 1rem;
  --maxw: 1140px;
  --nav-h: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 140ms var(--ease);
  --t: 240ms var(--ease);
}

/* Thème sombre : automatique, sauf si l'utilisateur a forcé le clair */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D22;
    --bg-alt: #15143004;
    --bg-alt: #151430;
    --bg-elevated: #1B1A3C;
    --bg-inset: #232150;

    --text: #F2F1FA;
    --text-muted: #A9A6C9;
    --text-faint: #7C799B;

    --border: #2A2857;
    --border-strong: #3B3870;

    --accent: var(--brand-violet-soft);
    --accent-hover: #A390FF;
    --accent-wash: rgba(138, 114, 255, 0.14);
    --corail-wash: rgba(255, 106, 77, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

/* Thème sombre forcé par le sélecteur */
:root[data-theme="dark"] {
  --bg: #0E0D22;
  --bg-alt: #151430;
  --bg-elevated: #1B1A3C;
  --bg-inset: #232150;

  --text: #F2F1FA;
  --text-muted: #A9A6C9;
  --text-faint: #7C799B;

  --border: #2A2857;
  --border-strong: #3B3870;

  --accent: var(--brand-violet-soft);
  --accent-hover: #A390FF;
  --accent-wash: rgba(138, 114, 255, 0.14);
  --corail-wash: rgba(255, 106, 77, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Réinitialisation
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent-wash); color: var(--text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 2000;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* Sans cela, un enfant large (tableau à min-width, mot très long) force la
   colonne de grille à s'élargir et provoque un défilement horizontal. */
.hero-grid > *,
.doc-layout > *,
.contact-grid > *,
.app-grid > *,
.feature-grid > *,
.footer-grid > * { min-width: 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  color: var(--text-muted);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-corail);
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 0.97rem;
  cursor: pointer; text-align: center;
  transition: transform var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand-violet);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 61, 245, 0.28);
}
.btn--primary:hover {
  background: var(--accent-hover); color: #fff;
  box-shadow: 0 10px 28px rgba(91, 61, 245, 0.36);
  transform: translateY(-2px);
}

.btn--corail {
  background: var(--brand-corail); color: #fff;
  box-shadow: 0 6px 20px rgba(255, 106, 77, 0.3);
}
.btn--corail:hover {
  background: #F2563A; color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 106, 77, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-wash);
}

.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------------------
   5. En-tête / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex; align-items: center; gap: 20px;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: 20px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark  { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark  { display: block; }
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto 0 12px; padding: 0; list-style: none;
}
.nav-links a {
  display: block; padding: 8px 14px;
  border-radius: var(--r-full);
  color: var(--text-muted); font-weight: 600; font-size: 0.94rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--bg-inset); }
.nav-links a.is-active { color: var(--accent); background: var(--accent-wash); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: transparent; cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.theme-toggle:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-wash);
}
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent; cursor: pointer;
  color: var(--text);
}

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 14px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear var(--t);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.is-open {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    transition: opacity var(--t), transform var(--t), visibility 0s;
  }
  .nav-links a { padding: 13px 16px; border-radius: var(--r-md); font-size: 1rem; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.4; pointer-events: none; z-index: 0;
}
.hero::before {
  width: 460px; height: 460px; top: -180px; left: -140px;
  background: var(--brand-violet);
}
.hero::after {
  width: 380px; height: 380px; bottom: -200px; right: -120px;
  background: var(--brand-corail); opacity: 0.28;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
}

.hero h1 { margin-bottom: 0.45em; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand-violet) 0%, var(--brand-corail) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lede {
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
@media (max-width: 920px) { .hero-lede { margin-inline: auto; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-stats .stat span {
  font-size: 0.85rem; color: var(--text-faint);
  font-weight: 600;
}

/* Maquette de téléphone */
.hero-visual { display: flex; justify-content: center; }

/* Sur un vrai téléphone, la maquette mangerait tout l'écran avant même le
   titre : on la masque. Cette règle doit rester APRÈS celle ci-dessus. */
@media (max-width: 920px) {
  .hero-visual { display: none; }
}

.phone {
  position: relative;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--bg-elevated);
  border: 10px solid var(--brand-ink);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
:root[data-theme="dark"] .phone { border-color: #2A2857; }
.phone::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 22px;
  background: var(--brand-ink);
  border-radius: 0 0 14px 14px; z-index: 3;
}
:root[data-theme="dark"] .phone::before { background: #2A2857; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}

.phone-screen {
  position: absolute; inset: 0;
  padding: 38px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(170deg, var(--bg-inset), var(--bg-elevated));
}
.phone-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.phone-tile {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.phone-meta { flex: 1; min-width: 0; }
.phone-meta b {
  display: block; font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone-meta span { font-size: 0.68rem; color: var(--text-faint); }
.phone-bar {
  display: block;
  height: 5px; border-radius: var(--r-full);
  background: var(--bg-inset); overflow: hidden; margin-top: 4px;
}
.phone-bar i { display: block; height: 100%; border-radius: var(--r-full); }

/* --------------------------------------------------------------------------
   7. Cartes d'applications
   -------------------------------------------------------------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
@media (max-width: 420px) {
  .app-grid { grid-template-columns: 1fr; }
}

.app-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.app-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.app-card__top {
  display: flex; flex-wrap: wrap;
  align-items: flex-start; gap: 15px; margin-bottom: 16px;
}

.app-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.7rem; line-height: 1;
  box-shadow: var(--shadow-md);
}

/* flex-basis volontairement large : si le titre et les badges ne tiennent pas
   ensemble sur une ligne, les badges basculent proprement sous le titre
   plutôt que de l'écraser. */
.app-card__titles { flex: 1 1 130px; min-width: 0; }
.app-card__titles h3 { margin: 0 0 3px; font-size: 1.15rem; }
.app-card__titles .app-studio { font-size: 0.8rem; color: var(--text-faint); font-weight: 600; }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--r-full);
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.badge--app  { background: var(--accent-wash); color: var(--accent); }
.badge--jeu  { background: var(--corail-wash); color: var(--brand-corail); }
.badge--new  { background: rgba(16, 185, 129, 0.14); color: #0E9F6E; }
:root[data-theme="dark"] .badge--new { color: #34D399; }

/* Dans le flux, et non en position absolue : avec deux badges, un titre long
   passait sous eux. Ici ils réservent leur place et le titre s'adapte. */
.app-card__badges {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 6px; flex: 0 0 auto;
  margin-left: auto; /* reste collé à droite, y compris une fois passé à la ligne */
}

.app-card__desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 16px;
  flex: 1;
}

.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.app-tags span {
  padding: 4px 10px;
  background: var(--bg-inset);
  border-radius: var(--r-full);
  font-size: 0.74rem; font-weight: 600;
  color: var(--text-muted);
}

.app-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Notation en étoiles */
.rating { display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }
.stars .s-full path { fill: var(--star); }
.stars .s-empty path { fill: var(--border-strong); }
.stars .s-half .half-bg { fill: var(--border-strong); }
.stars .s-half .half-fg { fill: var(--star); }
.rating__value { font-weight: 800; font-size: 0.92rem; }
.rating__count { font-size: 0.8rem; color: var(--text-faint); }

/* Bouton Google Play */
.play-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  background: var(--brand-ink);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.85rem; font-weight: 700;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.play-btn:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 21, 59, 0.3);
}
:root[data-theme="dark"] .play-btn { background: var(--bg-inset); border: 1px solid var(--border-strong); }
:root[data-theme="dark"] .play-btn:hover { background: var(--border); }
.play-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.play-btn small { display: block; font-size: 0.62rem; opacity: 0.75; line-height: 1; font-weight: 600; }
.play-btn b { display: block; font-size: 0.86rem; line-height: 1.2; }

/* Filtres */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 2rem;
}
.chip {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: transparent;
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
}
.filters__count { margin-left: auto; font-size: 0.86rem; color: var(--text-faint); }
@media (max-width: 640px) { .filters__count { margin-left: 0; width: 100%; } }

.empty-state {
  padding: 3rem 1rem; text-align: center;
  color: var(--text-faint);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
}

/* --------------------------------------------------------------------------
   8. Blocs génériques
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature {
  padding: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 46px; height: 46px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  color: var(--accent);
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* Carte de contenu / encadré */
.card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.callout {
  display: flex; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border-left: 4px solid var(--accent);
  background: var(--accent-wash);
  font-size: 0.94rem;
  margin: 1.5rem 0;
}
.callout--warn { border-left-color: var(--brand-corail); background: var(--corail-wash); }
.callout strong { display: block; margin-bottom: 3px; }
.callout p:last-child { margin-bottom: 0; }
.callout__icon { flex-shrink: 0; font-size: 1.2rem; line-height: 1.4; }

/* --------------------------------------------------------------------------
   9. Pages documentaires (confidentialité, mentions, suppression)
   -------------------------------------------------------------------------- */
.doc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static !important; }
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.toc h4 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 10px 7px 30px;
  position: relative;
  font-size: 0.89rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.toc a::before {
  content: counter(toc);
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-inset);
  font-size: 0.64rem; font-weight: 800;
  color: var(--text-faint);
}
.toc a:hover { background: var(--bg-inset); color: var(--text); }
.toc a.is-active { color: var(--accent); background: var(--accent-wash); }
.toc a.is-active::before { background: var(--accent); color: #fff; }

.doc-section { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-section > h2 {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}
.doc-section h3 { margin-top: 1.8rem; }
.doc-section p, .doc-section li { color: var(--text-muted); }
.doc-section ul, .doc-section ol { padding-left: 1.3rem; margin: 0 0 1em; }
.doc-section li { margin-bottom: 0.45em; }
.doc-section li::marker { color: var(--accent); font-weight: 700; }
.doc-section strong { color: var(--text); font-weight: 700; }

.pill-n {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-wash); color: var(--accent);
  font-size: 0.9rem; font-weight: 800;
}

/* Tableau */
.table-scroll { overflow-x: auto; margin: 1.2rem 0; border-radius: var(--r-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.91rem; min-width: 520px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
td { color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   10. Formulaire de contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-info li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-wash); color: var(--accent);
}
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info b { display: block; font-size: 0.93rem; }
.contact-info span, .contact-info a { font-size: 0.9rem; color: var(--text-muted); }
.contact-info a:hover { color: var(--accent); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: 7px;
  font-size: 0.86rem; font-weight: 700;
}
.field label .req { color: var(--brand-corail); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--brand-corail);
  box-shadow: 0 0 0 4px var(--corail-wash);
}
.field .error {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--brand-corail);
}
.field .error.is-shown { display: block; }

.consent {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.86rem; color: var(--text-muted);
}
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand-violet); flex-shrink: 0; }

/* Pot de miel anti-spam */
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 0.92rem; font-weight: 600;
}
.form-status.is-shown { display: block; }
.form-status--ok {
  background: rgba(16, 185, 129, 0.12);
  color: #0E7C5A; border: 1px solid rgba(16, 185, 129, 0.3);
}
:root[data-theme="dark"] .form-status--ok { color: #34D399; }
.form-status--err {
  background: var(--corail-wash);
  color: #D9452A; border: 1px solid rgba(255, 106, 77, 0.35);
}
:root[data-theme="dark"] .form-status--err { color: #FF8F77; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   11. Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--brand-ink) 0%, #2A1F6B 55%, var(--brand-violet) 100%);
  color: #fff; text-align: center;
}
.cta-band::after {
  content: ""; position: absolute;
  width: 320px; height: 320px; right: -90px; bottom: -150px;
  background: var(--brand-corail); border-radius: 50%;
  filter: blur(80px); opacity: 0.45;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 36rem; margin-inline: auto; margin-bottom: 1.8rem; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --------------------------------------------------------------------------
   12. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 32px; margin-bottom: 14px; }
.footer-brand .logo-dark { display: none; }
:root[data-theme="dark"] .footer-brand .logo-light { display: none; }
:root[data-theme="dark"] .footer-brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .footer-brand .logo-dark { display: block; }
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 24rem; }

.footer-col h4 {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-faint); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem; color: var(--text-faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   13. Animation d'apparition
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   14. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .toc, .cta-band, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { grid-template-columns: 1fr; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
