body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: #ffffff;
    letter-spacing: 3px;
}

/* HEADER */

header {
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-weight: 100;
}

.logo img {
    max-width: 100px; /* Ajustez la taille de votre logo selon vos besoins */
    margin-right: 15px;
    margin-left: 15px;
}

.title h1 {
    font-size: 24px;
    margin: 0;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

/*main {
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: black; 
    text-align: left; 
    font-family: Futura, sans-serif; 
    font-size: 32px; 
    letter-spacing: 3px; 
    text-decoration: none; 
} */

/* HOME PAGE */

h2 {
    text-align: left; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 28px; 
    letter-spacing: 4px; 
    text-decoration: none;
    display: inline-block;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.default-image {
    position: relative;
    z-index: 1;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.image-container:hover .hover-image {
    opacity: 1;
}

.image-container:hover .default-image {
    opacity: 0;
}

.image-container h2 {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0);
    color: white;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    text-align: left;
    width: auto; /* Ajustement automatique de la largeur */
    white-space: nowrap; /* Empêche le renvoi à la ligne */
}

.image-container:hover h2 {
    display: block;
    /*position: absolute;*/
    z-index: 3;
}

/* Contact rectangle - hidden by default */
.contact-rectangle {
    display: none;
    background-color: black;
    color: white;
    padding: 20px 40px 20px 20px;
    text-align: left; 
    width: 300px;
    position: fixed; /* Fixes the position on the screen */
    top: 100px; /* Distance from the top */
    right: 20px; /* Aligns the rectangle to the right */
    border: 1px solid white;
    z-index: 9999;
}

.contact-rectangle p {
    margin: 0;
}

.contact-rectangle a {
    color: white;
    text-decoration: none;
}

.contact-rectangle a:hover {
    color: #ef5a6f;
}

/* Add a small transition for the appearance of the rectangle */
.contact-rectangle.show {
    display: block;
    transition: opacity 0.3s ease;
}

/* ABOUT */


.home-link {
    color: #ffffff;
    text-decoration: none;
    margin: 15px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.description {
    margin-bottom: 30px;
    text-align: justify;
}

.members {
    display: flex;
    justify-content: space-between;
    position: relative;
    /*background-image: url('images/logo.png');
    background-repeat: repeat; Répète l'image en tapisserie 
    background-size: 400px 400px; 
    background-size: cover;*/
    background-position: center;
    padding: 10px; 
}


.member {
    flex: 1;
    margin: 0 20px;
    position: relative;
    margin-bottom: 150px;
}

.member:first-child {
    margin-left: 0; /* Aucune marge à gauche pour le premier membre */
}

.member h2 {
    margin-bottom: 10px;
    color: white;
    text-align: left; 
    text-decoration: none;
    background-color: rgba(0, 0, 0);
    color: white;
    padding: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    text-align: left;
}

.keywords {
    position: absolute;
    bottom: -150px;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: white;
    text-align: left; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 28px; 
    letter-spacing: 4px; 
    text-decoration: none;
}

.member:hover .keywords {
    opacity: 1;
    transform: translateY(-30px);
}

.keywords li {
    list-style-type: none;
    font-size: 14px;
}

/* Style for the footer */
.contact {
    border: 2px solid white; 
    padding: 10px;
    text-align: center;
    background-color: black; 
    color: white; 
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition effect */
    margin-top: 40px;
    font-size: 18px;
    line-height: 1.8;
}

/* Hover effect for the footer */
.contact:hover {
    background-color: white; 
    color: black; 
}

/* Links default styling */
.contact a {
    color: #ef5a6f;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Links hover styling */
.contact a:hover {
    font-weight: bold;
}


.arrow {
    font-size: 0.8em;
    margin-left: 10px;
    color: #ef5a6f; /* Vous pouvez ajuster la couleur selon votre design */
    transition: transform 0.3s;
}

.member:hover .arrow {
    transform: rotate(180deg);
}

/* Add the animation for showing the keywords */
@keyframes showKeyword {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add the animation for hiding the keywords */
@keyframes hideKeyword {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Initially hide the keywords */
.member .keywords {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.member:hover .keywords {
    opacity: 1;
    transform: translateY(0);
}

.keyword {
    opacity: 0;
}

.keyword.show {
    animation: showKeyword 0.5s forwards;
}

.keyword.hide {
    animation: hideKeyword 0.5s forwards;
}

.description{
    font-family: 'Montserrat', sans-serif; 
    letter-spacing: 3px; 
}

/* ANDROMAQUE */

.andromaque-body {
    background-color: white;
    color: #000000;
}


/* Grid container styling */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.grid-item {
    padding: 20px;
    /*border: 1px solid #ccc; */
    /*border-radius: 5px;*/
}

/* Background colors for sections */
.white-background {
    background-color: white;
    color: black;
}

.white-background h2{
    border-bottom: 2px solid #000;
}

.black-background {
    background-color: black;
    color: white;
}

.black-background h2{
    border-bottom: 2px solid #fff;
}

/* General section styling */
h2 {
    font-size: 22px;
    padding-bottom: 5px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 18px;
}

ul li a:hover {
    text-decoration: underline;
}

/* Description Section */
.description-andromaque p {
    text-align: justify;
    letter-spacing: 4px; 
}

/* Historique Section */
.historique ul li {
    font-size: 18px;
    padding: 5px 0;
}

/* Galerie Section */
.galerie .gallery-container {
    position: relative; /* Nécessaire pour positionner les flèches absolument */
    overflow-x: auto;
    display: flex;
    white-space: nowrap;
}

.galerie .gallery-scroller {
    display: flex;
}

.galerie .gallery-scroller-wrapper {
    display: flex;
    align-items: center; 
}

.galerie .gallery-scroller img {
    max-height: 200px; /* Limite la hauteur des images */
    max-width: 100%; /* Limite la largeur des images */
    width: auto; /* Ajuste la largeur automatiquement */
    height: auto; /* Ajuste la hauteur automatiquement */
    margin-right: 10px;
    transition: transform 0.3s ease;
    object-fit: contain; /* S'assure que l'image s'adapte bien */
    cursor: pointer;
}

.galerie .gallery-scroller-big {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth; /* Ajoute un effet de défilement fluide */
}

.galerie .gallery-scroller-big img {
    max-height: 350px; /* Limite la hauteur des images */
    max-width: 100%; /* Limite la largeur des images */
    width: auto; /* Ajuste la largeur automatiquement */
    height: auto; /* Ajuste la hauteur automatiquement */
    margin-right: 10px;
    transition: transform 0.3s ease;
    object-fit: contain; /* S'assure que l'image s'adapte bien */
    cursor: pointer;
}



.galerie .gallery-scroller img:hover {
    transform: scale(1.05);
}



/* Lightbox styles */

.lightbox {
    display: none; /* Masquer la lightbox par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* Lightbox image */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain; /* Conserve le ratio d'aspect */
}

/* Close button */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Positionnement des flèches */
.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}


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


/* Empty Section */
.empty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les images */
}

.empty-img {
    max-height: 300px;
    width: auto;
}

/* Links Section */
.liens {
    color: white;
    padding: 40px;
    text-align: center;
}

.liens h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.liens ul {
    list-style: none;
    padding: 0;
}

.liens ul li {
    margin-bottom: 10px;
}

.liens ul li a {
    display: block;
    padding: 10px 20px;
    background-color: #fff;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s ease;
}

.liens ul li a:hover {
    background-color: #777777;
}

.liens .links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.link-icon {
    font-size: 24px;
    margin-right: 10px;
}

.link-text {
    font-size: 18px;
}

/* ANDROMAQUE RELOADED */ 
body.andromaque-reloaded-body {
    margin: 0;
    padding: 0;
}

.desc {
    text-align: justify;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.left-column-rel,
.right-column-rel {
    display: flex;
    flex-direction: column;
    width: 48%;
}


.left-column-rel {
    width: 70%; 
}

.right-column-rel {
    width: 25%; 
}

.grid-item-rel {
    margin-bottom: 20px;
    padding: 20px;
}

.image-section-rel {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-section-rel img {
    width: 60%;
    height: auto;
    margin: 0 auto;
    transition: transform 0.1s;
}

.image-section-rel img.glitched {
    content: url('images/relf/glitched_and4.jpg');
}

.white-border {
    border: 2px solid #ffffff;
    background-color: #000000;
    color: #ffffff;
    border-radius: 10px;
}


.trailer-text-rel {
    position: absolute;
    top: 47%;
    left: 37%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.1s ease;
    font-family: 'Montserrat', sans-serif;
}

.image-container-rel:hover .trailer-text-rel {
    opacity: 1;
}

/* MAXINE//BETHANIE */

video {
    width: 100%; 
    height: auto; /* Ajuste la hauteur en fonction de la largeur pour maintenir les proportions */
    outline: none; /* Enlève le contour */
    pointer-events: auto; /* Désactive les interactions de souris pour cacher les contrôles */
}

video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls-enclosure {
    display: none !important;
}
video::-webkit-media-controls-play-button {
    display: none !important;
}
video::-webkit-media-controls-volume-slider {
    display: none !important;
}
video::-webkit-media-controls-mute-button {
    display: none !important;
}
video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}
video::-webkit-media-controls-timeline {
    display: none !important;
}
video::-moz-media-controls {
    display: none !important;
}

.maxine-header {
    background-image: url('images/mb/CPE08307.webp');
    background-size: cover;
    background-position: center 60% ;
}

/* Hover effect */
.more-links:hover {
    background-color: white;
    color: black;
    border-color: black;
    text-align: center;
}



/* CAN SHE SPEAK ? */

/* Container for side-by-side grid items */
.csp-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

/* Style for the grid items in the CSP section */
.grid-item-csp {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    border: 1px solid #fff; /* You can adjust the border color */
    background-color: #000; /* You can adjust the background color */
}

/* Ensure the items are of equal height */
.grid-item-csp.white-border {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.grid-item-csp h2 {
    margin-top: 0;
}

/* Add media query for responsiveness */
@media (max-width: 768px) {
    .csp-container {
        flex-direction: column;
    }

    .grid-item-csp {
        margin-bottom: 20px;
    }
}

/* Style for the Dossier Complet box */
.dossier-complet {
    margin-top: 20px;
    padding: 20px;
    background-color: #000; 
    border: 1px solid #fff; 
    text-align: center; 
    border-radius: 10px; 
    margin: 0 10px;
}

.dossier-complet a {
    color: #fff; 
    text-decoration: none; /* Remove underline */
    font-weight: bold;
}

/* Hover effect */
.dossier-complet:hover {
    background-color: #fff; /* Background becomes white */
}

.dossier-complet:hover a {
    color: #000; /* Text becomes black */
}

/* Responsive design */
@media (max-width: 768px) {
    .dossier-complet {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.small-text {
    font-size: 0.8em; /* Réduit la taille du texte à 80% de la taille de base */
    font-weight: normal; /* Rend le texte non gras */
}

/* MOBILE VERSION */

@media only screen and (max-width: 768px) {
    body {
        font-size: 14px; /* Ajuster la taille de la police pour les petits écrans */
        padding: 0px;
        font-family: 'Montserrat', sans-serif; 
        letter-spacing: 2px;
    }

    header {
        padding: 0px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo img {
        max-width: 80px; /* Taille réduite du logo sur mobile */
    }

    .title h1 {
        font-size: 20px; /* Taille réduite du titre sur mobile */
        text-align: center;
    }

    .links a {
        margin-right: 10px;
        font-size: 14px; /* Taille réduite des liens sur mobile */
    }

    nav ul {
        flex-direction: column;
        text-align: right;
        font-size: 14px;
    }

    .image-container {
        width: 100%; /* Garder 100% de la largeur de l'écran */
        overflow: hidden; /* Assurer que l'image ne dépasse pas du conteneur */
    }


    .image-container h2 {
        display: block;
        top: 0px; 
        left: 0px; 
        transform: none;
        font-size: 12px;
        padding: 5px;
        background-color: rgba(0, 0, 0);
        z-index: 3;
    }


    .section-image {
        width: 150%; /* Augmenter la largeur de l'image pour couper les bords */
        height: auto;
        margin-left: -25%; /* Centrer l'image en la décalant vers la gauche */
        object-fit: cover; /* Recadrer l'image pour qu'elle couvre tout le conteneur */
    }

    /*about*/
    p {
        font-family: 'Montserrat', sans-serif; 
        letter-spacing: 3px; 
    }


    .members {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .member {
        margin: 0 0 100px 0; 
    }
    .member h2 {
        font-size: 20px; 
        text-align: center; 
        margin-bottom: 10px; /* Espacement en dessous */
    }


    .keywords {
        font-size: 18px; 
        bottom: -130px; /* Ajustement de la position */
        letter-spacing: 8px;
        text-align: center;

    }

    .description {
        font-size: 14px;
        letter-spacing: normal;
    }

    .contact {
        text-align: left; 
        padding: 20px; /* Ajouter du padding pour un meilleur espacement */
        margin: 0 auto; /* Centrer la section */
        font-size: 14px;
    }

    .contact-rectangle {
        width: 250px;
        padding: 5px;
    }


    .maxine-header h1{
        font-size: 20px;
    }
    .andromaque-reloaded-body h1{
        font-size: 15px;
    }


    .flex-container {
        flex-direction: column;
        padding: 5px;
    }

    .left-column-rel, .right-column-rel {
        width: 100%;
    }
    
    .grid-item-rel {
        margin-bottom: 10px;
        padding: 8px;
    }
    .grid-item-rel h2{
        font-size: 14px;
        text-align: center;
    }
    .grid-item-rel p{
        font-size: 10px;
    }
    .grid-item-rel ul{
        font-size: 10px;
    }
    .grid-item-rel a{
        font-size: 10px;
    }

    .gallery-scroller img {
        max-height: 50px; /* Limite plus petite pour les images */
    }

    .gallery-scroller-big img {
        width: 150px;
        margin: 2px; 
    }

    .lightbox-content {
        max-width: 80%;
        max-height: 80%;
    }

    .liens h2 {
        font-size: 24px; /* Taille réduite des titres dans la section des liens */
    }

    .liens ul li a {
        font-size: 16px;
    }


    .image-section-rel img {
        width: 90%; /* Ajustement de la taille des images sur mobile */
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0px;
        padding: 10px;
    }
    
    .grid-item {
        padding: 5px;

    }
    
    .white-background, .black-background h2{
        font-size: 14px;
    }
    .white-background, .black-background p{
        font-size: 10px;
    }
    .white-background, .black-background ul{
        font-size: 10px;
    }
    .empty-img {
        max-width: 100px;
        height: auto;
    }

    video {
        width: 100%;
        height: auto;
    }

    .csp-container {
        flex-direction: column;
    }

    .grid-item-csp {
        margin-bottom: 20px;
    }
}
