@font-face {
    font-family: "Luckiest Guy";
    src: url("fonts/LuckiestGuy-Regular.ttf");
}
@font-face {
    font-family: "Brice Light";
    src: url("fonts/Brice-Light.otf");
}
@font-face {
    font-family: "Brice Regular";
    src: url("fonts/Brice-Regular.otf");
}
@font-face {
    font-family: "Brice Bold";
    src: url("fonts/Brice-Semi-Bold.otf");
}

                                    /* Body */
body{
    margin: 0;
    font-family: "Brice Regular", sans-serif;
    background-color: #f4ffd7;
    padding: 0;
    line-height: 1.5;
    color : #03594d;
    -webkit-hyphens: auto; /* Safari */
    -ms-hyphens: auto;     /* IE/Edge */
    hyphens: auto;         /* Standard */
}

section{
    padding-bottom: 100px;
    padding: 100px 20px;
    position: relative;
    --mask:
    radial-gradient(111.77px at 50% 155px,#000 99%,#0000 101%) calc(50% - 124px) 0/248px 51% repeat-x,
    radial-gradient(111.77px at 50% -93px,#0000 99%,#000 101%) 50% 62px/248px calc(51% - 62px) repeat-x,
    radial-gradient(111.77px at 50% calc(100% - 155px),#000 99%,#0000 101%) calc(50% - 124px) 100%/248px 51% repeat-x,
    radial-gradient(111.77px at 50% calc(100% + 93px),#0000 99%,#000 101%) 50% calc(100% - 62px)/248px calc(51% - 62px) repeat-x;
  -webkit-mask: var(--mask);
          mask: var(--mask);
}
 

                                    /*header*/
header{
    background-color: white;
    display: flex; 
    height: 150px;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

header img{
    height: 70%;
    width: auto;
}

header #logodrago{
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    height: 250px;
    width: auto;
    background-color: white;
    border-radius: 50%;
    padding: 15px;
    z-index: 50;
}

header nav {
    display: flex;
    justify-content: space-between;
}
header nav a img{
    display: none;
}

a {
    text-decoration: none;
    font-size: 1.2em;
    font-family: "Brice Bold", sans-serif;
    margin: 0 20px;  
    padding: 10px 30px;
    box-shadow: 0 6px 0 #03594d;
    border: 1px solid #03594d;
    border-radius: 50px;
    transition: all 0.2s ease;
    display: inline-block;
    color: #03594d;
}
a:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #03594d;
}

#boutonbleu{
    background-color: #a3bef5 ;
}
#boutonrose{
    background-color: #e591cb ;
}

                                    /*en-tête*/
#en-tete{
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),url("img/fondHeader.webp");
    background-size: cover;
    background-attachment: fixed;
    height: 800px;
    display: flex;
    align-items: center;
    mask: none;
}

#en-tete div{
    margin-left: 50px;
    width: 50%;

}

#en-tete div img{
    width: 100%;
    height: auto;
}
#en-tete div p{
    color: #f4ffd7;
    font-size: 2em;
    font-family: "Brice Bold", sans-serif;
}

#en-tete div #edition{
    text-align: right;
    color: #fad062;
    margin-bottom: -20px;
}

#en-tete div a{
    background-color: #fad062;
    margin: 0;
    height: 50px;
    line-height: 50px;
    text-align: center;
    width: 250px;
    font-size: 1.8em;
}

                                    /* DESCRIPTION */

#description h2{
    display: none;
}

#description-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* TEXTE */
#description-text {
  flex: 1;
  text-align: justify;
  display: flex;
  align-items: center;
  justify-content: center;
}

#description-text p {
  font-size: 1.3em;
  line-height: 2em;
}

/* Highlights pour le texte description */
.highlight-blue {
  background-color: #a3bef5;
  padding: 7px 8px;
  border-radius: 50px;
}

.highlight-pink {
  background-color: #e591cb;
  padding: 7px 8px;
  border-radius: 50px;
}

.highlight-pink-rounded {
  background-color: #e591cb;
  padding: 7px 12px;
  border-radius: 50px;
}

.highlight-yellow {
  background-color: #fad062;
  padding: 7px 8px;
  border-radius: 50px;
}

/* Carrousel d'images */
#carousselIMG {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

#carousselIMG img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    display: none;
}

