/* style.css */

/*
  PALETTE DE COULEURS 1970
  Des tons chauds, terreux et organiques.
*/
:root {
    --burnt-orange: #CC5803;     /* Orange brûlé, la star des 70's */
    --mustard-yellow: #ECA400;   /* Jaune moutarde */
    --chocolate-brown: #4a2c1a;  /* Un marron chocolat bien riche */
    --off-white: #F3EFE0;        /* Un blanc cassé, couleur papier */
}

/* --- DEBUT DE L'AJOUT : Correction du calcul des largeurs --- */
/* Cette règle standard empêche les éléments de déborder à cause du padding. */
*, *::before, *::after {
    box-sizing: border-box;
}
/* --- FIN DE L'AJOUT --- */


/* Style de la barre de défilement */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}
 
::-webkit-scrollbar-thumb {
    background-color: var(--burnt-orange);
    border-radius: 20px;
    border: 3px solid var(--off-white);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--chocolate-brown);
}

/* Style général pour la page */
body {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    background-color: var(--off-white);
    color: var(--chocolate-brown);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Style du Menu de Gauche --- */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    background-color: var(--chocolate-brown);
    color: var(--off-white);
    height: 100vh;
    padding: 30px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 8px solid var(--burnt-orange);
    transition: background-color 0.3s ease, color 0.3s ease, border-right-color 0.3s ease;
    overflow: hidden;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--off-white);
    outline: 6px solid var(--mustard-yellow);
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.site-title {
    font-family: 'Passion One', sans-serif;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--mustard-yellow);
    text-shadow: 3px 3px 0px var(--burnt-orange);
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.subtitle {
    margin-top: 5px;
    margin-bottom: 40px;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--off-white);
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.nav-links {
    list-style: none;
    padding: 0;
    width: 100%;
    flex-shrink: 0;
}

.nav-links li {
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

.nav-links a {
    text-decoration: none;
    color: var(--off-white);
    font-family: 'Passion One', sans-serif;
    font-size: 1.8em;
    display: block;
    padding: 8px;
    border-radius: 30px;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--burnt-orange);
    color: var(--off-white);
}

/* --- Style du Contenu Principal --- */

.content {
    margin-left: 320px;
    padding: 50px;
}

.content h2 {
    font-family: 'Passion One', sans-serif;
    color: var(--burnt-orange);
    font-size: 4em;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.1;
}

/* --- STYLES POUR LA SECTION ACCUEIL --- */

.presentation-text {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: 'Passion One', sans-serif;
    color: var(--chocolate-brown);
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-top: 4px solid var(--mustard-yellow);
    border-bottom: 4px solid var(--mustard-yellow);
    padding: 10px 0;
}

.articles-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.article-card {
    background-color: #fff;
    border: 3px solid var(--chocolate-brown);
    border-radius: 15px;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 0px var(--chocolate-brown);
    transition: all 0.2s ease-in-out;
}

.article-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px var(--burnt-orange);
    cursor: pointer;
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-content h4 {
    font-family: 'Passion One', sans-serif;
    font-size: 1.6em;
    color: var(--chocolate-brown);
    margin-top: 0;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--burnt-orange);
    color: var(--off-white);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    align-self: flex-start;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: var(--chocolate-brown);
    color: var(--off-white);
}

.hidden {
    display: none !important;
}

/* --- STYLES POUR LA SECTION PROJETS --- */

.project-card {
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border: 3px solid var(--chocolate-brown);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 8px 8px 0px var(--chocolate-brown);
    transition: all 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0px var(--burnt-orange);
    cursor: pointer;
}

.project-image {
    width: 50%;
    position: relative;
    overflow: hidden; 
}

.project-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.project-info {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-family: 'Passion One', sans-serif;
    font-size: 2.2em;
    margin-top: 0;
    color: var(--burnt-orange);
    margin-right: 45px;
}

.project-info p {
    font-size: 1.1em;
    line-height: 1.6;
    flex-grow: 1;
    margin-right: 35px;
}
.project-tags {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: 45px;
}

