@font-face {
    font-family: 'Ampire';
    src: url('police/ampireexpand.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Manolette';
    src: url('police/MANOLETE.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        margin: 0; 
        padding: 0;
    }

    * {
        box-sizing: border-box; 
    }
}

header {
    background: white;
    padding: 1em 0;
    color: black;
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        margin: 0; 
        padding: 0;
    }

    * {
        box-sizing: border-box; 
    }
}

.containernav {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 200px; 
  width: 90%;
  max-width: 1200px;
  margin: 0 auto; 
}


.logo-nav {
    display: flex;
    align-items: center; 
    gap: 20px;
    height: 100%; 
}

.logo-nav a {
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center; 
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center; 
}

nav ul li {
    position: relative; 
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    transition: color 0.3s;
    line-height: 1; 
    display: flex; 
    align-items: center;
    font-family: 'Poppins', 'sans-serif';
}

nav ul li:nth-child(1) a {
    color: #9307ED;
}

nav ul li:nth-child(2) a {
    color: #FF0000;
}

nav ul li:nth-child(3) a {
    color: #FFD700;
}

nav ul li:nth-child(4) a {
    color: #9307ED;
}

nav ul li:nth-child(5) a {
    color: #FF0000;
}

nav ul li:nth-child(6) a {
    color: #FFD700;
}

nav ul li:nth-child(1) a:hover {
    color: #FF0000;
}

nav ul li:nth-child(2) a:hover {
    color: #FFD700;
}

nav ul li:nth-child(3) a:hover {
    color: #9307ED;
}

nav ul li:nth-child(4) a:hover {
    color: #FF0000;
}

nav ul li:nth-child(5) a:hover {
    color: #FFD700;
}

nav ul li:nth-child(6) a:hover {
    color: #9307ED;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 30px;
    padding: 10px;
}

@media (max-width: 768px) {
    .containernav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
        margin-right: 14px;
    }

    .logo-nav {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    nav {
        width: 100%;
        background-color: white;
        position: relative;
        z-index: 1000;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 115%; 
        right: 15%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 0;
        margin-top: 0;
    }

    nav ul.active {
        display: flex; 
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        color: #fff;
        text-decoration: none;
    }

    .dropdown-menu {
        display: none;
        flex-direction: column;
        background-color: white;  
        padding-left: 0;
        margin-top: 5px;
    }

    nav ul.active .dropdown-menu {
        display: flex; 
    }

    .dropdown-menu li a {
        color: #fff; 
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        background-color: transparent;
        text-align: center;
        margin-left: 25px;
    }

    .dropdown-menu li a:hover {
        background-color: #444; 
    }

    nav ul li:nth-child(4) {
        margin-top: 80px; 
    }

}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 46%;
    transform: translateX(-50%); 
    margin-left: 0px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 5px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: black;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: white;
}

.dropdown-menu {
    background-color: white !important; 
    border: none !important; 
    box-shadow: none !important; 
}

.dropdown-menu li a {
    text-align: center !important;
    color: #fff; 
    background-color: transparent; 
    padding: 10px 15px; 
    text-decoration: none; 
}

.dropdown-menu li a:hover {
    background-color: white; 
}