#carousselIMG img:first-child {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(3, 89, 77, 0.7);
    color: #f4ffd7;
    border: none;
    padding: 15px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(3, 89, 77, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(244, 255, 215, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #03594d;
    width: 16px;
    height: 16px;
}

.carousel-dot:hover {
    background-color: rgba(3, 89, 77, 0.8);
}



                                /* INFOS PRATIQUES */

#infos{
    background-color: #a3bef5;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


h2{
    text-align: center;
    font-size: 3em;
    font-family: "Brice Bold", sans-serif;
}

.cartes {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 40px;
}

.carte-Infos {
  position: relative;
  height: 260px;
  width: 260px;
  padding: 30px;
  background-color: #f4ffd7;
  border-radius: 30px;
  box-shadow: -18px 18px 0 #03594d;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 20px;
  font-size: 1.5em;
}

.carte-Infos:hover {
  transform: translateY(3px);
  box-shadow: -12px 12px 0 #03594d;
}

.contenu-normal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
  height: 100%;
}

.contenu-normal img {
  width: 100px;
}

.contenu-hover {
  display: none;
  color: #03594d;
  font-size: 0.95rem;
  text-align: justify;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}


.contenu-hover p {
  margin-bottom: 10px;
}

.carte-Infos:hover .contenu-normal {
  display: none;
}

.carte-Infos:hover .contenu-hover {
  display: flex;
}


                                    /* HORAIRE */
#horaire{
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    font-family: "Brice Bold", sans-serif;
}

#horaire-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0;
}

#horaire-content div{
    display: flex;
    flex-direction: row;
    height: 50px;
}
#horaire-content div p{
    text-align: center;
    line-height: 40px;
    margin: 0 20px;
    padding: 0 20px;
    width: 100px;
    border: 1px solid #03594d;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#horaire-content div p:first-child{
    background-color: #03594d;
    color: #f4ffd7;
    justify-content: center;
    margin-left: 0;
}

#horaire-content div a{
    background-color: #f88544;
    margin-right: 0;
}

#programme{
    width: 100%;
}

#programme .periodes{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    border-top: 1px solid #03594d;
    align-items: center;
}
/* éviter l'addition des bordures entre les .periodes */
#programme .periodes:last-child{
    border-bottom: 1px solid #03594d;
}

.heure p{
    color: #f4ffd7;
    background-color: #e591cb;
    padding: 10px 20px;
    border-radius: 50px;
}

.programme{
    color: #e591cb;
    font-size: 1.7em;
}

                                    /* HISTORIQUE */

#historique{
    background-color: #fad062;
    text-align: justify;
    font-family: "Brice Light", sans-serif;
}

#historique-content{
    margin: auto;
    width: 70%;
    columns: 2;
    column-gap: 40px;
    padding-bottom: 35px;
}
h3{
    font-family: "Brice Bold", sans-serif;
    margin-top: 5px;

}
#saut{
    break-before: column;
}


                                        /* FOOTER */
#contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 30px 0;
}

#contact-info a{
    background-color: #e591cb;
    display: flex;
    align-items: center;
    width: 300px;
    text-align: center;
}

#contact-info img{
    width: 30px;
    margin-right: 10px;
    height: auto;
    vertical-align: middle;
}

h3{
    margin-top: 10px;
}

#contact-info div{
    display: flex;
    flex-direction: row;
    color: #2373b6;
}
#contact-info div p{
    border: 2px solid #2373b6;
    margin: 20px 10px;
    padding: 10px 15px;
    border-radius: 50px;
}

/* Carousel infini des sponsors */
#sponsors {
    background-color: white;
    overflow: hidden;
    padding: 20px 0;
    display: flex;
    align-items: center;
}

#sponsors-wrapper {
    display: flex;
    gap: 30px;
    /* L'animation est gérée par JavaScript */
}

#sponsors img {
    width: auto;
    height: 100px;
    margin: 5px 10px;
    flex-shrink: 0;
}

                                        /* Responsive */