.project-tags span {
    display: inline-block;
    background-color: var(--mustard-yellow);
    color: var(--chocolate-brown);
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px; 
    margin-top: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

.article-card .project-tags {
    margin-top: 10px; 
    margin-bottom: 10px;
}

#back-to-projects-btn {
    margin-bottom: 40px;
    background-color: var(--chocolate-brown);
}

#back-to-projects-btn:hover {
    background-color: var(--burnt-orange);
}

.project-detail-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.project-detail-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--chocolate-brown);
    flex-shrink: 0;
}

.project-detail-info .project-detail-title {
    font-family: 'Passion One', sans-serif;
    font-size: 3.5em;
    color: var(--burnt-orange);
    margin-top: 0;
    line-height: 1.1;
}

.project-detail-info p {
    font-size: 1.2em;
    line-height: 1.6;
}

.updates-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.update-card {
    background: #fff;
    padding: 25px 30px;
    border-left: 10px solid var(--mustard-yellow);
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0 8px 8px 0;
    box-shadow: 5px 5px 0px #ddd;
}

.update-card h4 {
    font-family: 'Passion One', sans-serif;
    font-size: 2em;
    color: var(--chocolate-brown);
    margin-top: 0;
    margin-bottom: 10px;
}

.update-card p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.7;
    white-space: pre-wrap;
}

.update-single-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.update-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.update-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* --- STYLES POUR LA MODALE ARTICLE --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--off-white);
    padding: 40px;
    border-radius: 15px;
    border: 4px solid var(--mustard-yellow);
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--chocolate-brown);
    transform: scale(0.9);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: auto;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 15px;
    font-size: 3em;
    font-weight: bold;
    color: var(--chocolate-brown);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-modal-btn:hover {
    color: var(--burnt-orange);
}

.modal-article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid var(--chocolate-brown);
}

.modal-article-title {
    font-family: 'Passion One', sans-serif;
    font-size: 3.5em;
    color: var(--burnt-orange);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.1;
}

.modal-article-body {
    font-size: 1.1em;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* --- STYLES POUR LA MODALE DE CONFIRMATION --- */
.confirm-modal-content {
    max-width: 550px; /* Un peu plus petite pour un look de "boîte de dialogue" */
    text-align: center;
}

.modal-confirm-title {
    font-family: 'Passion One', sans-serif;
    font-size: 2.5em;
    color: var(--burnt-orange);
    margin-top: 0;
    margin-bottom: 15px;
}

#music-confirm-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Pour les petits écrans */
}

#music-confirm-no {
    background-color: var(--chocolate-brown);
}
#music-confirm-no:hover {
    background-color: #6a4c3a; /* Un marron chocolat légèrement plus clair au survol */
}

.highlight-word {
    color: var(--chocolate-brown);
    font-family: 'Passion One', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
}

/* --- Style du Lecteur de Musique --- */
.music-player {
    width: 100%;
    color: var(--off-white);
    margin-top: auto;
    padding-top: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.track-info {
    text-align: center;
    margin-bottom: 15px;
    overflow: hidden; 
}

.track-title {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    transform: translateX(0);
}

.track-title.scrolling {
    --scroll-amount: -50px;
    --scroll-duration: 5s;
    animation: back-and-forth var(--scroll-duration) ease-in-out 1s infinite alternate;
    will-change: transform; 
}

@keyframes back-and-forth {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--scroll-amount));
    }
}

.music-player .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-player .controls button {
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.music-player .controls button:hover {
    color: var(--mustard-yellow);
    transform: scale(1.1);
}

/* --- Style des Réseaux Sociaux --- */
.social-links {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid var(--burnt-orange);
    padding-bottom: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.social-links a {
    color: var(--off-white);
    font-size: 1.8em;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--mustard-yellow);
    transform: scale(1.1);
}

/* --- Tier List Styles --- */
.tier-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 3px solid var(--chocolate-brown);
    box-shadow: 5px 5px 0px var(--chocolate-brown);
}

.tier-list td {
    border: 2px solid var(--chocolate-brown);
    padding: 15px;
    vertical-align: top;
}

.tier-label {
    width: 80px;
    font-size: 2.5em;
    font-family: 'Passion One', sans-serif;
    text-align: center;
    color: var(--chocolate-brown);
    font-weight: bold;
}

