:root{
  --charcoal: #2f434c;
  --charcoal-soft: #38505b;
  --ivory: #f4f2ec;
  --red: #ff3206;
  --blue: #1e3a5f;
  --gold: #fdea12;
  --line: rgba(244,242,236,0.14);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background:var(--charcoal);
  color:var(--ivory);
  font-family:'Work Sans', sans-serif;
  font-weight:300;
  line-height:1.6;
  overflow-x:hidden;
}

h1,h2,h3, .eyebrow{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.02em;
}

.mono{ font-family:'JetBrains Mono', monospace; }

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- NAV ---------- */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(23,24,28,0.9);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 24px;
  max-width:1100px;
  margin:0 auto;
}
.logo{
  font-family:'Oswald', sans-serif;
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:0.04em;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-mark{
  width:14px; height:14px;
  background:var(--red);
  transform:rotate(45deg);
  flex-shrink:0;
}
.nav-links{
  display:flex;
  gap:28px;
  font-size:0.82rem;
  text-transform:uppercase;
  letter-spacing:0.07em;
}
.nav-links a{ opacity:0.7; transition:opacity 0.2s; padding:4px 0; border-bottom:1px solid transparent; }
.nav-links a:hover{ opacity:1; }
.nav-links a.active{ opacity:1; border-bottom-color:var(--red); }
.nav-toggle{ display:none; background:none; border:none; color:var(--ivory); font-size:1.5rem; cursor:pointer; }

@media (max-width:820px){
  .nav-links{
    position:fixed;
    top:60px; right:0;
    background:var(--charcoal-soft);
    flex-direction:column;
    gap:0;
    width:220px;
    transform:translateX(100%);
    transition:transform 0.3s ease;
    border-left:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ padding:16px 24px; border-bottom:1px solid var(--line); opacity:1; }
  .nav-toggle{ display:block; }
}

/* ---------- PAGE HERO (pages secondaires) ---------- */
.page-hero{
  padding:150px 0 60px;
  border-bottom:1px solid var(--line);
}
.page-hero .eyebrow{
  font-size:0.8rem;
  color:var(--red);
  letter-spacing:0.2em;
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.page-hero .eyebrow::before{ content:''; width:32px; height:1px; background:var(--red); }
.page-hero h1{
  font-size:clamp(2rem, 5vw, 3.4rem);
  font-weight:700;
  max-width:700px;
}
.page-hero p{ margin-top:18px; max-width:560px; opacity:0.75; }

/* ---------- BUTTONS ---------- */
.btn{
  padding:15px 30px;
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-size:0.85rem;
  font-weight:600;
  border:1px solid var(--ivory);
  transition:all 0.25s ease;
  cursor:pointer;
  background:none;
  display:inline-block;
}
.btn-solid{ background:var(--red); border-color:var(--red); color:var(--ivory); }
.btn-solid:hover{ background:transparent; color:var(--red); }
.btn-outline:hover{ background:var(--ivory); color:var(--charcoal); }

/* ---------- SECTION GENERIC ---------- */
section{ padding:100px 0; position:relative; }
.section-head{ margin-bottom:56px; }
.section-head .eyebrow{
  font-size:0.8rem; color:var(--red); letter-spacing:0.2em; margin-bottom:12px;
  display:flex; align-items:center; gap:12px;
}
.section-head .eyebrow::before{ content:''; width:32px; height:1px; background:var(--red); }
.section-head h2{ font-size:clamp(1.8rem, 4vw, 2.8rem); font-weight:600; max-width:600px; }
.divider{ height:1px; background:var(--line); width:100%; }

/* ---------- CARDS DE NAVIGATION (accueil) ---------- */
.nav-cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.nav-card{
  background:var(--charcoal);
  padding:32px 24px;
  transition:background 0.2s;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:170px;
}
.nav-card:hover{ background:var(--charcoal-soft); }
.nav-card .tag{ font-family:'JetBrains Mono', monospace; font-size:0.7rem; color:var(--gold); }
.nav-card h3{ font-size:1.1rem; font-weight:600; margin:14px 0 8px; }
.nav-card p{ font-size:0.85rem; opacity:0.65; }
.nav-card .arrow{ margin-top:16px; font-family:'JetBrains Mono', monospace; font-size:0.8rem; color:var(--red); }
@media (max-width:900px){ .nav-cards{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .nav-cards{ grid-template-columns:1fr; } }

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--line);
  padding:32px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.8rem;
  opacity:0.5;
  flex-wrap:wrap;
  gap:12px;
}

:focus-visible{ outline:2px solid var(--red); outline-offset:3px; }

.website-honeypot{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
  opacity:0;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
