/* BASE */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 300% 300%;
    animation: bgAnim 15s infinite;
    color: #222;
}

/* Animation fond */
@keyframes bgAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* HEADER FIXE */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    padding: 20px 10px;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.fixed-header h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 2px;
}

.fixed-header p {
    margin: 5px 0 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* ESPACE SOUS LE HEADER */
main {
    padding-top: 140px;
}

/* GALERIE */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 30px;
}

/* CARTES */
.card {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    width: 300px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: cardFade 1s ease forwards;
}

@keyframes cardFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
}

/* IMAGES */
.card img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.12);
}

/* TEXTES */
.card h3 {
    color: #2a5298;
    margin-top: 15px;
}

.card p {
    font-size: 1em;
    color: #444;
}

/* TABLEAU */
.table-section {
    margin: 40px 20px;
    padding: 25px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border: 1px solid #2a5298;
    text-align: center;
}

th {
    background: #2a5298;
    color: white;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(255,255,255,0.9);
    border-top: 3px solid #2a5298;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .card {
        width: 90%;
    }

    .fixed-header h1 {
        font-size: 1.6em;
    }
}