/*
  ==============================================
  Règle universelle pour le box-sizing
  ==============================================
*/
* {
    box-sizing: border-box; /* Inclut padding et border dans la largeur et la hauteur */
}

/*
  ==============================================
  Styles de base (pour les plus petits écrans)
  ==============================================
*/

body {
    background-color: black;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* Header sur mobile: logo en haut, "About" en bas */
.header {
    background-color: transparent;
    padding: 30px 10px;
    font-family: sans-serif;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header .logo {
    margin: 0;
}

.img-logo {
    height: 25px;
    width: auto;
}

.header .navigation {
    display: none; /* Cache le lien "About" sur mobile */
}

/* Style de l'icône de menu */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: white;
}

/* Style du menu déroulant (masqué par défaut) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    color: black;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    /* Propriétés pour l'animation de fondu */
    visibility: hidden; /* Rend l'élément non cliquable */
    opacity: 0; /* Le rend complètement transparent */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Ajoute une transition douce */
}

/* Classe pour afficher le menu */
.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.mobile-menu .close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    height: 100%;
}

.mobile-menu a {
    text-decoration: none;
    color: inherit;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.5;
}

.header .navigation a {
    font-size: 16px;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.header .navigation a:hover {
    color: #555;
}

/* Grille sur mobile: une seule colonne de pleine largeur */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 3px ;
    background-size: cover;
    background-position: center;
    background-color: #333;
    padding: 0px;
    min-height: 250px;
    min-width: unset;
    grid-column: span 1;
    grid-row: span 1;
}

/* Définition des images de fond pour mobile par défaut */
.gallery-item.large { background-image: url('Images/Cover/Lostone-cover.png'); }
.gallery-item.tall { background-image: url('Images/Cover/rollup-clubmed-cover-phone.png'); }
.gallery-item.small:nth-of-type(3) { background-image: url('Images/Cover/motion-clubmed-cover.png'); }
.gallery-item.medium:nth-of-type(4) { background-image: url('Images/Cover/cadre-clubmed-cover.png'); }
.gallery-item.medium:nth-of-type(5) { background-image: url('Images/Cover/dailyvintage-cover.png'); }
.gallery-item.medium:nth-of-type(6) { background-image: url('Images/Cover/ministere-cover.png'); }
.gallery-item.large:nth-of-type(7) { background-image: url('Images/Cover/flyer-clubmed-cover.png'); }
.gallery-item.small:nth-of-type(8) { background-image: url('Images/Cover/tuilerie-cover.png'); }
.gallery-item.small:nth-of-type(9) { background-image: url('Images/Cover/Email-clubmed-cover.png'); }
.gallery-item.tall:nth-of-type(10) { background-image: url('Images/Cover/bueno-cosmetic-phone-cover.png'); }
.gallery-item.large:nth-of-type(11) { background-image: url('Images/Cover/eachike-cover.png'); }
.gallery-item.small:nth-of-type(12) { background-image: url('Images/Cover/nuances-cover.png'); }
.gallery-item.medium:nth-of-type(13) { background-image: url('Images/Cover/vitrophanie-cover.png'); }
.gallery-item.medium:nth-of-type(14) { background-image: url('Images/Cover/calendrier-cover.png'); }
.gallery-item.medium:nth-of-type(15) { background-image: url('Images/Cover/magazine-cover.png'); }

/* Styles pour l'effet de survol */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Surcouche sombre par défaut */
    transition: background-color 0.3s ease; /* Transition douce */
    z-index: 1; /* S'assure que la surcouche est au-dessus de l'image */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligne le contenu en bas */
    padding: 10px; /* Ajoute un padding à l'intérieur de l'overlay */
}

/* Au survol, l'overlay devient transparent */
.gallery-item:hover .overlay {
    background-color: rgba(0, 0, 0, 0);
}

.gallery-item .overlay p {
    position: relative;
    z-index: 2; /* S'assure que le texte reste visible au-dessus de l'overlay */
    color: white;
}

