/* ==========================================================================
   COMÈTE · Studio Google Discover · Julien Jimenez
   Design « deep space » : nuit bleutée, lime électrique, traînées de comète
   ========================================================================== */

:root {
  --bg: #07090f;
  --bg-raise: #0b0e17;
  --surface: #10141f;
  --surface-2: #151a29;
  --line: rgba(226, 232, 255, 0.09);
  --line-strong: rgba(226, 232, 255, 0.18);
  --text: #eef1fa;
  --text-soft: #a8b0c6;
  --text-faint: #7d859c;
  --glow: #cdf463;
  --glow-strong: #e3ff8f;
  --glow-dim: #a8ce4b;
  --glow-soft: rgba(205, 244, 99, 0.13);
  --violet: #8f7bff;
  --sky: #72d4ff;
  --ink-on-glow: #131a05;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --w: 1180px;
  --w-prose: 760px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.65);
  --grad-comet: linear-gradient(94deg, var(--glow-strong) 0%, var(--glow) 38%, var(--sky) 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ciel étoilé fixe, très discret */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(238, 241, 250, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(238, 241, 250, 0.38) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 32%, rgba(205, 244, 99, 0.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 58%, rgba(238, 241, 250, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 46%, rgba(143, 123, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 84%, rgba(238, 241, 250, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 74%, rgba(114, 212, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 92%, rgba(238, 241, 250, 0.33) 50%, transparent 51%);
  background-size: 900px 900px;
  pointer-events: none;
}

/* Halo d'aurore en tête de page */
body::after {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 100vw);
  height: 780px;
  z-index: -1;
  background:
    radial-gradient(46% 42% at 38% 48%, rgba(205, 244, 99, 0.09) 0%, transparent 100%),
    radial-gradient(42% 40% at 66% 38%, rgba(143, 123, 255, 0.11) 0%, transparent 100%),
    radial-gradient(36% 36% at 52% 60%, rgba(114, 212, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

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

::selection { background: var(--glow); color: var(--ink-on-glow); }

/* ------------------------------ Typographie ------------------------------ */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); line-height: 1.28; }
h4 { font-size: 1.05rem; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p, li { max-width: 70ch; }

.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.6;
  color: var(--text-soft);
}

a { color: var(--glow); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(205, 244, 99, 0.4); text-underline-offset: 3px; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--glow-strong); text-decoration-color: var(--glow-strong); }

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

code {
  font-family: "Consolas", "SF Mono", monospace;
  font-size: 0.88em;
  color: var(--glow);
  background: rgba(205, 244, 99, 0.08);
  border: 1px solid rgba(205, 244, 99, 0.18);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

.grad-text {
  background: var(--grad-comet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------- Structure ------------------------------- */

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2.6rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--glow); color: var(--ink-on-glow);
  padding: 0.65rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 650; text-decoration: none;
}
.skip-link:focus { left: 0; }

section { padding: clamp(3.6rem, 8vw, 6.4rem) 0; position: relative; }
.section-tight { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }

.sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Étiquette de section */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow);
  border: 1px solid rgba(205, 244, 99, 0.28);
  background: rgba(205, 244, 99, 0.06);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  margin: 0 0 1.5rem;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px 1px rgba(205, 244, 99, 0.8);
}

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead { margin-bottom: 0; }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

/* -------------------------------- Boutons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn-primary {
  background: var(--glow);
  color: var(--ink-on-glow);
  box-shadow: 0 8px 30px -8px rgba(205, 244, 99, 0.45);
}
.btn-primary:hover {
  background: var(--glow-strong);
  color: var(--ink-on-glow);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -8px rgba(205, 244, 99, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); transform: translateY(-2px); }
.btn .arr { transition: transform 0.16s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }

/* --------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { flex: 0 0 auto; display: grid; place-items: center; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--grad-comet);
  border-radius: 2px;
  transition: right 0.2s ease;
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn)[aria-current="page"]::after { right: 0; }
.site-nav .btn { padding: 0.62rem 1.3rem; font-size: 0.94rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(9, 12, 20, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 1rem clamp(1.15rem, 4vw, 2.6rem) 1.6rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .site-nav a:not(.btn) { display: block; padding: 0.75rem 0.2rem; font-size: 1.08rem; }
  .site-nav .btn { margin-top: 0.8rem; width: 100%; }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero { padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1.6rem; }
.hero-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  margin: 0 0 1.6rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.hero-byline:hover { border-color: rgba(205, 244, 99, 0.35); transform: translateY(-2px); background: rgba(205, 244, 99, 0.04); }
.hero-byline .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(205, 244, 99, 0.4);
}
.hero-byline-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.hero-byline-txt strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.hero-trust strong { color: var(--text-soft); font-weight: 600; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Mockup téléphone : un flux Discover stylisé */
.phone {
  position: relative;
  width: min(330px, 100%);
  margin: 0 auto;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #1a2030, #0c0f18 60%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 80px -20px rgba(143, 123, 255, 0.28),
    0 0 120px -40px rgba(205, 244, 99, 0.3);
  transform: rotate(2.5deg);
}
.phone-screen {
  background: #0d1119;
  border-radius: 30px;
  padding: 1rem 0.9rem 1.2rem;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  width: 86px; height: 22px;
  background: #07090f;
  border-radius: 999px;
  margin: 0 auto 0.9rem;
}
.feed-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: #171d2c;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.feed-search .g {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--glow);
  font-size: 0.9rem;
}
.feed-card {
  background: #131826;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.feed-img { height: 92px; position: relative; }
.feed-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 25, 0.55), transparent 55%);
}
.feed-img-1 { background: radial-gradient(120% 160% at 20% 10%, #8f7bff 0%, #2b2350 55%, #131826 100%); }
.feed-img-2 { background: radial-gradient(130% 150% at 80% 15%, #cdf463 0%, #3c4a1a 50%, #131826 100%); }
.feed-img-3 { background: radial-gradient(130% 150% at 45% 0%, #72d4ff 0%, #1d3a4d 55%, #131826 100%); }
.feed-body { padding: 0.65rem 0.75rem 0.75rem; }
.feed-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0 0 0.45rem;
  color: var(--text);
}
.feed-meta {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.66rem;
  color: var(--text-faint);
}
.feed-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--glow); }

/* Badge de pic de trafic flottant */
.spike-badge {
  position: absolute;
  right: -26px;
  top: 34%;
  background: rgba(13, 17, 25, 0.92);
  border: 1px solid rgba(205, 244, 99, 0.45);
  border-radius: 14px;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 30px -8px rgba(205, 244, 99, 0.4);
  animation: floaty 5.5s ease-in-out infinite;
}
.spike-badge .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--glow);
  display: block;
  line-height: 1.1;
}
.spike-badge .lbl { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.spike-badge svg { display: block; margin-top: 0.35rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 480px) {
  .spike-badge { right: -6px; }
  .phone { transform: rotate(0deg); }
}

/* --------------------------------- Ticker --------------------------------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden;
  padding: 0.95rem 0;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 550;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.ticker span::after { content: "✦"; color: var(--glow); font-size: 0.7rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } }

/* --------------------------------- Cartes --------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(170deg, var(--surface-2), var(--surface) 65%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(205, 244, 99, 0.3); }
.card h3 { margin-top: 0.2rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--glow-soft);
  border: 1px solid rgba(205, 244, 99, 0.25);
  color: var(--glow);
  margin-bottom: 1.1rem;
}

.stat-tile { text-align: left; }
.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-comet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-tile .cap { color: var(--text-soft); font-size: 0.98rem; }
.stat-tile .src { display: block; margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-faint); }

/* Cartes offres */
.offer { display: flex; flex-direction: column; }
.offer .tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid rgba(114, 212, 255, 0.3);
  background: rgba(114, 212, 255, 0.07);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.offer .price {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.12rem;
  color: var(--glow);
  margin: 0.4rem 0 0.9rem;
}
.offer .price small { display: block; font-size: 0.75rem; font-weight: 450; color: var(--text-faint); letter-spacing: 0.03em; }
.offer ul { margin: 0 0 1.4rem; padding-left: 1.1rem; color: var(--text-soft); }
.offer ul li { margin-bottom: 0.45rem; }
.offer ul li::marker { color: var(--glow); }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer-featured { border-color: rgba(205, 244, 99, 0.45); }
.offer-featured::before {
  content: "Le plus demandé";
  position: absolute;
  top: -13px; right: 18px;
  background: var(--glow);
  color: var(--ink-on-glow);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}

/* Cartes guides */
.guide-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.guide-card .num-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--glow);
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
  display: block;
}
.guide-card h3 { font-size: 1.16rem; }
.guide-card p { color: var(--text-soft); font-size: 0.95rem; flex: 1; }
.guide-card .more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--glow);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.guide-card:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.guide-card .meta-line { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 0.4rem; }

