@font-face {
    font-family: Apfel;
    src: url(/assets/TYPO/ApfelGrotezk-Regular.otf);
}
@font-face {
    font-family: Expo;
    src: url(/assets/TYPO/Exposure.otf);
}

@font-face {
    font-family: Expo30;
    src: url(/assets/TYPO/Exposure30.otf);
}

/* COULEUR */

.sujettesCouleur {
    background-color: #F2E3DC;
    padding: 25px;
    margin: -25px;
}

/* Ensure images don't overflow their containers by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin-left: 25px;
    margin-bottom: 25px;
    margin-right: 25px;
    font-family: Apfel;
    box-sizing: border-box;
    background-color: #85D0FF;
    color: black;
    max-width: 100% !important;
}

a {
    text-decoration: none;
}
ul, ol {
    list-style: none;
}

li {
    list-style: none;
}

/* HEADER STYLES */
header {
    height: 120px;
    background-color:  #F2E3DC;
    margin: -25px;
    padding-right: 25px;
    padding-left: 25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 40px; 
    position: fixed;
    z-index: 3;
}

/* Header variant background color (beige) */
.header.header-journee {
    background-color: #85D0FF;
}

.hautgauche {
    font-family: Expo;
    font-size: 50px; 
}

.header.header-journee .hautgauche {
    font-family: Expo30;
    font-size: 24px;
    line-height: 1;
}
.header.header-journee .hautgauche h1,
.header.header-journee .hautgauche h1 a {
    padding: 0;
    display: block;

}

.hautdroit {
    padding-top: 15px;
    width: 50%;
    height: 100%;
    position: fixed;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: flex-end;
    right: 25px;
}

header a {
    color: black;
}

header a:hover {
    color: #FE7445;
}

.bouton-toggle {
    background-color: #85D0FF;
    border-radius: 0 29px 0 29px; 
    height: 106px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 58px;
    min-width: 160px;
    max-width: 480px;
    box-sizing: border-box;
    font-family: Expo30;
    font-size: 43px;
    line-height: 1;
    transition: all 0.3s ease;
}

.header.header-journee .bouton-toggle {
    background-color: #F2E3DC;
        font-family: Expo;
        font-size: 73px;

}


.bouton-toggle:hover {
    background-color: #FE7445;
    color: black !important;
}

.header.header-journee .bouton-toggle:hover {
    background-color:  #FE7445;
}

/* Desktop: hide mobile menu components */
.menuQueryToggle {
    display: none;
}

.menuQuery {
    display: none;
}