.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fairefamillerebellephotoprincipale {
    background-image: url('photo/famillesrebelles1.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    height: 350px; 
    width: 100%; 
    position: relative; 
}

.titreprincipalactions{
    font-family: 'Manolette', sans-serif;
    font-size: 4.5rem; 
    text-align: center; 
    color: #FFD700; 
    padding-top: 15px;
}

.center-text {
    font-size: 2rem; 
    text-align: center; 
  }

.actions-intro {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
    margin: auto;
    max-width: 800px;
    line-height: 1.6;
    font-size: 1.3rem;
    margin-top: 15px;
}


.paragrapheintroductionactionsculturelles{
     text-align: justify;
    font-family: 'Poppins', sans-serif;
    margin: auto;
    max-width: 800px;
    font-size: 1.3rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .paragrapheintroductionactionsculturelles {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    .paragrapheintroductionactionsculturelles {
        margin-left: 15px;
        margin-right: 15px;
    }
}

.imagepremiereanoscorps {
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.imagepremiereanoscorps img {
    max-width: 40%; 
    max-height: 50%; 
    border-radius: 20px; 
    object-fit: cover; 
}

.imagefamillerebellefestival {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 20px; 
    max-width: 90%;
    margin: auto;
}

.imagefamillerebellefestival {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 15px; 
    width: 90%;
    margin: auto;
}

.imagefamillerebellefestival {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px; 
    width: 200px;
    margin: auto;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 20px; 
    width: 100%;
    margin-bottom: 25px;
}

.image-container img {
    max-width: 500px; 
    height: auto; 
    object-fit: cover;
    border-radius: 0; 
}

@media screen and (max-width: 768px) {
    .image-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container img {
        width: 90%; 
    }
}

.famillerebelle {
    max-width: 1000px; 
    margin: 0 auto; 
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    text-align: left;
}

.famillerebelle h2 {
    padding-left: 500px;
    font-size: 2rem;
    text-align: center;
    color:#FF0000
}

.famillerebelle-content {
    display: flex;
    align-items: flex-start; 
    gap: 20px; 
    font-family: 'Poppins', sans-serif !important;
}

.famillerebelle-content img {
    margin-top: 65px;
    flex: 1; 
    max-width: 48%; 
    height: auto;
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.famillerebelle-content p {
    padding-left: 20px;
    flex: 2; 
    font-size: 1.3rem;
    color: #555;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

.anoscorps {
    max-width: 1000px; 
    margin: 0 auto; 
    padding-top:10px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    text-align: left;
}

.fairecorps h2 {
    text-align: center;
    margin: auto;
    padding-bottom: 10px;
    font-size: 2rem;
    color:#FF0000;
    font-family: 'Poppins', sans-serif;
    padding-right: 300px;
}

.anoscorps-content {
    display: flex;
    align-items: flex-start; 
    gap: 20px; 
    flex-direction: row-reverse; /
}

.anoscorps-content img {
    flex: 1; 
    max-height: 390px; 
    max-width: 275px;
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin-top: 25px;
}

.anoscorps-content p {
    flex: 2; 
    text-align: justify;
    max-width: 600px;
    padding-right: 20px;
    font-size: 1.3rem;
    color: #555;
    text-align: justify;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
    .titreprincipalactions {
        font-size: 3rem;
        padding: 0 10px;
        padding-top: 10px;
    }

    .imagepremiereanoscorps img {
        max-width: 90%;
        height: auto;
    }

    .actions-intro {
        max-width: 90%;
        font-size: 1.1rem;
        padding: 10px;
    }

    .traingribouillage {
        width: 80%;
    }

    .famillerebelle-content,
    .anoscorps-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .famillerebelle-content img,
    .anoscorps-content img {
        max-width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .famillerebelle-content p,
    .anoscorps-content p {
        padding: 10px;
        font-size: 1.1rem;
    }

    .fairecorps h2 {
        padding-right: 0;
    }

    .famillerebelle h2 {
       padding-left: 0;
    }
}

.rejoindre-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background-color: #ffff00;
}

.rejoindre-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%; 
    padding: 20px;
}

.text-side {
    flex: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #9307ED !important;
    font-family: 'Ampire', 'sans-serif';
    text-align: center;
}

.adhesionqr {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Poppins', 'sans-serif';
}

.adhesionqrr{
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Poppins', 'sans-serif';
}

.adhesionqr::after {
  content: " 👉"; 
}

@media (max-width: 768px) {
  .adhesionqr::after {
    content: " 👇"; 
  }
}

.card-link {
    color: #FF0000;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.image-side {
    flex: 0 0 40%; 
}

.image-side img {
    width: 300px; 
    height: 200px;
}

@media screen and (max-width: 768px) {
    .rejoindre-content {
        flex-direction: column;
        align-items: center;
    }

    .text-side, .image-side {
        width: 100%; 
    }

    .image-side img {
        max-width: 100%; 
        height: auto; 
        margin-top: 20px; 
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 9999;
    display: none; 
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #FFD700;
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #FFD700;
    color: #333;
    border: none;
    padding: 8px 15px;
    margin: 10px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #FFB400;
}

.cookie-banner button#accept-cookies {
    background-color: #4CAF50; 
}

.cookie-banner button#accept-cookies:hover {
    background-color: #45a049;
}

.cookie-banner button#decline-cookies {
    background-color: #F44336; 
}

.cookie-banner button#decline-cookies:hover {
    background-color: #da190b;
}

@media (max-width: 600px) {
    .cookie-banner p {
        font-size: 12px;
    }
    
    .cookie-banner button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.titrefairefamillerebelle{
    color: #9307ED;
    font-family: "Ampire";
    font-size: 3rem;
}

@media (max-width: 1024px) {
    .titrefairefamillerebelle {
        font-size: 2rem;
        padding-bottom: 15px;
    }
}

.titreanoscorps{
    color: #9307ED;
    font-family: "Ampire";
    font-size: 3rem;
    text-align: center;
}

.Workshop h3{
    color: #9307ED;
    font-family: "Ampire";
    font-size: 3rem;
    text-align: center;
}

.Workshop p{
text-align: justify;
    max-width: 900px;
    padding-right: 20px;
    font-size: 1.3rem;
    color: #555;
    font-family: 'Poppins', sans-serif;
    margin: auto;
}

@media (max-width: 768px) {
    .Workshop p {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%; 
        font-size: 1.1rem;
    }
}

.soustitreedition{
    font-size: 2rem;
}

@media (max-width: 768px) {
    .affichefestival {
        width: 100%;
        overflow: hidden; 
    }

    .affichefestival img {
        width: 100% !important;  
        height: auto !important;  
        display: block;
        margin: 0 auto;
    }
}

.carousel {
  position: relative;
  width: 60%;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel img {
  width: 100%;
  height: 340px;      
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  color: #333;
  font-size: 1.8rem;    
  width: 50px;       
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 10;

  display: flex;       
  align-items: center;
  justify-content: center;
  line-height: 1;    
}

.carousel-btn:hover {
  background: #333;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

@media (max-width: 1024px) and (min-width: 769px) {
  .carousel {
    width: 80%;
    margin: 1.5rem auto;
    border-radius: 10px;
  }

  .carousel img {
    height: 280px;
    border-radius: 5px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .carousel {
    width: 95%;   
    margin: 1rem auto;
    border-radius: 8px; 
  }

  .carousel img {
    height: 220px;   
    border-radius: 4px;
  }

  .carousel-btn {
    width: 40px;   
    height: 40px;
    font-size: 1.4rem;
  }

  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
}

.anoscorps-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px; 
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap; 
}

.anoscorps-content .textanoscorps {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.anoscorps-content .image {
  flex: 1;
  text-align: center;
}

.anoscorps-content .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .anoscorps-content {
    flex-direction: column-reverse; 
    text-align: center;  
    align-items: center; 
  }

  .anoscorps-content img{
    flex-direction: column-reverse; 
    text-align: center;   
    align-items: center;  
    margin-bottom: 30px;
  }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    text-align: center;
    padding: 20px 10px;
    border-bottom: 1px solid black; 
}

.footer-section {
    min-width: 180px;
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links ul li a {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links ul li:nth-child(1) a {
    color: #9307ED; 
}

.footer-links ul li:nth-child(2) a {
    color: #FF0000; 
}

.footer-links ul li:nth-child(3) a {
    color: #FFD700; 
}

.footercontact{
    padding-top: 16px;
}

.footercontact a {
    color: black;  
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footercontact a:hover {
    color: #FF0000;  
}

.footer-links ul li a:hover {
    color: #FFD700;
}

.footer-map iframe {
    width: 100%;
    max-width: 250px;
    height: 150px;
    border-radius: 8px;
    padding-top: 10px;
}

.footer-socials p {
    font-size: 1rem;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.social-icons a {
    color: black;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #FFD700;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .footer-map iframe {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-map iframe {
        margin: 0 auto;
    }
}

.textefooterbas{
    text-align: center;
    padding-top: 5px;
}

.affichefestivaldeux {
  width: 800px;       
  height: 500px;      
}

@media (max-width: 768px) {
  .affichefestivaldeux {
    width: 90%;       
    height: auto;   
    max-width: 500px; 
  }
}

@media (max-width: 480px) {
  .affichefestivaldeux {
    width: 95%;    
    height: auto;
  }
}

.image-container-programme {
  text-align: center; 
}

.programme-img {
  width: 90%;      
  max-width: 900px;  
  height: auto;     
}

.insta-link {
  color: #FF0000;           
  font-weight: bold;       
  text-decoration: none;  
}

.insta-link:hover {
  text-decoration: underline;
  color: darkred;         
}

.programmation-link{
    color: #FF0000;           
  font-weight: bold;       
  text-decoration: none;  
}

.programmation-link:hover{
  text-decoration: underline;
  color: darkred;    
}

.nouvelleedition{
    color: #FF0000;
    font-family: "Manolette", sans-serif;
    font-size: 2rem;
}

.historiqueedition{
    color: #FF0000;
    font-family: "Manolette", sans-serif;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .nouvelleedition{
    font-size: 1.6rem;
    }
    .historiqueedition {
        font-size: 1.3rem;
    }
}

.img-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.img-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  cursor: zoom-out;
}

.img-zoom-overlay.active {
  opacity: 1;
  pointer-events: all;
}
