/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #095f75;
    --primary-light: #1a7d99;
    --secondary: #e07a5f;
    --accent: #ffffff;
    --text: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: #233545;
    --shadow: rgba(9, 95, 117, 0.12);
    --font-title: 'Newsreader', serif;
    --font-body: 'Lora', serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== RESET & BASE ===== */
body {
    font-family: var(--font-body);
    background-color: #f5f7fa;
    color: var(--text);
    line-height: 1.7;
}

/* ===== SECTIONS PRINCIPALES ===== */
#about,
#objectif {
    max-width: 900px;
    margin: 5rem auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 95, 138, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transform: translateY(0);
}

#about::before,
#objectif::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
}

/* Effet de survol 3D */
#about:hover,
#objectif:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ===== TITRES ===== */
#about h2,
#objectif h2 {
    font-family: var(--font-title);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--primary);
    border-left: 6px solid var(--secondary);
    padding-left: 1.5rem;
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

#about h2::after,
#objectif h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

/* Animation au survol des titres */
#about:hover h2::after,
#objectif:hover h2::after {
    width: 100%;
}

/* ===== TEXTE & LISTES ===== */
#about p,
#objectif p {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
    text-align: justify;
    color: #444;
    line-height: 1.8;
    position: relative;
    transition: var(--transition);
}

/* Lettrine élégante */
#about p:first-letter,
#objectif p:first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    margin-right: 0.3rem;
    margin-top: 0.2rem;
    color: var(--primary);
    font-family: var(--font-title);
    font-weight: 700;
}

/* Liste numérotée stylisée */
#objectif ol {
    padding-left: 2rem;
    margin-top: 2rem;
    counter-reset: custom-counter;
}

#objectif li {
    margin-bottom: 1.8rem;
    position: relative;
    padding-left: 2.5rem;
    list-style: none;
    transition: var(--transition);
}

#objectif li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#objectif li strong {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

/* Effet au survol des éléments de liste */
#objectif li:hover {
    transform: translateX(5px);
    color: var(--primary-dark);
}

#objectif li:hover strong {
    color: var(--secondary);
}

/* ===== EFFETS D'ANIMATION ===== */
/* Animation d'apparition progressive */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour les sections */
#about,
#objectif {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

#about {
    animation-delay: 0.2s;
}

#objectif {
    animation-delay: 0.4s;
}

/* Animation pour les paragraphes */
#about p,
#objectif p {
    opacity: 0;
}

#about p:nth-child(2) {
    animation: fadeInUp 0.6s 0.5s forwards;
}

#about p:nth-child(3) {
    animation: fadeInUp 0.6s 0.7s forwards;
}

#about p:nth-child(4) {
    animation: fadeInUp 0.6s 0.9s forwards;
}

#objectif p {
    animation: fadeInUp 0.6s 0.6s forwards;
}

#objectif li:nth-child(1) {
    animation: fadeInUp 0.5s 0.8s forwards;
}

#objectif li:nth-child(2) {
    animation: fadeInUp 0.5s 0.9s forwards;
}

#objectif li:nth-child(3) {
    animation: fadeInUp 0.5s 1.0s forwards;
}

#objectif li:nth-child(4) {
    animation: fadeInUp 0.5s 1.1s forwards;
}

#objectif li:nth-child(5) {
    animation: fadeInUp 0.5s 1.2s forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    #about,
    #objectif {
        margin: 3rem 1rem;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    #about h2,
    #objectif h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    #about p:first-letter,
    #objectif p:first-letter {
        font-size: 2.5rem;
    }

    #about p,
    #objectif p,
    #objectif li {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    #objectif li {
        padding-left: 2rem;
    }

    #objectif li::before {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}

/* ===== EFFETS SUPPLÉMENTAIRES ===== */
/* Effet de brillance au survol */
#about:hover::after,
#objectif:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    transition: var(--transition);
}

/* Ombre portée dynamique */
#about:hover,
#objectif:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1),
        0 10px 10px rgba(0, 0, 0, 0.08);
}