/* ============================================================
   CHARTE GRAPHIQUE — BAM! Bar à Miam
   Agence ARJCOM — Janvier 2026
   ============================================================ */


/* ------------------------------------------------------------
   0. POLICES LOCALES — Curda Gouda
   ------------------------------------------------------------ */

@font-face {
  font-family: 'Curda Gouda';
  src: url('../fonts/Curda Gouda.woff2') format('woff2'),
       url('../fonts/Curda Gouda.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ------------------------------------------------------------
   1. VARIABLES CSS — Couleurs & Typographies
      Pour remplacer une police ou une couleur sur tout le site,
      modifiez uniquement cette section.
   ------------------------------------------------------------ */

:root {

  /* --- Couleurs officielles --- */
  --bam-rouge:    #E30615;   /* Magenta rouge — couleur principale */
  --bam-rose:     #f9cfe3;   /* Rose clair — touche douce / fonds */
  --bam-blanc:    #fbfbfb;   /* Blanc — lisibilité / respiration */
  --bam-noir:     #1c1c1c;   /* Noir — textes / structure */

  /* --- Typographies --- */
  --font-titre:   'Curda Gouda', 'Fredoka', sans-serif;  /* Police officielle charte */
  --font-script:  'Dancing Script', cursive;              /* Équivalent Oldport Script */
  --font-corps:   'Poppins', sans-serif;                  /* → ne change pas */

  /* --- Espacements & Rayons --- */
  --bam-radius:   12px;
  --bam-radius-lg: 24px;

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


/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-corps);
  color: var(--bam-noir);
  background-color: var(--bam-blanc);
  -webkit-font-smoothing: antialiased;
}

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


/* ------------------------------------------------------------
   3. CLASSES UTILITAIRES — Couleurs
   ------------------------------------------------------------ */

.bg-bam-rouge   { background-color: var(--bam-rouge) !important; }
.bg-bam-rose    { background-color: var(--bam-rose) !important; }
.bg-bam-noir    { background-color: var(--bam-noir) !important; }
.bg-bam-blanc   { background-color: var(--bam-blanc) !important; }

.text-bam-rouge { color: var(--bam-rouge) !important; }
.text-bam-rose  { color: var(--bam-rose) !important; }
.text-bam-noir  { color: var(--bam-noir) !important; }
.text-bam-blanc { color: var(--bam-blanc) !important; }


/* ------------------------------------------------------------
   4. CLASSES UTILITAIRES — Typographies
   ------------------------------------------------------------ */

.font-titre  { font-family: var(--font-titre) !important; }
.font-script { font-family: var(--font-script) !important; }
.font-corps  { font-family: var(--font-corps) !important; }


/* ------------------------------------------------------------
   5. BOUTONS
   ------------------------------------------------------------ */

.btn-bam {
  background-color: var(--bam-rouge);
  color: var(--bam-blanc);
  font-family: var(--font-corps);
  font-weight: 600;
  border: none;
  border-radius: var(--bam-radius);
  padding: 0.75rem 2rem;
  transition: background-color var(--bam-transition), transform var(--bam-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-bam:hover,
.btn-bam:focus {
  background-color: var(--bam-noir);
  color: var(--bam-blanc);
  transform: translateY(-2px);
}

.btn-bam-outline {
  background-color: transparent;
  color: var(--bam-rouge);
  font-family: var(--font-corps);
  font-weight: 600;
  border: 2px solid var(--bam-rouge);
  border-radius: var(--bam-radius);
  padding: 0.75rem 2rem;
  transition: all var(--bam-transition);
  text-decoration: none;
  display: inline-block;
}

.btn-bam-outline:hover,
.btn-bam-outline:focus {
  background-color: var(--bam-rouge);
  color: var(--bam-blanc);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   6. NAVBAR
   ------------------------------------------------------------ */

.navbar-bam {
  background-color: var(--bam-blanc);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 0.6rem 0;
  transition: box-shadow var(--bam-transition);
}

/* Ombre renforcée quand la page est scrollée (ajoutée via JS) */
.navbar-bam.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

/* --- Logo navbar --- */
.navbar-logo {
  height: 48px;
  width: auto;
}

/* --- Logo footer --- */
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* --- Logo placeholder texte (provisoire) --- */
.navbar-logo-placeholder {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-bam-text {
  font-family: var(--font-titre);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bam-rouge);
  letter-spacing: -0.5px;
}

.logo-bam-sub {
  font-family: var(--font-corps);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--bam-noir);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Liens de navigation --- */
.navbar-bam .nav-link {
  font-family: var(--font-corps);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bam-noir);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--bam-transition);
}

.navbar-bam .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--bam-rouge);
  transform: scaleX(0);
  transition: transform var(--bam-transition);
}

