/* =========================================
   VARIABLES DU THÈME
   ========================================= */
:root {
    --primary-color: #5b9aa0; /* Bleu gris apaisant */
    --secondary-color: #d6e4e5; /* Bleu très clair */
    --secondary-color-rgb: 214, 228, 229; /* Pour l'opacité du fond */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f9fbfb;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* =========================================
   RESET ET STYLES DE BASE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover, a.active {
    color: var(--primary-color);
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HEADER & NAVIGATION (MODIFIÉ)
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Nouveau wrapper pour le logo et le texte cote a cote */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre le logo et le texte */
}

/* Style de l'image du logo */
.header-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Rend l'image ronde */
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 600;
    font-size: 15px;
    padding: 5px 0;
}

/* =========================================
   SECTION HERO / INTRODUCTION (MODIFIÉ AVEC MAIN.PNG)
   ========================================= */
.intro-section {
    text-align: center;
    padding: 100px 20px; /* Plus de hauteur pour voir l'image */
    /* On utilise un dégradé semi-transparent par-dessus l'image 
       pour s'assurer que le texte reste lisible. 
    */
    background: linear-gradient(rgba(214, 228, 229, 0.85), rgba(214, 228, 229, 0.85)), url('main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2c3e50;
    margin-bottom: 50px;
}

.intro-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.intro-box {
    background-color: rgba(255, 255, 255, 0.95); /* Fond blanc légèrement transparent */
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
}

.intro-box p {
    margin-bottom: 18px;
    font-size: 17px;
}

/* =========================================
   TITRES PRINCIPAUX
   ========================================= */
.main-program-container {
    margin-bottom: 60px;
}

.main-title {
    text-align: center;
    color: var(--text-color);
    font-size: 32px;
    margin-bottom: 50px;
    line-height: 1.3;
}

.main-title span {
    font-size: 22px;
    font-weight: normal;
    color: var(--text-light);
    display: block;
    margin-top: 10px;
}

.year-title {
    text-align: center;
    font-size: 24px;
    color: var(--primary-color);
    margin: 50px 0 25px 0;
    padding-bottom: 10px;
    position: relative;
}
/* Petite ligne décorative sous le titre */
.year-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.year-title span {
    font-size: 16px;
    font-weight: normal;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

/* =========================================
   GRILLE DES FORMATIONS (CARTES)
   ========================================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.course-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.course-title {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1; /* Pour aligner les bas de cartes */
}

.course-card ul {
    margin-bottom: 20px;
}

.course-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-light);
}

.course-card li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 1.2;
}

.course-therapy {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: auto; /* Pousse cet élément vers le bas */
}

/* =========================================
   LISTE DATES PROVISOIRES
   ========================================= */
.simple-dates {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 450px;
    margin: 0 auto 40px auto;
    border: 1px solid var(--secondary-color);
}

.simple-dates li {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #2c3e50; /* Un peu plus foncé pour le contraste */
    color: rgba(255,255,255,0.8);
    padding: 50px 0 30px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

footer strong {
    color: var(--white);
    font-size: 17px;
}

footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px 0;
    }
    
    .logo-wrapper {
        flex-direction: column; /* Logo au dessus du texte sur mobile */
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .intro-section {
        padding: 60px 20px;
    }

    .main-title {
        font-size: 26px;
    }
}