/* =======================
   STYLES DE BASE
======================= */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc, #00c6ff);
    background-size: 300% 300%;
    animation: bgMove 12s ease infinite;
    color: #222;
    line-height: 1.7;
}

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

/* =======================
   EN-TÊTE
======================= */
header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 3px solid #6a11cb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: fadeDown 1.2s ease;
}

header h1 {
    font-size: 2.7em;
    margin: 0;
    color: #6a11cb;
    animation: textGlow 3s infinite alternate;
}

header p {
    font-size: 1.3em;
    color: #333;
}

/* Effet lumineux texte */
@keyframes textGlow {
    from { text-shadow: 0 0 5px #6a11cb; }
    to { text-shadow: 0 0 20px #2575fc; }
}

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

/* =======================
   CARTES
======================= */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transform: translateY(40px);
    opacity: 0;
    animation: cardAppear 0.8s ease forwards;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1s; }

/* Animation cartes */
@keyframes cardAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

.card:hover img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1);
}

/* =======================
   TITRES & TEXTES
======================= */
.card h3 {
    margin-top: 15px;
    color: #2575fc;
    animation: fadeText 1.5s ease;
}

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

/* Animation texte */
@keyframes fadeText {
    from { opacity: 0; letter-spacing: 5px; }
    to { opacity: 1; letter-spacing: 1px; }
}

/* =======================
   TABLEAU
======================= */
.table-section {
    margin: 30px 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeUp 1.2s ease;
}

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

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

th, td {
    padding: 12px;
    border: 1px solid #6a11cb;
    transition: background 0.4s ease, transform 0.3s ease;
}

th {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
}

tr:hover td {
    background: #e6f0ff;
    transform: scale(1.05);
}

/* =======================
   PIED DE PAGE
======================= */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.85);
    border-top: 3px solid #6a11cb;
    color: #333;
    animation: fadeUp 1.5s ease;
}

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

    header h1 {
        font-size: 2.1em;
    }
}