/*
Theme Name: Custom
Template: hello-elementor
*/


/* Placer votre CSS ci-dessous */

/*
Theme Name: Ne pas afficher
Template: parent-theme
*/


/*ESSAI REDIMENSIONNER IMAGE MISE EN AVANT DES EVENTS */
@media (max-width: 768px) {
.event-image-centered {
	height : 600px;
	overflow : hidden;
}
.event-image-centered img {
    width: 100%;
    height: 100%;
    object-position: center center;
    display: block;
}
}

/* PAGE ACCUEIL SECTION CIRCLES COUNT*/

  .stats-circles-container {
    color: white;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  .stats-circles-container .circle {
    border: 2px solid #FFF681;
    border-radius: 50%;
   width: 220px;       /* agrandi */
  height: 220px;      /* agrandi */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .stats-circles-container .circle .number {
   font-size: 4.5rem;   /* agrandi */
    font-weight: 700;
    line-height: 1;
    
  }
  .stats-circles-container .circle .text {
      font-family: Poppins;
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.2;
  }
  .stats-circles-container .circle .text span {
    display: block;
  }
@media (max-width: 480px) {
    .stats-circles-container {
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 20px 10px;
    }
    .stats-circles-container .circle {
      width: 200px;
      height: 200px;
    }
    .stats-circles-container .circle .number {
      font-size: 2.5rem;
    }
  }

/*PAGE A PROPOS - VOITURES*/
.background-shapes {
  position: relative;
  width: 100%;
  height: 80vh;
  background: beige;
  overflow: hidden;
  margin-top: -30px;
}

/* Cercle rouge */
.red-circle {
  position: absolute;
  top: 25vh;
  left: 5vw;
  width: 18vw;
  height: 18vw;
  max-width: 300px;
  max-height: 300px;
  background: #FF4A4A;
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-label {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

/* Bandes diagonales */
.red-diagonal, .blue-diagonal {
  position: absolute;
  top: -50vh;
  height: 200vh;
  transform: rotate(-48deg);
  z-index: 1;
}

.red-diagonal {
  left: 50vw;
  width: 4vw;
  background: #FF4A4A;
}

.blue-diagonal {
  left: 48vw;
  width: 2vw;
  background: #0A2A6C;
}

/* Slider */
.car-slider {
  position: absolute;
  top: 0;
  right: 0px;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car {
  position: absolute;
  max-width: 90vw;
  height: auto;
  width: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.8s ease, opacity 0.5s ease;
  object-fit: contain;
}


.car.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 4;
}

.car.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

.car.exit-right {
  transform: translateX(100%);
  opacity: 0;
}

/* Navigation */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: blue;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
  background: none;
}

.nav.left { left: 1rem; }
.nav.right { right: 1rem; }

/* Texte descriptif */
.car-text {
  position: absolute;
  bottom: 3vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: #222;
  background: rgba(255,255,255,0.85);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  z-index: 4;
  max-width: 80%;
  text-align: center;
  font-weight: 500;
}


@media (max-width: 768px) {
  .background-shapes { height: 60vh; }

  .red-circle {
    width: 30vw;    /* agrandi */
    height: 30vw;   /* agrandi */
    top: 10vh;       /* repositionné pour rester visible */
    left: 55vw;     /* ajusté pour centrer correctement */
  }

  .red-diagonal { left: 50vw; width: 6vw; }
  .blue-diagonal { left: 55vw; width: 3vw; }

  .year-label { font-size: 2.2rem; } /* un peu plus gros aussi */

  .car-text {
    font-size: 1rem;
    max-width: 80%;
  }
}

 /* PAGE A PROPOS - SECTION GALLERIE DES PHOTOS */
.scroll-section {
  height: 100vh;
  width: 80vw;       /* largeur souhaitée */
  margin: 0 auto;    /* centrage horizontal */
  overflow: hidden;
  position: relative;
}

    .columns {
      display: flex;
      height: 100%;
      width: 100%;
      flex-direction: row; /* toujours côte à côte */
    }

    .column {
     flex: 1;
      overflow: hidden;
      position: relative;
    }

    .column__inner {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
    }

    .column__item {
      padding: 1rem;
      flex-shrink: 0;
      display: flex;
      justify-content: center;
      align-items: center;
    }

.column__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* remplit l’espace sans déformation */
  border-radius: 8px;
  display: block;
}

    /* Bouton musique */
    /* Bouton Music flottant en haut */
#playMusic {
    position: fixed;
    top: 50px;
    right: 20px;   /* tu peux mettre left:20px si tu veux à gauche */
    z-index: 9999;
    padding: 10px 15px;
    background-color: #FF4A4A;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

/* Mobile : ajustement */
@media (max-width: 768px) {
    #playMusic {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

   /* Vue mobile */
@media (max-width: 767px) {
  .columns {
    flex-direction: column;
  }

  .column {
    display: none;
  }


  .column:first-child {
    display: block;
    flex-basis: 100%;
    max-width: 100%;
    height: 100vh; /* occupe tout l’écran */
  }
}


/*PAGE ARTICLES/

/* Overlay (lightbox) */

/* ESSAI POUR RÉDUIRE PADDING LEFT DE LA SECTION DES IMAGES */
@media (max-width: 768px) {
   .elementor-465 .elementor-element.elementor-element-841e0c3 {
    
    --padding-left: 0px !IMPORTANT;
}
}
/* Lightbox */
#lightbox {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(0,0,0,0.8);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
#lightbox img {
  max-width:90%;
  max-height:90%;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  border-radius:8px;
  will-change: transform, opacity;
}
#lightbox .close {
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  color:white;
  cursor:pointer;
}

/* Rangs photos */
.fil, .fil2 {
  position: relative;
  width: 100%;
  height: 40vw;
  max-height: 420px;
  margin-bottom: 60px;
}

/* SVG fil */
.svg-fil {
  position: absolute;
  top: 20%;
  left:0;
  width:100%;
  height:auto;
}

/* Photo */
.photo {
  position: absolute;
  width:20%;
  max-height:350px;
  background:white;
  box-shadow:0 6px 15px rgba(0,0,0,0.2);
  border-radius:6px;
  overflow:hidden;
  animation: swing 4s ease-in-out infinite;
  transform-origin: top center;
  will-change: transform;
  content-visibility: auto;
}

.photo img {
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Clip pince à linge */
.clip {
  position:absolute;
  top:-25px;
  left:calc(50% - 12px);
  width:24px; height:30px;
  background:#c28e6b;
  border-radius:4px 4px 0 0;
  box-shadow: inset 0 3px 0 0 #a36b4a;
}

/* Première rangée positions */
.fil .photo:nth-child(2){ left:5%; top:15%; animation-delay:0s;}
.fil .photo:nth-child(3){ left:30%; top:18%; animation-delay:0.5s;}
.fil .photo:nth-child(4){ left:55%; top:15%; animation-delay:1s;}
.fil .photo:nth-child(5){ left:80%; top:17%; animation-delay:1.5s;}

/* Deuxième rangée positions */
.fil2 .photo:nth-child(2){ left:5%; top:18%; animation-delay:0.3s;}
.fil2 .photo:nth-child(3){ left:30%; top:14%; animation-delay:0.8s;}
.fil2 .photo:nth-child(4){ left:55%; top:19%; animation-delay:1.3s;}
.fil2 .photo:nth-child(5){ left:80%; top:15%; animation-delay:1.8s;}

/* Swing animation */
@keyframes swing {
  0% { transform: rotate(-3deg);}
  50% { transform: rotate(3deg);}
  100% { transform: rotate(-3deg);}
}

/* Mobile */
@media(max-width:768px){
  .fil, .fil2{
    height:auto;
    display:grid;
    grid-template-columns: repeat(2,1fr);
    grid-auto-rows:auto;
    justify-items:center;
    margin-bottom:40px;
  }
  .photo{
    position: relative;
    width:90%;
    max-width:200px;
    animation:none !important; /* stop swing on mobile */
  }
  .clip{
    position: relative;
    top:0;
    left:0;
    transform:none;
    margin-bottom:-20px;
  }
  .svg-fil{
    display:none;
  }
}

/*AJOUT CSS POUR LA PAGE COMBINANT TOUS LES EVENTS*/
.back-home {
    position: fixed;      /* flottant par-dessus le contenu */
    top: 50px;            /* 50px du haut */
    right: 20px;          /* 20px de la droite */
    z-index: 9999;        /* devant tout */
}

.back-home a {
    display: inline-block;
    padding: 10px 15px;
    background-color:  #FF4A4A;  /* couleur rappelant le site */
    color: white;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.back-home a:hover {
    background-color:  #FFF681;
    transform: translateY(-2px);
}

/* Mobile : réduire légèrement la taille et padding */
@media (max-width: 768px) {
    .back-home a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

.calendar-container {
  font-family: Arial, sans-serif;
  padding: 0 15px; /* un peu d'espace sur les côtés pour respirer */
  box-sizing: border-box;
}
/*APPLIQUER LES PARMÈETRES UNIQUEMENT AU CALENDAR DE LA PAGE SORTIE*/
#calendar .calendar-container {
  max-width: 900px;       /* largeur maximale */
  width: 90vw;            /* prend 90% de l'écran */
  margin: 0 auto;         /* centre horizontalement */
  padding: 1rem;
  box-sizing: border-box;
  background-color: #f9f9f9; /* optionnel : fond */
  border-radius: 10px;        /* optionnel : coins arrondis */
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-header button {
  background: #FFF681;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.calendar-header h2 {
  margin: 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.day {
  padding: 15px;
  border: 1px solid #ccc;
  text-align: center;
  border-radius: 6px;
}
.day:hover {
  background: #f0f0f0;
	color : black;
}
.event-day {
  background: #FFF681;
  color: black !important;
  font-weight: bold;
}
.event-day a {
  color: black !important;
  text-decoration: none;
  display: block;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-weight: bold;
  margin-bottom: 5px;
}

.event-container {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.event-container h1 {
    color: #333;
}

.event-container a {
    text-decoration: none;
}
/* ======================
   Liste des événements
   ====================== */

/* ✅ Container global pour la page */
.events-container {
  max-width: 1200px;
  width: 90%;    
  margin: 0 auto;     /* centrer horizontalement */
    padding: 20px;      /* un peu d’espace intérieur */
    box-sizing: border-box;
}

/* ✅ Titre principal de la page */
.events-page-title {
  text-align: center;
  font-size: 2rem;
  margin: 40px auto 20px auto;
  padding: 0 2rem;      /* même padding que container */
  color: #222;
}

/* ✅ Liste des événements */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 90vw;
  margin: 0 auto 40px auto;
  padding: 1rem 2rem;   /* padding horizontal */
}

/* ✅ Carte événement */
.event-item {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

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

/* ✅ Image de l'événement */
.event-thumb img {
  width: 220px;
	
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.event-thumbnail {
	padding : 20px;
}

/* ✅ Contenu texte */
.event-content {
  flex: 1;
	padding : 20px;
}
/*GALLERIE PRESENTE DANS SORTIE BORD DE MER*/
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	padding : 35px;
    border-radius: 2%;
	width: 100%;
  	object-fit: cover; /* rogne pour garder un ratio propre */
  	display: block;
}

  .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
		height: 250px !important;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.event-post h1 {
	padding : 20px;
}

.event-title a {
  color: inherit;
  text-decoration: none;
}

.event-title a:hover {
  color: #0073aa;
}

.event-date {
  font-weight: bold;
  color: #444;
  margin-bottom: 0.5rem;
}

.event-excerpt {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.5;
}

.event-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.event-link:hover {
  background: #005f8a;
}

/* ✅ Séparateur entre les événements */
.event-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1rem 0;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 768px) {
	
	.calendar-container {
    width: 90%;
		MARGIN : 0 auto;
	}
	
  .event-item {
    flex-direction: column;
    text-align: center;
  }

 .event-thumb img {
    width: 100% !important;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

  .event-content {
    margin-top: 20px 10px;
  }

  .events-list,
  .events-page-title {
    padding: 0 1rem;  /* réduit padding sur mobile */
  }
}

/* STYLE BUTTON */

.wrapper {
  display: flex;
  justify-content: center;
}


/* Bouton CTA */
.cta {
  display: flex;
  align-items: LEFT;
  padding: 3px 30px;
  text-decoration: none !important;
  font-family: Bebas Neue, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, #fff681, #ffe600, #fff8a3); /* 🌟 dégradé jaune */
  box-shadow: 6px 6px 0 black;
  transform: skewX(-15deg);
  transition: 0.5s;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  background: linear-gradient(135deg, #0a0000, #ff4a4a, #330000, #990000); /* 🔥 reprend ton ancien fond rouge/noir */
  box-shadow: 10px 10px 0 #fff681; /* tu peux garder cette ombre jaune ou la remettre en noir si tu préfères */
}
/* Texte à l'intérieur du bouton */
.cta span:first-child {
  transform: skewX(15deg);
  white-space: nowrap;
  color: #252525; /* ✅ noir par défaut sur fond jaune */
}

.cta:hover span:first-child {
  color: white; /* ✅ devient blanc quand fond est rouge/noir */
}

.cta:hover span:nth-child(2) {
  margin-right: 3vw;
}

/**************SVG****************/
svg {
  width: clamp(30px, 5vw, 66px);
  height: auto;
  /*margin-left: 20px !important;*/
	/*margin-top : 10px !important; */
}

path.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

path.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover path.three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover path.one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover path.two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

/* SVG animations */
@keyframes color_anim {
  0% { fill: white; }
  50% { fill: #FFF681; }
  100% { fill: white; }
}



</style>
