*, ::before, ::after{
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-decoration: none;
}

body{
    overflow-x: hidden;
}

@media screen and (min-width : 0px){
    /*HEADER*/
    /*VOIR header.css*/
    /*ACCUEIL*/
    .accueil_wrapper{
        width: 100%;
        height: auto;
    }
    .accueil_container{
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .accueil_container > .accueil_presentation{
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .accueil_container > .accueil_presentation > img{
        width: 60%;
        margin: 20px 0px;
    }
    .accueil_container > .accueil_presentation > h1{
        font-family: Arial, Helvetica, sans-serif;
        font-size: 35px;
        margin: 10px 0px;
    }
    .accueil_container > .accueil_presentation > p{
        font-family: 'Courier New', Courier, monospace;
        font-size: 15px;
        margin: 10px 40px;
    }

  
  /* Section de navigation par catégorie */
.category_navigation {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f8f8; /* Légère couleur de fond pour la section */
}

.category_navigation h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.category_navigation h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff; /* Couleur de votre choix */
    border-radius: 2px;
}

.category_grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category_item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block; /* Pour que le lien prenne toute la surface */
    text-decoration: none; /* Supprime le soulignement par défaut du lien */
    color: inherit; /* Hérite de la couleur du texte parent */
}

.category_item:hover {
    transform: translateY(-8px); /* Effet de soulèvement au survol */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category_item img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour les images */
    object-fit: cover; /* Recadre l'image pour couvrir la zone sans la déformer */
    display: block;
    transition: transform 0.5s ease;
}

.category_item:hover img {
    transform: scale(1.05); /* Léger zoom sur l'image au survol */
}

.category_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    opacity: 1; /* Toujours visible */
    transition: background 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Ombre pour le texte */
}

.category_item:hover .category_overlay {
    background: rgba(0, 0, 0, 0.65); /* Un peu plus sombre au survol */
}


/* --- Styles pour le Modal/Lightbox --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place même en défilant */
    z-index: 1000; /* Au-dessus de tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet le défilement si le contenu est trop grand */
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
}

/* Conteneur du contenu du modal (image et flèches) */
.modal-content-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%; /* Largeur maximale */
    max-height: 90%; /* Hauteur maximale */
}

/* L'image dans le modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 100%; /* S'assure que l'image ne dépasse pas le conteneur */
    max-height: 100vh; /* Utilise la hauteur de la fenêtre pour éviter le défilement */
    object-fit: contain; /* L'image entière est visible, peut laisser des bords */
    transition: transform 0.3s ease-in-out; /* Transition pour le zoom */
    cursor: zoom-in; /* Curseur pour indiquer le zoom */
}

/* Style de l'image zoomée */
.modal-content.zoomed {
    transform: scale(1.5); /* Agrandissement de 1.5 fois */
    cursor: zoom-out; /* Curseur pour indiquer le dézoom */
    object-fit: initial; /* Permet à l'image de dépasser si zoomée */
    max-height: none; /* Enlève la contrainte de hauteur pour le zoom */
    max-width: none; /* Enlève la contrainte de largeur pour le zoom */
}

/* Bouton de fermeture */
.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* Au-dessus de l'image */
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Boutons Précédent/Suivant */
.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5); /* Fond semi-transparent pour les flèches */
}

.prev-button {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-button {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Empêche le défilement du body lorsque le modal est ouvert */
body.modal-open {
    overflow: hidden;
}
  
  .photo_wall {
    width: 100%;
    background-color: #f8f8f8;
}

.photo_wall_container {
    column-count: 2;
    column-gap: 15px;
    padding: 40px 20px;
}

.photo_item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.photo_item img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

}

@media (max-width: 480px) {
    .category_navigation {
        padding: 20px 15px;
    }

    .category_navigation h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .category_item img {
        height: 150px;
    }

    .category_overlay {
        font-size: 1.3em;
    }
}

@media screen and (min-width: 600px){
   /*HEADER*/
   .header_logo > a > img{
      width: 45%;
   }
   .header_bars > i{
    font-size: 3rem;
   }
   .header_shop > i{
    font-size: 3rem;
   }
   /*ACCUEIL*/
   .accueil_presentation > img{
    width: 30%;
   }
   .accueil_presentation > h1{
    font-size: 60px;
   }
   .accueil_presentation > p{
    font-size: 25px;
   }
  .photo_wall_container { column-count: 2; }
}

/* Media queries pour la responsivité du modal */

@media screen and (min-width: 768px) {
    .accueil_container > .accueil_presentation > img{
        width: 40%;
    }
    .category_grid {
        display: grid; /* Passe à la grille */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colonnes responsives */
        gap: 30px; /* Garde le même espacement */
    }
    .photo_wall_container {
        column-count: 3;
    }
}

@media screen and (min-width : 1024px){
    .accueil_container > .accueil_presentation > img{
        width: 30%;
    }
}

@media (min-width: 900px) {
    .photo_wall_container { column-count: 3; }
}
@media (min-width: 1200px) {
    .accueil_container > .accueil_presentation > img{
        width: 25%;
    }
    .photo_wall_container { 
        column-count: 4; 
    }
}