/* css/style.css */

:root {
    /* --- PALETTE DE COULEURS --- */
    --primary-red: #881D19;
    --primary-red-hover: #b71c1c;
    --bg-dark: #1e1d1b;
    --bg-card: #2c2c2c;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;

    /* --- TYPOGRAPHIE --- */
    --font-main: 'Josefin Sans', sans-serif;     /* Titres et UI */
    --font-sub: 'Lato', sans-serif;  /* Sous-titres élégants */
    --font-body: 'Segoe UI', sans-serif;   /* Texte courant */
    --font-accent: 'Anton', sans-serif;    /* Gros titres artistiques */
}

html {
    font-size: 100%; /* Base 16px */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6; /* Meilleure lisibilité */
    overflow-x: hidden;
}

/* --- TITRES & BOUTONS GLOBAUX --- */

h1 {
    font-family: var(--font-main);
    margin-top: 0;
}

h2 {
    font-family: var(--font-sub);
    font-weight: 100;
    font-style: italic;
    margin-top: 0;
}

h3 {
    font-family: var(--font-main);
    margin-top: 0;
}

a { text-decoration: none; color: inherit; }

/* Boutons standardisés */
.btn-primary {
    background: var(--primary-red);
    font-family: var(--font-sub);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, background-color 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: scale(1.05);
    text-decoration: none;
}

/* Titres de section (style badge) */
.section-title {
    font-size: 1.5rem; /* Réduit de 3.1rem */
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    background-color: var(--primary-red);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
    text-align: center;
    /* Animation */
    opacity: 0; 
    transform: translateX(-30px);
    animation: slideIn 1s ease forwards;
    white-space: nowrap;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* AJOUTE CETTE LIGNE : */
    overflow: hidden; 
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    filter: brightness(0.4);
    z-index: 1;
    object-fit: cover;
}

.hero .content {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease forwards;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem; /* Réduit de 4rem */
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 1.5rem; /* Réduit de 1.8rem */
    font-weight: 300;
    color: #f0f0f0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- REFERENCES SECTION --- */
.references {
    padding: 5rem 5%; /* Marge gauche/droite réduite à 5% */
    background: linear-gradient(135deg, #2a2a28, #1e1d1b);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.references .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}


.references .intro {
    flex: 1 1 500px;
}

.references .intro p {
    font-size: 1.1rem; /* Réduit de 1.7rem -> Beaucoup plus standard */
    color: var(--text-gray);
    text-align: justify;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeText 1s ease-in-out forwards 0.5s;
}

.references .logos-block {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
}

.references .logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.references .logos img {
    width: 100%;
    max-width: 180px; /* Limite la taille des logos */
    height: auto;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.references .logos img:hover {
    filter: none;
    transform: scale(1.1);
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 2001;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px; /* Marge de sécurité mobile */
    box-sizing: border-box;
}

.modal.show { display: flex; opacity: 1; }

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    transform: scale(0.9);
    animation: popIn 0.4s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    padding: 40px;
}

.modal-close {
    position: absolute;
    /* Position fixe par rapport à l'écran */
    top: 30px;  
    right: 30px;
    
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;  /* Légèrement plus grand pour être facile à viser */
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    /* Z-index très haut pour passer au-dessus de tout (même des flèches) */
    z-index: 2100; 
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Petite ombre pour bien ressortir */
}

.modal-close:hover {
    background-color: white;
    color: var(--primary-red);
    transform: rotate(90deg); /* Petite animation sympa au survol */
}

/* Ajustement Mobile pour la croix */
@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Spécifique Video */
#videoModal .modal-content {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    padding: 0;
    background: black;
}
.modal-content video { width: 100%; height: 100%; }

/* Spécifique Contact */
#contactModal .modal-content {
    width: 100%;
    max-width: 500px;
}

#contactModal h3 {
    font-size: 1.8rem; /* Réduit de 2.8rem !important */
    color: white;
    text-transform: uppercase;
    background-color: var(--primary-red);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

#contactModal .contact-subtitle {
    font-size: 1rem; /* Réduit de 1.7rem */
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.contact-link {
    font-family: var(--font-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin: 10px auto;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem; /* Réduit de 1.4rem */
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

.contact-link .icon { margin-right: 10px; font-size: 1.2rem; }
.contact-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

/* --- PROJETS SECTION --- */
.derniers-projets {
    scroll-margin-top: 80px;
    padding: 5rem 10%;
    background-color: var(--bg-dark);
    text-align: center;
}

.projets-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive automatique */
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.projet-item {
    position: relative;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.projet-item:hover { transform: scale(1.02); }

.projet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.projet-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}
.projet-text-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement le bloc global */
    align-items: center;     /* Centre horizontalement */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;           /* Sécurité pour ne pas toucher les bords */
    box-sizing: border-box;
}
.projet-item:hover .projet-text-overlay { opacity: 1; }

.projet-text-overlay h3 {
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-weight: 600;
    
    /* --- CORRECTIONS --- */
    margin: 0;               /* Supprime les marges par défaut énormes */
    margin-bottom: 0.3rem;   /* Définit un petit espace contrôlé avec la catégorie */
    line-height: 1.2;        /* Resserre les lignes si le titre est long */
}

.projet-text-overlay .category {
    font-family: var(--font-sub);
    font-weight: 300;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-gray);
    
    /* --- CORRECTIONS --- */
    margin: 0;               /* Supprime la marge par défaut pour un centrage parfait */
}

.cta-projets { margin-top: 3rem; }

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeText { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes popOut { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0; } }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .references .content { flex-direction: column; align-items: center; text-align: center; }
    
    /* MODIFICATION ICI : */
    .references .intro p { 
        text-align: justify;       /* Texte aligné proprement à gauche et à droite */
        text-align-last: left;   /* La dernière ligne du paragraphe est centrée (optionnel, très joli pour les bios) */
        padding: 0 10px;           /* Ajoute un peu d'espace pour que le texte ne colle pas aux bords de l'écran */
    }

    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.2rem; }
    .section-title { font-size: 1.2rem; padding: 0.4rem 1.2rem; }
    
    .references, .derniers-projets { padding: 4rem 5%; }
    
    .projets-grid-container { grid-template-columns: 1fr; }
    
    #contactModal .modal-content { padding: 25px; }
    #contactModal h3 { font-size: 1.5rem; }
    .contact-link { font-size: 1rem; }
}