/* ---------------------------- Timeline méthode ---------------------------- */

.timeline { counter-reset: step; display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-on-glow);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-comet);
  box-shadow: 0 0 26px -6px rgba(205, 244, 99, 0.5);
}
.step-no::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.35rem; }
.step h3 .phase-name { color: var(--glow); }
.step p { color: var(--text-soft); margin-bottom: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 0.7rem; }
}

/* ------------------------------ Bloc citation ----------------------------- */

.pull-quote {
  border: 1px solid var(--line);
  border-left: 3px solid var(--glow);
  background: linear-gradient(120deg, rgba(205, 244, 99, 0.05), transparent 55%);
  border-radius: 0 var(--r) var(--r) 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  margin: 2rem 0;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}
.pull-quote cite { font-style: normal; color: var(--text-faint); font-size: 0.92rem; }
.pull-quote cite strong { color: var(--text-soft); }

/* ---------------------------------- FAQ ---------------------------------- */

.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(205, 244, 99, 0.35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--glow);
  line-height: 1;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------- CTA band -------------------------------- */

.cta-band {
  position: relative;
  border: 1px solid rgba(205, 244, 99, 0.3);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 160% at 15% 0%, rgba(205, 244, 99, 0.13) 0%, transparent 55%),
    radial-gradient(80% 140% at 90% 100%, rgba(143, 123, 255, 0.16) 0%, transparent 55%),
    var(--surface);
  padding: clamp(2.4rem, 5.5vw, 4.2rem);
  text-align: center;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .lead { margin-left: auto; margin-right: auto; max-width: 40rem; }
