/* =========================================
   GRRRR.EU — Feuille de style principale
   Espiègle · Provocateur · Subtil
   ========================================= */

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

:root {
  --noir:       #0d0d0d;
  --profond:    #141414;
  --surface:    #1c1c1c;
  --bord:       #2a2a2a;
  --rouge:      #c0392b;
  --rouge-doux: #e74c3c;
  --or:         #c9a84c;
  --or-clair:   #f0d080;
  --texte:      #e8e0d5;
  --texte-doux: #9a8f85;
  --blanc:      #f5f0eb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--noir);
  color: var(--texte);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVIGATION ─────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bord);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--or);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--or-clair);
}

.nav-logo span {
  color: var(--rouge-doux);
  font-style: normal;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--texte);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--or);
}

/* ── CONTENU PRINCIPAL ───────────────────── */

main {
  flex: 1;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── TITRES ──────────────────────────────── */

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blanc);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  margin-bottom: 1rem;
}

h1 em {
  color: var(--or);
  font-style: normal;
}

.subtitle {
  color: var(--texte-doux);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── SÉPARATEUR ──────────────────────────── */

.sep {
  width: 48px;
  height: 2px;
  background: var(--rouge);
  border: none;
  margin: 2rem 0;
}

/* ── BOUTONS ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--rouge);
  color: var(--blanc);
}

.btn-primary:hover {
  background: var(--rouge-doux);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--texte-doux);
  border: 1px solid var(--bord);
}

.btn-ghost:hover {
  color: var(--texte);
  border-color: var(--texte-doux);
  background: var(--surface);
}

.btn-gold {
  background: transparent;
  color: var(--or);
  border: 1px solid var(--or);
}

.btn-gold:hover {
  background: var(--or);
  color: var(--noir);
}

/* ── CARTES ──────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: var(--rouge);
}

/* ── FOOTER ──────────────────────────────── */

footer {
  border-top: 1px solid var(--bord);
  padding: 2rem;
  text-align: center;
  color: var(--texte-doux);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer a {
  color: var(--or);
  text-decoration: none;
}

footer a:hover {
  color: var(--or-clair);
}

/* ── UTILITAIRES ─────────────────────────── */

.text-or    { color: var(--or); }
.text-rouge { color: var(--rouge-doux); }
.text-doux  { color: var(--texte-doux); }
.italic     { font-style: italic; }

/* ── HAMBURGER ───────────────────────────── */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 200;
}

.nav-burger:hover {
  background: var(--surface);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--texte-doux);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* État ouvert */
.nav-burger.ouvert span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--or);
}
.nav-burger.ouvert span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-burger.ouvert span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--or);
}

/* ── MENU MOBILE OVERLAY ─────────────────── */

.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(16px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  animation: slideDown 0.25s ease;
}

.nav-mobile.visible {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 6vw, 2rem);
  color: var(--texte-doux);
  text-decoration: none;
  padding: 0.6rem 2rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  width: 100%;
  text-align: center;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--or);
}

.nav-mobile-sep {
  width: 40px;
  height: 1px;
  background: var(--bord);
  margin: 0.5rem 0;
}

/* ── RESPONSIVE ──────────────────────────── */

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

  .nav-burger {
    display: flex;
  }

  main {
    padding: 2.5rem 1.25rem;
  }
}

@media (min-width: 721px) {
  .nav-mobile {
    display: none !important;
  }
}
