/* === Thème Stéphanie - Bien-être au cœur de votre vie === */
/* Version finale avec effet de scroll sur le fond et mise en page à deux colonnes */

/* Couleurs principales */
:root {
    --accent-color: #9C27B0;
    --accent-light: #E1BEE7;
}

/* === Arrière-plan global (effet de scroll doux) === */
html, body {
    min-height: 100%;
    background: url('../images/background.jpg') center top / cover no-repeat fixed;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}


/* Animation subtile de mouvement du fond */
@keyframes slow-pan {
    from { background-position: center top; }
    to { background-position: center 10%; }
}

/* === En-tête principal : fond blanc + texte violet === */
/* === Header sticky pleine largeur === */
#header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: white;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Force l’extension sur toute la largeur */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Barre de navigation */
#navbar {
    width: 100%;
    background: white;
    border-top: 1px solid var(--accent-light);
    border-bottom: 1px solid var(--accent-light);
    display: flex;
    justify-content: center;
}

/* Liens du menu */
#navbar ul.navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0.5rem 0;
}
#navbar ul.navigation li a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.2s ease;
}
#navbar ul.navigation li a:hover {
    color: #6A1B9A;
}




#header {
    background-color: #fff;
    color: var(--accent-color);
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-bottom: 3px solid var(--accent-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 20;
}

.site-title {
    color: var(--accent-color);
    font-family: 'Georgia', serif;
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
}

.site-tagline {
    color: #7A1EA1;
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 0.3rem;
}

/* === Barre de navigation === */

#navbar a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

#navbar a:hover,
#navbar a.active {
    color: #4A0072;
    border-bottom: 2px solid var(--accent-light);
}

/* === Conteneur principal === */
main#body {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 2rem auto !important;
    border-radius: 0 !important;
    max-width: 1200px;
}

/* === Disposition en deux colonnes === */
#body .layout-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Colonne principale (contenu) */
#body .main-column {
    flex: 1 1 68%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    box-sizing: border-box;
}

/* Colonne droite (encarts latéraux) */
#body .side-column {
    flex: 0 0 24%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    box-sizing: border-box;
    align-self: flex-start;
    position: sticky;
    top: 2rem; /* reste visible au scroll */
}

/* === Encarts individuels === */
.sidebar-box {
    margin-bottom: 2rem;
}

.sidebar-box h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.4rem;
}

/* === Titres === */
h1, h2, h3 {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === Paragraphes === */
p {
    margin-bottom: 1rem;
}

/* === Pied de page violet === */
#footer {
    text-align: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

#footer a {
    color: var(--accent-light);
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* === Images === */
img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* === Citations et listes === */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 1.5rem 0;
}

ul {
    list-style: disc inside;
}

/* === Menu mobile (slidebar) === */
.sb-slidebar,
.sb-slidebar-left {
    background: #fff !important;
    color: var(--accent-color) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sb-slidebar a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--accent-light);
    transition: background-color 0.2s ease;
}

.sb-slidebar a:hover {
    background-color: var(--accent-light);
}

/* === Bouton hamburger === */
.menu-btn,
.sb-toggle-left {
    color: var(--accent-color) !important;
    font-size: 1.6rem;
    margin-right: 1rem;
    cursor: pointer;
}

/* === Responsive === */
@media (max-width: 900px) {
    #body .layout-wrapper {
        flex-direction: column !important;
    }

    #body .side-column {
        margin-top: 1.5rem;
        position: static;
    }

    #header {
        padding: 1.2rem 0.8rem;
    }

    .site-title {
        font-size: 1.8rem;
    }

    #navbar {
        border-top: 1px solid var(--accent-light);
        padding-top: 0.5rem;
    }

    #body .main-column {
        padding: 1.5rem;
    }
}

/* === Corrige le masquage du fond par Afterburner2 === */
#sb-site {
    background: transparent !important;
}

/* === Corrige le chevauchement du footer avec la colonne sticky === */
#sb-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* occupe toute la hauteur de la fenêtre */
}

main#body {
    flex: 1; /* pousse le footer vers le bas */
}

/* Footer toujours en bas mais non superposé */
#footer {
    position: relative !important;
    z-index: 1;
    margin-top: 2rem;
}

/* Option : garder la même couleur violette qu'au-dessus du site */
#header .topbar {
    background: white;
}

#navbar {
    background: transparent; /* évite les superpositions */
}

/* === Corrige le header sticky masqué par Afterburner2 === */

/* Désactive le contexte de transformation du site */
#sb-site {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
}

/* Header sticky fonctionnel */
#header {
    position: sticky !important;
    top: 0;
    z-index: 10000;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effet doux quand on scrolle */
body.scrolled #header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}


/* === HEADER ET MENU STICKY === */

/* Bandeau supérieur défilant normalement */
#header .topbar {
    background: #fff;
    text-align: center;
    padding: 1rem 0 0.5rem;
    color: var(--accent-color);
}

/* Style du titre */
.site-title {
    font-size: 2rem;
    margin: 0;
    font-family: 'Georgia', serif;
    color: var(--accent-color);
}
.site-tagline {
    color: #7A1EA1;
    margin: 0.3rem 0 1rem;
    font-size: 1.1rem;
}

/* --- Menu sticky indépendant --- */
#navbar {
    background: white;
    border-top: 1px solid var(--accent-light);
    border-bottom: 1px solid var(--accent-light);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;            /* deviens sticky quand le haut arrive à 0 */
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Liens du menu */
#navbar ul.navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.6rem 0;
    gap: 2rem;
}
#navbar ul.navigation li a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
#navbar ul.navigation li a:hover,
#navbar ul.navigation li.active a {
    color: #6A1B9A;
}
