/* ============================================================
   abris-anti-atomique.com — Design System
   Laura (Design) · Théo (Intégration)
   v2 — Refonte "Terre brûlée" — 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@400;500;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --color-bg:          #1A1208;
  --color-surface:     #251C10;
  --color-surface2:    #322510;
  --color-border:      #4A3520;
  --color-text:        #E8DDD0;
  --color-text2:       #C4A882;
  --color-primary:     #3D2B1A;
  --color-accent:      #C4A882;
  --color-cta:         #C0392B;
  --color-cta-hover:   #E74C3C;
  --color-success:     #27AE60;

  --font-heading: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.4);
  --shadow-md:     0 4px 20px rgba(0,0,0,.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.6);
  --shadow-accent: 0 0 20px rgba(196,168,130,.12);
  --shadow-cta:    0 4px 16px rgba(192,57,43,.4);

  --transition-fast: 150ms ease;
  --transition:      250ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1200px;
  --header-h:  72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typographie ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 400; font-style: italic; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400; font-style: normal; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 400; font-style: normal; }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }
p  { max-width: 68ch; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(var(--max-width), 100% - var(--space-lg) * 2);
  margin-inline: auto;
}
section { padding: var(--space-3xl) 0; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(26,18,8,.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; gap: var(--space-xl);
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.site-logo span { color: var(--color-accent); }
.site-nav {
  display: flex; gap: var(--space-lg);
  margin-inline: auto;
}
.site-nav a {
  font-size: .875rem; font-weight: 500;
  color: var(--color-text2);
  transition: color var(--transition-fast);
}
.site-nav a:hover, .site-nav a.active { color: var(--color-text); }
.nav-cta {
  margin-left: auto;
  display: flex; gap: var(--space-sm);
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9375rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-cta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background: rgba(0,194,255,.08);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-text2);
  color: var(--color-text);
}
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #1A1208 0%, #3D2B1A 100%);
  overflow: hidden;
}
/* Overlay image placeholder (dégradé dramatique) */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-bg, url('../img/hero/bunker-bg.webp')) center/cover no-repeat;
  opacity: .12;
  mix-blend-mode: overlay;
}
/* Texture noise subtile */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .4;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 6px 14px;
  background: rgba(196,168,130,.1);
  border: 1px solid rgba(196,168,130,.3);
  border-radius: var(--radius-pill, 999px);
  font-size: .8125rem; font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}
.hero h1 { margin-bottom: var(--space-md); }
.hero .lead {
  font-size: 1.125rem;
  color: var(--color-text2);
  margin-bottom: var(--space-xl);
  font-family: var(--font-body);
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.hero-trust {
  display: flex; gap: var(--space-xl); flex-wrap: wrap;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}
.trust-item {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: .875rem; color: var(--color-text2);
  font-family: var(--font-body);
}
.trust-item strong { color: var(--color-text); }

/* ── Doomsday Clock ─────────────────────────────────────────── */
.doomsday-clock {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.35);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  margin-left: var(--space-md);
  flex-shrink: 0;
}
.doomsday-clock:hover {
  background: rgba(192,57,43,.22);
  border-color: rgba(231,76,60,.6);
}
.clock-icon { font-size: 1rem; }
.clock-label {
  font-size: .7rem;
  font-weight: 500;
  color: var(--color-text2);
  font-family: var(--font-body);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.clock-value {
  font-size: .8125rem;
  font-weight: 700;
  color: #E74C3C;
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .clock-label { display: none; }
}
@media (max-width: 768px) {
  .doomsday-clock { display: none; }
}

/* ── Cards ──────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.card-icon {
  width: 48px; height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.card h3 { margin-bottom: var(--space-sm); }
.card p  { color: var(--color-text2); font-size: .9375rem; margin-bottom: var(--space-md); }
.card-link {
  font-size: .875rem; font-weight: 600;
  color: var(--color-accent);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition-fast);
}
.card-link:hover { gap: 8px; }

/* ── Section titles ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p  { color: var(--color-text2); margin-inline: auto; }
.section-label {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* ── Lead Form ──────────────────────────────────────────────── */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 560px;
}
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: .875rem; font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #110C05;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand p { color: var(--color-text2); font-size: .9375rem; margin-top: var(--space-md); }
.footer-col h4 { font-size: .875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--space-md); color: var(--color-text2); }
.footer-col li + li { margin-top: var(--space-sm); }
.footer-col a { font-size: .9375rem; color: var(--color-text2); transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8125rem; color: var(--color-text2);
  flex-wrap: wrap; gap: var(--space-md);
}

/* ── CTA flottant mobile ────────────────────────────────────── */
.sticky-cta {
  display: none;
  position: fixed; bottom: var(--space-md); left: var(--space-md); right: var(--space-md);
  z-index: 200;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Empêche le scroll horizontal global */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  :root {
    --header-h:  60px;
    --space-3xl: 56px;
    --space-2xl: 36px;
  }

  /* ─ Header ─ */
  .site-nav { display: none; }
  .nav-cta  { display: none; }          /* remplacé par sticky CTA en bas */
  .site-header .container { gap: var(--space-sm); }
  #menuToggle { margin-left: auto; }    /* burger colle à droite */

  /* ─ Hero ─ */
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-h) + var(--space-xl));
    padding-bottom: var(--space-2xl);
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { justify-content: center; }
  .hero-trust {
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
  }
  .trust-item { flex: 1 1 140px; }

  /* ─ Cards ─ */
  .cards-grid { grid-template-columns: 1fr; }

  /* ─ Formulaires ─ */
  .form-card {
    max-width: 100%;
    padding: var(--space-lg);
  }

  /* ─ Sections ─ */
  section { padding: var(--space-2xl) 0; }
  p { max-width: 100%; }

  /* ─ Footer ─ */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  /* ─ Sticky CTA ─ */
  .sticky-cta { display: block; }

  /* ─ Boutons ─ */
  .btn-lg { padding: 14px 24px; }
}

/* Très petits écrans */
@media (max-width: 400px) {
  :root { --space-lg: 18px; }
  .hero-trust { flex-direction: column; align-items: flex-start; }
  .hero-trust .trust-item { flex: none; }
  .hero { text-align: left; }
  .hero-actions { align-items: flex-start; }
}

/* ── Grilles responsives ────────────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.grid-2col-sm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

@media (max-width: 768px) {
  .grid-2col,
  .grid-form,
  .grid-2col-sm { grid-template-columns: 1fr; }
}

/* ── Utilitaires ────────────────────────────────────────────── */
.text-accent  { color: var(--color-accent); }
.text-cta     { color: var(--color-cta); }
.text-muted   { color: var(--color-text2); }
.text-center  { text-align: center; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-lg  { margin-bottom: var(--space-lg); }
.bg-surface { background: var(--color-surface); }
.bg-surface2 { background: var(--color-surface2); }
.border-top { border-top: 1px solid var(--color-border); }
