/* Variables globales */
:root {
    /* Couleurs */
    --primary-color: #2563EB; /* Bleu royal */
    --secondary-color: #4FA1D8; /* Bleu ciel */
    --text-color: #2d3748;
    --light-bg: #f7f7f7;
    --white: #ffffff;

    /* Dégradés */
    --gradient-bg: linear-gradient(135deg, #E1EFFE 0%, #DBEAFE 100%); /* Dégradé de bleus clairs */

    /* Ombres */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Dimensions */
    --header-height: 80px;
    --header-height-scrolled: 65px; /* Nouvelle variable pour la hauteur du header en mode scroll */
    --container-max-width: 1200px;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-header: all 0.4s ease; /* Transition un peu plus lente pour le header */

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 15px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: var(--header-height);
    transition: padding-top var(--transition-header); /* Transition douce pour l'ajustement du padding */
}

body.header-scrolled {
    padding-top: var(--header-height-scrolled);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-sm);
}

/* Liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: currentColor;
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--space-xl) 0;
}

section h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--primary-color);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 1200px) {
    :root {
        --container-max-width: 960px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-max-width: 720px;
    }

    html {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-max-width: 540px;
        --header-height: 60px;
        --header-height-scrolled: 50px;
    }

    html {
        font-size: 14px;
    }

    section {
        padding: var(--space-lg) 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-sm);
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* Utilitaires */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }