/* ============================================================
   PAGE ACCUEIL - CANDEOLE33
   Version : ISOLÉE (Namespacing 'cand-home-*')
   Description : Design spécifique accueil, sans conflits.
   ============================================================ */

:root {
    --cand-home-pink: #D92B9C;
    --cand-home-text: #333333;
    --cand-home-radius: 8px;
    --cand-bg-soft-rose: #fef9fb;
    --cand-bg-dark: #2c2c2c; /* Fond sombre pour la section SEO */
}

/* =========================================
   1. STYLES GÉNÉRAUX (TITRES & CONTENEURS)
   ========================================= */

.cand-home-section-wrapper {
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
    border-radius: var(--cand-home-radius); 
}

h2.cand-home-section-title {
    color: var(--cand-home-pink); 
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-transform: none;
    font-weight: 600;
    line-height: 1.2;
}

/* =========================================
   2. STYLES DES SECTIONS 
   ========================================= */

/* --- SECTION 0 : FÊTE DES MÈRES --- */
.cand-mother-day-container {
    background-color: var(--cand-bg-soft-rose);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.cand-mother-day-text {
    margin-bottom: 20px;
}

.cand-home-event-desc {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.3 !important; /* Interligne réduit */
    color: #444;
    max-width: 600px;
}

.cand-link-event {
    color: var(--cand-home-pink);
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cand-link-event:hover {
    color: #bc1e81;
}

/* Logiciel PC pour éviter l'étirement des produits Fête des mères */
@media (min-width: 922px) {
    .cand-mother-day-flex {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .cand-mother-day-text { 
        flex: 1; 
        margin-bottom: 0; 
    }
    .cand-mother-day-products { 
        flex: 1; 
        max-width: 450px; /* Empêche l'étirement excessif */
    }
}

/* --- Section 1 : Nouveautés (Fond Blanc) --- */
.cand-home-bg-nouveautes {
    background-color: #FFFFFF;
    border: none; 
    border-radius: var(--cand-home-radius); 
}

/* Bouton Voir toute la boutique (Nouveau Design) */
a.cand-home-btn-voir-tout {
    background-color: var(--cand-home-pink) !important;
    color: #FFFFFF !important; 
    border-radius: 30px !important;
    padding: 14px 40px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(217, 43, 156, 0.3);
}

a.cand-home-btn-voir-tout:hover {
    background-color: #bc1e81 !important; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 43, 156, 0.4);
}

/* --- Section 2 : Boutique (Fond Transparent) --- */
.cand-home-bg-boutique {
    background-color: transparent;
    border: none; 
    padding: 0; 
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

/* --- Section 3 : Promos (Fond Blanc) --- */
.cand-home-bg-promos {
    background-color: #FFFFFF;
    border: none; 
    border-radius: var(--cand-home-radius);
}

/* =========================================
   3. SECTION SEO (FOND ASSOMBRI & TEXTE CENTRÉ)
   ========================================= */
.cand-home-seo-banner-footer {
    background-color: var(--cand-bg-dark); /* Fond sombre */
    padding: 60px 20px;
    margin: 40px 0;
    text-align: center;
    border-radius: var(--cand-home-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h2.cand-home-main-h2 {
    color: #FFFFFF !important; /* Blanc pur pour le titre */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: none;
}

p.cand-home-main-desc-dark {
    color: #E8E5DE !important; /* Blanc un peu plus foncé (Beige cire) pour reposer l'œil */
    font-size: 1.1rem; 
    line-height: 1.6;
    margin: 0 auto 30px auto; 
    max-width: 800px;
    font-weight: 400;
    text-align: center;
}

.cand-home-silo-nav-dark {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cand-home-silo-nav-dark a.cand-home-silo-link {
    color: #FFFFFF !important;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.cand-home-silo-nav-dark a.cand-home-silo-link:hover {
    color: var(--cand-home-pink) !important;
}

.cand-home-silo-nav-dark span.cand-home-silo-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
}

/* =========================================
   4. SECTION 2 : BOUTIQUE (CARTES CATÉGORIES)
   ========================================= */

.cand-home-categories-list {
    display: flex;
    flex-direction: column;
    gap: 30px; 
}

.cand-home-cat-row {
    display: flex;
    flex-direction: row;
    background: transparent; 
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 20px; 
    overflow: visible; 
}

/* --- COLONNE GAUCHE (Catégorie) --- */
a.cand-home-cat-col-left {
    width: 35%;
    padding: 25px; 
    background-color: #333; 
    border-radius: 12px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-decoration: none !important;
    cursor: pointer;
    position: relative; 
    z-index: 5;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.cand-home-cat-bg-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0; 
    transition: transform 0.6s ease;
}

a.cand-home-cat-col-left:hover .cand-home-cat-bg-layer {
    transform: scale(1.1); 
}

.cand-home-cat-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1; 
    transition: all 0.4s ease;
}

a.cand-home-cat-col-left:hover .cand-home-cat-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}

.cand-home-cat-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2; 
}

.cand-home-cat-img {
    width: 70px; height: 70px;
    object-fit: contain; 
    margin-bottom: 12px;
    border: none; box-shadow: none;
    filter: brightness(0) invert(1); 
    drop-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
a.cand-home-cat-col-left:hover .cand-home-cat-img {
    transform: scale(1.1) rotate(3deg);
}

.cand-home-cat-title {
    font-size: 1rem;
    color: #FFFFFF !important;
    margin: 5px 0 8px 0;
    font-weight: 700;
    text-transform: uppercase; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* --- COLONNE DROITE (Produit) --- */
.cand-home-cat-col-right {
    flex: 1;
    padding: 15px 25px;
    display: flex;
    background-color: #FFFFFF;
    position: relative;
    border: 1px solid #E8E5DE;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cand-home-cat-col-right:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--cand-home-pink); 
}

a.cand-home-list-item {
    display: flex; flex-direction: row; align-items: center;
    width: 100%; height: 100%; text-decoration: none !important; color: inherit;
}

.cand-home-list-img-wrapper {
    flex-shrink: 0; width: 110px; margin-right: 25px;
}
.cand-home-list-img-wrapper img {
    width: 100%; height: auto; border-radius: 8px; 
    object-fit: cover; aspect-ratio: 1 / 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.cand-home-list-content {
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center;
}

.cand-home-list-title {
    display: block; font-size: 1.15rem; font-weight: 600; color: #333;
    margin-bottom: 8px; transition: color 0.2s;
}
.cand-home-cat-col-right:hover .cand-home-list-title { color: var(--cand-home-pink); }

.cand-home-list-price {
    font-size: 1.2rem; color: #15799E; font-weight: 700; margin-top: auto;
}
.cand-home-list-price del { 
    font-size: 0.9rem; color: #ccc; font-weight: normal; margin-right: 8px;
}

/* =========================================
   5. RESPONSIVE (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    
    .cand-home-section-wrapper.cand-home-bg-nouveautes {
        padding-left: 0; padding-right: 0; border-radius: 0;
    }
    .cand-home-bg-nouveautes h2, .cand-home-bg-nouveautes ul.products {
        padding-left: 15px; padding-right: 15px;
    }
    
    /* SEO Footer Mobile */
    .cand-home-seo-banner-footer {
        padding: 40px 15px;
    }
    h2.cand-home-main-h2 { font-size: 1.5rem; }
    p.cand-home-main-desc-dark { font-size: 1rem; text-align: center; }

    .cand-home-silo-nav-dark {
        flex-direction: column; 
        gap: 12px;
    }
    .cand-home-silo-nav-dark span.cand-home-silo-sep { display: none; } 

    .cand-home-silo-nav-dark a.cand-home-silo-link {
        font-size: 0.95rem;
        background: rgba(255,255,255,0.1); 
        padding: 10px 15px;
        border-radius: 20px;
        width: 100%;
        max-width: 250px;
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* --- SECTION 2 MOBILE --- */
    .cand-home-categories-list { gap: 20px; }

    .cand-home-cat-row {
        display: block; 
        position: relative; 
        height: 280px; 
        width: 100%;
        margin: 0; padding: 0;
        border: none;
        background: transparent;
        border-radius: 12px;
        overflow: hidden; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    
    a.cand-home-cat-col-left {
        position: absolute; top: 15px; left: 15px; z-index: 20;
        width: auto !important; max-width: 85%;
        padding: 5px 12px; 
        background-color: #FFFFFF !important; 
        border-radius: 50px; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        display: block; 
        height: auto !important; min-height: 0 !important;
        transition: none; transform: none !important;
    }

    .cand-home-cat-content-wrapper {
        display: flex !important;
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: flex-start !important;
        gap: 8px; 
        width: 100%;
    }

    .cand-home-cat-img {
        width: 18px !important; height: 18px !important; 
        margin: 0 !important;
        object-fit: contain;
        filter: none !important; drop-shadow: none !important;
        flex-shrink: 0; 
    }
    
    .cand-home-cat-title {
        margin: 0 !important; padding: 0 !important;
        font-size: 0.75rem !important; 
        color: #333 !important; 
        text-shadow: none !important;
        font-weight: 700;
        white-space: nowrap; 
    }
    
    .cand-home-cat-bg-layer, .cand-home-cat-overlay { 
        display: none !important; 
    }

    .cand-home-cat-col-right {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important; height: 100% !important;
        padding: 0 !important; margin: 0 !important; z-index: 1; 
        background: #f0f0f0; border: none !important; border-radius: 0 !important; 
        box-shadow: none !important; transform: none !important; display: block;
    }
    
    a.cand-home-list-item { display: block; width: 100%; height: 100%; position: relative; }
    
    .cand-home-list-img-wrapper {
        position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; 
        margin: 0 !important; padding: 0 !important;
    }
    .cand-home-list-img-wrapper img {
        width: 100% !important; height: 100% !important; object-fit: cover !important; 
        border-radius: 0 !important; box-shadow: none !important;
    }

    .cand-home-list-content {
        position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 15%, rgba(0,0,0,0.5) 60%, transparent 100%);
        padding: 50px 15px 15px 15px;
        display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    }
    .cand-home-list-title {
        font-size: 1.1rem; color: #FFFFFF !important; margin-bottom: 4px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
    }
    .cand-home-list-price { font-size: 1.1rem; color: #FFF !important; font-weight: 700; }
    .cand-home-list-price del { color: #CCC !important; font-size: 0.8rem; }
}

/* =========================================
   6. SECTION 4 : EXPERTISE (DECO vs SOIN)
   ========================================= */

.cand-home-bg-expertises {
    background-color: #fdfafb;
    border-radius: 8px;
    padding: 40px 25px;
    margin-top: 20px;
}

.cand-home-expertise-main-title {
    color: #333 !important;
    font-size: 1.3rem !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px !important;
    line-height: 1.5;
}

.cand-home-expertise-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.cand-home-expertise-card {
    flex: 1;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f3d1e4;
}

.cand-home-expertise-card h3 {
    color: var(--cand-home-pink);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.cand-home-expertise-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Adaptabilité Mobile Expertise */
@media (max-width: 768px) {
    .cand-home-expertise-container {
        flex-direction: column;
        gap: 20px;
    }
    .cand-home-expertise-main-title {
        font-size: 1.1rem !important;
    }
}

/* --- CONTAINER ÉVÉNEMENT PHARE (Entre Section 1 et 2) --- */
.cand-home-event-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    text-align: center;
    padding-bottom: 0px; 
}

@media (max-width: 768px) {
    .cand-home-event-container {
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .cand-home-event-container {
        margin-top: -30px; 
    }
}