/* ==========================================================================
   All Ads Market — système de verre (glassmorphism premium)
   Palette : fond marine profond quasi noir, panneaux de verre à chant
   lumineux diagonal (biseau chromé), accent or/ambre pour les CTA.
   Vocabulaire visuel calqué sur les références fournies (sphère chromée,
   plaques de verre à liseré argenté, glow diagonal type "Apple Liquid
   Glass") — même logique que le composant CxGlass déjà construit pour
   l'app CacaoC : chant complet + traînée diagonale, jamais un aplat plat.
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --bg-3: #0e1526;
  --ink: #f2f4f9;
  --ink-muted: #9aa3b8;
  --ink-faint: #626c82;
  --accent: #e8b93e;
  --accent-deep: #c99a24;
  --accent-ink: #1a1305;
  --cool: #5fd4e8;
  --border-soft: rgba(255, 255, 255, 0.10);
  --glass-fill: rgba(255, 255, 255, 0.045);
  --glass-fill-strong: rgba(255, 255, 255, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse 1200px 800px at 15% -10%, rgba(232, 185, 62, 0.10), transparent 55%),
              radial-gradient(ellipse 1000px 700px at 100% 10%, rgba(95, 212, 232, 0.08), transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Le composant verre — chant complet + traînée diagonale ────────────── */
.glass {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.glass::before {
  /* Le chant : dégradé diagonal, vif en haut-gauche, éteint au milieu,
     reprend en bas-droite — jamais un trait plat qui lirait comme une
     bordure Material ordinaire. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.06) 42%,
      rgba(255, 255, 255, 0.04) 58%,
      rgba(255, 255, 255, 0.55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass::after {
  /* La traînée : un biseau de lumière net qui balaie la plaque en biais. */
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 70%;
  height: 220%;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.10) 48%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.10) 52%,
      rgba(255, 255, 255, 0) 60%);
  transform: rotate(-18deg);
  pointer-events: none;
}

.glass-tight { border-radius: var(--radius-md); }

/* ── Typographie ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; color: var(--ink-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 62ch; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  box-shadow: 0 12px 30px -8px rgba(232, 185, 62, 0.45);
}
.btn-primary:hover { box-shadow: 0 16px 38px -8px rgba(232, 185, 62, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: var(--border-soft);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--cool));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: #08101f;
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; color: var(--ink-muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 6px; font-size: 0.82rem; font-weight: 700; }
.lang-switch a {
  padding: 5px 10px; border-radius: 999px; color: var(--ink-faint);
  border: 1px solid var(--border-soft);
}
.lang-switch a.active { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer { padding: 60px 0 40px; color: var(--ink-faint); font-size: 0.85rem; }
footer a { color: var(--ink-muted); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }

/* ── Utilitaires ─────────────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-40{margin-top:40px}.mt-64{margin-top:64px}
.text-center { text-align: center; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-soft);
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .container { padding: 0 18px; }
}

/* ── Bandeau cookies — même doctrine que ivoire.ai : rien avant un choix ── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: -140px;
  z-index: 200;
  transition: bottom 0.35s ease;
  padding: 0 20px 20px;
}
.cookie-banner.is-visible { bottom: 0; }
.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 0.85rem; flex: 1 1 320px; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.85rem; }
