/**
 * style.css — Lauréana Trailer Pizza
 * Styles communs à toutes les pages
 * Généré lors du refactor Version 60
 * ─────────────────────────────────────────────────────────────
 * Sections :
 *   1. Reset CSS
 *   2. Variables CSS (:root)
 *   3. Base (html, body)
 *   4. Animations (@keyframes)
 *   5. Classes Reveal (scroll animations)
 *   6. Navigation (nav, logo, nav-links, nav-cart…)
 *   7. Hamburger & Menu Mobile
 *   8. Footer
 *   9. Page Header (commun à panier.html / commande.html)
 *  10. Responsive commun (nav + footer)
 */


/* ══════════════════════════════════════════════════════════════
   1. RESET CSS
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ══════════════════════════════════════════════════════════════
   2. VARIABLES CSS
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Couleurs principales */
  --gold:   #C49A22;
  --gold2:  #e8b92e;          /* variante dorée (mon-espace) */
  --bg:     #0d0c09;
  --bg2:    #111009;
  --bg3:    #181610;          /* variante sombre (mon-espace) */
  --card:   #131107;          /* fond carte (mon-espace) */
  --text:   #F2EDE0;
  --muted:  rgba(242,237,224,0.55);
  --border: rgba(196,154,34,0.14); /* bordure subtile (mon-espace) */

  /* Typographies */
  --serif:  'Cormorant Garamond', 'Cormorant Garant', Georgia, serif;
  --sans:   'Inter', sans-serif;
  --script: 'Great Vibes', cursive;
}


/* ══════════════════════════════════════════════════════════════
   3. BASE
   ══════════════════════════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}


/* ══════════════════════════════════════════════════════════════
   4. ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes navDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0);    }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* Animation d'entrée de la nav */
#nav { animation: navDown 0.7s cubic-bezier(0.22,0.61,0.36,1) both; }


/* ══════════════════════════════════════════════════════════════
   5. CLASSES REVEAL (animations au scroll)
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity  0.75s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.75s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity  0.75s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.75s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity  0.75s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.75s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* Décalages en cascade */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }


/* ══════════════════════════════════════════════════════════════
   6. NAVIGATION
   ══════════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 64px;
  background: rgba(13,12,9,0.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(196,154,34,0.12);
  transition: height .3s, background .3s;
}
nav.scrolled { height: 54px; background: rgba(13,12,9,0.98); }

/* Logo */
.logo {
  text-decoration: none;
  display: flex; flex-direction: row; align-items: center;
  gap: 10px; flex-shrink: 0;
}
.logo-icon  { height: 36px; width: auto; flex-shrink: 0; }
.logo-text  { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name  { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--gold); letter-spacing: 0.01em; }
.logo-sub   { font-size: 7px; letter-spacing: 0.38em; text-transform: uppercase; color: var(--gold); opacity: 0.8; margin-top: 2px; }

/* Liens nav */
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242,237,224,0.65); text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Zone droite */
.nav-right   { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-suivez  { font-size: 7.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(242,237,224,0.45); }
.nav-socials { display: flex; gap: 6px; }
.nav-socials a {
  width: 26px; height: 26px; border: 1px solid rgba(196,154,34,0.4);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none; transition: background .2s;
}
.nav-socials a:hover { background: var(--gold); color: var(--bg); }

/* Icône panier */
.nav-cart {
  position: relative; color: var(--gold); text-decoration: none;
  font-size: 17px; display: flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 6px; transition: background .2s;
}
.nav-cart:hover { background: rgba(196,154,34,0.1); }

.cart-badge {
  background: #d94040; color: #fff; border-radius: 50%;
  font-size: 9px; font-family: var(--sans); font-weight: 700;
  min-width: 17px; height: 17px;
  display: none; align-items: center; justify-content: center; padding: 0 3px;
}


/* ══════════════════════════════════════════════════════════════
   7. HAMBURGER & MENU MOBILE
   ══════════════════════════════════════════════════════════════ */
.hamburger {
  display: none; flex-direction: column;
  background: none; border: none; cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent; z-index: 310;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--gold); border-radius: 1px; transition: all .3s;
  margin-bottom: 5px;
}
.hamburger span:last-child { margin-bottom: 0; }

