:root {
    --orange: #F29400;
    --orange-light: #F29400;
    --beige: #fff7ec;
    --grey-dark: #333;
    --text: #222;
    --bg: #f9f9f9;
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    background: linear-gradient(to right, #f9f9f9, #f2f2f2);
}

header {
    background-image: 
        url('./Multimedia/ACE_orange_blanc_baseline-removebg-preview2.png'), /* logo au-dessus */
        url('./Multimedia/photoentête.jpg'); /* image de fond dessous */
    
    background-size: 600px, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center center;
    
    height: 250px;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

h3 {
    font-size: 26px;
    color: var(--orange);
    position: relative;
    display: inline-block;
    
    letter-spacing: 1px;
    font-weight: bold;
    padding: 10px 20px;
  }
  




header h1 {
    position: absolute;
    top: 15px;
    left: 20px;
    margin: 0;
    font-size: 24px;
  }
  
  header p {
    position: absolute;
    bottom: 709px;
    right: 20px;
    margin: 0;
    font-size: 16px;
    text-align: right;
  }

nav {
    background: #333;
    padding: 10px;
    background: #333;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    position: relative;
}
nav ul li a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
}
nav ul li a:hover {
    background: #555;
}
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 20px;
}

.logo-grid img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.content {
    display: none;
    padding: 20px;
}
.content.active {
    display: block;
}
footer {
    background: #333;
    color: white;
    padding: 10px;

    bottom: 0;
    width: 100%;
}
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}
iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.photo-container {
    position: relative;
    width: 100%;              /* largeur de la zone de photos */
    max-width: 1000px;       /* limite maximale */
    /* height: 850px;    */
    margin: 40px auto;       /* auto pour centrer horizontalement */
    backdrop-filter: blur(4px);
   
   
    overflow: hidden;
    border-radius: 12px;
  }
  .photo-container .photo {
    border: 8px solid white;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .photo-container .photo:hover {
    transform: scale(1.1) rotate(0deg);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.5);
  }
  .photo-container .photo {
    
    width: 300px;
    height: 200px;
    object-fit: cover;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    border: 5px solid white;
    transition: transform 0.3s;
    animation: throw 0.8s ease-out forwards;
  }

  .photo-container .photo:hover {
    transform: scale(1.1);
    z-index: 10;
  }

  @keyframes throw {
    0% {
      transform: translate(0px, -300px) rotate(0deg);
      opacity: 0;
    }
    100% {
      transform: translate(0, 0) rotate(var(--angle));
      opacity: 1;
    }
  }

  .carousel {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 30px auto;
    overflow: hidden;
  }
  
  .carousel-viewport {
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* 100% * nombre d'images */
  }
  
  .carousel-track img {
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }

/* === Style spécifique pour la partie Fresque === */
#fresque-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    
    padding: 10px;
}

/* #evenements h3 {
    margin-top: 40px;
    font-size: 24px;
    color: #444;
    text-transform: uppercase;
    border-bottom: 2px solid #ff914d;
    display: inline-block;
    padding-bottom: 5px;
} */

#evenements p {
    max-width: 900px;
    margin: 10px auto;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}


/* === Deux colonnes Fresque === */
.fresque-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    flex-wrap: wrap;
  }
  
  .fresque-col {
    flex: 1;
    min-width: 300px;
    background-color: #fff7ec;
    border: 1px solid #ffcf9f;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }
  
  .fresque-col h4 {
    margin-top: 0;
    font-size: 20px;
    color: #ff7b00;
    text-transform: uppercase;
    border-bottom: 2px solid #ff7b00;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  
  /* === Presse miniatures en colonne === */
  .presse-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .presse-gallery img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: zoom-in;
  }
  
  .presse-gallery img:hover {
    transform: scale(2.5);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
  
  /* === Classements PDF === */
  .classement-list {
    list-style: none;
    padding-left: 0;
  }
  
  .classement-list li {
    margin-bottom: 12px;
  }
  
  .classement-list a {
    text-decoration: none;
    color: #444;
    font-weight: bold;
  }
  
  .classement-list a:hover {
    color: #ff7b00;
    text-decoration: underline;
  }
  /* === TRANSITIONS GLOBALES === */
* {
    transition: all 0.3s ease-in-out;
  }
  
  /* === SECTIONS AVEC EFFET DE FONDU === */
  .content {
    display: none;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  .sub-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

.sub-nav a {
    padding: 10px 20px;
    background-color: #ff7b00;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    background: linear-gradient(to right, var(--orange), var(--orange-light));
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.3s ease-in-out;
}

.sub-nav a:hover {
    background-color: #ff914d;
}
.reseaux-sociaux {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.reseau {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: #fff7ec;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
}

.reseau:hover {
    transform: scale(1.05);
    background-color: #ffefdc;
}

.reseau img {
    width: 28px;
    height: 28px;
}

.content, .sub-content {
    opacity: 0;
    transform: translateY(20px);
  }
  .content.visible, .sub-content.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .event-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    flex-wrap: wrap;
  }
  
  .event-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
  }
  
  .event-text h1 {
    color: #F29400;
    font-size: 32px;
  }
  
  .event-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
  }
  
  .event-image {
    flex: 1;
    min-width: 300px;
  }
  
  .event-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .event-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
  }
  
  .event-horizontal .event-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
  }
  
  .event-horizontal .event-video {
    flex: 1;
    min-width: 300px;
  }
  
  .event-horizontal .event-video iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
  }
  
  .event-horizontal h1 {
    font-size: 32px;
    color: #F29400;
  }
  
  .event-horizontal h2 {
    font-size: 22px;
    color: #444;
    margin-bottom: 20px;
  }
  
  .event-horizontal p {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
  }

  .main-image img {
    border-radius: 12px;
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
  .speaker-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .speaker-photo {
    flex: 1;
    min-width: 250px;
    text-align: center;
  }
  
  .speaker-photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .speaker-text {
    flex: 2;
    min-width: 300px;
    text-align: left;
  }
  
  .speaker-text h1 {
    font-size: 32px;
    color: #F29400;
    margin-bottom: 20px;
  }
  
  .speaker-text p {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
  }
  .presentation-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .presentation-text {
    flex: 2;
    min-width: 300px;
    text-align: left;
  }
  
  .presentation-text h1 {
    font-size: 32px;
    color: #F29400;
    margin-bottom: 20px;
  }
  
  .presentation-text p {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
  }
  
  .presentation-image {
    flex: 1;
    min-width: 250px;
    text-align: center;
  }
  
  .presentation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }
  #plage .event-video iframe {
    height: 300px;
  }
          
  .pdf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* fond noir transparent */
    backdrop-filter: blur(2px);
  }
  
  .pdf-modal-content {
    background-color: #fff;
    width: 80%;
    margin: 5vh auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .close-modal {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
  }
  
  
  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
  }
  
  .download-btn {
    margin-top: 15px;
    background-color: #ff7b00;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
  }
  
  .download-btn:hover {
    background-color: #ff914d;
  }
 
  #open-reglement {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    margin-top: 30px;
  }
  
  #open-reglement:hover {
    transform: scale(1.05);
  }
  .event-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* ou center si tu veux centrer le texte */
  }  

  .form-google iframe {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .contact-form {
    max-width: 600px;
    margin: 40px auto;
    background: #fff7ec;
    padding: 60px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
  }
  
  .contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border 0.3s;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: #ff7b00;
  }
  
  .contact-form button {
    background-color: #ff7b00;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
  }
  
  .contact-form button:hover {
    background-color: #ff914d;
    transform: scale(1.05);
  }
  /* Recyclé des autres sections */
