/* =====================================================================
   O Basofo Barbearia — Feuille de tokens centrale v1
   Source de vérité : DESIGN_BRIEF.md
   Toutes les pages linkent ce fichier. Ne jamais mettre de couleurs
   ou polices en dur ailleurs.
   ===================================================================== */

/* === 1. DESIGN TOKENS ============================================== */
:root {
  /* Palette principale */
  --ink:         #0c0a08;
  --coffee:      #171210;
  --coffee-2:    #211a15;
  --cream:       #f4ecdd;
  --cream-dim:   rgba(244,236,221,.58);
  --cream-faint: rgba(244,236,221,.14);
  --brass:       #c79f50;
  --brass-soft:  #e0c281;
  --line:        rgba(244,236,221,.16);

  /* Alias de rétrocompatibilité (anciens tokens → nouvelles valeurs) */
  --gold:           var(--brass);
  --gold-dark:      #a8863c;
  --grey-dark:      var(--ink);
  --grey-light:     var(--coffee-2);
  --white:          var(--coffee);
  --text-light:     var(--cream);
}

/* === 2. RESET ======================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 300;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

/* === 4. GRAIN OVERLAY ============================================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .05;
}

/* === 5. NAVIGATION ================================================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(12,10,8,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  padding: 0 8%;
  height: 76px;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Logo à gauche — nav-links à droite */
.logo {
  order: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  font-size: 0;
  color: transparent;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
}

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .35s;
  position: relative;
  white-space: nowrap;
}

/* Soulignement laiton extensible */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width .35s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a.nav-blog-active {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a.nav-blog-active::after {
  width: 100%;
}

/* === 6. SÉLECTEUR DE LANGUE ======================================== */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--brass);
  cursor: pointer;
  padding: .42rem .9rem;
  border: 1px solid var(--cream-faint);
  transition: all .4s;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-family: 'Hanken Grotesk', sans-serif;
  border-radius: 3px;
}

.current-lang:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--coffee);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  min-width: 145px;
  z-index: 10;
}

.lang-dropdown.active { display: flex; }

.lang-option {
  padding: .72rem 1.1rem;
  color: var(--cream-dim);
  cursor: pointer;
  transition: all .3s;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 12px;
  letter-spacing: .1em;
  font-family: 'Hanken Grotesk', sans-serif;
}

.lang-option:last-child { border-bottom: none; }

.lang-option:hover {
  background: var(--brass);
  color: var(--ink);
}

/* === 7. MENU MOBILE ================================================ */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: .4rem;
}

.mobile-menu span {
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: .3s;
  display: block;
}

/* === 8. BOUTONS ==================================================== */
.btn {
  padding: .95rem 2.4rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .4s, color .4s, border-color .4s, transform .2s;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--brass);
  border-radius: 40px;
  background: transparent;
  color: var(--cream);
}

.btn:hover {
  background: var(--brass);
  color: var(--ink);
}

.btn-primary {
  background: transparent;
  color: var(--cream);
  border-color: var(--brass);
}

.btn-primary:hover {
  background: var(--brass);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--cream-dim);
  border-color: var(--cream-faint);
}

.btn-secondary:hover {
  background: var(--cream-faint);
  color: var(--cream);
  border-color: var(--cream-dim);
}

.btn-outline-white {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--cream-faint);
  border-radius: 40px;
}

.btn-outline-white:hover {
  border-color: var(--cream-dim);
  color: var(--cream);
  background: var(--cream-faint);
}

/* === 9. EN-TÊTE DE PAGE (commun) =================================== */
.page-header {
  min-height: 52vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 8% 6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.06;
}

.page-header p {
  color: var(--cream-dim);
  font-size: .97rem;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}

/* === 10. EN-TÊTES DE SECTION (commun) ============================== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle,
.section-label,
.blog-hero-label {
  font-size: 11px;
  color: var(--brass);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 500;
  display: block;
}

.section-header h2 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.08;
}

/* === 11. FOOTER ==================================================== */
footer {
  background: var(--ink);
  color: var(--cream-dim);
  padding: 5rem 8% 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-section h3 {
  font-family: 'Bodoni Moda', serif;
  color: var(--brass);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  font-weight: 400;
}

.footer-section p,
.footer-section a {
  color: var(--cream-dim);
  text-decoration: none;
  margin-bottom: .7rem;
  transition: color .3s;
  font-size: .88rem;
  line-height: 1.8;
  font-weight: 300;
}

.footer-section a { display: block; }

.footer-section a:hover { color: var(--cream); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .78rem;
  color: var(--cream-dim);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* === 12. VISIBILITÉ MULTILINGUE ==================================== */
[data-lang]                       { display: none; }
[data-lang].active                { display: block; }
.btn[data-lang].active            { display: inline-flex; }
.nav-links [data-lang].active     { display: inline; }
.hero-buttons [data-lang].active  { display: inline-flex; }
.tab-btn[data-lang].active        { display: inline-block; }

/* === 13. ANIMATIONS D'ENTRÉE ======================================= */
@keyframes basofoEntry {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: basofoEntry .7s .15s both; }
.anim-2 { animation: basofoEntry .7s .30s both; }
.anim-3 { animation: basofoEntry .7s .45s both; }
.anim-4 { animation: basofoEntry .7s .60s both; }
.anim-5 { animation: basofoEntry .7s .75s both; }

/* === 14. BADGE CIRCULAIRE ========================================== */
@keyframes badgeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.circular-badge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .4s;
  flex-shrink: 0;
  text-decoration: none;
}

.circular-badge:hover { background: var(--brass); }

.circular-badge svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  animation: badgeSpin 24s linear infinite;
}

.circular-badge .badge-arrow {
  font-size: 1.4rem;
  color: var(--brass);
  transition: color .4s;
}

.circular-badge:hover .badge-arrow { color: var(--ink); }

/* === 15. ACCESSIBILITÉ : PRÉFÉRENCE RÉDUCTION DU MOUVEMENT ========= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* === 16. RESPONSIVE ================================================ */
@media (max-width: 860px) {
  nav { padding: 0 5%; }

  .nav-links { display: none; }
  .mobile-menu { display: flex; }

  /* Sur mobile : logo à gauche, burger à droite */
  .logo {
    order: 0;
    margin-left: 0;
  }

  .mobile-menu {
    order: 10;
    margin-left: auto;
  }

  .logo-img { height: 44px; }

  .language-selector { margin-left: 0; display: none; }

  .page-header { padding: 8rem 5% 4rem; min-height: 40vh; }

  footer { padding: 4rem 5% 2rem; }

  .footer-content { gap: 2.5rem; }
}

@media (max-width: 520px) {
  .page-header h1 { font-size: 2.1rem; }
  .section-header h2 { font-size: 1.75rem; }
  nav { height: 64px; }
  .logo-img { height: 38px; }
}
