/* ==========================================================================
   AZARUS — sections du site. Thème : dystopie rouge, plastique rétro, pixel.
   ========================================================================== */
:root {
  --az-red: #e5171a;
  --az-red-bright: #ff3b21;
  --az-red-deep: #7d0507;
  --az-ink: #0a0405;
  --az-panel: #150809;
  --az-panel-2: #1e0c0d;
  --az-cream: #e9e2d0;
  --az-text: #f4ede0;
  --az-muted: #ad938c;
  --az-line: rgba(229, 23, 26, 0.20);
  --az-pixel: 'Ari Bold', 'Ari', sans-serif;
  --az-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
}

body { background: var(--az-ink); color: var(--az-text); }

#content { position: relative; z-index: 1; display: block; }

/* Grain + scanlines globaux très subtils par-dessus tout le site */
#content::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ---------- primitives ---------- */
.az-wrap { width: min(1200px, 92vw); margin-inline: auto; }
.az-section { position: relative; padding: clamp(64px, 11vh, 140px) 0; }
.az-section--tight { padding: clamp(40px, 7vh, 90px) 0; }

.az-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--az-mono);
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--az-red-bright);
  margin: 0 0 18px;
}
.az-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--az-red); }

.az-h2 {
  font-family: var(--az-pixel);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  color: #fff;
}
.az-h2 .hl { color: var(--az-red); }
.az-lead {
  font-family: var(--az-mono);
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.7;
  color: var(--az-muted);
  max-width: 62ch;
}

.az-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--az-mono); font-size: 0.86rem; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.az-btn--primary {
  color: #fff; border: none;
  background: linear-gradient(150deg, #e11d2a, #a30f18);
  box-shadow: 0 10px 30px rgba(220,38,38,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.az-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(220,38,38,.5); }
.az-btn--ghost { color: var(--az-text); background: transparent; border: 1px solid var(--az-line); }
.az-btn--ghost:hover { border-color: var(--az-red); color: #fff; transform: translateY(-2px); }

/* ---------- bandeau manifeste ---------- */
.az-manifesto {
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(229,23,26,.22), transparent 55%),
    linear-gradient(180deg, #120607, var(--az-ink));
  border-block: 1px solid var(--az-line);
}
.az-manifesto h2 {
  font-family: var(--az-pixel); font-weight: 700; color: #fff;
  font-size: clamp(2.2rem, 7vw, 6rem); line-height: 0.9; margin: 0 auto 22px;
  max-width: 16ch; letter-spacing: 0.01em;
}
.az-manifesto .hl { color: var(--az-red); }
.az-manifesto p { margin: 0 auto; }

/* ---------- stats ---------- */
.az-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--az-line); border: 1px solid var(--az-line); border-radius: 16px; overflow: hidden; }
.az-stat { background: var(--az-panel); padding: 30px 24px; text-align: center; }
.az-stat b {
  display: block; font-family: var(--az-pixel); font-weight: 700; color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1;
}
.az-stat b .u { color: var(--az-red); font-size: 0.5em; }
.az-stat span { display: block; margin-top: 10px; font-family: var(--az-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--az-muted); }

/* ---------- features (lignes alternées) ---------- */
.az-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px);
  align-items: center; }
.az-feature + .az-feature { margin-top: clamp(48px, 9vh, 120px); }
.az-feature:nth-child(even) .az-feature__media { order: 2; }

.az-feature__media { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; }
.az-feature__media::before {           /* halo rouge + flaque d'ombre */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(229,23,26,.35), transparent 70%);
  filter: blur(6px);
}
.az-feature__media img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
}
.az-feature__n { font-family: var(--az-mono); color: var(--az-red); font-size: 0.72rem; letter-spacing: 0.3em; }
.az-feature h3 { font-family: var(--az-pixel); font-weight: 700; color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 10px 0 14px; line-height: 1; }
.az-feature p { font-family: var(--az-mono); color: var(--az-muted); line-height: 1.7; font-size: 0.96rem; }
.az-feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.az-feature li { font-family: var(--az-mono); font-size: 0.88rem; color: var(--az-text);
  display: flex; gap: 10px; align-items: baseline; }
.az-feature li::before { content: "▸"; color: var(--az-red); }

/* ---------- étapes ---------- */
.az-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.az-step { position: relative; padding: 32px 26px; border: 1px solid var(--az-line);
  border-radius: 16px; background: linear-gradient(180deg, var(--az-panel), var(--az-ink)); overflow: hidden; }
