/* =========================================================================
   IZIII — Site vitrine
   Feuille de style unique, sans dépendance externe (staging offline-friendly)

   Charte de marque IZIII :
     #811453  magenta IZIII (couleur primaire du logo)
     #510e35  prune profond (couleur secondaire du logo)
   ========================================================================= */

/* ---------- 1. Reset & bases ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--txt-strong);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { color: var(--txt-strong); font-weight: 650; }

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: .88em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .38em;
  color: var(--txt-strong);
}

sup { font-size: .65em; vertical-align: super; line-height: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

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

/* ---------- 2. Thème (clair / sombre) ---------- */

:root {
  /* Marque IZIII */
  --brand-800: #34081f;
  --brand-700: #510e35;   /* prune officiel */
  --brand-600: #6b1046;
  --brand-500: #811453;   /* magenta officiel — primaire */
  --brand-400: #a8256f;
  --brand-300: #c9639b;
  --brand-200: #e7b6d0;

  --accent-500: #b6246f;  /* rose vif — dégradés */
  --accent-400: #d8479a;

  --gold-500: #a8760d;
  --gold-400: #dfa72d;

  --mint-600: #0d8f63;
  --mint-400: #2fd39a;
  --rose-500: #d13b57;

  --bg:          #ffffff;
  --bg-alt:      #faf6f8;
  --surface:     #ffffff;
  --surface-2:   #f7eff4;
  --surface-3:   #eee0e9;
  --border:      #e7d9e2;
  --border-soft: #f1e7ed;

  --txt:        #574a52;
  --txt-strong: #1c0a15;
  --txt-mute:   #7e6b77;
  --link:       var(--brand-500);

  --ink-950: #0a0409;
  --ink-900: #120611;
  --ink-850: #1b0a19;
  --ink-800: #251127;
  --ink-700: #351a3b;

  --shadow-sm: 0 1px 2px rgba(28, 10, 21, .06), 0 1px 3px rgba(28, 10, 21, .04);
  --shadow-md: 0 4px 8px rgba(28, 10, 21, .05), 0 12px 28px rgba(28, 10, 21, .08);
  --shadow-lg: 0 8px 16px rgba(28, 10, 21, .07), 0 28px 60px rgba(28, 10, 21, .14);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --wrap: 1180px;
  --wrap-narrow: 820px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0b050a;
    --bg-alt:      #130814;
    --surface:     #180b19;
    --surface-2:   #211021;
    --surface-3:   #2d1631;
    --border:      #3b1f40;
    --border-soft: #2d1731;

    --txt:        #c6b2c0;
    --txt-strong: #fbf5f9;
    --txt-mute:   #9c8794;
    --link:       var(--brand-300);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, .5), 0 28px 60px rgba(0, 0, 0, .65);
  }
}

:root[data-theme="dark"] {
  --bg:          #0b050a;
  --bg-alt:      #130814;
  --surface:     #180b19;
  --surface-2:   #211021;
  --surface-3:   #2d1631;
  --border:      #3b1f40;
  --border-soft: #2d1731;

  --txt:        #c6b2c0;
  --txt-strong: #fbf5f9;
  --txt-mute:   #9c8794;
  --link:       var(--brand-300);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .5);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, .5), 0 28px 60px rgba(0, 0, 0, .65);
}

:root[data-theme="light"] {
  --bg:          #ffffff;
  --bg-alt:      #faf6f8;
  --surface:     #ffffff;
  --surface-2:   #f7eff4;
  --surface-3:   #eee0e9;
  --border:      #e7d9e2;
  --border-soft: #f1e7ed;
  --txt:        #574a52;
  --txt-strong: #1c0a15;
  --txt-mute:   #7e6b77;
  --link:       var(--brand-500);
}

/* ---------- 3. Mise en page ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.4rem;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--txt-mute); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-400));
  border-radius: 2px;
}
:root[data-theme="dark"] .eyebrow { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--brand-300); }
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--txt-mute);
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

/* ---------- 4. Accessibilité ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-500);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- 5. En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

/* L'en-tête dispose d'un peu plus de largeur que le contenu :
   8 entrées de navigation + sélecteur de langue + thème + CTA. */
.site-header .wrap { max-width: 1280px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--txt-strong);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

/* Logo IZIII — hauteur fixe, largeur libre (accepte tout ratio) */
.brand .mark {
  height: 42px;
  width: auto;
  flex: 0 0 auto;
  display: block;
}
.brand .tag {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-mute);
  border-left: 1px solid var(--border);
  padding-left: .65rem;
  align-self: center;
}

/* Le logo fourni est sombre : on l'éclaircit en thème sombre */
:root[data-theme="dark"] .site-header .brand .mark { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .brand .mark { filter: brightness(0) invert(1); }
}
.site-footer .brand .mark { filter: brightness(0) invert(1); }

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: .45rem .58rem;
  border-radius: var(--r-sm);
  font-size: .89rem;
  font-weight: 550;
  color: var(--txt);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--txt-strong); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-500); background: var(--surface-2); }
:root[data-theme="dark"] .nav a[aria-current="page"] { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--brand-300); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--txt);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--txt-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }

/* ---------- 5b. Sélecteur de langue ---------- */

.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--txt);
  border-radius: var(--r-sm);
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ""; }
.lang-switch > summary:hover { background: var(--surface-2); color: var(--txt-strong); }
.lang-switch > summary svg { width: 17px; height: 17px; }
.lang-switch > summary .chev {
  width: 9px; height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.lang-switch[open] > summary .chev { transform: translateY(1px) rotate(225deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 200px;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 300;
}
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu li { margin: 0; }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 550;
  color: var(--txt);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--txt-strong); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--brand-500); font-weight: 700; background: var(--surface-2); }
:root[data-theme="dark"] .lang-menu a[aria-current="true"] { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang-menu a[aria-current="true"] { color: var(--brand-300); }
}
.lang-menu .code {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--txt-mute);
}
.lang-menu .hint {
  display: block;
  padding: .5rem .7rem .3rem;
  font-size: .74rem;
  line-height: 1.4;
  color: var(--txt-mute);
  border-top: 1px solid var(--border-soft);
  margin-top: .3rem;
}

