/* Reset de base */
@font-face {
  font-family: "MaPolicePerso"; /* nom que tu donnes à ta police */
  src: url("Pro\ Racing\ Slant.otf") format("woff2");
  font-weight: normal; /* ou bold si c’est une version grasse */
  font-style: normal;  /* ou italic si c’est une version italique */
}

body, html {
  margin: 0;
  padding: 0;
  height: 175rem;
  font-family: Arial, sans-serif;
  padding-top: 80px; /* espace pour header sticky */
  box-sizing: border-box;
  background-color: #111;
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(2, 125, 23, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sticky-header .logo {
  height: 50px;
  margin-right: 10px;
}

.sticky-header nav .menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticky-header nav .menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.sticky-header nav .menu a:hover {
  background-color: #ffffffcc;
  color: rgb(0, 61, 10);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgb(0, 61, 10);
}

.header {
  position: relative;
  height: 35rem;
  overflow: hidden;
  color: white;
  margin-top: -6rem; /* Supprime l’espace blanc */
  padding-top: 0;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

/* Voile noir sur chaque slide */
.carousel-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* voile noir léger */
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
}

.slide1 {
  background-image: url('https://www.guide-tarn-aveyron.com/_bibli/annonces/7345/hd/kart-in-2024-08.jpg');
}

.titre {
  font-family: "MaPolicePerso", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* décale de moitié pour être vraiment centré */
  text-align: center;
  font-size: 3rem;
  color: white;
  z-index: 2; /* au-dessus du voile */
}

.textecarousel {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%); /* décale de moitié pour être vraiment centré */
  text-align: center;
  color: white;
}

/* ===== SECTION INFORMATIONS KARTING ===== */
.karting-sections {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
}

.section-bloc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #026d1a;
  width: 80%;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  min-height: 220px; /* ✅ réduit la hauteur des blocs */
}

.section-bloc.inverse {
  flex-direction: row-reverse;
  background-color: #014d12;
}

.section-bloc .text-side {
  flex: 1;
  padding: 1.5rem; /* ✅ réduit l’espace intérieur */
}

.section-bloc .text-side h2 {
  font-family: "MaPolicePerso", sans-serif;
  font-size: 1.7rem; /* ✅ légèrement plus petit */
  margin-bottom: 0.5rem;
}

.section-bloc .text-side p {
  font-size: 0.95rem; /* ✅ texte un peu plus compact */
  line-height: 1.4;
}

.section-bloc .image-side {
  flex: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 220px; /* ✅ fixe la hauteur pour rendre tout plus fin */
}

.section-bloc .image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .section-bloc, .section-bloc.inverse {
    flex-direction: column;
  }

  .section-bloc .image-side {
    height: 180px; /* ✅ plus petit sur mobile */
    background-color: transparent;
  }

  .section-bloc .text-side {
    padding: 1rem;
  }

  .section-bloc .text-side h2 {
    font-size: 1.5rem;
  }

  .section-bloc .text-side p {
    font-size: 0.9rem;
  }
}

.h1 {
  color: green;
  text-align: center;
  margin-bottom: 30px;
}

.video-container {
  background-color: #111;
  border: 2px solid #111;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 0 auto 30px auto;
  max-width: 90%;
}

.video-container video {
  width: 720px;
  height: 405px;
  border-radius: 10px;
  max-width: 100%;   /* responsive sur mobile */
}

.h2 {
  color: green;
  text-align: center;
  margin-bottom: 30px;
}

/* CSS */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* grille fine */
  grid-auto-rows: 120px; /* hauteur de base */
  gap: 10px; /* espace régulier */
  width: 100%;
  margin-bottom: 50PX;
}

.item {
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: end; /* tout aligné en bas */
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tailles différentes */
.item-medium {
  grid-column: span 4;
  grid-row: span 2;
}

.item-large {
  grid-column: span 6;
  grid-row: span 3;
}

.item-horizontal {
  grid-column: span 6;
  grid-row: span 1;
}

.item-vertical {
  grid-column: span 2;
  grid-row: span 3;
}

.item-square {
  grid-column: span 4;
  grid-row: span 1;
}

/* Footer global */
footer {
  background-color: rgb(0, 37, 0);
  color: white;
  font-family: Arial, sans-serif;
  padding: 50px 100px 50px 100px;
}

/* Conteneur principal */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px; /* espace entre blocs */
}

/* Bloc commun */
.footer-block {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Bloc logo centré */
.footer-logo {
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
}

.footer-logo img {
  width: 400px;
  height: auto;
}

/* Bloc Pages */
.footer-pages h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
  text-decoration: underline;
}