/* Reuse yellow archive button styles here so other templates can use the same look */
.archives-action-btn {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 88px;
    padding: 20px;
    border-radius: 0 28px 0 28px;
    background: #FE7445;
    font-family: Expo30;
    font-size: 34px;
    color: black;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.archives-action-btn:hover {
    transform: translateY(-4px);
    background: #3254FE;
}

/* HOME PAGE STYLES */
.block {
    height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
}

.block-full {
    height: 100vh;
    min-height: 100vh;
}


.lineSeparation{
    width: 100%;
    border-bottom: 4px solid black;
    margin: 25px auto; 
    display: flex;
    justify-content: center; 
    align-items: center;
}

.base{
    padding-top: 30vh;
}

.texte1 { 
    padding-left: 50%;
    font-size: 26px;
}

.journee {
    font-size: 10.4vw;
    line-height: 0.9;
    font-family: Expo30;
    text-align: left;
    position: absolute;
    bottom: 75px;
    left: 0;
    z-index: 1;
}

.motifHome{
    position: sticky;
    bottom: 0;
    height: 0;
    overflow: visible;
    z-index: 2;

    margin-right: -25px;
    margin-left: -25px;
}

.motifHome img{
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translateY(-100%);

}

.partie1 {
    gap: 25px;
    width: 100%;
    display: flex;
    margin-top: 25px;
    margin-bottom: 40px;
}

.home .home-two-columns > * {
    flex: 0 0 calc(50% - 12.5px);
    width: calc(50% - 12.5px);
}

.partie1 > * {
    flex: 1;
}


.partie2 {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 40px;
    font-size: 40px;
    align-items: center;
}

.home-extra-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.home-extra-sections .home-extra-section-card {
    flex: 0 0 calc(50% - 12.5px);
    width: calc(50% - 12.5px);
}

.date{
    font-size: 70px!important;
    line-height: 1;
}


.TexteCourant {
    font-size: 26px;
}

.TexteGros{
    font-size: 39px;
    width: 80vw;
    text-align: center;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.TexteGrosGauche{
    font-size: 39px;
    width: 80vw;
    text-align: left;
    margin: 0 auto;
    padding: 25px;
}

.video-container {
    padding-top: 120px;
    align-items: center;
    width: 100%;
    height: auto;
}

.video-container2 {
    align-items: center;
    width: 100%;
    height: auto;
}

.video {
    width: 100%;
    max-height: none;
    border-radius: 90px 0 90px 0;
    display: block;
}

.partenairesLogo{
        width: 100%;
        margin-left: -25px;
        margin-right: -25px;
        padding: 20px 25px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        background: transparent;
}
.partenairesLogo img{
        max-height: 40px; 
        width: auto;
        object-fit: contain;
        display: block;
}

.ligne-blanche {
    width: 100%;
    height: 4px;
    background-color: black;
    margin: 20px 0;
}

@media (max-width: 800px) {
    .partenairesLogo{
        justify-content: center;
    }
    .partenairesLogo img{
        max-height: 40px;
        margin: 8px;
    }
}




/* -----------------------------------------------------------FOOTER */

.footerquery{
    display: none;
}
.sitequery{
    display: none;
}

.motifFooter{
  height: 35vh;
  margin-left: -25px;
  margin-right: -25px;
}

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


/* Apply footer color specifically for the homepage */
body.home .footersujettes{
    background-color:  #FE7445;
}

footer {
    background-color: #FE7445; 
    color: black; 
    display: flex;
    justify-content: space-between;
    margin: -25px;
    padding:  25px;
    font-family: Apfel;
    box-sizing: border-box;
    padding-bottom: 6%;
  }
/* Alternate footer class that only changes background color */
footer.footer2 {
    background-color: #FE7445;
}
  .footer-left {
    width: 50%; 
    display: flex;
    gap: 20px;
  }
  .logo-text {
    display: flex;
    align-items: flex-start;
    font-family: Expo; 
  }

  .logo-text p {
    padding-right: 50px;
    font-size: 60px;
    margin: 0;
    align-self: top; 
  }
  .footer-pages li a {
    color: black; 
    font-size: 26px;
  }
  .footer-right {
    width: 50%; 
    display: flex;
    justify-content: flex-end; 
}
.social-buttons {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    gap: 15px;
}
.petitfooter{
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 18px;
  }

  .footer-pages li a:hover {
    color:#3254FE; /* Change la couleur du texte au survol */
}

  .date2{
    font-size: 4vw;
    line-height: 1;
  }  
    .cercle3 {
        width: 15vw; /* La largeur est définie en fonction de la largeur de la fenêtre */
        height: 15vw; /* La hauteur est égale à la largeur pour garder un cercle parfait */
        max-width: 250px; /* Limite la taille maximale des cercles */
        max-height: 250px;
        border-radius: 0 30% 0 30%;
        display: flex;
        justify-content: center; 
        align-items: center; 
        text-align: center;
        cursor: pointer;
        position: relative;
        background-color: none;
        color: black;
        border: 4px solid black;
        font-size: 36px;
    }
    .cercle3:hover {
    background-color:#3254FE;
        color: black;
        border: 2px solid #3254FE; 
    }
    .site{
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        background-color: #FE7445;
        padding:15px;
        margin: -25px;
    }
    .anais{
        display: flex;
        color: black;
        font-size: 10px;
    }

    .copy1{
        font-family: Apfel;
        margin-top: -10px;
        font-size: 8px;
        margin-bottom: 3px;
    }

/* ==================== MEDIA QUERIES FOR SMALL TO MEDIUM SCREENS ==================== */

/* Pour les écrans entre 800px et 1200px */
@media (max-width: 1200px) {
    body {
        margin: 10px;
    }
    
    header {
        height: 100px;
        font-size: 20px;
        display: flex;
        gap: 16px;
        padding: 10px;
        align-items: stretch;
        z-index: 500;
    }
    
    .hautgauche {
        flex: 1;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        font-family: Expo;
        font-size: 27px !important;
        line-height: 1;
        padding: 12px 40px;
    }

    .hautgauche h1,
    .hautgauche h1 a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hautdroit {
        display: none;
    }

    .menuQuery-toggle {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        min-height: 60px;
        background: #3254FE;
        color: black;
        border-radius: 0 29px 0 29px;
        font-family: Expo30;
        font-size: 15px;
        line-height: 1;
        padding: 12px 18px;
    }

    .header.header-journee .hautgauche {

        flex: 1;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        font-family: Expo30;
        font-size: 11px !important;
        line-height: 1;

    }

    .header.header-journee .menuQuery-toggle {
        font-family: Expo;
        font-size: 40px;
    }

    .menuQuery {
        display: block;
        position: absolute;
        top: 100px;
        left: 10px;
        right: 10px;
        width: auto;
        box-sizing: border-box;
        z-index: 400;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .menuQuery-links {
        display: flex;
        gap: 16px;
        padding: 10px;
        flex-wrap: nowrap;
    }

    .menuQuery-links a {
        flex: 1;
        background: #FE7445;
        color: black;
        border-radius: 0 29px 0 29px;
        font-family: Apfel;
        font-size:27px;
        line-height: 1.1;
        padding: 18px 14px;
        text-align: center;
        transition: background-color 0.2s ease;
    }

    .menuQuery-links a:hover {
        background: #3254FE;
    }

    .menuQuery-links a[aria-current="page"] {
        background: #FE7445;
    }


    .video-container{
        padding-top: 180px;
    }
/* BOUTONS */


.archives-action-btn{
    font-size: 27px;
    width: 100%;
}

.archives-close-row{
    top: 165px!important;
}


.ligne-blanche {
    height: 2px;
}

    /* PARTIE */
    

    .partie1{
        display: block;
    }

    .home .home-two-columns {
        display: block;
    }

    .home .home-two-columns > * {
        width: 100%;
        flex: 1 1 auto;
    }
    /* TEXTE STYLES */
    .journee {
        font-size: 55px;
    }
    
    .texte1 {
        font-size: 17px;
        align-items: start;
    }
    
    .date {
        font-size: 40px;
        align-items: start;
        margin-bottom: 25px;
    }

    .date2{
        margin-top: 60px;
    }
    
    .TexteGros {
        font-size: 25px;
    }

    .TexteGrosGauche {
        width:100vw;
        text-align: center;

}
    
    .TexteCourant {
        font-size: 17px;
    }
    
    .petittexte {
        font-size: 17px!important;
    }
    
    .titre {
        font-size: 6vw;
        font-family: Expo;
    }
    
    .espacement {
        margin-bottom: 5vh;
    }
    
    .cercle {
        width: 200px;
        height: 200px;
        font-size: 26px;
        bottom: 0;
    }
    
    /* FOOTER STYLES */
    footer {
        display: none;
    }
    
    .site {
        display: none;
    }
    
    .footerquery {
        display: block;
        background-color: #FE7445;
        color: black;
        margin: -10px;
        padding: 10px;
        font-family: Apfel;
        box-sizing: border-box;
    }
    .date{
        font-size: 40px!important;
        line-height: 1;
    }
    .date2 {
        font-size: 7vw;
    }
    
    .footer-pages li a {
        color: black;
        font-size: 3vw;
    }
    
    .footer-right {
        width: 100%;
    }
    
    .petitfooter {
        margin-top: 20px;
        margin-bottom: 40px;
        font-size: 2vw;
        color:black;
    }
    
    .social-buttons {
        display: flex;
        justify-content: space-between;
        padding-top: 10px;
    }
    
    .footer-right .cercle3 {
        width: 30vw;
        height: 30vw;
        max-width: 350px;
        max-height: 350px;
        border-radius: 0 40px 0 40px;
        justify-content: center;
        align-items: center;
        text-align: center;
        cursor: pointer;
        color:black;
        border: 2px solid black;
        font-size: 4vw;
        margin-top: 30px;
    }
    
    .cercle3 a {
        text-decoration: none;
        color: inherit;
    }
    
    .cercle3:hover {
        background-color: #3254FE; 
        color: #000000;
        border: 2px solid  #3254FE; 
    }
    
    .anais {
        color: black;
        font-size: 10px;
    }
    
    .sitequery {
        margin-top: 50px;
        background-color: #FE7445;
        display: flex;
        justify-content: space-between;
        gap: 15px;
        flex-wrap: wrap;
        width: 100%;
    }


    /* EDITION ARCHIVES */
    .archives-grid .image img {
        height: 60vh!important;
    }
}
