/* ====================================================================== */
/* 1. NOUVELLE PALETTE DE COULEURS POUR MIEUX-VIVRE (Turquoise/Bleu Ciel) */
/* ====================================================================== */
:root {
    --color-base-dark: #333333; /* Gris foncé pour le texte */
    --color-primary: #4ECDC4; /* Turquoise Doux pour l'Action, CTA Principal */
    --color-secondary: #32A883; /* Vert Naturel pour les Accents (remplace l'Or) */
    --color-background-light: #f4fcfc; /* Fond très clair */
    --color-background-soft: #C7E8F3; /* Bleu ciel doux (remplace le fond sombre) */
    --color-highlight-box: #ffffff; /* Fond des boîtes latérales et contenu */
    --color-tertiary-soin: #F78888; /* ROSE CORAIL pour la catégorie (Massages) */
}

/* CSS GLOBAL ADAPTÉ */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--color-background-light);
    line-height: 1.6;
    color: var(--color-base-dark); 
    padding-top: 70px; /* Espace pour le H1 fixe */
}
main { 
    max-width: 800px; 
    margin: auto; 
    padding: 20px; 
    background: var(--color-highlight-box); 
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
/* MODIF
/* MODIFIFICATION POUR PAGE INDEX */
.index-fixe {
    margin-top: 80px; 
}

/* MODIFICATION 1 : TITRE FIXE */
h1 {
    color: var(--color-base-dark); /* Texte du H1 en gris foncé */
    text-align: center;
    padding: 10px 0;
    margin: 0;
    background-color: var(--color-background-soft); /* Fond Bleu Ciel */
    border-bottom: 3px solid var(--color-primary); /* Bordure Turquoise */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

h2, h3 {
    color: var(--color-base-dark); 
}
.cta-button {
    display: block;
    background: var(--color-primary); /* TURQUOISE */
    color: #fff;
    padding: 15px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
    transition: background-color 0.3s;
    /* Style supplémentaire pour le CTA principal, comme la page de grossesse */
    border: 3px solid var(--color-secondary); 
}
.cta-button:hover {
    background: var(--color-secondary); /* VERT NATUREL au survol */
    color: #fff; /* Texte blanc au survol */
}

/* NOUVEAU CSS POUR LA STRUCTURE EN COLONNES */
.main-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* COLONNE 1 : NAVIGATION (BOUTONS) */
.sidebar {
    width: 300px;
    margin-right: 20px;
    background: var(--color-highlight-box); /* Fond Blanc */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding-bottom: 40px;
    flex-shrink: 0;
}
.sidebar h2 {
    margin-top: 0;
    color: var(--color-primary); /* Titre sidebar en Turquoise */
    border-bottom: 2px solid var(--color-background-soft); /* Ligne en Bleu Ciel */
    padding-bottom: 10px;
}

/* MODIFICATION 2 : STYLE DES BOUTONS DE CATÉGORIE */
.category-button {
    display: block;
    background-color: var(--color-primary); /* TURQUOISE */
    color: #fff;
    padding: 15px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    text-align: left;
    border: none;
    width: 100%;
    transition: background-color 0.3s;
    position: relative;
    line-height: 1.3;
}


.category-button:hover, .category-button.active {
    background-color: var(--color-secondary); /* VERT NATUREL au survol */
}
.category-button::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.3s;
    color: #fff; /* + en Blanc */
}
.category-button.active::after {
    content: '-';
    transform: rotate(180deg);
}

/* CONTENEUR DES SOUS-BOUTONS */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding: 0 10px;
    background-color: var(--color-background-light); /* Fond très clair */
    border-radius: 0 0 5px 5px;
}

/* Suppression des anciennes règles de sous-menu pour éviter les conflits */
/* Nous allons réutiliser les .submenu-link pour les liens */

/* COLONNE 2 : CONTENU PRINCIPAL */
.content {
    flex-grow: 1;
    min-width: 0;
    background: var(--color-highlight-box); 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width:900px;
}
.content .presentation-box {
    border: 3px solid var(--color-primary); /* Bordure en TURQUOISE */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: center;
    background-color: var(--color-background-soft); /* Fond Bleu Ciel */
}
.content .image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 20px auto;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    body {
        padding-top: 70px;
    }
    .main-wrapper {
        flex-direction: column;
        padding: 0 10px;
        margin: 10px auto;
    }
    .sidebar {
        width: auto;
        margin-right: 0;
        margin-bottom: 20px;
        position: static;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding: 20px 10px; /* Ajusté pour éviter le débordement sur mobile */
    }
    .content {
        max-height: none;
        overflow-y: visible;
        padding: 20px;
    }
}

