/* ==========================================================================
   1. BASES & RÉINITIALISATION
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f6;
    color: #333333;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Images responsives */
img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. BANDEAU DE L'ENTÊTE (HEADER EN BANDEAU IMAGÉ)
   ========================================================================== */
.header-qigong {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4)), url('index.png') no-repeat center center;
    background-size: cover;
    padding: 30px 4%;
    color: #ffffff;
}

/* Structure de la zone titre + logo */
.brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    width: 100%;
}

.title-area {
    text-align: left;
}

.title-area h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.title-area .subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
}

.logo-area {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   3. BARRE DE NAVIGATION (Harmonisée)
   ========================================================================== */
.menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.menu-item a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.menu-item a:hover, .menu-item.active a {
    border-bottom-color: #7fa15a;
}

/* ==========================================================================
   4. ZONE CONTENU PRINCIPAL
   ========================================================================== */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 4%;
    gap: 5%;
    align-items: center;
}

.image-side {
    flex: 1;
    max-width: 450px;
}

.image-side img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.text-side {
    flex: 1.3;
    text-align: left;
}

.text-side h2 {
    font-size: 2.5rem;
    color: #2c3e2b;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.text-side h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #7fa15a;
    margin-top: 10px;
}

.text-side p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

/* ==========================================================================
   5. PIED DE PAGE (FOOTER)
   ========================================================================== */
.footer {
    background-color: #f4f4ee;
    color: #777777;
    font-size: 0.85rem;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #eaeae4;
    margin-top: auto;
}

/* ==========================================================================
   6. ADAPTATION SMARTPHONES & TABLETTES
   ========================================================================== */
@media screen and (max-width: 850px) {
    .brand-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .title-area {
        text-align: center;
    }

    .title-area h1 {
        font-size: 1.8rem;
    }

    .logo-area {
        order: -1; /* Place le logo au-dessus sur mobile */
        width: 80px;
        height: 80px;
    }

    .menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .menu-item {
        width: 28%;
        text-align: center;
    }

    .menu-item a {
        font-size: 0.9rem;
    }

    .main-content {
        flex-direction: column;
        margin: 30px auto;
        gap: 30px;
    }

    .image-side {
        width: 100%;
        max-width: 350px;
    }

    .text-side {
        text-align: justify;
    }

    .text-side h2 {
        font-size: 1.9rem;
        text-align: center;
    }

    .text-side h2::after {
        margin: 10px auto 0 auto;
    }

    .text-side p {
        font-size: 0.95rem;
    }
}