/* ============================================================
   ROC BOXE — Feuille de style principale
   
   COMMENT MODIFIER LES COULEURS :
   Cherchez les lignes ci-dessous et changez les codes couleur.
   Un code couleur ressemble à : #CC2200 (rouge), #1a1a1a (noir)
   ============================================================ */

:root {
  --rouge:       #CC2200;   /* Rouge principal — boutons, accents */
  --rouge-fonce: #991a00;   /* Rouge foncé — survol des boutons */
  --noir:        #1a1a1a;   /* Noir — fond header, textes sombres */
  --blanc:       #F5F5F5;   /* Blanc cassé — fond pages claires */
  --bleu:        #1E5FA8;   /* Bleu ring — accents secondaires */
  --gris:        #555555;   /* Gris — textes secondaires */
  --gris-clair:  #eeeeee;   /* Gris clair — fonds alternés */

  --police-titre: 'Oswald', sans-serif;   /* Titres — style sport */
  --police-texte: 'Open Sans', sans-serif; /* Textes courants */

  --ombre: 0 4px 20px rgba(0,0,0,0.25);
  --rayon: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--police-texte);
  background-color: var(--blanc);
  color: var(--noir);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rouge);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   MISE EN PAGE — CONTENEUR CENTRÉ
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--noir);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo img {
  height: 52px;
  width: auto;
}

.header-logo span {
  font-family: var(--police-titre);
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation desktop */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: #ccc;
  font-family: var(--police-titre);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--rayon);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background-color: var(--rouge);
  text-decoration: none;
}

/* Bouton menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  border-radius: var(--rayon);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-rouge {
  background-color: var(--rouge);
  color: #fff;
}

.btn-rouge:hover {
  background-color: var(--rouge-fonce);
  color: #fff;
}

.btn-blanc {
  background-color: #fff;
  color: var(--rouge);
  border: 2px solid #fff;
}

.btn-blanc:hover {
  background-color: transparent;
  color: #fff;
}

.btn-contour {
  background-color: transparent;
  color: var(--rouge);
  border: 2px solid var(--rouge);
}

.btn-contour:hover {
  background-color: var(--rouge);
  color: #fff;
}

/* ============================================================
   SECTIONS — ESPACEMENTS GÉNÉRAUX
   ============================================================ */
.section {
  padding: 4rem 0;
}

.section-gris {
  background-color: var(--gris-clair);
}

.section-noire {
  background-color: var(--noir);
  color: #fff;
}

.section-rouge {
  background-color: var(--rouge);
  color: #fff;
}

.section-titre {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-titre h2 {
  color: var(--noir);
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.section-titre h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--rouge);
  margin: 0.5rem auto 0;
}

.section-noire .section-titre h2,
.section-rouge .section-titre h2 {
  color: #fff;
}

.section-noire .section-titre h2::after {
  background-color: var(--rouge);
}

.section-rouge .section-titre h2::after {
  background-color: #fff;
}

/* ============================================================
   HERO (BANNIÈRE PRINCIPALE)
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--noir);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/combat_arthur.jpg');
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  background-color: var(--rouge);
  color: #fff;
  font-family: var(--police-titre);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--rayon);
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.hero-sous-titre {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   GRILLE CARTES (ACTUALITÉS, SERVICES, ETC.)
   ============================================================ */
.grille {
  display: grid;
  gap: 1.5rem;
}

.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.carte {
  background: #fff;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform 0.2s;
}

.carte:hover {
  transform: translateY(-4px);
}

.carte img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.carte-corps {
  padding: 1.25rem;
}

.carte-corps h3 {
  margin-bottom: 0.5rem;
  color: var(--rouge);
}

/* ============================================================
   TABLEAU DES HORAIRES
   ============================================================ */
.tableau-horaires {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tableau-horaires th {
  background-color: var(--rouge);
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  text-align: center;
}

.tableau-horaires td {
  padding: 0.65rem 1rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.tableau-horaires tr:nth-child(even) td {
  background-color: #f9f9f9;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0.15rem;
  white-space: nowrap;
}

.badge-rouge    { background: var(--rouge); color: #fff; }
.badge-bleu     { background: var(--bleu); color: #fff; }
.badge-vert     { background: #2e7d32; color: #fff; }
.badge-orange   { background: #e65100; color: #fff; }
.badge-gris     { background: #666; color: #fff; }

/* ============================================================
   GALERIE PHOTOS
   ============================================================ */
.galerie-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.galerie-grille img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--rayon);
  cursor: zoom-in;
  transition: opacity 0.2s, transform 0.2s;
}

.galerie-grille img:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Lightbox simple */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--rayon);
  object-fit: contain;
}

.lightbox-fermer {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   FORMULAIRE DE CONTACT
   ============================================================ */
.form-groupe {
  margin-bottom: 1.25rem;
}

.form-groupe label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-groupe input,
.form-groupe textarea,
.form-groupe select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid #ddd;
  border-radius: var(--rayon);
  font-family: var(--police-texte);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
}

.form-groupe input:focus,
.form-groupe textarea:focus {
  outline: none;
  border-color: var(--rouge);
}

.form-groupe textarea {
  min-height: 130px;
  resize: vertical;
}

.rgpd-info {
  font-size: 0.82rem;
  color: var(--gris);
  background: #f0f0f0;
  padding: 0.75rem 1rem;
  border-radius: var(--rayon);
  margin-top: 1rem;
  border-left: 3px solid var(--bleu);
}

/* ============================================================
   TARIFS
   ============================================================ */
.tarif-carte {
  background: #fff;
  border: 2px solid var(--gris-clair);
  border-radius: var(--rayon);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform 0.2s, border-color 0.2s;
}

.tarif-carte:hover {
  transform: translateY(-4px);
  border-color: var(--rouge);
}

.tarif-carte.vedette {
  border-color: var(--rouge);
  background: var(--noir);
  color: #fff;
}

.tarif-prix {
  font-family: var(--police-titre);
  font-size: 2.8rem;
  color: var(--rouge);
  line-height: 1;
  margin: 0.5rem 0;
}

.tarif-carte.vedette .tarif-prix {
  color: #fff;
}

.tarif-label {
  font-size: 0.85rem;
  color: var(--gris);
  margin-bottom: 1rem;
}

.tarif-carte.vedette .tarif-label {
  color: #ccc;
}

.tarif-liste {
  list-style: none;
  margin: 1rem 0 1.5rem;
  text-align: left;
}

.tarif-liste li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gris-clair);
  font-size: 0.92rem;
}

.tarif-carte.vedette .tarif-liste li {
  border-color: #444;
}

.tarif-liste li::before {
  content: '✓ ';
  color: var(--rouge);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: #111;
  color: #aaa;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p,
.footer-col a {
  color: #aaa;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--rouge);
  text-decoration: none;
}

.footer-bas {
  border-top: 1px solid #333;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
}

.footer-logo img {
  height: 45px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--noir);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }

  .nav-links.ouvert {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 75vh;
  }

  .hero-boutons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 2.5rem 0;
  }

  .tableau-horaires {
    font-size: 0.78rem;
  }

  .tableau-horaires th,
  .tableau-horaires td {
    padding: 0.5rem 0.4rem;
  }

  .galerie-grille {
    grid-template-columns: repeat(2, 1fr);
  }

  .galerie-grille img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .galerie-grille {
    grid-template-columns: 1fr 1fr;
  }

  .grille-3, .grille-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ACCESSIBILITÉ — FOCUS CLAVIER
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.texte-centre  { text-align: center; }
.texte-rouge   { color: var(--rouge); }
.texte-blanc   { color: #fff; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
