:root {
    --rouge-agglo: #D80240;
    --rouge-secondaire: #E52652;
    --noir: #000000;
    --blanc: #FFFFFF;
    --gris-clair: #F4F4F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background-color: var(--gris-clair);
    color: var(--noir);
    line-height: 1.6;
}

header {
    background-color: var(--rouge-agglo);
    color: var(--blanc);
    padding: 32px;
    text-align: center;
    animation: slideDown 0.9s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1 {
    font-size: 2.4em;
    letter-spacing: 2px;
}

header p {
    margin-top: 10px;
    font-size: 1.1em;
}

nav {
    background-color: var(--noir);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: var(--blanc);
    text-decoration: none;
    padding: 14px 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--rouge-agglo);
    transform: translateY(-2px);
}

main {
    padding: 45px 20px;
}

section {
    background-color: var(--blanc);
    border-left: 10px solid var(--rouge-agglo);
    padding: 26px;
    margin: 35px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
    animation: fadeUp 0.9s ease;
    transition: transform 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section:hover {
    transform: scale(1.01);
}

section h2 {
    color: var(--rouge-agglo);
    font-size: 1.6em;
    margin-bottom: 12px;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--noir);
    margin-top: 6px;
}

section p {
    max-width: 720px;
    margin: 12px auto;
    font-size: 1.05em;
}

.image-box {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.image-box img {
    width: 170px;
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.image-box::before,
.image-box::after {
    content: "";
    position: absolute;
    width: 65px;
    height: 65px;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.image-box::before {
    top: -15px;
    left: calc(50% - 115px);
    background: linear-gradient(135deg, #b80033, var(--rouge-agglo));
}

.image-box::after {
    bottom: -15px;
    right: calc(50% - 115px);
    background: linear-gradient(135deg, var(--rouge-secondaire), #ff6a88);
}

.image-box:hover::before {
    transform: rotate(45deg) translate(-6px, -6px);
}

.image-box:hover::after {
    transform: rotate(45deg) translate(6px, 6px);
}

footer {
    background-color: var(--noir);
    color: var(--blanc);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.9em;
    }

    nav {
        flex-wrap: wrap;
    }

    section {
        margin: 25px 10px;
    }

    .image-box img {
        width: 140px;
    }
}
