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

/* Body */
body {
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #0000FF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto; /* Permet le défilement vertical */
}

/* SECTION 1 : Header + Vidéo et texte */
.section-1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* min-height: 100%; */
    justify-content: center;
}
.section-1 .section-title{
    display: none;
}
/* HEADER : Titre du projet avec boutons */
.project-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0000FF;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

/* Boutons du header */
.header-buttons {
    display: flex;
    align-items: center;
    small{
        display: none;
    }
}

.header-buttons .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #0000FF;
    background-color: #FFF;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-buttons .btn:hover {
    background-color: #EEE;
    transform: scale(1.05);
}

.header-buttons .btn:active {
    background-color: #CCCCCC;
    transform: scale(0.95);
}

/* Titre du projet centré */
.project-title {
    font-family: "map-roman-compressed", serif;
    font-weight: normal;
    font-size: 2.5rem;
    color: #FFFFFF;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    text-decoration: none;
}
.project-title a {
text-decoration: none;
color: #FFF;
}

/* Content inside Section 1 */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    padding: 1rem;
}

/* Video Container */
.video-container {
    flex: 7;
    max-width: 70%;
    background-color: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
    border: 1px solid #CCCCCC;
    
}

/* Vidéo */
.video-container {
   
    max-width: 70%;
    aspect-ratio: 16 / 9;
    margin-left: 20px; /* Appliquer la même marge que le texte */
    margin-right: 40px; /* Appliquer la même marge que le texte */
}

.video-placeholder {
    font-size: 1.5rem;
    color: #CCCCCC;
    text-align: center;
}

/* Text Container */
.text-container {
    flex: 3;
    padding: 20px;
    max-width: 30%;
}

.text-container h2 {
    font-family: "map-roman-compressed", serif;
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.text-container p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body{
        margin-top: 8rem;
    }
    .project-header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;

    }
    .project-header>.project-title{
        width: 100%;
        order:-1;
    }
    .project-header a .prevNext{
        display: none;
    }
    .project-header .header-buttons a small{
        display: inline-block;
    }
    .content {
        margin-top: 4rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .video-container {
        width: 90%;
        
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        margin-bottom: 20px;


    }
 

    .text-container {
        max-width: 100%;
        text-align: center;
    }
}

/* SECTION 2 : Galerie d'images */
.section-2 {
    display: flex;
    flex-direction: column;
   min-height: 100vh;
   justify-content: center;
    padding: 20px;
    background-color: #FFF;
}

/* Structure de contenu (texte + galerie) */
.section-2 .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Texte */
.text-container {
    flex: 3;
    max-width: 30%;
    padding: 20px;
    padding-left: 0;
}

.text-container h2 {
    font-family: "map-roman-compressed", serif;
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.text-container p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Galerie d'images */
.image-gallery {
    flex: 7;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crée 6 colonnes */
    grid-template-rows: repeat(2, auto); /* 2 lignes automatiques */
    gap: 10px; /* Espacement entre les images */
}

/* Éléments individuels de l'image */
.image-item {
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    
}

/* Images */
.image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Crée 3 colonnes */
    grid-template-rows: repeat(2, auto); /* 2 lignes automatiques */
    gap: 15px;
}
.image-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}
.image-item img, 
.image-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    
}
/* Footer global */
.footer {
    background-color: #0000FF;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    flex-wrap: nowrap; /* Empêche l'empilement */
}

.footer-section {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Copyright section at the bottom */
.copyright {
    margin-top: auto; /* Pushes it to the bottom */
    font-size: 0.9rem;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons img {
    border-radius: 0;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.pswp__iframe-container>iframe,
.pswp__iframe-container{
    min-width: 100%;
    min-height: 100%;
    border:none;

}
.jeudi-link {
    color: #9797ff;
    font-weight: normal;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
    
}

.jeudi-link:hover {
    color: #0000FF;
    border-bottom: 2px solid #0000FF;
    font-weight: bold; /* Ajout du gras uniquement au hover */
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .text-container {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .image-gallery {
        grid-template-columns: repeat(1, 1fr); /* 2 colonnes sur petits écrans */
        grid-template-rows: auto;
        width: 100%;
    }
    .footer-container{
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .section-1 .text-container{
        padding-left: 20px
    }
    .section-2 .text-container{
        padding-right: 0;
    }
    .content .image-gallery{
        order:-1;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        
        text-align: center;
    }

    .footer-container .copyright{
        order:3;
    }

    .footer-section {
        max-width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.8rem;
    }
    .section-1{
        min-height: 100vh;
    }
}