/* 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: 143.3rem;
  font-family: Arial, sans-serif;
  padding-top: 80px; /* espace pour header sticky */
  box-sizing: border-box;
  background-color: #111;
  overflow-x: hidden;
}

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

/* Grille 2x2 */
.grid-tarifs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 60px auto;
}

/* Encadré */
.encadre {
    background: linear-gradient(#0d441c, #1e6a28);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);

    color: white;
}

/* Bandeau du titre */
.bandeau {
    background: #f0c200;
    color: black;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin: -10px -10px 15px -10px;
    font-family: "MaPolicePerso", sans-serif;
    font-size: 1.4rem;
}

/* Style du contenu */
.encadre ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.encadre li {
    padding: 6px 0;
    border-bottom: 1px solid darkgreen;
}

.encadre li:last-child {
    border-bottom: none;
}

/* Adaptation mobile */
@media (max-width: 700px) {
    .grid-tarifs {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}

.catekart {
    text-align: center;
    color: green;
    font-size: x-large;
}

/* --- SECTION SIMULATEUR DE GOLF --- */
.pancarte-golf {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(#0d441c, #1e6a28);
  border: 3px solid #1f3d1a;
  border-radius: 6px;
  padding: 25px 30px;
  color: #ffffff;
  font-family: Arial, sans-serif;
  margin: 40px auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Structure interne */
.pancarte-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* --- TITRE --- */
.pancarte-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 2px;
}

.title-main {
  color: #ffffff;
}

.title-accent {
  color: #ffd200;
}

/* --- CONTENU PRINCIPAL --- */
.pancarte-body {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

/* --- PARTIE GAUCHE SANS IMAGES --- */
.left-block {
  width: 55%;
  display: flex;
}

.green-illustration,
.green-svg,
.golfeur-illu {
  display: none !important; /* suppression des images */
}

/* Texte gauche */
.left-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-size: 22px;
  line-height: 1.5;
}

.formation {
  font-size: 26px;
  font-weight: bold;
}

.small {
  font-size: 20px;
}

.rules {
  font-size: 20px;
  opacity: 1;
}

/* --- TARIFS À GAUCHE --- */
.right-block {
  width: 45%;
  display: flex;
  align-items: flex-start;
}

.tarifs-box {
  background: #2f7f2a;
  border-left: 6px solid #ffd200;
  padding: 20px 25px;
  border-radius: 6px;
  width: 100%;
}

.tarifs-label {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.tarifs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tarifs-list li {
  font-size: 23px;
  margin-bottom: 15px;
  display: block;
}

.tarifs-list .pers {
  font-weight: bold;
  display: inline-block;
  min-width: 150px; /* alignement propre */
}

.tarifs-list .price {
  font-weight: bold;
}

/* --- VERSION MOBILE --- */
@media (max-width: 900px) {
  .pancarte-body {
    flex-direction: column;
  }

  .left-block,
  .right-block {
    width: 100%;
  }

  .tarifs-list .pers {
    min-width: 130px;
  }
}

/* Bouton call-to-action */
.cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cta-button {
    background: linear-gradient(#0d441c, #1e6a28);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.4);
    transition: 0.3s ease;
    margin-bottom: 30px;
}

.cta-button:hover {
    transform: scale(1.07);
    background: #1e6a28;
    color: white;
    box-shadow: 0 7px 15px rgba(0,0,0,0.5);
}

.catekart2 {
    text-align: center;
    color: green;
    font-size: x-large;
}

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

.reduit {
  color: white;
  font-size: 2rem;
}

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

/* ----- RESPONSIVE MOBILE : SIMULATEUR DE GOLF ----- */
@media (max-width: 480px) {

  /* Pancarte générale */
  .pancarte-golf {
    padding: 15px;
    margin: 25px auto;
    width: 95%;            /* empêche le dépassement */
    max-width: 380px;      /* taille contrôlée */
  }

  /* Titre */
  .pancarte-header {
    flex-direction: column;
    font-size: 26px;
    text-align: center;
    gap: 5px;
  }

  /* Contenu interne en colonne */
  .pancarte-body {
    flex-direction: column;
    gap: 20px;
    align-items: center;   /* centre tout */
  }

  /* Partie gauche */
  .left-block {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .left-text {
    font-size: 16px;
    gap: 12px;
    text-align: center;
    width: 90%;
  }

  .formation {
    font-size: 18px;
  }

  .small {
    font-size: 15px;
  }

  .rules {
    font-size: 14px;
    text-align: center;
  }

  /* Partie tarifs */
  .right-block {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .tarifs-box {
    padding: 12px 15px;
    width: 90%;            /* réduit la taille */
    max-width: 330px;      /* évite le débordement */
    text-align: center;    /* centre interne */
  }

  .tarifs-label {
    font-size: 18px;
  }

  .tarifs-list li {
    font-size: 16px;
    margin-bottom: 8px;
    justify-content: center;
  }

  .tarifs-list .pers {
    min-width: 100px;
  }
}




