/*
  ==============================================
  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: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}

.gallery-frame-clubmed {
    display: grid;
    grid-template-columns: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}

.gallery-daily-vintage {
    display: grid;
    grid-template-columns: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}

.gallery-email-clubmed {
    display: grid;
    grid-template-columns: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}

.gallery-vitro-clubmed {
    display: grid;
    grid-template-columns: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
}

.gallery-magazine-alexey {
    display: grid;
    grid-template-columns: 4fr;
    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: 500px;
    min-width: unset;
    grid-column: span 2;
    grid-row: span 4;
}

/* Définition des images de fond pour mobile par défaut */
.gallery-item.small:nth-of-type(1) { background-image: url('Images/Rollup-clubmed/1.jpg'); }
.gallery-item.small:nth-of-type(2) { background-image: url('Images/Rollup-clubmed/2.jpg'); }
.gallery-item.small:nth-of-type(3) { background-image: url('Images/Rollup-clubmed/3.jpg'); }
.gallery-item.small:nth-of-type(4) { background-image: url('Images/Rollup-clubmed/4.jpg'); }
.gallery-item.small:nth-of-type(5) { background-image: url('Images/Rollup-clubmed/5.jpg'); }
.gallery-item.small:nth-of-type(6) { background-image: url('Images/Rollup-clubmed/6.jpg'); }
.gallery-item.tall:nth-of-type(1) { background-image: url('Images/Cadre-clubmed/1.png'); }
.gallery-item.tall:nth-of-type(2) { background-image: url('Images/Cadre-clubmed/2.png'); }
.gallery-item.tall:nth-of-type(3) { background-image: url('Images/Cadre-clubmed/3.png'); }
.gallery-item.medium:nth-of-type(4) { background-image: url('Images/Cadre-clubmed/4.png'); }
.gallery-item.large:nth-of-type(1) { background-image: url('Images/Daily-vintage/01.jpg'); }
.gallery-item.large:nth-of-type(2) { background-image: url('Images/Daily-vintage/02.jpg'); }
.gallery-item.large:nth-of-type(3) { background-image: url('Images/Daily-vintage/03.jpg'); }
.gallery-item.large:nth-of-type(4) { background-image: url('Images/Daily-vintage/04.jpg'); }
.gallery-item.tall.email:nth-of-type(1) { background-image: url('Images/email-clubmed/02.gif'); }
.gallery-item.large.email:nth-of-type(2) { background-image: url('Images/email-clubmed/01.jpg'); }
.gallery-item.tall.eachike:nth-of-type(1) { background-image: url('Images/Eachike/01.png'); }
.gallery-item.tall.eachike:nth-of-type(2) { background-image: url('Images/Eachike/02.png'); }
.gallery-item.tall.eachike:nth-of-type(3) { background-image: url('Images/Eachike/03.png'); }
.gallery-item.medium.eachike:nth-of-type(4) { background-image: url('Images/Eachike/04.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(1) { background-image: url('Images/vitro-clubmed/01.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(2) { background-image: url('Images/vitro-clubmed/02.png'); }
.gallery-item.medium.vitro-clubmed:nth-of-type(3) { background-image: url('Images/vitro-clubmed/03.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(4) { background-image: url('Images/vitro-clubmed/04.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(5) { background-image: url('Images/vitro-clubmed/05.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(6) { background-image: url('Images/vitro-clubmed/06.png'); }
.gallery-item.small.vitro-clubmed:nth-of-type(7) { background-image: url('Images/vitro-clubmed/07.png'); }
.gallery-item.large.alexey:nth-of-type(1) { background-image: url('Images/magazine-alexey/01.jpg'); }
.gallery-item.large.alexey:nth-of-type(2) { background-image: url('Images/magazine-alexey/02.jpg'); }
.gallery-item.medium.alexey:nth-of-type(3) { background-image: url('Images/magazine-alexey/03.jpg'); }



.onepic {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* 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;
}


/* Styles pour le conteneur vidéo */
.video-container {
    position: relative; /* Permet de positionner la vidéo de manière absolue */
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden; /* Cache tout ce qui pourrait déborder */
}

/* Styles pour la vidéo elle-même */
.video-container video {
    position: absolute; /* Positionne la vidéo par rapport au conteneur */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-slider-container {
  position: relative;
  overflow: hidden;
}

.video-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.video-slide {
  min-width: 100%;
  box-sizing: border-box;
}


.video-slide video {
  width: 100%;
  height: auto;
  display: block;
}


.prev-button, .next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 100;
  font-size: 24px;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}


#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(4, minmax(200px, 1fr));
    }

.gallery-frame-clubmed {
    display: grid;
    grid-template-columns: 4fr;
    gap: 10px;
    padding: 10px; /* On ajoute un padding léger à la galerie directement */
    min-height: 1000px;
}

    

      .gallery-item.small {
        grid-row: span 2;
        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-frame-clubmed {
        padding: 20px;
        grid-template-columns: repeat(6, minmax(200px, 1fr));
        grid-auto-rows: 25vw;
         min-height: 1000px;
    }

    .gallery-daily-vintage {
        padding: 20px;
        grid-template-columns: repeat(6, minmax(200px, 1fr));
        grid-auto-rows: 25vw;
    }

    .gallery-email-clubmed {
    padding: 20px;
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    grid-auto-rows: 25vw;
}

.gallery-vitro-clubmed {
    padding: 20px;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    grid-auto-rows: 25vw;
}

.gallery-magazine-alexey {
    padding: 20px;
    grid-template-columns: repeat(6, minmax(200px, 1fr));
    grid-auto-rows: 25vw;
}

.onepic.bueno{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 35%;
}


    /* Définition des images pour le format desktop */

    /* Répétez ce schéma pour toutes les images */
    
    .gallery-item.large {
        grid-row: span 2;
        grid-column: span 3;
    }

    .gallery-item.medium.alexey {
        grid-row: span 2;
        grid-column: span 6;
    }

    
    .gallery-item.tall {
        grid-row: span 2;
        grid-column: span 2;
    }

    .gallery-item.medium {
        grid-row: span 1;
        grid-column: span 6;
    }
    
    .gallery-item.small {
        grid-row: span 2;
        grid-column: span 2;
    }

     .gallery-item.small.vitro-clubmed {
        grid-row: span 2;
        grid-column: span 2;
    }

    .gallery-item.medium.vitro-clubmed {
        grid-row: span 2;
        grid-column: span 4;
    }


  
}