/* Styles pour le footer et les liens */
footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #999;
    background-color: #eee;
}
.liens-site-principal {
    text-align: center;
    margin: 40px auto 10px;
    font-size: 0.95rem;
    color: #555;
}
.liens-site-principal a {
    color: var(--color-secondary); /* Liens en Vert Naturel */
    text-decoration: none;
    font-weight: bold;
}
.liens-site-principal a:hover {
    text-decoration: underline;
}
.liens-site-principal .slogan {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}
/* --- NOUVEAU STYLE POUR LES LIENS DANS LE MENU DÉROULANT --- */

.submenuUl {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.submenuLi {
    margin-bottom: 8px;
    /* Ajout des styles des puces que nous avions avant */
    position: relative;
    padding-left: 15px;
}

/* Rétablissement de la puce personnalisée */
.submenuLi:before {
    content: "•"; 
    font-size: 1.5em;
    color: var(--color-secondary); /* Puce en Vert Naturel */
    position: absolute;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
}


/* Style Bouton pour les liens de sous-menu */
.submenu-link {
    display: block;
    padding: 12px 15px;
    background: var(--color-background-soft); /* Fond Bleu Ciel */
    color: var(--color-base-dark) !important; 
    text-decoration: none;
    border-radius: 15px;
    font-size: 1em;
    font-weight: bold;
    text-align: left; /* Aligné à gauche pour lire la puce */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
    margin-bottom: 3px;
    margin-left: 15px; /* Décalage pour la puce */
}
.submenu-link:hover {
    background: #b7e0f0; /* Bleu plus clair */
}
.subtitle {
    background-color: var(--color-background-soft); /* Bleu ciel doux */
    color: var(--color-base-dark);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1.2em; /* Légèrement plus gros */
    font-weight: bold;
    text-align: center;
    border-left: 2px solid var(--color-primary); /* Bordure Turquoise */
}
/* --- STYLES SPÉCIFIQUES À LA PAGE D'ACCUEIL --- */

/* Conteneur de la grille (pour centrage et alignement) */
.produits-vedette-grid {
    margin-top: 40px;
}
/* Bordure des produits vedettes Or -> VERT NATUREL */
.produits-vedette-grid h2[style*="double"] {
    border-bottom-color: var(--color-secondary) !important; 
}
/* Grille pour les cartes de produits (3 colonnes) */
.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* Style de chaque carte de produit */
.produit-card {
    background: var(--color-highlight-box);
    border: 1px solid var(--color-background-soft);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.produit-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary); /* Bordure Turquoise au survol */
}

.produit-card h3 {
    font-size: 1.1em;
    min-height: 40px;
    margin-top: 0;
}

.produit-card h3 a {
    color: var(--color-primary); /* Titres des produits en TURQUOISE */
    text-decoration: none;
}

.produit-card p {
    font-size: 0.9em;
    color: #666;
    min-height: 50px;
}

/* Ajustement du bouton CTA dans la carte */
.produit-card .cta-button {
    padding: 10px 15px;
    font-size: 1em;
    margin-top: 10px;
    border: 2px solid var(--color-secondary); /* Bordure Vert Naturel */
    /* Assurez-vous que le CTA dans la carte n'est pas trop gros */
    display: inline-block;
    width: auto;
}
 
/* .product-header .subtitle {
    white-space: nowrap;  
    overflow: hidden;
    text-overflow: ellipsis; 
}

 
.product-header .subtitle {
    white-space: normal;  
    overflow: visible;
} */
/* Media Query pour un affichage sur mobile (les cartes prennent toute la largeur) */
@media (max-width: 768px) {
    .card-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Correction de l'alignement du submenu sur mobile basé sur les nouvelles règles */
    .submenuLi {
        padding-left: 0; /* Retire le padding pour la puce sur mobile */
    }
    .submenuLi:before {
        left: 10px; /* Place la puce près du bord de la sidebar (qui a 10px de padding) */
    }
    .submenu-link {
        margin-left: 30px; /* Marge pour laisser la place à la puce + alignement */
        text-align: center; /* Centre le texte dans la boîte sur mobile */
    }

    /* 1. Règle pour le TITRE PRINCIPAL de la page produit (H1) */
    .product-header h1 {
        font-size: 1.5em; /* Réduit la taille du H1 (ajuster si besoin) */
        line-height: 1.2;
    }

    /* 2. Règle pour le SOUS-TITRE (P.subtitle) de la page produit */
    .product-header .subtitle {
        font-size: 0.95em; /* Réduit la taille du sous-titre pour qu'il tienne sur moins de lignes */
        line-height: 1.35;
        padding: 0 5px; /* Optionnel : ajoute un petit padding latéral pour ne pas coller les bords */
    }

    /* 3. Ajustement de la hauteur du placeholder d'image sur mobile (optionnel) */
    .product-header .image-placeholder {
        height: 250px; /* Réduit la hauteur du bloc d'image pour gagner de l'espace vertical */
    }
}
main p,
main ul li,
main blockquote,
.sales-pitch {
    text-align: justify;
    hyphens: auto;
}