/* ============================================================
   LISS BUZZ × NARA — Design System
   ============================================================ */

/* ── Google Fonts (logo script uniquement) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ── Codec Pro (police commerciale — placer les fichiers dans assets/fonts/) ──
   Formats recommandés : .woff2 (priorité), .woff (fallback)
   Nommage attendu : CodecPro-Thin.woff2, CodecPro-Thin.woff
                     CodecPro-Light.woff2, CodecPro-Light.woff
                     CodecPro-Regular.woff2, CodecPro-Regular.woff
                     CodecPro-Bold.woff2, CodecPro-Bold.woff           */

@font-face {
  font-family: 'Codec Pro';
  src: url('../fonts/Codec Pro Thin.woff2') format('woff2'),
       url('../fonts/Codec Pro Thin.woff')  format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Poids supplémentaires — ajouter les fichiers si disponibles */
@font-face {
  font-family: 'Codec Pro';
  src: url('../fonts/Codec Pro Thin.woff2') format('woff2'),
       url('../fonts/Codec Pro Thin.woff')  format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Codec Pro';
  src: url('../fonts/Codec Pro Thin.woff2') format('woff2'),
       url('../fonts/Codec Pro Thin.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  /* Couleurs */
  --black:       #000000;
  --black-soft:  #0D0D0D;
  --black-card:  #141414;
  --black-border:#222222;
  --white:       #FFFFFF;
  --grey-light:  #E5E5E5;
  --grey-mid:    #A0A0A0;
  --grey-dark:   #555555;
  --rose:        #E57399;
  --rose-pale:   #F5C6D5;
  --rose-bg:     #FDF0F4;
  --gold:        #C9A96E;
  --gold-light:  #E8D5B0;

  /* Typographies */
  --font-script:   'Cormorant Garamond', Georgia, serif;   /* Logo "Liss Buzz" */
  --font-display:  'Codec Pro', 'Helvetica Neue', Arial, sans-serif; /* Titres sections */
  --font-body:     'Codec Pro', 'Helvetica Neue', Arial, sans-serif; /* Corps de texte */
  --font-thin:     100; /* Codec Pro Thin — utiliser avec font-weight: var(--font-thin) */
  --font-light:    300;
  --font-regular:  400;
  --font-bold:     700;

  /* Espacements */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 8rem;

  /* Rayon */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 100; /* Codec Pro Thin par défaut */
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid var(--black-border);
}

/* Top bar */
.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  border-bottom: 1px solid #1a1a1a;
}

.topbar-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.topbar-social a {
  color: var(--grey-mid);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.topbar-social a:hover { color: var(--rose); }

.topbar-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.topbar-actions a {
  color: var(--grey-mid);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 100;
  letter-spacing: 0.08em;
}
.topbar-actions a:hover { color: var(--white); }

/* Logo */
.header-logo {
  padding: 1.2rem 2rem 0.8rem;
  text-align: center;
}
.header-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-lissbuzz {
  font-family: var(--font-script);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-x {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--grey-mid);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.logo-nara {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Navigation principale */
.header-nav {
  padding: 0 2rem 0;
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: var(--grey-light);
  text-transform: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--rose);
  margin-top: 2px;
  border-radius: var(--radius-pill);
}

/* Dropdown */
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 100;
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--grey-light);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown a:hover {
  background: rgba(229,115,153,0.08);
  color: var(--rose);
}

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 1rem 0 2rem;
  /* Le menu défile à l'intérieur quand il dépasse la hauteur de l'écran (la page est verrouillée à l'ouverture) */
  max-height: calc(100vh - 7.5rem);
  max-height: calc(100dvh - 7.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--grey-light);
  border-bottom: 1px solid #1a1a1a;
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu a:hover { color: var(--rose); padding-left: 2.4rem; }
.mobile-menu .mobile-section-label {
  padding: 1rem 2rem 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--grey-dark);
  text-transform: uppercase;
  border-bottom: none;
}
.mobile-menu .mobile-sub {
  padding-left: 3rem;
  font-size: 0.82rem;
  color: var(--grey-mid);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: var(--space-lg) 2rem var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto var(--space-md);
}

.footer-brand .logo-lissbuzz { font-size: 1.8rem; }
.footer-brand .logo-nara { font-size: 1.3rem; }
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--grey-mid);
  line-height: 1.7;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--black-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-socials a:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(229,115,153,0.08);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: 0.82rem;
  color: var(--grey-mid);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--rose); }

.footer-col address {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--grey-mid);
  line-height: 1.8;
}
.footer-col address strong {
  display: block;
  color: var(--grey-light);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}
.footer-col address a { color: var(--rose); }
.footer-col address a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: var(--grey-dark);
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom nav a {
  font-size: 0.72rem;
  color: var(--grey-dark);
  transition: color var(--transition);
}
.footer-bottom nav a:hover { color: var(--grey-mid); }

/* ============================================================
   UTILITAIRES GLOBAUX
   ============================================================ */

/* Conteneurs */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }
.section-dark { background: var(--black-soft); }
.section-card { background: var(--black-card); }

/* Titres */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 100; /* Codec Pro Thin — élégance maximale sur les titres */
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title-light {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--gold);
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--grey-mid);
  max-width: 600px;
  line-height: 1.8;
}

/* Texte centré */
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Séparateur */
.divider {
  width: 40px;
  height: 1px;
  background: var(--rose);
  margin: 1.2rem auto;
}
.divider-left { margin: 1.2rem 0; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300; /* Codec Pro Light sur les boutons — plus lisible que Thin */
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rose);
  color: var(--white);
  border: 1px solid var(--rose);
}
.btn-primary:hover {
  background: transparent;
  color: var(--rose);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.badge-rose { background: var(--rose); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--black); }
.badge-outline { border: 1px solid var(--rose); color: var(--rose); background: transparent; }

/* Grilles */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }

/* Cartes prestation */
.card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(229,115,153,0.3);
  transform: translateY(-4px);
}
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body {
  padding: 1.5rem;
}
.card-number {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 100;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card-text {
  font-size: 0.82rem;
  color: var(--grey-mid);
  line-height: 1.7;
}
.card-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--black-border);
  font-size: 0.78rem;
  color: var(--gold-light);
}
.card-result strong { color: var(--gold); }

/* Lazy images */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img.loaded { opacity: 1; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(229,115,153,0.3);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #d4567f; }

/* ============================================================
   PAGE HERO GÉNÉRIQUE (pages internes)
   ============================================================ */
.page-hero {
  background: var(--black-soft);
  padding: var(--space-lg) 2rem;
  text-align: center;
  border-bottom: 1px solid var(--black-border);
}
.page-hero .section-title { margin-bottom: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  /* Header mobile */
  .header-topbar { padding: 0.5rem 1rem; }
  .header-logo { padding: 1rem 1rem 0.8rem; position: relative; }

  .nav-list { display: none; }
  .burger-btn { display: flex; }

  .nav-link.active::after { display: none; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p, .footer-brand .logo-lissbuzz { max-width: 100%; }

  /* Grilles mobile */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.75rem; }
  .header-logo { padding: 0.8rem 1rem 0.6rem; }
  .logo-lissbuzz { font-size: 1.4rem; }
  .logo-nara { font-size: 1.1rem; }
}