.tier-items {
    min-height: 100px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tier-items img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 5px;
}

.tier-list-title {
    font-family: 'Passion One', sans-serif;
    color: var(--chocolate-brown);
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 40px;
}

.tier-list-subtitle {
    text-align: center;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--chocolate-brown);
    font-weight: 500;
}

/* --- STYLES RESPONSIVES POUR LA LARGEUR --- */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 1.5em;
    color: var(--off-white);
    background-color: var(--chocolate-brown);
    border: 3px solid var(--off-white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2001;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
}
.menu-toggle:hover {
    transform: scale(1.1);
    background-color: var(--burnt-orange);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .menu {
        left: -320px;
        transition: left 0.3s ease-in-out;
        z-index: 2000;
    }
    
    .menu.menu-open {
        left: 0;
        box-shadow: 10px 0px 20px rgba(0,0,0,0.2);
    }

    .content {
        margin-left: 0;
        padding: 40px 20px;
    }

    .content h2 { font-size: 3em; }
    .section-subtitle { font-size: 2.2em; }
    .project-detail-title { font-size: 2.8em; }
    .modal-article-title { font-size: 2.5em; }

    .articles-container, .project-card {
        flex-direction: column;
    }
    
    .project-card .project-image, 
    .project-card .project-info {
        width: 100%;
    }
    
    .project-image {
        min-height: 250px;
    }
    
    .project-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .project-detail-image {
        margin-bottom: 20px;
    }
    
    .project-tags {
        justify-content: center;
    }
    
    .modal-overlay {
        padding: 15px;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-article-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .content h2 { font-size: 2.5em; }
    .section-subtitle { font-size: 1.8em; }
    .project-detail-title { font-size: 2.2em; }
    .modal-article-title { font-size: 2em; }

    /* Rend la "Tier List" lisible */
    .tier-list, .tier-list tbody, .tier-list tr, .tier-list td {
        display: block;
        width: 100%;
    }
    
    .tier-label {
        width: 100%;
        border-bottom: 2px solid var(--chocolate-brown);
    }
    
    .tier-items {
        min-height: auto;
        padding: 10px;
        justify-content: center;
        border-bottom: 5px solid var(--burnt-orange);
    }
    
    .tier-list td {
        border: none;
        padding: 0; /* On retire le padding de la cellule pour le gérer dans .tier-items */
    }

    .tier-list .tier-label {
        padding: 15px; /* On remet le padding juste pour le label */
    }
}

/* --- Styles pour le Mode Nuit (Dark Mode) --- */
body.dark-mode {
    --burnt-orange: #f47933;
    --mustard-yellow: #ffc107;
    --chocolate-brown: #ebebeb;
    --off-white: #1f1f1f;
    --card-background: #2c2c2c;
    --shadow-color: rgba(0,0,0,0.4);
    --border-color: #444;
}

body.dark-mode .menu {
    background-color: #252525;
    color: var(--chocolate-brown);
    border-right-color: var(--burnt-orange);
}

body.dark-mode .profile-picture {
    border-color: var(--chocolate-brown);
    outline-color: var(--mustard-yellow);
}

body.dark-mode .subtitle,
body.dark-mode .nav-links a,
body.dark-mode .music-player,
body.dark-mode .music-player .controls button,
body.dark-mode .social-links a {
    color: var(--chocolate-brown);
}

body.dark-mode .nav-links a:hover, 
body.dark-mode .nav-links a.active {
    background-color: var(--burnt-orange);
    color: #fff;
}

body.dark-mode .music-player .controls button:hover,
body.dark-mode .social-links a:hover {
    color: var(--mustard-yellow);
}

body.dark-mode .section-subtitle {
    border-color: var(--mustard-yellow);
}

body.dark-mode .article-card,
body.dark-mode .project-card {
    background-color: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 5px 5px 0px var(--shadow-color);
}
body.dark-mode .update-card {
    background-color: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 5px 5px 0px var(--shadow-color);
    border-left-color: var(--mustard-yellow);
}

body.dark-mode .article-card:hover {
    box-shadow: 10px 10px 0px var(--burnt-orange);
}
body.dark-mode .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0px var(--burnt-orange);
}