.navbar-bam .nav-link:hover,
.navbar-bam .nav-link.active {
  color: var(--bam-rouge);
}

.navbar-bam .nav-link:hover::after,
.navbar-bam .nav-link.active::after {
  transform: scaleX(1);
}

/* --- Hamburger custom (mobile) --- */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon-bam {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.navbar-toggler-icon-bam span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--bam-rouge);
  border-radius: 2px;
  transition: all var(--bam-transition);
}

/* --- Hamburger → ✕ quand menu ouvert --- */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-bam span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-bam span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-bam span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Menu mobile ouvert --- */
.navbar-collapse .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.navbar-collapse .nav-link:last-of-type {
  border-bottom: none;
}


/* ------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------ */

.hero-bam {
  min-height: calc(100vh - 70px);
  background-color: var(--bam-blanc);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Trait décoratif rouge en bas à gauche */
.hero-bam::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 6px;
  background-color: var(--bam-rouge);
  border-radius: 0 4px 4px 0;
}

/* --- Contenu texte --- */
.hero-content {
  padding: 64px 0;
}

.hero-accroche {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--bam-rouge);
  margin-bottom: 0.5rem;
}

.hero-titre {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--bam-noir);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-titre span {
  color: var(--bam-rouge);
}

.hero-texte {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--bam-noir);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.btn-lg-bam {
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
}

