/* 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: 169rem;
  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('accueil-1.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;
}

.titrekart h1{
    text-align: center;
    color: green;
    font-size: 2.5rem;
}

.titrekart h3{
    text-align: center;
    color: white;
}

/* Conteneur qui centre le bouton */
.btnkart {
    display: flex;              /* active le mode flex */
    justify-content: center;    /* centre horizontalement */
    align-items: center;        /* centre verticalement */
    margin-top: 50px;           /* espace depuis le haut, optionnel */
}

/* Style du bouton */
.btnkart button {
    padding: 12px 30px;         /* espace à l'intérieur du bouton */
    background: linear-gradient(135deg, #0d441c, #1e6a28); /* dégradé sympa */
    color: white;               /* texte blanc */
    font-size: 16px;            /* taille du texte */
    font-weight: bold;          /* texte en gras */
    border: none;               /* pas de bordure */
    border-radius: 10px;        /* coins arrondis */
    cursor: pointer;            /* curseur pointer */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* ombre douce */
    transition: all 0.3s ease; /* effet smooth pour hover */
}

/* Effet au survol */
.btnkart button:hover {
    transform: translateY(-3px) scale(1.05); /* léger zoom et déplacement */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);  /* ombre plus marquée */
}

/* ==============================
   SECTION CONTACT
============================== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ==============================
   FORMULAIRE (GAUCHE)
============================== */
.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  background: #111;

  /* Bordure */
  border: 2px solid #fff; /* 20px d'épaisseur, couleur blanche */
  border-radius: 20px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.contact-form h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 10px;
  color: green;
}

.subtitle {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

select:focus,
input:focus,
textarea:focus {
  border-color: #ffeb3b;
  box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.3);
}

.input-row {
  display: flex;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box; /* IMPORTANT */
}

textarea {
  height: 120px;
  resize: none;
}
/* ==============================
   BOUTON ENVOYER
============================== */
.submit-btn {
  background: green;
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  align-self:center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
  color: green;
}

/* ==============================
   CARTE (DROITE)
============================== */
.contact-map {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-map {
    width: 100%;
    max-width: 700px;
  }
}

.horaires-section {
  padding: 50px 20px;
  text-align: center;
  color: white;
}

.horaires-section h2 {

  font-size: 2.5rem;
  margin-bottom: 40px;
  color: green;
}

.tables-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.horaires-table {
  background: linear-gradient(135deg, #0d441c, #1e6a28);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  padding: 20px;
  min-width: 300px;
  max-width: 400px;
}

.horaires-table h3 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 1.8rem;
  text-shadow: 1px 1px 2px black;
}

.horaires-table table {
  width: 100%;
  border-collapse: collapse;
}

.horaires-table th, 
.horaires-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  color: white;
}

.horaires-table th {
  background-color: rgba(0, 61, 10, 0.8);
  border-radius: 10px 10px 0 0;
}

.horaires-table tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
  transition: 0.3s;
}

.horairedif {
  color: white;
  text-align: center;
  font-size: xx-large;

}

@media screen {
  .horairedif {
    font-size:x-large;
    margin-left: 20px;
    margin-right: 20px;
  }
  
}

/* 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;
  }

  .titrekart h3 {
    font-size: large;
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* ----- REDUCTION + CENTRAGE SUR MOBILE ----- */
@media (max-width: 480px) {

  /* Conteneur global */
  .contact-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;      /* centre horizontalement */
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 25px;
  }

  /* Formulaire réduit */
  .contact-form {
    width: 90%;               /* réduit */
    max-width: 320px;         /* limite pour éviter débordement */
    padding: 20px;            /* padding réduit */
    margin: 0 auto;           /* centrage */
    border-width: 1.5px;      /* bordure plus fine */
  }

  /* Inputs mieux adaptés */
  .input-row {
    flex-direction: column;
    gap: 12px;
  }

  /* Carte réduite et centrée */
  .contact-map {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 15px;
  }

  .contact-map iframe {
    height: 300px; /* taille réduite */
  }
}


