/* --- Identité Visuelle ampprod.fr --- */
:root {
    --bg-color: #1a1a1a;
    --header-bg: #111111;
    --card-bg: #252525;
    --accent-color: #ffffff;
    --ampprod-red: #ff0000;
    --text-primary: #f0f0f0;
    --text-muted: #d0d0d0;
    --border-color: #444444;
}

/* --- Bases --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 50px 20px;
    text-align: center;
}

h1 {
    margin: 0 0 30px 0;
    font-size: 2.5em;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* --- Navigation & Filtres --- */
#filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.btn:hover {
    color: var(--accent-color);
    border-color: var(--ampprod-red);
    background-color: color-mix(in srgb, var(--ampprod-red) 70%, transparent);
}

.btn.active {
    color: var(--accent-color);
    border-color: var(--ampprod-red);
    background-color: color-mix(in srgb, var(--ampprod-red) 40%, transparent);
}

/* --- Conteneur Principal --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* --- Section Accueil / Présentation "Confluences" --- */
.home-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.bio-text {
    margin-bottom: 40px;
}

.bio-text h2 {
    color: var(--accent-color);
    font-weight: 300;
    font-size: 1.8em;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

.bio-text h3 {
    text-align: left;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2em;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 3px solid var(--ampprod-red);
    padding-left: 15px;
}

/* Conteneur pour l'alternance texte/image */
.home-row {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Inverser l'ordre sur mobile pour que le texte reste en haut si l'image est à droite */
.home-row.reverse {
    flex-wrap: wrap-reverse;
}

.home-text-col {
    flex: 1.5;
    min-width: 300px;
}

.home-img-col {
    flex: 1;
    min-width: 280px;
}

/* Style spécifique des images de la présentation */
.presentation-img {
    width: 100%;
    
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 1px solid #444;
    transition: transform 0.9s ease; /* Petit bonus : effet au survol */
}

.presentation-img:hover {
    transform: scale(1.1);
}

/* Style spécifique pour le texte justifié */
.text-justified {
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.text-justified strong {
    color: var(--accent-color);
    font-weight: 400;
}

/* Section Réseaux / Boutons en bas de page */
.social-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-links h3 {
    text-align: center;
    border-left: none;
    padding-left: 0;
    font-size: 1em;
    margin-bottom: 25px;
}

.btns-social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/* --- Grille Portfolio --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.category-header {
    grid-column: 1 / -1;
    margin-bottom: 15px; /* Ajustez cette valeur selon votre goût */
}

.category-header p {
    font-size: 1.1em;
    color: var(--text-muted);
    max-width: 800px; /* Pour éviter des lignes trop longues et fatigantes à lire */
    margin: 0 auto 0px auto;
}

.art-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}

.art-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.art-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: brightness(95%);
    transition: filter 0.4s ease;
}

.art-item:hover img {
    filter: brightness(110%);
}

.art-item h3 {
    padding: 12px;
    margin: 0;
    font-size: 0.75em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Formats d'images spéciaux --- */
.art-item img.img-panorama {
    aspect-ratio: 3 / 1;
}

.art-item img.img-square {
    aspect-ratio: 1 / 1;
}

/* --- Fenêtre Modale --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.97);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    margin: 2% auto;
    padding: 30px;
    width: 95%; 
    max-width: 1300px;
    position: relative;
    box-sizing: border-box;
}

.close {
    position: absolute;
    right: 15px;
    top: -5px;
    font-size: 40px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.close:hover { color: var(--ampprod-red); }

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.image-container { flex: 2.5; }

.image-container img { 
    width: auto;
    max-width: 100%; 
    height: auto;
    max-height: 80vh;
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto;
}

.details { flex: 1; min-width: 280px; }

.details h2 { 
    margin-top: 0; 
    color: var(--accent-color); 
    text-transform: uppercase; 
    font-weight: 300;
    font-size: 1.5em;
    border-bottom: 1px solid var(--ampprod-red);
    padding-bottom: 15px;
}

.details p { 
    color: var(--text-muted); 
    margin: 20px 0 30px 0; 
    font-size: 0.9em;
}

/* --- Boutons d'achat --- */
.buy-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buy-btn {
    display: block;
    padding: 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.buy-btn:hover {
    border-color: var(--ampprod-red);
    color: var(--ampprod-red);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Responsive --- */
@media (max-width: 1000px) {
    .home-container {
        padding: 40px 20px;
        border-left: none;
        border-right: none;
    }

    .text-justified {
        text-align: left; /* Moins de problèmes de césure sur petit écran */
    }

    .modal-body {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }

    .image-container, .details {
        width: 100%;
        flex: none;
    }

    .image-container img {
        max-height: none;
        width: 100%;
    }

    .details { text-align: center; }
}

footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.75em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}