.cta-band .btn { margin-top: 1.6rem; }
.cta-band .note { display: block; margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-faint); }
.cta-band::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(205, 244, 99, 0.14), transparent);
  pointer-events: none;
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg-raise), #05070c);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 2.6rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.9rem; max-width: 30ch; }
.footer-brand .sig { color: var(--text-faint); font-size: 0.85rem; }

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--glow); }

.footer-contact .mail {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
}
.footer-contact .hint { color: var(--text-faint); font-size: 0.85rem; margin-top: 0.5rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-faint);
  font-size: 0.84rem;
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--glow); }

/* ----------------------------- Pages intérieures ----------------------------- */

.page-hero { padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.4rem); }
.page-hero .lead { max-width: 44rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--glow); }
.breadcrumb .sep-c { color: var(--text-faint); opacity: 0.6; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.byline .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-comet);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-on-glow);
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.byline .who strong { display: block; color: var(--text); font-size: 0.95rem; }
.byline .dotsep { opacity: 0.5; }

/* Article : colonne + sommaire */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: 1rem;
}
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.toc {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  font-size: 0.9rem;
}
.toc h2 {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 0.65rem; display: flex; gap: 0.6rem; align-items: baseline; }
.toc li::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--glow);
}
.toc ol a { color: var(--text-soft); text-decoration: none; }
.toc ol a:hover { color: var(--glow); }
.toc .toc-cta { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.toc .toc-cta .btn { width: 100%; font-size: 0.88rem; padding: 0.7rem 1rem; }

.prose { max-width: var(--w-prose); }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child, .prose > .takeaways + h2 { border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; color: var(--text); }
.prose li { margin-bottom: 0.5em; }
.prose ul li::marker { color: var(--glow); }
.prose ol li::marker { color: var(--glow); font-weight: 650; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.3em;
  border-left: 3px solid var(--glow);
  color: var(--text-soft);
  font-style: italic;
}

/* Encadré « L'essentiel » */
.takeaways {
  border: 1px solid rgba(114, 212, 255, 0.3);
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(114, 212, 255, 0.08) 0%, transparent 60%),
    var(--surface);
  border-radius: var(--r);
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0;
}
.takeaways h2 {
  font-size: 0.8rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.takeaways ul { list-style: none; margin: 0; padding: 0; }
.takeaways li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--text-soft);
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--glow);
  font-size: 0.85rem;
}