/* Les classes de taille sont ignorées sur mobile */
.gallery-item.large,
.gallery-item.tall,
.gallery-item.medium,
.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    padding: 10px;
}

.overlay .title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.overlay .subtitle {
    font-size: 12px;
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}




.content {
    text-align: center; /* Centre le texte horizontalement */
    max-width: 800px; /* Définit une largeur maximale pour le bloc de texte */
    margin: 0 auto; /* Centre le bloc de texte sur la page */
    padding: 20px;
}

.content-contact {
    text-align: center;
    max-width: 800px;
    margin: 200px auto 0 auto; /* ↑ espace au-dessus */
    padding: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.5em;
}

.email-link {
    color: white;
    text-decoration: none;
    position: relative;
    font-size: 1em;
}

.email-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px; /* un peu sous le texte */
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.4s ease;
}

.email-link:hover::after {
    width: 100%;
}

#footer {
    text-align: center;
    color: white; /* si tu veux qu'il soit visible sur fond noir */
    margin: 20px 0; /* espace au-dessus et en dessous */
    font-size: 0.9em;
}


/*
  ==============================================
  Media Query pour Tablettes (min-width: 769px)
  ==============================================
*/
@media screen and (min-width: 769px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 30px 20px;
    }


    .header .logo {
    margin: 0;
    }

.img-logo {
    height: 40px;
    width: auto;
    }
  
    
    .gallery {
        padding: 20px;
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }

    
    .gallery-item.large {
        grid-column: span 2;
    }
}


/*
  ==============================================
  Media Query pour Grands écrans (min-width: 1025px)
  ==============================================
*/
@media screen and (min-width: 1025px) {


    .header .navigation {
        display: flex; /* Affiche le lien "About" sur grands écrans */
         gap: 20px; 
    }

      .menu-icon {
        display: none; /* Cache l'icône sur desktop */
    }

      .img-logo {
    height: 50px;
    width: auto;
    }   

    .header .logo {
    margin: 0;
    }
    
    .gallery {
        padding: 20px;
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        grid-auto-rows: 25vw;
    }

    .gallery-rollup-clubmed {
        padding: 20px;
        grid-template-columns: repeat(4, minmax(200px, 1fr));
        grid-auto-rows: 25vw;
    }

    /* Définition des images pour le format desktop */
    .gallery-item.large { background-image: url('Images/Cover/Lostone-cover.png'); }
    .gallery-item.small:nth-of-type(3) { background-image: url('Images/Cover/motion-clubmed-cover-desktop.png'); }
    .gallery-item.tall { background-image: url('Images/Cover/rollup-clubmed-cover.png'); }
    .gallery-item.medium:nth-of-type(4) { background-image: url('Images/Cover/cadre-clubmed-cover.png'); }
    .gallery-item.small:nth-of-type(8) { background-image: url('Images/Cover/tuilerie-cover-desktop.png'); }
    .gallery-item.small:nth-of-type(9) { background-image: url('Images/Cover/Email-clubmed-cover-desktop.jpg'); }
    .gallery-item.tall:nth-of-type(10) { background-image: url('Images/Cover/bueno-cosmetic-cover.png'); }
    .gallery-item.large:nth-of-type(11) { background-image: url('Images/Cover/eachike-cover.png'); }
    .gallery-item.small:nth-of-type(12) { background-image: url('Images/Cover/nuances-cover-desktop.png'); }
    .gallery-item.medium:nth-of-type(13) { background-image: url('Images/Cover/vitrophanie-cover.png'); }
    .gallery-item.medium:nth-of-type(13) { background-image: url('Images/Cover/vitrophanie-cover.png'); }

    /* Répétez ce schéma pour toutes les images */
    
    .gallery-item.large {
        grid-row: span 2;
        grid-column: span 3;
    }
    
    .gallery-item.tall {
        grid-row: span 3;
        grid-column: span 1;
    }
    
    .gallery-item.medium {
        grid-row: span 1;
        grid-column: span 2;
    }
    
    .gallery-item.small {
        grid-row: span 1;
        grid-column: span 1;
    }


  
}