:root {
    --gold-dark: #b8962f;
    --text: #f8f8f8;
}
@font-face {
    font-family: "IMFellEnglish";
    src: url("../polices/IMFellEnglish.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
h3 {
    font-family: IMFellEnglish;
    margin: 8px;
    font-size: 1rem;
    color: var(--gold-dark);
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    text-align: center;
}
.under {
    text-decoration: underline;
}
ul {
        list-style-type: none;
        text-align: left;
        color: var(--text);
}
.itt {
    font-style: italic;
}

.gras {
    font-weight: bold;
}
.rgras {
    font-weight: bold;
    color: red;
}
/* ===========================
   Images sous le texte
   =========================== */
.images-modales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Sécurité mobile */
}

/* Images cliquables */
.images-modales img {
    width: calc((100% - 40px) / 3); 
    max-width: 220px;
    cursor: pointer;
    border-radius: 6px;
    transition: transform .2s;
}

.images-modales img:hover {
    transform: scale(1.05);
}

/* Mobile : une image par ligne */
@media (max-width: 600px) {
    .images-modales img {
        width: 100%;
        max-width: none;
    }
}

/* ===========================
   Fenêtres modales
   =========================== */
.modale {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
}

.modale.active {
    display: flex;
}

/* Contenu interne de la modale */
.modale-contenu {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Bouton de fermeture */
.modale-fermer {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.modale iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   Ajustements petits écrans
   =========================== */
@media (max-width: 600px) {
    .modale-contenu {
        width: 100%;
        height: 90vh;
        border-radius: 0;
    }
}