/* Encadré aparté */
.callout {
  border: 1px solid rgba(205, 244, 99, 0.3);
  background: linear-gradient(120deg, rgba(205, 244, 99, 0.06), transparent 60%), var(--surface);
  border-radius: var(--r);
  padding: 1.3rem 1.6rem;
  margin: 1.8rem 0;
  font-size: 0.98rem;
  color: var(--text-soft);
}
.callout .callout-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Carte auteur en fin d'article */
.author-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 1.4rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  padding: 1.8rem;
  margin: 3rem 0 0;
  max-width: var(--w-prose);
}
.author-card .avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--grad-comet);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-on-glow);
}
.author-card h3 { margin-bottom: 0.2rem; font-size: 1.15rem; }
.author-card .role { color: var(--glow); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; display: block; margin-bottom: 0.7rem; }
.author-card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 0.8rem; }
.author-card a.more-link { font-weight: 600; }
@media (max-width: 520px) { .author-card { grid-template-columns: 1fr; } }

/* Navigation entre guides */
.guide-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.6rem;
  max-width: var(--w-prose);
}
@media (max-width: 640px) { .guide-nav { grid-template-columns: 1fr; } }
.guide-nav a {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.guide-nav a:hover { border-color: rgba(205, 244, 99, 0.35); transform: translateY(-3px); }
.guide-nav .dir { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 0.4rem; }
.guide-nav .ttl { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.guide-nav .next { text-align: right; }

/* ------------------------------- Formulaires ------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.field label .req { color: var(--glow); }
.field input, .field select, .field textarea {
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 3px rgba(205, 244, 99, 0.15);
}
.field .hint { font-size: 0.8rem; color: var(--text-faint); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 0.4rem; }
.form-foot .privacy { font-size: 0.8rem; color: var(--text-faint); max-width: 42ch; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Panneau contact latéral */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 1.2rem; }
.contact-aside .card h3 { font-size: 1.05rem; }
.contact-aside .card p { font-size: 0.93rem; color: var(--text-soft); }

/* Bloc contact par e-mail (mailto) */
.contact-mail-card h2 { margin-top: 0.2rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.contact-mail-address { margin: 1.4rem 0 1.8rem; }
.contact-mail-address a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  color: var(--glow);
  text-decoration: none;
  word-break: break-word;
}
.contact-mail-address a:hover { text-decoration: underline; }

/* ------------------------------ Divers / utils ----------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-soft); }
.small { font-size: 0.88rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.pill-list li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  font-family: var(--font-display);
}

/* ----------------------------- Portrait fondateur ----------------------------- */

img.avatar { object-fit: cover; }

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.founder-grid.founder-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 900px) {
  .founder-grid, .founder-grid.founder-hero { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}

.founder-photo { position: relative; }
.founder-photo img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid rgba(205, 244, 99, 0.35);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8), 0 0 60px -18px rgba(205, 244, 99, 0.3);
  transform: rotate(-1.5deg);
  display: block;
}
.founder-photo::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) + 10px);
  transform: rotate(1deg);
  pointer-events: none;
}
.founder-badge {
  position: absolute;
  bottom: -16px;
  right: -8px;
  background: var(--glow);
  color: var(--ink-on-glow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(205, 244, 99, 0.5);
}

.founder-list { list-style: none; margin: 1.5rem 0 1.8rem; padding: 0; }
.founder-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.7rem; color: var(--text-soft); }
.founder-list li::before { content: "✦"; position: absolute; left: 0; color: var(--glow); font-size: 0.85rem; }

/* Révélation au scroll · active uniquement si le JS a pu s'exécuter (html.js) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* Page 404 */
.err-hero { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.err-hero .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: var(--grad-comet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

/* Tableau (mentions légales, comparatifs) */
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-family: var(--font-display); font-weight: 600; }

/* Impression */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .site-header, .site-footer, .cta-band, .ticker, .spike-badge { display: none !important; }
  a { color: #111; }
}