.event-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  align-items: flex-start;
  padding: 0 20px;
}

.event-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Recyclé des autres sections */
.event-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
    padding: 0 20px;
  }
  
  .event-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .contact-form {
   width: 100%;
    margin: 30px auto;
    background: #fff7ec;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* 👈 Centrage des champs */
  }
  
  .contact-form .form-group {
    width: 100%;
    text-align: center; /* 👈 Centrage du texte */
    margin-bottom: 20px;
  }
  
  .contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
    text-align: center; /* 👈 Centrage du label */
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 80%; /* 👈 Centrage horizontal avec largeur contrôlée */
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border 0.3s;
    display: block;
    margin: 0 auto; /* 👈 Pour s'assurer du centrage */
  }
  
  footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
  }
  
  .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .footer-content p {
    margin: 0;
  }
  
  .footer-content .powered {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
  }
  
  .footer-content .powered img {
    height: 25px;
    object-fit: contain;
    filter: brightness(0.9);
  }
  #open-formulaire {
    background-color: #ff7b00;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
  }
  
  #open-formulaire:hover {
    transform: scale(1.05);
  }
  .photo-gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  
  .gallery-button {
    display: inline-block;
    background-color: #F29400;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .gallery-button:hover {
    background-color: #ff9100;
    transform: scale(1.05);
  }
  
  .gallery-container-with-button {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    align-items: center;
    justify-items: center;
  }
  
  .photo-box img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .photo-box img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  
  .photo-button-box {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .gallery-button {
    background-color: #F29400;
    color: white;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .gallery-button:hover {
    background-color: #ff9100;
    transform: scale(1.05);
  }
  

#open-video {
    background-color: #0054d3;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

#open-video:hover {
    background-color: #003cbd;
    transform: scale(1.05);
}
/* .video-btn {
  background-color: #0054d3;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
} */
.video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #005be3;
  color: white;
  font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.video-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

#open-parcours {
  background-color: #ff7b00;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
}

#open-parcours:hover {
  transform: scale(1.05);
}


.video-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}

.video-block {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.video-block iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.video-block p {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}



#map {
  height: 400px;
  margin-top: 30px;
  border-radius: 10px;
}

  .parchemin {
   
    border: 2px solid #d2b48c;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 10px auto;
    max-width: 700px;
    font-family: 'Georgia', serif;
    color: #2d1f0d;
    background-color: #f5f0e6; /* en cas d'image manquante */
  }
  
  .parchemin p {
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: pre-line;
    text-align: center;
  }

  .parchemin2 {
   
    /* border: 2px solid #d2b48c; */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.3); */
    margin: 10px auto;
    max-width: 700px;
    font-family: 'Georgia', serif;
    color: #2d1f0d;
    /* background-color: #f5f0e6; */
  }
  
  .parchemin2 p {
    font-style: italic;
    font-size: 1.2em;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: pre-line;
    text-align: center;
  }
  .gpx-list {
    list-style: none;
    padding-left: 0;
}
.gpx-list li {
    margin: 10px 0;
}
.gpx-list a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}
.gpx-list a:hover {
    text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: #ff7b00;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin: 10px auto;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
  }

  nav ul.active {
    display: flex;
  }
}