body.dark-mode .read-more-btn {
    background-color: var(--burnt-orange);
    color: #fff;
}

body.dark-mode .read-more-btn:hover {
    background-color: var(--mustard-yellow);
    color: #1a1a1a;
}

body.dark-mode #back-to-projects-btn {
    background-color: #333;
    color: var(--chocolate-brown);
}
body.dark-mode #back-to-projects-btn:hover {
    background-color: var(--burnt-orange);
}

body.dark-mode .project-tags span {
    background-color: var(--mustard-yellow);
    color: #1a1a1a;
    font-weight: 700;
}

body.dark-mode .modal-content {
    background-color: var(--card-background);
    color: var(--chocolate-brown);
    border-color: var(--mustard-yellow);
}

body.dark-mode .modal-confirm-title {
    color: var(--mustard-yellow);
}

body.dark-mode #music-confirm-no {
    background-color: #333;
    color: var(--chocolate-brown);
}
body.dark-mode #music-confirm-no:hover {
    background-color: #444;
}

body.dark-mode .close-modal-btn:hover {
    color: var(--burnt-orange);
}

body.dark-mode .modal-article-image,
body.dark-mode .project-detail-image {
    border-color: var(--border-color);
}

body.dark-mode .tier-list {
    border-color: var(--border-color);
    box-shadow: 5px 5px 0px var(--shadow-color);
}

body.dark-mode .tier-list td {
    border-color: var(--border-color);
}

body.dark-mode .tier-items {
    background-color: var(--card-background);
}
body.dark-mode .highlight-word {
    color: var(--mustard-yellow);
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--off-white);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background-color: var(--burnt-orange);
    border-color: var(--off-white);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background-color: var(--mustard-yellow);
}

body.dark-mode .menu-toggle {
    color: var(--off-white);
    background-color: var(--chocolate-brown);
    border: 3px solid var(--off-white);
}

body.dark-mode .menu-toggle:hover {
    background-color: var(--burnt-orange);
}


/* --- STYLES RESPONSIVES POUR LA HAUTEUR (REDIMENSIONNEMENT DU MENU) --- */

@media (max-height: 750px) {
    .menu {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
        border-width: 4px;
        outline-width: 4px;
    }

    .site-title {
        font-size: 2.8em;
        margin-top: 20px;
    }

    .subtitle {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    .nav-links a {
        font-size: 1.6em;
        padding: 6px;
    }
    
    .music-player {
        padding-top: 15px;
    }

    .social-links {
        margin-top: 8px;
        padding-top: 15px;
        padding-bottom: 5px;
    }
}

@media (max-height: 640px) {
    .profile-picture {
        width: 90px;
        height: 90px;
    }

    .site-title {
        font-size: 2.2em;
        margin-top: 15px;
        text-shadow: 2px 2px 0px var(--burnt-orange);
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .nav-links li {
        margin-bottom: 5px;
    }
    
    .nav-links a {
        font-size: 1.4em;
    }
    
    .music-player .controls button {
        font-size: 1.3em;
    }
    
    .social-links a {
        font-size: 1.5em;
    }
    
    .social-links {
        padding-top: 10px;
        gap: 15px;
    }
}
/* Collez ce code dans votre fichier style.css, par exemple après les styles de la modale d'article */

/* --- STYLES POUR LA MODALE IMAGE --- */
.image-modal-content {
    position: relative;
    width: auto;
    height: auto;
    max-width: 90vw;   /* L'image prendra au maximum 90% de la largeur de l'écran */
    max-height: 90vh;  /* L'image prendra au maximum 90% de la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid var(--off-white);
}

/* Positionne le bouton de fermeture en haut à droite de l'ÉCRAN */
#image-modal .close-modal-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: var(--off-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 3001; /* Doit être au-dessus de tout le reste */
}

/* Ajoute un curseur pointeur sur les images concernées pour indiquer qu'elles sont cliquables */
.update-card img,
.modal-article-body img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.update-card img:hover,
.modal-article-body img:hover {
    opacity: 0.8;
}

/* --- AJOUT POUR LE DARK MODE --- */
body.dark-mode .image-modal-content img {
    border-color: var(--chocolate-brown);
}