/* css/style.css - À COLLES TOUT EN BAS DU FICHIER */

/* --- NAVIGATION GALERIE VIDÉO --- */

/* --- NAVIGATION GALERIE (Position Fixe Ergonomique) --- */

.nav-arrow {
    position: absolute; /* Absolu par rapport à l'écran noir (.modal) */
    top: 50%;
    transform: translateY(-50%);
    
    /* Design du bouton */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 60px; /* Un peu plus grand pour cliquer facilement */
    height: 60px;
    display: none; /* Géré par le JS */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    user-select: none;
    transition: all 0.3s ease;
    
    /* Assure que la flèche est toujours AU-DESSUS de l'image (z-index) */
    z-index: 2050; 
}

.nav-arrow:hover {
    background-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

/* Positionnement Écran (Ne bougera plus jamais !) */
.nav-arrow.prev { 
    left: 30px; /* Marge gauche fixe */
}

.nav-arrow.next { 
    right: 30px; /* Marge droite fixe */
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background-color: rgba(0, 0, 0, 0.7); /* Plus sombre sur mobile pour lisibilité */
    }
    .nav-arrow.prev { left: 10px; }
    .nav-arrow.next { right: 10px; }
}

/* --- STYLE GALERIE PHOTO --- */
#imagePlayer {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche l'image entière sans la couper */
    max-height: 80vh;    /* Empêche l'image d'être plus haute que l'écran */
    background-color: black; /* Fond noir pour les photos format portrait */
}

/* --- FILTRES MÉDIA (HYBRIDE) --- */
.media-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
    position: relative;
    z-index: 20;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main); /* Utilise votre police Nunito */
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Style quand le bouton est sélectionné */
.filter-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    font-weight: bold;
}

