/* ============================
   CHARTE GRAPHIQUE SLM HOUSE
   ============================ */

:root {
  --primary: #ff9900;
  --brand-orange: #ff9900; /* utilisé côté Tailwind si besoin */
  --dark: #000000;
  --card: #111111;
  --text: #ffffff;
  --text-sub: #888888;
  --slm-gradient: linear-gradient(135deg, #ffb74d, #ff9800);
}

/* --- RESET GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  padding-bottom: 80px; /* espace pour la nav flottante */
  scroll-behavior: smooth;
}

/* --- HEADER --- */
header {
  border-bottom: 2px solid #222;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo span {
  color: var(--primary);
}

/* --- HERO (BANNIÈRE) --- */
.hero {
  height: 400px;
  min-height: 40vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
    url('images/banniere.jpg');
  background-color: #222;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1.5s ease-in-out;
}

.hero-overlay {
  background: linear-gradient(to top, #000 20%, transparent);
  width: 100%;
  padding: 30px 20px;
}

h1 {
  margin: 0 0 15px 0;
  font-size: 32px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.subtitle {
  color: var(--primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

/* Bouton du hero */
.btn-hero {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 14px;
  backdrop-filter: blur(5px);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* --- SECTIONS & TITRES --- */
.section {
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 90px; /* <-- nouvelle ligne, compense le header sticky */
}

h2 {
  border-left: 4px solid var(--primary);
  padding-left: 15px;
  margin-bottom: 25px;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

/* --- GRILLE MENU & CARTES --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  border-color: #333;
}
.card:active {
  transform: scale(0.98);
}

.card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #222;
  display: block;
}

.card-body {
  padding: 12px;
}

.card-title {
  font-weight: bold;
  margin: 0 0 5px 0;
  font-size: 15px;
}

.card-price {
  color: var(--primary);
  font-weight: bold;
  font-size: 14px;
}

/* Prix promo spécifique */
.card-price-promo {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1em;
}

/* Badge promo / best seller */
.promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary);
  color: black;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
}

/* --- CLUB & FORMULAIRES --- */
.club-box {
  background: #1a1a1a;
  padding: 30px 20px;
  border-radius: 20px;
  border: 1px solid #333;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.05);
}

.club-title {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.club-desc {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* --- CHAMPS & BOUTONS --- */
input,
select {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: #0a0a0a;
  border: 1px solid #333;
  color: white;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  appearance: none;
}
input::placeholder {
  color: #555;
}
input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.4);
  background: #050505;
}

button {
  width: 100%;
  padding: 15px;
  background: var(--slm-gradient);
  color: #000;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}
button:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.25);
}
button:disabled {
  opacity: 0.7;
  cursor: wait;
}
/* Bouton dédié WhatsApp */
.btn-whatsapp {
  background: #25d366; /* vert WhatsApp */
  color: #000;
}
.btn-whatsapp:hover:not(:disabled) {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* --- SLIDER ÉQUIPE (scroll horizontal) --- */
.team-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.team-scroll::-webkit-scrollbar {
  display: none;
}

/* Transition douce pour changement d'image équipe */
.img-fade {
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.img-fade.hidden-fade {
  opacity: 0;
}

/* --- NAVIGATION FLOTTANTE --- */
.nav-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border-radius: 50px;
  display: flex;
  gap: 30px;
  border: 1px solid #444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.nav-item {
  color: #888;
  text-decoration: none;
  font-size: 24px;
  transition: 0.2s;
}
.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  transform: translateY(-3px);
}

@media (min-width: 1024px) {
  .nav-bar {
    bottom: 30px;
  }
}

/* --- FOOTER & STAFF --- */
footer {
  text-align: center;
  padding: 40px 20px 100px;
  color: #444;
  font-size: 12px;
}

.staff-access {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.staff-access p {
  margin-bottom: 10px;
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-staff {
  display: inline-block;
  padding: 10px 20px;
  background: #222;
  color: #888;
  text-decoration: none;
  border: 1px solid #444;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s;
}
.btn-staff:hover {
  background: #333;
  color: #fff;
  border-color: #666;
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
  .hero-overlay {
    padding: 40px 40px;
  }

  h1 {
    font-size: 40px;
  }
}

/* ====================================================
   OPTIMISATION IMPRESSION (Print)
   ==================================================== */
@media print {
  body,
  html,
  .section,
  .club-box {
    background-color: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }

  h2 {
    color: #000000 !important;
    border-left-color: #000000 !important;
    page-break-after: avoid;
  }

  .nav-bar,
  .btn-hero,
  button,
  .hero-overlay,
  .staff-access {
    display: none !important;
  }

  p,
  .club-desc,
  .card-title,
  .card-price,
  .card-price-promo {
    color: #000000 !important;
  }

  .card {
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }
}
