/* ===== BODY ===== */
body {
    margin: 0;
    min-height: 100vh;
    background-size: cover;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 50px;
    flex-direction: column;
    background: linear-gradient(-45deg, 
        #e21313, #28c00e, #0d8484, #c94487, #1740d5, rgb(223, 162, 29), #97e142, rgb(242, 2, 2)
    );
    background-size: 400% 400%;
    animation: fluorescentBG 25s ease infinite;
    color: #fff;
}

@keyframes fluorescentBG {
    0% {background-position: 0% 50%;}
    25% {background-position: 50% 100%;}
    50% {background-position: 100% 50%;}
    75% {background-position: 50% 0%;}
    100% {background-position: 0% 50%;}
}

/* ===== TITRES ===== */
.about-section h2, .about-section h3 {
    color: #0a4201;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-section h3 {
    font-size: 1.8rem;
}

.about-section p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ===== ORGANIGRAMME ===== */
.org-chart ul {
    padding-top: 40px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.org-chart li {
    list-style-type: none;
    text-align: center;
    position: relative;
    padding: 1em 0.5em 0 0.5em;
}

/* Trait vertical vers le parent */
.org-chart li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #f9fbf9;
    height: 20px;
}

.org-chart > ul > li::before {
    border: none;
}

/* Lignes horizontales entre enfants */
.org-chart li:only-child::after {
    display: none;
}

.org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-top: 2px solid #fafbfa;
    height: 0;
}

.org-chart li:only-child::after {
    display: none;
}

.org-chart li > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
}

/* ===== BOÎTES ===== */
.org-chart .box {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid #074a07;
    border-radius: 8px;
    background: #fff;
    color: #074a07;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 140px;
}

.org-chart .box small {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: #555;
}

.org-chart .box:hover {
    transform: scale(1.05);
    background: #0a5f0a;
    color: #fff;
}

/* ===== APPARITION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-section h2, .about-section h3 {
        font-size: 1.6rem;
    }

    .org-chart li > ul {
        flex-direction: column;
        align-items: center;
    }

    .org-chart .box {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 30px 5%;
    }

    .about-section h2, .about-section h3 {
        font-size: 1.4rem;
    }

    .org-chart .box {
        min-width: 160px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 3%;
    }

    .about-section h2, .about-section h3 {
        font-size: 1.2rem;
    }

    .org-chart .box {
        min-width: 140px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}
