body {
    font-family: "Gluten", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "slnt" 0;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #d8bfde;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-image: url('Images/font.jpg');
    background-size: cover; /* Pour couvrir toute la zone */
    background-position: center; /* Centre l'image */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    position: relative;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* Inclut le padding dans les dimensions */
    overflow: hidden; /* Empêche le débordement de contenu */
    margin: 0 auto; /* Centre le contenu horizontalement */
}

header .overlay {
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto; /* Centre le contenu horizontalement */
}

header h1 {
    color: #ffc13d;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre portée */
    margin: 0;
}

header h2 {
    color: #ffffff;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre portée */
    margin: 10px 0;
}

header p {
    color: #ffffff;
    font-size: 1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Ombre portée */
    margin: 10px 0;
}

.responsive-image {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto; /* Centre l'image */
}

/* Styles pour la section vidéo */
.video-section {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.video-section h3 {
    text-align: center;
    color: #ff5722;
}

.video-section video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 350px; /* Ajuste cette valeur selon tes besoins */
    object-fit: contain; /* Assure que la vidéo est contenue sans être coupée */
}

/* Styles pour la galerie photo */
.photo-gallery {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.photo-gallery h3 {
    text-align: center;
    color: #ff5722;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
}

.thumbnail {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background-image: url('Images/footer.png');
    background-size: cover; /* Change from contain to cover for full width */
    background-repeat: no-repeat; /* L'image ne sera pas répétée */
    background-position: center; /* Ensure it is centered */
    width: 100%; /* Ensure it takes full width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #6d00bd;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

#unique-paragraph {
    font-size: 0.8em; /* Réduit la taille du texte */
}

.letter {
    font-size: 2em; /* Ajuste la taille de la police selon ton besoin */
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.letter:hover {
    transform: scale(1.2); /* Agrandit la lettre au survol */
}

/* Responsive Design */
@media (min-width: 769px) {
    header {
        height: 100%;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1.5em;
    }

    header p {
        font-size: 0.9em;
    }

    .video-section, .photo-gallery {
        width: 100%;
        padding: 10px;
    }

    .modal-content {
        width: 90%;
    }

    .letter {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    header {
        height: auto;
        padding: 5px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header h2 {
        font-size: 1.2em;
    }

    header p {
        font-size: 0.8em;
    }

    .video-section, .photo-gallery {
        width: 100%;
        padding: 5px;
    }

    .modal-content {
        width: 95%;
    }

    .letter {
        font-size: 1.2em;
    }
}
