/* --- VARIABLES ET RESET --- */
:root {
    --primary-color: #005a78;
    --secondary-color: #333333;
    --accent-color: #f7b733;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lora', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- STYLES GÉNÉRAUX --- */
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: 2.5rem; }
p { margin-bottom: 1rem; color: #555; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #003d52; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}
.section-bg {
    padding: 5rem 0;
    background-color: var(--background-color);
    position: relative; /* Indispensable pour positionner les cercles enfants */
    overflow: hidden;   /* Empêche les éléments de déborder */
}

.section-bg .container {
    position: relative;
    z-index: 2;
}

/* Définition de l'animation de flottement */
@keyframes float {
    0% {
        /* État initial : position de base, taille normale (scale(1)) */
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% {
        /* Mi-animation : déplacé et légèrement plus grand (scale(1.1) = +10%) */
        transform: translateY(-25px) translateX(15px) scale(1.1);
    }
    100% {
        /* Retour à l'état initial pour une boucle parfaite */
        transform: translateY(0px) translateX(0px) scale(1);
    }
    
}

/* Style de base pour chaque cercle généré par JS */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation-name: float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* --- UI ELEMENTS (Boutons, etc.) --- */
.cta-button, .cta-button-secondary, .cta-button-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.cta-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}
.cta-button:hover {
    background-color: #ffc857;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    body {
        line-height: 1.6;
    }
    .section-bg {
        padding: 3rem 1rem;
    }
    h1 {
        font-size: 2rem; /* Taille fixe pour mobile */
    }
    h2 {
        font-size: 1.8rem;
    }
    .section-title {
        margin-bottom: 2rem;
    }
    .container {
        padding: 0 15px;
    }
}