@media (max-width: 1200px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.4rem 1.5rem;
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav a { padding: .7rem .9rem; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-cta { display: none; }
}

/* ---------- 6. Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500) 55%, var(--accent-500));
  color: #fff;
  box-shadow: 0 2px 6px rgba(129, 20, 83, .3), 0 10px 24px rgba(129, 20, 83, .24);
}
.btn-primary:hover { box-shadow: 0 4px 10px rgba(129, 20, 83, .34), 0 16px 34px rgba(129, 20, 83, .3); }

.btn-ghost {
  background: var(--surface);
  color: var(--txt-strong);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-outline-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); }

.btn-sm { padding: .5rem 1rem; font-size: .87rem; }
.btn-lg { padding: .92rem 1.8rem; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row.center { justify-content: center; }

/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: #cdb9c7;
  padding-block: clamp(4rem, 10vw, 7.5rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 18% 8%, rgba(129, 20, 83, .55), transparent 62%),
    radial-gradient(48% 48% at 88% 18%, rgba(216, 71, 154, .28), transparent 60%),
    radial-gradient(52% 60% at 62% 100%, rgba(223, 167, 45, .14), transparent 62%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero .lead { color: #cbb2c4; max-width: 40rem; }
.hero .eyebrow { color: var(--accent-400); }
.hero .eyebrow::before { background: linear-gradient(90deg, var(--accent-400), transparent); }
.hero a { color: #f0c9e0; }
.hero strong { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: #ecd6e5;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: .35rem .8rem;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--mint-400); }

/* ---------- 8. Cartes ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card > p { color: var(--txt-mute); font-size: .96rem; }

a.card:hover,
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-500) 45%, var(--border));
  text-decoration: none;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 16%, transparent), color-mix(in srgb, var(--accent-400) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand-500) 24%, transparent);
  color: var(--brand-500);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .card-icon { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card-icon { color: var(--brand-300); }
}

/* ---------- 9. Blocs "réponse directe" (optimisation IA) ---------- */

.answer-box {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.25rem;
}
.answer-box h2,
.answer-box h3 {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: .55rem;
}
:root[data-theme="dark"] .answer-box h2,
:root[data-theme="dark"] .answer-box h3 { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .answer-box h2,
  :root:not([data-theme="light"]) .answer-box h3 { color: var(--brand-300); }
}
.answer-box p { margin-bottom: .6rem; color: var(--txt-strong); font-size: 1.02rem; }
.answer-box p:last-child { margin-bottom: 0; }
.answer-box ul { margin-bottom: 0; }

/* ---------- 10. Tableaux ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 520px;
}
caption {
  text-align: left;
  padding: .9rem 1.1rem;
  font-weight: 650;
  color: var(--txt-strong);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
th, td {
  text-align: left;
  padding: .78rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
thead th {
  background: var(--surface-2);
  color: var(--txt-strong);
  font-weight: 650;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td strong { color: var(--txt-strong); }

/* ---------- 11. FAQ ---------- */

.faq-list { display: grid; gap: .75rem; }

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
details.faq[open] { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }

details.faq > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 650;
  color: var(--txt-strong);
  position: relative;
  font-size: 1.02rem;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--txt-mute);
  border-bottom: 2px solid var(--txt-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
details.faq[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
details.faq > summary:hover { background: var(--surface-2); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--txt); }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- 12. Statistiques & listes de contrôle ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.35rem;
}
.stat .num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--brand-700), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .stat .num {
  background: linear-gradient(135deg, var(--brand-300), var(--accent-400));
  -webkit-background-clip: text;
  background-clip: text;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat .num {
    background: linear-gradient(135deg, var(--brand-300), var(--accent-400));
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.stat .lbl { font-size: .88rem; color: var(--txt-mute); }

.check-list { list-style: none; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .65rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint-400) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-600) 45%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: .36rem; top: .68em;
  width: .3rem; height: .55rem;
  border-right: 2px solid var(--mint-600);
  border-bottom: 2px solid var(--mint-600);
  transform: rotate(42deg);
}
:root[data-theme="dark"] .check-list li::after { border-color: var(--mint-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .check-list li::after { border-color: var(--mint-400); }
}

/* ---------- 13. Étiquettes ---------- */

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--txt-mute);
}
.tag-brand { background: color-mix(in srgb, var(--brand-500) 12%, transparent); border-color: color-mix(in srgb, var(--brand-500) 32%, transparent); color: var(--brand-500); }
.tag-mint  { background: color-mix(in srgb, var(--mint-400) 15%, transparent); border-color: color-mix(in srgb, var(--mint-600) 35%, transparent); color: var(--mint-600); }
.tag-amber { background: color-mix(in srgb, var(--gold-400) 20%, transparent); border-color: color-mix(in srgb, var(--gold-500) 38%, transparent); color: var(--gold-500); }
:root[data-theme="dark"] .tag-brand { color: var(--brand-300); }
:root[data-theme="dark"] .tag-mint  { color: var(--mint-400); }
:root[data-theme="dark"] .tag-amber { color: var(--gold-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-brand { color: var(--brand-300); }
  :root:not([data-theme="light"]) .tag-mint  { color: var(--mint-400); }
  :root:not([data-theme="light"]) .tag-amber { color: var(--gold-400); }
}

/* ---------- 14. Emplacements images (à fournir) ---------- */

.media-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 260px;
  border: 2px dashed color-mix(in srgb, var(--brand-500) 40%, var(--border));
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 7%, transparent), color-mix(in srgb, var(--accent-400) 6%, transparent)),
    var(--surface-2);
  color: var(--txt-mute);
  text-align: center;
  padding: 1.5rem;
  font-size: .86rem;
}
.media-slot svg { width: 34px; height: 34px; opacity: .55; }
.media-slot .slot-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-500);
  letter-spacing: .04em;
}
.media-slot .slot-desc { max-width: 30rem; line-height: 1.5; }
.media-slot.tall { min-height: 380px; }
.media-slot.wide { min-height: 200px; }
:root[data-theme="dark"] .media-slot .slot-id { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .media-slot .slot-id { color: var(--brand-300); }
}
.hero .media-slot {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  color: #a992a6;
}
.hero .media-slot .slot-id { color: var(--accent-400); }

/* ---------- 15. Bandeau CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-900), var(--ink-800) 55%, #4a1140);
  color: #d8c2d3;
  border-radius: var(--r-xl);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 20% 0%, rgba(129, 20, 83, .55), transparent 65%),
    radial-gradient(45% 70% at 85% 100%, rgba(216, 71, 154, .3), transparent 62%);
  z-index: -1;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbb2c4; max-width: 40rem; margin-inline: auto; }

/* ---------- 16. Fil d'Ariane ---------- */

.breadcrumb {
  font-size: .84rem;
  color: var(--txt-mute);
  padding-top: 1.5rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: var(--txt-mute); }

/* ---------- 17. Page héro secondaire ---------- */

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}
.page-head h1 { margin-bottom: .5rem; }
.page-head .lead { margin-bottom: 0; max-width: 46rem; }

/* ---------- 18. Sommaire ---------- */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt-mute);
  margin-bottom: .6rem;
}
.toc ul {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li { margin-bottom: .3rem; break-inside: avoid; font-size: .93rem; }
@media (max-width: 640px) { .toc ul { columns: 1; } }

/* ---------- 19. Chronologie / étapes ---------- */

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.9rem;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.15rem; height: 2.15rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700), var(--accent-500));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.06rem; top: 2.4rem; bottom: .35rem;
  width: 1px;
  background: var(--border);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--txt-mute); margin-bottom: 0; }

/* ---------- 20. Catalogue de fonctionnalités ---------- */

.module-group { margin-bottom: 3rem; }
.module-group > h2 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.module-group > h2 .count {
  font-size: .78rem;
  font-weight: 650;
  color: var(--txt-mute);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .12rem .6rem;
  letter-spacing: 0;
  text-transform: none;
}
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.module h3 {
  font-size: 1.03rem;
  margin-bottom: .3rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.module h3 .slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 500;
  color: var(--txt-mute);
  letter-spacing: 0;
}
.module p { font-size: .92rem; color: var(--txt-mute); margin-bottom: 0; }

/* Bandeau "tout inclus" */
.included-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 10%, transparent), color-mix(in srgb, var(--accent-400) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--brand-500) 30%, var(--border));
  border-radius: var(--r-lg);
  padding: 1.15rem 1.4rem;
  margin-bottom: 2rem;
}
.included-banner svg { width: 26px; height: 26px; color: var(--brand-500); flex-shrink: 0; }
.included-banner p { margin: 0; font-size: .97rem; }
:root[data-theme="dark"] .included-banner svg { color: var(--brand-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .included-banner svg { color: var(--brand-300); }
}

/* ---------- 20b. Mur de références clients ---------- */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.logo-wall > li { margin: 0; }

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 96px;
  padding: 1rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--txt-strong);
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.logo-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border));
}

/* Quand un logo est fourni, il remplace le texte */
.logo-tile img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.logo-tile .sub {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  color: var(--txt-mute);
  margin-top: .25rem;
  letter-spacing: 0;
}

/* Variante compacte pour la bande d'accueil */
.logo-wall.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logo-wall.compact .logo-tile { min-height: 76px; font-size: .87rem; padding: .8rem .7rem; }

.ref-group { margin-bottom: 2.75rem; }
.ref-group > h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.ref-group > h2 .count {
  font-size: .78rem;
  font-weight: 650;
  color: var(--txt-mute);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .12rem .6rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- 21. Formulaire ---------- */

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--txt-strong); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .95rem;
  padding: .68rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--txt-strong);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--txt-mute); }

/* ---------- 22. Pied de page ---------- */

.site-footer {
  background: var(--ink-950);
  color: #a08b9b;
  padding-block: 3.5rem 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #a08b9b; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand .tag { color: #8b7484; border-color: rgba(255,255,255,.18); }
.footer-about { max-width: 26rem; color: #917d8c; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #857180;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-bottom li { margin: 0; }

/* ---------- 23. Divers ---------- */

.note {
  font-size: .87rem;
  color: var(--txt-mute);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--r-sm);
  padding: .85rem 1.1rem;
}
.note strong { color: var(--txt-strong); }

.meta-line {
  font-size: .84rem;
  color: var(--txt-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.25rem;
}
.pill-nav a {
  font-size: .87rem;
  font-weight: 600;
  padding: .42rem .95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--txt);
}
.pill-nav a:hover { background: var(--surface-2); color: var(--txt-strong); text-decoration: none; }

@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { background: #fff; color: #000; }
  .hero h1 { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* état normal */
#zoomVideo {
    transition: all 0.4s ease;
}

/* état zoomé */
#zoomVideo.zoomed {
    width: 100vw !important;
    height: auto !important;
    max-height: 100vh;
    border-radius: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: black;
}