/* FOOTER */

    .footer-custom {
        background-color: #222;
        color: #eee;
        padding: 40px 20px;
        font-family: 'Nunito', sans-serif;
        text-align: center;
    }

    .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.footer-col {
    flex: 1 1 0; /* Assure une largeur égale */
    min-width: 0; /* Permet de réduire si besoin */
    text-align: left;
}

    .footer-col:first-child p {
    max-width: 320px;
    
    margin-right: auto;
    text-align: justify;
        text-align: justify;
    }

    .footer-col h3 {
        color: #fff;
        margin-bottom: 15px;
        font-size: 1.5em;
        font-weight: 500;
    }

    .footer-col p {
        margin-bottom: 10px;
        line-height: 1.6;
        font-weight: 400;
    }

    .contact-item,
    .social-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .contact-item .icon-wrapper,
    .social-item .icon-wrapper {
        
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #A03131;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 15px;
        color: #fff;
        font-size: 1.2em;
        overflow: hidden;
        transition: transform 0.2s ease, opacity 0.2s ease;
        text-decoration: none;
    }

    .social-item .icon-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.1);
        text-decoration: none;
    }

    .contact-item a.contact-bubble-red,
    .social-item a {
        
        text-decoration: none;
        font-family: var(--font-sub);
        color: #eee;
        display: flex;
        align-items: center;
        padding: 8px 15px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1.1em;
        background-color: #A03131;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* ZOOM et OPACITY au survol pour les deux sections */
    .social-item:hover .icon-wrapper,
    .social-item:hover a,
    .contact-item:hover .icon-wrapper,
    .contact-item:hover a.contact-bubble-red {
        transform: scale(1.07);
        opacity: 0.8;
    }

    .social-item .linkedin {
        background-color: #0C6FCC;
    }

    .social-item .instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-item .portfolio {
        background-color: #555;
    }

    .footer-copyright {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #444;
        font-size: 0.9em;
        text-align: center;
        font-weight: 400;
    }

    @media (max-width: 768px) {
        .footer-container {
            flex-direction: column;
            align-items: center;
        }


        .footer-col {
            text-align: center;
            margin-bottom: 20px;
            width: 100%;
        }

        .footer-col p {
        text-align: justify;       /* Justifie le texte (bords droits) */
        text-align-last: center;   /* Centre la dernière ligne */
        padding: 0 20px;           /* Ajoute une marge de sécurité pour ne pas coller aux bords */
    }

        .contact-item,
        .social-item {
            justify-content: center;
        }

        .contact-item .icon-wrapper,
        .social-item .icon-wrapper {
            margin-right: 10px;
        }
        /* À placer DANS le bloc @media (max-width: 768px) tout en bas du fichier */

.footer-col:first-child p {
    max-width: 100%;    /* Annule la limite de 320px */
    margin-right: 0;    /* Annule le décalage */
    margin-left: 0;     /* S'assure que c'est bien calé */
}

    }

/* =========================================
   PAGE PORTFOLIO SPÉCIFIQUE
   ========================================= */

/* Couleur de fond spécifique au portfolio */
body.page-portfolio {
    background-color: #242321;
}

/* --- BOUTON RETOUR ACCUEIL --- */
.back-home-container {
    position: absolute; 
    top: 20px; 
    left: 20px; 
    z-index: 100;
}

.btn-back-home {
    color: white;
    font-family: var(--font-sub);
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-back-home:hover {
    background: var(--primary-red);
    transform: translateX(-5px); /* Petite animation sympa vers la gauche */
}

/* --- HERO PORTFOLIO --- */
.hero-portfolio {
    position: relative;
    height: 60vh; 
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-portfolio video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.5);
}

.hero-portfolio .hero-content h1 {
    font-family: var(--font-main); /* Uniformisation avec Josefin Sans */
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-portfolio .hero-content h2 {
    font-family: var(--font-sub); /* Uniformisation avec Lato */
    font-weight: 200;
    font-size: 1.3em;
    color: #ddd;
}

/* --- MENU DE FILTRES --- */
.filter-menu {
    margin: 40px 0;
    text-align: center;
}

.filter-menu button {
    font-family: var(--font-sub);
    background: #9A291D; /* Rouge légèrement différent, ou utilisez var(--primary-red) */
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.filter-menu button:hover, 
.filter-menu button.active {
    background: #ba2326;
    transform: scale(1.05);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- GRILLE DES PROJETS (PORTFOLIO) --- */
/* Note: Ceci est distinct de .projets-grid-container de l'accueil */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 5%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.grid-item {
    position: relative;
    background: #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Overlay Textuel sur les projets */
.text-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 90%;
    pointer-events: none;
}

.grid-item:hover .text-overlay {
    opacity: 1;
}

.text-overlay p {
    font-family: var(--font-main);
    font-weight: bold;
    color: #fff;
    font-size: 1.4em;
    margin: 0;
}

.text-overlay .category {
    font-family: var(--font-sub);
    font-size: 1em;
    color: #ccc;
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    margin: 0;
}

/* --- RESPONSIVE PORTFOLIO --- */
@media (max-width: 768px) {
    .hero-portfolio {
        height: 40vh;
    }
    
    .hero-portfolio .hero-content h1 {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        padding: 20px;
    }
}

/* --- CRÉDITS LIGHTBOX --- */
.media-credits {
    display: none; /* Caché par défaut */
    margin-top: 15px;
    color: #bbb; /* Gris clair pour ne pas éblouir */
    font-family: var(--font-sub);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease;
}

/* Optionnel : si vous voulez mettre des noms en gras */
.media-credits strong {
    color: #fff;
    font-weight: 700;
}

/* --- CSS À AJOUTER DANS style.css --- */

/* Surcharge spéciale quand c'est une photo */
#videoModal .modal-content.mode-photo {
    background-color: transparent; /* Fond transparent */
    box-shadow: none;              /* Enlève l'ombre portée du cadre */
    aspect-ratio: auto;            /* Enlève le format 16/9 forcé */
    width: auto;                   /* La largeur s'adapte à l'image */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* On s'assure que l'image elle-même n'a pas de fond noir */
#imagePlayer {
    background-color: transparent; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Petite ombre esthétique directement sur l'image */
    border-radius: 4px; /* Optionnel : léger arrondi */
    max-height: 85vh; /* L'image ne dépassera pas 85% de la hauteur de l'écran */
    width: auto;
    max-width: 95vw; /* Marge de sécurité sur les côtés */
}