/* Animation ouverture → croix */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,12,9,0.97); z-index: 250;
  flex-direction: column; align-items: center; justify-content: center;
}
.mobile-menu.open { display: flex; }

.mobile-nav {
  display: flex; flex-direction: column; align-items: center;
}
.mobile-nav a {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242,237,224,0.8); text-decoration: none; transition: color .2s;
  font-family: var(--sans); margin-bottom: 36px;
}
.mobile-nav a:hover,
.mobile-nav a:active { color: var(--gold); }

.mobile-cart-link {
  margin-top: 20px; padding-top: 28px;
  border-top: 1px solid rgba(196,154,34,0.2);
  color: var(--gold) !important;
  font-weight: 600 !important;
}


/* ══════════════════════════════════════════════════════════════
   8. FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  display: flex; justify-content: space-between; align-items: center;
  padding: 52px 80px;
  border-top: 1px solid rgba(196,154,34,0.1);
}

.f-left    { display: flex; align-items: center; gap: 22px; }
.f-brand   { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Logo footer */
.f-logo-wrap { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.f-logo-icon { height: 52px; width: auto; }
.f-text      { display: flex; flex-direction: column; gap: 4px; }
.f-name      { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--gold); }
.f-sub       { font-size: 8px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }

/* Séparateur vertical */
.f-sep { width: 1px; height: 50px; flex-shrink: 0; background: rgba(196,154,34,0.4); }

/* Tagline script */
.f-tagline p    { font-family: var(--script); font-size: 22px; color: var(--gold); line-height: 1.45; }
.f-tagline .heart { font-size: 16px; color: var(--gold); }

/* Colonne droite */
.f-right  { display: flex; flex-direction: column; gap: 20px; }

/* Réseaux sociaux footer */
.f-social       { display: flex; flex-direction: column; gap: 9px; }
.f-social-label { font-size: 8px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(242,237,224,0.42); }
.f-icons        { display: flex; gap: 7px; }
.f-icons a {
  width: 32px; height: 32px; border: 1px solid rgba(196,154,34,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none; transition: background .2s;
}
.f-icons a:hover { background: var(--gold); color: var(--bg); }

/* Localisation footer */
.f-where        { display: flex; flex-direction: column; gap: 7px; }
.f-where-title  { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); font-weight: 500; }
.f-where p      { font-size: 11px; line-height: 1.7; color: rgba(242,237,224,0.38); font-weight: 300; }
.f-where-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1px solid rgba(196,154,34,0.35); border-radius: 28px;
  color: var(--text); text-decoration: none;
  font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase;
  align-self: flex-start; margin-top: 4px;
  transition: background .3s, border-color .3s, color .3s;
}
.f-where-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Barre de copyright */
.footer-bar {
  background: var(--bg2);
  border-top: 1px solid rgba(196,154,34,0.07);
  text-align: center; padding: 14px;
  font-size: 10px; color: rgba(242,237,224,0.28); letter-spacing: 0.09em;
}


/* ══════════════════════════════════════════════════════════════
   9. PAGE HEADER
   (commun à panier.html et commande.html — et toute future page intérieure)
   ══════════════════════════════════════════════════════════════ */
.page-header {
  padding-top: 64px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(196,154,34,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(196,154,34,0.1);
}
.page-header-eyebrow {
  font-size: 8px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); opacity: 0.7; margin-bottom: 18px;
}
.page-header h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 4.5vw, 64px); color: var(--gold); line-height: 1.05;
}
.header-rule {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
}
.header-rule span {
  width: 60px; height: 1px; background: rgba(196,154,34,0.35); display: block;
}


/* ══════════════════════════════════════════════════════════════
   10. RESPONSIVE COMMUN (nav + footer)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav mobile */
  nav { padding: 0 20px; }
  .nav-links,
  .nav-suivez,
  .nav-socials { display: none !important; }
  .hamburger { display: flex !important; }

  /* Footer mobile */
  footer {
    flex-direction: column; gap: 32px;
    padding: 40px 24px; text-align: center;
  }
  .f-left {
    flex-direction: column; align-items: center; gap: 16px;
  }
  .f-sep   { width: 50px; height: 1px; }
  .f-brand { justify-content: center; }
  .f-right { align-items: center; }
  .f-where-btn { align-self: center; }
}