.az-step::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--az-red), transparent); }
.az-step .num { font-family: var(--az-pixel); font-size: 3.4rem; color: rgba(229,23,26,.35); line-height: 1; }
.az-step h4 { font-family: var(--az-pixel); color: #fff; font-size: 1.3rem; margin: 6px 0 12px; }
.az-step p { font-family: var(--az-mono); color: var(--az-muted); font-size: 0.9rem; line-height: 1.65; }

/* ---------- terminal ---------- */
.az-term { border: 1px solid var(--az-line); border-radius: 14px; overflow: hidden;
  background: #08110b; box-shadow: 0 30px 80px rgba(0,0,0,.6); position: relative; }
.az-term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #0d1710; border-bottom: 1px solid rgba(80,255,120,.12); }
.az-term__bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.az-term__bar i:nth-child(1){ background:#ff5f56 } .az-term__bar i:nth-child(2){ background:#ffbd2e } .az-term__bar i:nth-child(3){ background:#27c93f }
.az-term__bar span { margin-left: 10px; font-family: var(--az-mono); font-size: 0.78rem; color: #6fbf87; }
.az-term pre { margin: 0; padding: 24px; font-family: var(--az-mono); font-size: 0.86rem;
  line-height: 1.7; color: #b8f5c6; white-space: pre-wrap; }
.az-term pre .c { color: #4b9e63; } .az-term pre .g { color: #46e07a; } .az-term pre .r { color: #ff6b5e; } .az-term pre .w { color: #eafff0; }
.az-term::after { content:""; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }

/* ---------- pricing ---------- */
.az-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.az-plan { position: relative; padding: 34px 28px; border: 1px solid var(--az-line);
  border-radius: 18px; background: linear-gradient(180deg, var(--az-panel), var(--az-ink)); }
.az-plan--feat { border-color: var(--az-red); box-shadow: 0 0 0 1px var(--az-red), 0 30px 70px rgba(229,23,26,.18); }
.az-plan__tag { position: absolute; top: -12px; right: 22px; font-family: var(--az-mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color:#fff;
  background: var(--az-red); padding: 5px 12px; border-radius: 999px; }
.az-plan h4 { font-family: var(--az-pixel); color:#fff; font-size: 1.3rem; margin: 0 0 6px; }
.az-plan .price { font-family: var(--az-pixel); color:#fff; font-size: 2.6rem; line-height: 1; margin: 12px 0; }
.az-plan .price small { font-family: var(--az-mono); font-size: 0.8rem; color: var(--az-muted); }
.az-plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 11px; }
.az-plan li { font-family: var(--az-mono); font-size: 0.86rem; color: var(--az-text); display:flex; gap:10px; }
.az-plan li::before { content: "✓"; color: var(--az-red); }
.az-plan .az-btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.az-faq { display: grid; gap: 12px; max-width: 820px; }
.az-faq details { border: 1px solid var(--az-line); border-radius: 12px; background: var(--az-panel); overflow: hidden; }
.az-faq summary { cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--az-pixel); color: #fff; font-size: 1.05rem; display: flex; justify-content: space-between; align-items:center; }
.az-faq summary::-webkit-details-marker { display: none; }
.az-faq summary::after { content: "+"; color: var(--az-red); font-family: var(--az-mono); font-size: 1.4rem; }
.az-faq details[open] summary::after { content: "−"; }
.az-faq p { margin: 0; padding: 0 24px 22px; font-family: var(--az-mono); color: var(--az-muted); line-height: 1.7; font-size: 0.92rem; }

/* ---------- CTA ---------- */
.az-cta { text-align: center;
  background: radial-gradient(100% 120% at 50% 100%, rgba(229,23,26,.25), transparent 60%), var(--az-ink);
  border-top: 1px solid var(--az-line); }
.az-cta h2 { font-family: var(--az-pixel); color:#fff; font-size: clamp(2rem, 6vw, 4.5rem); margin: 0 0 24px; line-height: .95; }

/* ---------- footer ---------- */
.az-footer { border-top: 1px solid var(--az-line); padding: 54px 0 40px; background: #080304; }
.az-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.az-footer .brand { font-family: var(--az-pixel); color:#fff; font-size: 1.4rem; }
.az-footer .brand .hl { color: var(--az-red); }
.az-footer p { font-family: var(--az-mono); color: var(--az-muted); font-size: 0.85rem; line-height: 1.6; margin-top: 12px; max-width: 40ch; }
.az-footer h5 { font-family: var(--az-mono); text-transform: uppercase; letter-spacing: .16em;
  font-size: 0.7rem; color: var(--az-red-bright); margin: 0 0 14px; }
.az-footer a { display: block; font-family: var(--az-mono); color: var(--az-muted); text-decoration: none;
  font-size: 0.88rem; padding: 5px 0; transition: color .15s; }
.az-footer a:hover { color: #fff; }
.az-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--az-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--az-mono); font-size: 0.76rem; color: var(--az-muted); }

/* ---------- reveal (GSAP fallback = visible) ---------- */
.reveal { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .az-stats { grid-template-columns: repeat(2, 1fr); }
  .az-feature { grid-template-columns: 1fr; }
  .az-feature:nth-child(even) .az-feature__media { order: 0; }
  .az-feature__media { aspect-ratio: 16/11; max-width: 520px; margin-inline: auto; }
  .az-steps, .az-plans { grid-template-columns: 1fr; }
  .az-footer__grid { grid-template-columns: 1fr; }
}
