/* ═══════════════════════════════════════════════════════════
   Bad Lingo — CCSSL Lingolsheim
   Styles communs à toutes les pages : couleurs, typo, barre de
   navigation, bandeau photo (.hero), titres de section, pied de
   page et bouton « retour en haut ».
   Les styles propres à une page restent dans la page elle-même.
   ═══════════════════════════════════════════════════════════ */
:root {
  --yellow: #F5C800;
  --black:  #2e3440;
  --dark:   #252b35;
  --white:  #ffffff;
  --gray:   #f4f4f4;
  --gray2:  #e8e8e8;
  --accent: #e5b800;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--yellow);
  letter-spacing: 2px;
  text-decoration: none;
}
.nav-logo .logo-short { display: none; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--yellow); }

/* ── HAMBURGER (mobile) ── */
.nav-toggle {
  display: none; /* caché sur desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s, opacity .2s;
}
/* Croix quand le menu est ouvert */
nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  background: var(--black);
  background-image: url('hero.jpg');
  background-image: image-set(url('hero.webp') type('image/webp'), url('hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 40%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, #F5C80022 0%, transparent 70%);
}
/* decorative shuttlecock bg lines */
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 400px;
  height: 400px;
  border: 40px solid rgba(245,200,0,.06);
  border-radius: 50%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 52, 64, 0.78);
  z-index: 0;
}
.badge {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .35rem .9rem;
  border-radius: 100px;
}

/* ── SECTION BASE ── */
section { scroll-margin-top: 64px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: .3rem;
}
.section-title span { color: var(--yellow); }
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 2.2rem;
}

/* ── CONTACT FOOTER ── */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: .8rem;
}
.footer-col p, .footer-col a {
  font-size: .85rem;
  color: #aaa;
  line-height: 2;
  text-decoration: none;
  display: block;
}
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #555;
}
.footer-bottom .logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--yellow);
  letter-spacing: 2px;
}

/* ── BOUTON RETOUR EN HAUT ── */
.to-top {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  /* masqué tant que la page n'est pas défilée */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { background: var(--accent); }
.to-top:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

/* ── RESPONSIVE (éléments communs) ── */
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-logo .logo-full { display: none; }
  .nav-logo .logo-short { display: inline; }
  .to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* ── NAV RESPONSIVE (mobile + tablette, ex. iPad) ── */
@media (max-width: 1280px) {
  /* Bouton hamburger visible */
  .nav-toggle { display: flex; }

  /* Menu déroulant plein largeur sous la barre */
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    box-shadow: 0 8px 16px rgba(0,0,0,.4);
    /* replié par défaut */
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  nav.open .nav-links {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .95rem 2rem;
    font-size: .95rem;
    border-bottom: 1px solid #3a4150;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top, .nav-toggle-bar, .nav-links { transition: none; }
}
