/* ===== BASE STYLES ===== */
body {
    font-family: 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    color: #000;
    background-color: #fff;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

/* ===== HEADER STYLES ===== */
header {
    margin: 30px 0 10px;
    padding: 0 20px;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* ===== NAVIGATION STYLES ===== */
nav {
    margin: 10px 0;
    font-size: 14px;
    margin-bottom: 120px;
}

nav a {
    color: #000;
    padding: 0 5px;
    position: relative;
    text-decoration: none;
}

nav a.active {
   /* color: #777 !important;*/
    font-weight: bold; 
}

nav a:hover {
    color: #777;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: left;
}

.image-column {
    flex: 1;
    min-width: 0;
}

.image-column img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.description-column {
    flex: 0 0 350px;
    padding-left: 40px;
    font-size: 14px;
    color: #555;
}

.description-column h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 14px;
}

.description-column p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.spacer {
    height: 15px;
}

.formats-title {
    font-style: normal;
    color: #777;
    font-weight: bold;
    margin-bottom: 10px !important;
}

.formats-list {
    font-style: normal;
    color: #777;
    line-height: 1.8 !important;
}

.error {
    color: #900;
    margin: 50px 0;
}

/* ===== GALLERY STYLES ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 250px));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    justify-content: center; /* Centre les colonnes dans le conteneur */
}

.gallery-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 10px;
}

.gallery-item-content {
    text-align: center;
    color: #000;
}

.gallery-item-content h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: normal;
}

.gallery-item-content p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

/* ===== FOOTER STYLES ===== */
.footer {
    margin: 80px 0 20px;
    padding: 20px 0;
    font-size: 14px;
    color: #000;
   
}


.footer a {
    color: #000;
    padding: 0 5px;
    position: relative;
    text-decoration: none;
}

.footer a.active {
   /* color: #777 !important;*/
    font-weight: bold; 
}

.footer a:hover {
    color: #777;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    }
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .description-column {
        padding-left: 0;
        padding-top: 30px;
        flex: 1 1 auto;
    }
    
    header h1 {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .gallery-item-content h3 {
        font-size: 14px;
    }
    
    .gallery-item-content p {
        font-size: 14px;
    }
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 14px;
    }
    
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    nav a {
        padding: 0 8px;
        font-size: 14px;
    }
}

/* ===== INDEX.PHP SPECIFIC STYLES ===== */
.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 250px)); /* Les colonnes s'adaptent à l'espace disponible */
    gap: 60px; /* Espace entre les éléments */
    width: 100%; /* Utilise toute la largeur disponible */
    margin: 30px auto; /* Centre le conteneur horizontalement */
    padding: 0 20px; /* Ajoute un espace autour des éléments */
    justify-content: center; /* Centre les colonnes dans le conteneur */
}

.category-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-wrapper {
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8f8f8;
}

.category-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-content {
    margin-top : 20px;
    margin-bottom : 30px;
    text-align: center;
    color: #000;
}

.category-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.gallery-item-content p {
    margin: 0;
    font-size: 14px;
    color: #777;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .category-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: 1fr;
    }
    
     
    .category-title {
        font-size: 14px;
    }
}