/* --- Visuel logo (côté droit) --- */
.hero-visuel-placeholder {
  width: 480px;
  height: 480px;
  background-color: var(--bam-blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  /* Halo rose autour du cercle */
  box-shadow: 0 0 0 24px var(--bam-rose);
}

.hero-visuel-logo {
  max-width: 62%;
  max-height: 78%;
  width: auto;
  height: auto;
}

/* --- Responsive hero --- */
@media (max-width: 991px) {
  .hero-bam {
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    padding: 56px 0 40px;
  }

  .hero-texte {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }
}


/* ------------------------------------------------------------
   8. CONCEPT
   ------------------------------------------------------------ */

.concept-bam {
  background-color: var(--bam-blanc);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* --- Carte pilier --- */
.concept-card {
  background-color: var(--bam-rose);
  border-radius: var(--bam-radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform var(--bam-transition), box-shadow var(--bam-transition);
}

.concept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(227, 6, 21, 0.12);
}

/* Variante rouge (carte du milieu) */
.concept-card--rouge {
  background-color: var(--bam-rouge);
}

/* --- Icône --- */
.concept-icon-wrap {
  width: 72px;
  height: 72px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(227, 6, 21, 0.15);
}

.concept-icon-wrap--blanc {
  background-color: rgba(255,255,255,0.2);
  box-shadow: none;
}

.concept-icon {
  font-size: 1.8rem;
  color: var(--bam-rouge);
}

.concept-icon--blanc {
  color: white;
}

/* --- Textes --- */
.concept-titre {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.75rem;
}

.concept-texte {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--bam-noir);
  line-height: 1.75;
  margin-bottom: 0;
  opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .concept-card {
    padding: 2rem 1.5rem;
  }
}


/* ------------------------------------------------------------
   9. NOS PIZZAS
   ------------------------------------------------------------ */

.pizzas-bam {
  background-color: var(--bam-rose);
}

/* --- Carte pizza --- */
.pizza-card {
  background-color: white;
  border-radius: var(--bam-radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--bam-transition), box-shadow var(--bam-transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pizza-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* --- Zone image --- */
.pizza-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Couleurs de placeholder différentes par carte */
.pizza-card-img--1 { background-color: #f5e6d3; }
.pizza-card-img--2 { background-color: #dde8d4; }
.pizza-card-img--3 { background-color: #d4e3f5; }
.pizza-card-img--4 { background-color: #f5d4d4; }
.pizza-card-img--5 { background-color: #f5ecd4; }
.pizza-card-img--6 { background-color: #e8d4f5; }
.pizza-card-img--7 { background-color: #d4f5e6; }
.pizza-card-img--8 { background-color: #f5e0d4; }
.pizza-card-img--9 { background-color: #d4d9f5; }
.pizza-card-img--10 { background-color: #f5e6d3; }
.pizza-card-img--11 { background-color: #eef1e6; }

.pizza-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pizza-card:hover .pizza-card-img img {
  transform: scale(1.05);
}

.pizza-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
}

.pizza-placeholder-icon {
  font-size: 5rem;
  color: var(--bam-noir);
}

/* --- Badges chaud / froid --- */
.pizza-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.pizza-badge {
  font-family: var(--font-corps);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pizza-badge--hot {
  background-color: var(--bam-rouge);
  color: white;
}

.pizza-badge--cold {
  background-color: var(--bam-noir);
  color: white;
}

/* --- Corps de la carte --- */
.pizza-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.pizza-nom {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.4rem;
}

.pizza-composition {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   10. RÉASSURANCE
   ------------------------------------------------------------ */

.reassurance-bam {
  background-color: var(--bam-noir);
  position: relative;
  overflow: hidden;
}

/* Cercle décoratif rouge en arrière-plan */
.reassurance-bam::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: var(--bam-rouge);
  opacity: 0.07;
  pointer-events: none;
}

.reassurance-bam::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--bam-rouge);
  opacity: 0.05;
  pointer-events: none;
}

/* Accroche en rouge sur fond sombre */
.reassurance-accroche {
  color: var(--bam-rouge) !important;
}

/* Titre blanc, span rouge */
.reassurance-bam .section-titre {
  color: white;
}

/* --- Bloc individuel --- */
.reassurance-bloc {
  padding: 2rem 1.5rem;
  border-radius: var(--bam-radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  transition: border-color var(--bam-transition), background-color var(--bam-transition);
}

.reassurance-bloc:hover {
  border-color: var(--bam-rouge);
  background-color: rgba(227, 6, 21, 0.06);
}

/* --- Icône --- */
.reassurance-icon-wrap {
  width: 68px;
  height: 68px;
  background-color: var(--bam-rouge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.reassurance-icon {
  font-size: 1.6rem;
  color: white;
}

/* --- Textes --- */
.reassurance-titre {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.reassurance-texte {
  font-size: 0.9rem;
  font-weight: 300;
  color: white;
  opacity: 0.65;
  line-height: 1.75;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .reassurance-bloc {
    padding: 1.75rem 1.25rem;
  }
}


/* ------------------------------------------------------------
   11. TROUVER UN DISTRIBUTEUR
   ------------------------------------------------------------ */

.distributeurs-bam {
  background-color: var(--bam-blanc);
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* --- Blocs info gauche --- */
.distrib-info-bloc {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bam-rose);
  border-radius: var(--bam-radius);
  padding: 1.25rem 1.5rem;
  transition: transform var(--bam-transition);
}

.distrib-info-bloc:hover {
  transform: translateX(4px);
}

.distrib-info-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background-color: var(--bam-rouge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.distrib-info-icon {
  font-size: 1.1rem;
  color: white;
}

.distrib-info-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.25rem;
}

.distrib-info-texte {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Conteneur carte --- */
.distrib-map-container {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--bam-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.bam-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background-color: #e8eaed;
}

/* --- Légende carte --- */
.distrib-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0 0.25rem;
}

.distrib-legende-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-corps);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bam-noir);
}

.distrib-legende-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.distrib-legende-dot--pizza  { background-color: var(--bam-rouge); }
.distrib-legende-dot--burger { background-color: var(--bam-noir); }
.distrib-legende-dot--mixte  { background: linear-gradient(135deg, var(--bam-rouge) 50%, var(--bam-noir) 50%); }

/* --- Liste des distributeurs --- */
.distrib-liste-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.distrib-liste-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.75rem;
}

.distrib-liste {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  max-height: 320px;
  padding-right: 4px;
}

.distrib-liste-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: var(--bam-rose);
  border: 2px solid transparent;
  border-radius: var(--bam-radius);
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform var(--bam-transition), border-color var(--bam-transition);
  text-align: left;
}

.distrib-liste-item:hover {
  transform: translateX(4px);
}

.distrib-liste-item.is-active {
  border-color: var(--bam-rouge);
}

.distrib-liste-item-nom {
  font-family: var(--font-corps);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.1rem;
}

.distrib-liste-item-adresse {
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.65;
}

.distrib-liste-item-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.distrib-liste-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
}

.distrib-liste-badge--pizza  { background-color: var(--bam-rouge); }
.distrib-liste-badge--burger { background-color: var(--bam-noir); }

/* --- Marqueurs Leaflet personnalisés --- */
.bam-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bam-pin-emoji {
  transform: rotate(45deg);
  font-size: 15px;
  line-height: 1;
}

.bam-pin--pizza  { background-color: var(--bam-rouge); }
.bam-pin--burger { background-color: var(--bam-noir); }
.bam-pin--mixte  { background: linear-gradient(135deg, var(--bam-rouge) 50%, var(--bam-noir) 50%); }

.bam-pin.is-active {
  width: 42px;
  height: 42px;
}

.bam-pin.is-active .bam-pin-emoji {
  font-size: 19px;
}

/* --- Popup Leaflet personnalisée --- */
.leaflet-popup-content-wrapper {
  border-radius: var(--bam-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.bam-popup-nom {
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.3rem;
}

.bam-popup-adresse {
  font-family: var(--font-corps);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.bam-popup-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 0.6rem;
}

.bam-popup-badge {
  font-family: var(--font-corps);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  color: white;
}

.bam-popup-badge--pizza  { background-color: var(--bam-rouge); }
.bam-popup-badge--burger { background-color: var(--bam-noir); }

.bam-popup-lien {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-corps);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bam-rouge);
  text-decoration: none;
}

.bam-popup-lien:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .distrib-map-container,
  .bam-map {
    min-height: 320px;
  }

  .distrib-liste {
    max-height: 260px;
  }
}


/* ------------------------------------------------------------
   12. GALERIE
   ------------------------------------------------------------ */

.galerie-bam {
  background-color: var(--bam-noir);
}

.galerie-bam .section-titre {
  color: white;
}

/* --- Grille mosaïque --- */
.galerie-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}

/* Item standard */
.galerie-item {
  position: relative;
  border-radius: var(--bam-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Item sur 2 rangées */
.galerie-item--tall {
  grid-row: span 2;
}

/* Couleurs placeholder par item */
.galerie-item--c1 { background-color: #c8a882; }
.galerie-item--c2 { background-color: #a8c882; }
.galerie-item--c3 { background-color: #82a8c8; }
.galerie-item--c4 { background-color: #c882a8; }
.galerie-item--c5 { background-color: #c8c082; }
.galerie-item--c6 { background-color: #82c8b8; }

.galerie-item {
  background-size: cover;
  background-position: center;
}

/* --- Cellule vidéo (galerie) --- */
.galerie-video {
  background-color: #000;
  cursor: default;
}

.galerie-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galerie-video-son {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--bam-transition), transform var(--bam-transition);
}

.galerie-video-son:hover {
  background-color: var(--bam-rouge);
  transform: scale(1.08);
}

/* --- Overlay au survol --- */
.galerie-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(227, 6, 21, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--bam-transition);
}

.galerie-item:hover .galerie-overlay {
  background-color: rgba(227, 6, 21, 0.65);
}

.galerie-zoom-icon {
  font-size: 2rem;
  color: white;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--bam-transition), transform var(--bam-transition);
}

.galerie-item:hover .galerie-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Label placeholder */
.galerie-placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: white;
  background-color: rgba(0,0,0,0.35);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 10px;
  opacity: 0.8;
}

/* --- Lightbox --- */
.lightbox-content {
  background-color: var(--bam-noir);
  border: none;
  border-radius: var(--bam-radius-lg);
  overflow: hidden;
  position: relative;
  padding: 0;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background-color: var(--bam-rouge);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--bam-transition);
}

.lightbox-close:hover {
  background-color: white;
  color: var(--bam-rouge);
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background-color: #111;
}

.lightbox-legende {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 300;
  color: white;
  opacity: 0.7;
  padding: 12px 20px;
  margin: 0;
}

/* --- Responsive galerie --- */
@media (max-width: 767px) {
  .galerie-grille {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 180px;
  }

  .galerie-item--tall {
    grid-row: span 1;
  }

  /* Réinitialise les colonnes fixes — laisse la grille auto-placer */
  .galerie-item--c1,
  .galerie-item--c2,
  .galerie-item--c3,
  .galerie-item--c4,
  .galerie-item--c5,
  .galerie-item--c6 {
    grid-column: auto;
    grid-row: auto;
  }
}

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


/* ------------------------------------------------------------
   13. BLOC CONTACT CTA
   ------------------------------------------------------------ */

.contact-cta-bam {
  background-color: var(--bam-blanc);
  padding-top: 0;
}

.contact-cta-inner {
  background-color: var(--bam-rouge);
  border-radius: var(--bam-radius-lg);
  padding: 56px 56px;
  position: relative;
  overflow: hidden;
}

/* Cercles décoratifs blancs en arrière-plan */
.cta-cercle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  pointer-events: none;
}

.cta-cercle--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -60px;
}

.cta-cercle--2 {
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: 40px;
}

/* --- Textes --- */
.cta-accroche {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

.cta-titre {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-texte {
  font-size: 1rem;
  font-weight: 300;
  color: white;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 480px;
}

/* --- Bouton blanc sur fond rouge --- */
.btn-cta-blanc {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: var(--bam-rouge);
  font-family: var(--font-corps);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--bam-radius);
  text-decoration: none;
  transition: background-color var(--bam-transition), color var(--bam-transition), transform var(--bam-transition);
  white-space: nowrap;
}

.btn-cta-blanc:hover,
.btn-cta-blanc:focus {
  background-color: var(--bam-noir);
  color: white;
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .contact-cta-inner {
    padding: 40px 32px;
    text-align: center;
  }

  .cta-texte {
    max-width: 100%;
  }

  .col-lg-4.text-lg-end {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .contact-cta-inner {
    padding: 32px 24px;
  }
}


/* ------------------------------------------------------------
   14. PAGES SECONDAIRES — Header & Formulaire & Légal
   ------------------------------------------------------------ */

/* --- Header de page --- */
.page-header {
  background-color: var(--bam-rose);
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(227,6,21,0.12);
}

.page-header-accroche {
  color: var(--bam-rouge);
}

.page-header-titre {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--bam-noir);
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* --- Section formulaire --- */
.contact-form-section {
  background-color: var(--bam-blanc);
}

/* --- Blocs info gauche --- */
.contact-info-bloc {
  background-color: var(--bam-rose);
  border-radius: var(--bam-radius);
  padding: 1.5rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--bam-rouge);
  display: block;
  margin-bottom: 0.75rem;
}

.contact-info-titre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.4rem;
}

.contact-info-texte {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: 0;
}

.contact-info-lien {
  color: var(--bam-rouge);
  font-weight: 500;
  text-decoration: none;
}

.contact-info-lien:hover {
  text-decoration: underline;
}

/* --- Carte formulaire --- */
.contact-form-card {
  background-color: white;
  border-radius: var(--bam-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

/* --- Labels --- */
.contact-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bam-noir);
  margin-bottom: 6px;
}

/* --- Inputs --- */
.contact-input {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--bam-radius);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--bam-noir);
  background-color: #fafafa;
  transition: border-color var(--bam-transition), box-shadow var(--bam-transition);
  outline: none;
}

.contact-input:focus {
  border-color: var(--bam-rouge);
  box-shadow: 0 0 0 3px rgba(227,6,21,0.1);
  background-color: white;
}

.contact-input::placeholder {
  color: #aaa;
  font-weight: 300;
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Message erreur --- */
.contact-erreur {
  color: var(--bam-rouge);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* --- Message succès --- */
.contact-success {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-success-icon {
  font-size: 3rem;
  color: var(--bam-rouge);
  display: block;
  margin-bottom: 1rem;
}

.contact-success h3 {
  font-size: 1.8rem;
  color: var(--bam-noir);
  margin-bottom: 0.5rem;
}

.contact-success p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.75;
}

/* --- Mention RGPD --- */
.contact-mention {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--bam-noir);
  opacity: 0.55;
  text-align: center;
  line-height: 1.6;
}

.contact-mention a {
  color: var(--bam-rouge);
  text-decoration: none;
}

.contact-mention a:hover {
  text-decoration: underline;
}

/* --- Pages légales --- */
.legal-section {
  background-color: var(--bam-blanc);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-bloc {
  border-left: 3px solid var(--bam-rouge);
  padding-left: 1.5rem;
}

.legal-titre {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bam-noir);
  margin-bottom: 0.75rem;
}

.legal-texte {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--bam-noir);
  line-height: 1.8;
  margin-bottom: 0;
}

.legal-liste {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--bam-noir);
  line-height: 2;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-lien {
  color: var(--bam-rouge);
  font-weight: 500;
  text-decoration: none;
}

.legal-lien:hover {
  text-decoration: underline;
}

.legal-note {
  font-size: 0.82rem;
  color: var(--bam-rouge);
  opacity: 0.8;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* --- Responsive pages secondaires --- */
@media (max-width: 767px) {
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .page-header {
    padding: 48px 0 40px;
  }
}


/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */

.footer-bam {
  background-color: var(--bam-noir);
  color: var(--bam-blanc);
  padding-top: 64px;
  padding-bottom: 0;
  font-family: var(--font-corps);
}

/* --- Logo placeholder --- */
.footer-logo-placeholder {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.footer-logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  opacity: 0.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Tagline & description --- */
.footer-tagline {
  font-size: 1.3rem;
  color: var(--bam-rouge);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: white;
  opacity: 0.55;
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 300px;
}

/* --- Titres colonnes --- */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--bam-rouge);
  border-radius: 2px;
}

/* --- Listes navigation --- */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  font-weight: 300;
  color: white;
  opacity: 0.6;
  text-decoration: none;
  transition: opacity var(--bam-transition), color var(--bam-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--bam-rouge);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--bam-transition), transform var(--bam-transition);
}

.footer-nav-list a:hover {
  opacity: 1;
  color: white;
}

.footer-nav-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* --- Réseaux sociaux --- */
.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--bam-transition), transform var(--bam-transition);
}

.footer-social-link:hover {
  background-color: var(--bam-rouge);
  color: white;
  transform: translateY(-3px);
}

/* --- Séparateur --- */
.footer-main {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* --- Copyright --- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright,
.footer-credit {
  font-size: 0.82rem;
  font-weight: 300;
  color: white;
  opacity: 0.4;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .footer-bam {
    padding-top: 48px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
}

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 48px 0;
}

.section-titre {
  font-family: var(--font-titre);
  color: var(--bam-noir);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-titre span {
  color: var(--bam-rouge);
}

.section-accroche {
  font-family: var(--font-script);
  color: var(--bam-rouge);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 0.5rem;
}

.section-texte {
  font-family: var(--font-corps);
  font-weight: 300;
  color: var(--bam-noir);
  font-size: 1rem;
  line-height: 1.8;
}


/* ------------------------------------------------------------
   9. FOCUS VISIBLE — accessibilité clavier
   ------------------------------------------------------------ */

:focus-visible {
  outline: 2px solid var(--bam-rouge);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Boutons BAM — outline adapté */
.btn-bam:focus-visible,
.btn-bam-outline:focus-visible,
.btn-cta-blanc:focus-visible {
  outline: 2px solid var(--bam-rouge);
  outline-offset: 3px;
}

/* Liens footer et nav */
.footer-nav-list a:focus-visible,
.navbar-bam .nav-link:focus-visible {
  outline: 2px solid var(--bam-rouge);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ------------------------------------------------------------
   10. RESPONSIVE — ajustements mobiles
   ------------------------------------------------------------ */

@media (max-width: 768px) {
  .section-padding {
    padding: 56px 0;
  }

  .section-padding-sm {
    padding: 32px 0;
  }
}