.footer-pages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-pages li {
  margin-bottom: 10px;
}

.footer-pages a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-pages a:hover {
  text-decoration: underline;
}

/* Bloc Contact / Réseaux */
.footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* espace entre icônes et image */
  height: 100%; /* prend toute la hauteur disponible */
}

.footer-contact .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-contact .social-icons img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.footer-contact .social-icons img:hover {
  transform: scale(1.2);
}

/* Image de karting dans le bloc contact */
.footer-karting img {
  width: 100%;       /* s’adapte à la largeur du bloc */
  max-width: 400px;  /* limite pour ne pas dépasser */
  height: auto;
  object-fit: contain;
  margin-top: 10px;
}

.footer-bottom{
  margin-top: 30px;
  text-align: center;
}

/* --------------------- */
/*      RESPONSIVE       */
/* --------------------- */

@media (max-width: 480px) {

  footer {
    padding: 30px 20px;
  }

  /* On empile les blocs */
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  /* Bloc Logo */
  .footer-logo img {
    width: 250px;  /* taille réduite pour mobile */
  }

  /* Titres */
  .footer-pages h3,
  .footer-contact h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  /* Pages */
  .footer-pages ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-pages a {
    font-size: 14px;
  }

  /* Bloc contact */
  .footer-contact {
    align-items: center;
  }

  /* Icônes réseaux : centrées */
  .footer-contact .social-icons {
    justify-content: center;
    gap: 12px;
  }

  .footer-contact .social-icons img {
    width: 28px;
    height: 28px;
  }

  /* Image karting : centrée et réduite */
  .footer-karting img {
    max-width: 260px;
    margin-top: 20px;
  }

  /* Bas de page */
  .footer-bottom {
    margin-top: 20px;
    font-size: 12px;
  }
}


/* Burger menu - mobile */
.burger {
  display: none; /* desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1200;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Menu mobile */
@media (max-width: 768px) {
  .burger { display: flex; }

  .sticky-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background-color: rgba(2,125,23,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    transform: translateX(100%); /* caché à droite */
    transition: transform 0.3s ease-in-out;
    z-index: 1100;
  }

  .sticky-header nav.show {
    transform: translateX(0); /* visible */
  }

  .sticky-header nav ul.menu {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
  }

  /* Burger ↔ croix */
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}


@media (max-width: 768px) {
  /* Header plus compact */
  .header {
    height: 100vh;
    min-height: 600px;
  }
  
  .titre {
    font-size: 1.5rem;
    white-space: normal;
    padding: 0 20px;
  }
  
  .petittitre {
    font-size: 1.2rem;
    top: 25%;
  }
  
  .titre {
    top: 35%;
  }
  
  .textecarousel {
    top: 50%;
    padding: 0 20px;
  }
  
  .textecarousel h1 {
    font-size: 1.1rem;
  }
  
  .decouvrir {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  /* Gallery 2 colonnes */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 95%;
    top: 35rem;
  }
  
  .card {
    font-size: 0.9rem;
  }
  
  /* Bandeau événements */
  .bandeauévènements {
    width: 90%;
    font-size: 0.9rem;
    padding: 8px;
    top: 80px;
  }
  
  /* Sticky header mobile */
  .sticky-header {
    padding: 10px 15px;
  }
  
  .sticky-header .logo {
    height: 40px;
  }
  
  /* Navigation mobile */
  .sticky-header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 61, 10, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }
  
  .sticky-header nav.show {
    transform: translateX(0);
  }
  
  .sticky-header nav ul.menu {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  
  .sticky-header nav .menu li {
    width: 100%;
  }
  
  .sticky-header nav .menu a {
    display: block;
    padding: 12px 20px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 12px;
  }
  
  /* Burger menu visible */
  .burger {
    display: flex;
    position: relative;
    z-index: 1200;
  }
  
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 480px) {
  .header {
    height: 90vh;
    min-height: 550px;
  }
  
  .titre {
    font-size: 1.3rem;
  }
  
  .petittitre {
    font-size: 1rem;
  }
  
  .textecarousel h1 {
    font-size: 0.95rem;
  }
  
  .gallery {
    top: 32rem;
    gap: 10px;
  }
  
  .card {
    font-size: 0.8rem;
    padding: 8px;
  }
  
  .bandeauévènements {
    width: 95%;
    font-size: 0.8rem;
    padding: 6px;
  }
  
  .sticky-header nav {
    width: 100%;
    padding: 15px;
  }
}





