/* Variables CSS */
:root {
    --couleur-principale: #1a6b2e;
    --couleur-secondaire: #145224;
    --couleur-accent: #f5c542;
    --couleur-texte: #1a1a1a;
    --couleur-texte-clair: #ffffff;
    --couleur-fond: #1a6b2e;
    --police-corps: Arial, sans-serif;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--police-corps);
    background-color: var(--couleur-fond);
    color: var(--couleur-texte-clair);
}

/* Header */
header {
    background-color: var(--couleur-principale);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

header img {
    width: 60px;
    height: auto;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: var(--couleur-texte-clair);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--couleur-accent);
}

/* Titre section */
.titre-section {
    text-align: center;
    padding: 40px 20px 10px;
}

.titre-section h1 {
    font-size: 28px;
    font-weight: normal;
    color: var(--couleur-texte-clair);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.titre-section h1 span {
    font-weight: bold;
}

.total-trophees {
    display: inline-block;
    background-color: var(--couleur-principale);
    border: 3px solid var(--couleur-accent);
    color: var(--couleur-texte-clair);
    font-size: 22px;
    font-weight: bold;
    width: 55px;
    height: 55px;
    line-height: 50px;
    border-radius: 50%;
    margin-top: 15px;
    text-align: center;
    transition: transform 0.3s;   
}

.total-trophees:hover {
    transform: scale(1.4);        
}

/* Grille des trophées */
.grille-trophees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 30px;
}

/* Carte trophée */
.trophee {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
     
}


.trophee img {
    width: 140px;
    height: 160px;
    object-fit: contain;
    background-color: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s; 
}
.trophee img:hover {
    transform: scale(1.15);        
}

.trophee-nombre {
    font-size: 28px;
    font-weight: bold;
    color: var(--couleur-accent);
}

.trophee-titre {
    font-size: 13px;
    font-weight: bold;
    color: var(--couleur-texte-clair);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trophee-dates {
    font-style:italic;
    font-size: 12px;
    color: var(--couleur-accent);
    line-height: 1.9;
}

/* Footer */
footer {
    background-color: var(--couleur-secondaire);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 18px 40px;
    font-size: 12px;
    margin-top: 40px;
}

footer a {
    color: var(--couleur-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .grille-trophees {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 15px;
    }
    .titre-section h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .grille-trophees {
        grid-template-columns: 1fr;
    }
    .trophee img {
        width: 100px;
        height: 120px;
    }
}