@media (max-width: 900px) {
    header{
        height: 100px;
    }
    header #logodrago{
        height: 150px;
        top: 110%;
    }
    #en-tete{
        height: 600px;
        background-position: center top;
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),url("img/fondHeader2.webp");
    
    }
    header nav a {
        margin: 0 10px;
        padding: 8px 20px;
        font-size: 1em;
    }
    #description-container {    
        flex-direction: column;
    }               
    #carousselIMG {
        max-width: 100%;
    }

    #infos .cartes {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    #horaire {
        width: 70%;
    }
    #horaire-content div p{
        margin: 10px;
        width: auto;
        padding: 20px;
    }
    #horaire-content div a{
        margin: 10px;
        line-height: 2px;
        padding: 20px;

    }
    .programme{
        font-size: 1.3em;
    }
    #historique-content {
        columns: 1;
        margin: 25px ;
        width: auto;
    }  
    #saut{
        break-before: auto;
    }
    #contact-info div {
        flex-wrap: wrap;
        justify-content: center;
    }
    #contact-info div p{
        margin: 15px 10px;
        flex: 0 0 auto;
        text-align: center;
    }
}

@media (max-width: 600px) {
    header{
        height: 100px;
        padding: 10px 5px;
    }
    header nav{
        padding: 0;
    }
    header nav a {
        margin: 0 5px;
        padding: 10px;
        font-size: 0.9em;
    }
    header nav a#boutonbleu,
    header nav a#boutonrose {
        font-size: 0;
    }
    header nav a#boutonbleu img,
    header nav a#boutonrose img {
        display: block;
        width: 40px;
        height: 40px;
    }

    #en-tete{
        background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("img/fondHeaderMob.webp");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 800px;
        display: flex;
        align-items: center;
        text-align: center;
    }

    #en-tete div {
        margin: 0 10px;
        width: 100%;
    }
    #en-tete div p{
        font-size: 2em;
    }
    #en-tete div #edition{
        text-align: center;
        margin-bottom: 0;
    }
    #en-tete div img{
        width: 100%; 
        height: auto;
    }  

    #infos .carte-Infos{
        width: 70%;
        height: 90%;
    }
    #horaire {
        width: 90%;
        padding: 50px 20px 100px 20px;
    }
    #horaire-content div p {
        margin: 0px 5px;
        padding: 15px;
        font-size: 1em;
        line-height: 15px;
    }
    #horaire-content div img{
        display : none;
    }
    #horaire-content div a {
        margin: 4px;
        width: auto;
        padding: 15px;
        font-size: 1em;
        line-height: 5px;
    }
}

@media (max-width: 480px) {
    body{
        width: 100%;
    }
    /* Réduire la boucle (mask) sur petits écrans */
    section{
        --mask:
        radial-gradient(45.3px at 50% 63.8px,#000 99%,#0000 101%) calc(50% - 58px) 0/116px 51% repeat-x,
        radial-gradient(45.3px at 50% -34.8px,#0000 99%,#000 101%) 50% 29px/116px calc(51% - 29px) repeat-x,
        radial-gradient(45.3px at 50% calc(100% - 63.8px),#000 99%,#0000 101%) calc(50% - 58px) 100%/116px 51% repeat-x,
        radial-gradient(45.3px at 50% calc(100% + 34.8px),#0000 99%,#000 101%) 50% calc(100% - 29px)/116px calc(51% - 29px) repeat-x;
    -webkit-mask: var(--mask);
            mask: var(--mask);
    }

    h2{
        font-size: 2em;
    }
    header{
        height: 90px;
    }
    header img{
        height: 60%;
    }
    header #logodrago{
        
        height: 90px;
        top: 110%;
        padding: 10px;
    }

    #en-tete{
        min-height: 600px;
    }

    #description {
        padding: 30px;
    }

    #description-text p {
        font-size: 0.9em;
        height: 100%;
    }
    #carousselIMG {
        margin-bottom: 10px;
    }
    #infos{
        margin: 40px 0;
    }
    #infos .cartes {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
        justify-items: center;
    }
    .carte-Infos {
        width: 70%;
        height: auto;
        padding: 10px;
        margin: 10px;
    }
    .contenu-normal{
        gap: 10px;
    }
    .contenu-normal img {
        width: 70px;
    }
    
    .heure p {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    .periodes p {
        padding: 8px 12px;
    }
    .programme {
        font-size: 1em;
        text-align: left;
    }
    #historique {
        padding: 30px 10px;
    }
    #historique-content {
        columns: 1;
    }
    #contact-info div p{
        margin: 10px 5px;
    }

    #contact-info a {
        width: 80%;
        justify-content: center;
        padding: 10px;
        margin: 5px 0;
        font-size: 1em;
    }
    #sponsors img {
        height: 70px;
    }
}
