/* =========================================
   CHAIR FEMMES THEME - SERVICES PAGE
   ========================================= */

/* --- Font Definition --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

/* --- Unified Global Variables --- */
:root {
    /* Main Layout & Text (Couleurs chaudes et douces) */
    --bg-beige: #FAF6F0; 
    --text-dark: #4A332A; 
    --bg-dark: #3A261F; 

    /* Accent & Brand Colors */
    --brand-accent: #C47A65; /* Terracotta doux (tons de base) */
    --brand-primary: #d64d2e; /* LE NOUVEAU ROUGE/ORANGE POUR LES BOUTONS & ACCENTS */
    --brand-gold: #D4A373;   /* Or mat */
    --bg-card-dark: #3A261F; 
    --bg-light: #FAF6F0;     
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08); 
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* --- Base Body & Resets --- */
body, html {
    font-family: 'The Seasons', 'Playfair Display', serif; /* Police imposée par la cliente */
    margin: 0;
    padding: 0;
    
    /* UPDATED: Warm beige gradient layered OVER the sexy image */
    background-image: 
        linear-gradient(rgba(250, 246, 240, 0.85), rgba(235, 220, 205, 0.90)),
        url('assets/images/bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;

    /* Kills all accidental side-scrolling globally */
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    
    color: var(--text-dark);
}

/* Texture sensuelle en arrière-plan */
.sensual-texture-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ombres douces (bruns chauds) */
.shadow-soft {
    box-shadow: 0 15px 35px rgba(74, 51, 42, 0.08); 
}

/* --- LES BOUTONS ACTION (#d64d2e) --- */

/* Boutons principaux CTA (Hero & Video section) */
.btn-lime {
    background-color: var(--brand-primary); /* #d64d2e */
    color: white !important;
    border: none;
    padding: 14px 35px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-shadow: 0 10px 25px rgba(214, 77, 46, 0.3); 
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

.btn-lime:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(214, 77, 46, 0.4);
    background-color: #b83e22; 
}

/* --- Hero Container --- */
.hero-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px); 
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    background: url('assets/images/IMG_5933.png') no-repeat center center;
    background-size: cover;
    color: white;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(58, 38, 31, 0.3); 
    z-index: 1;
}

.hero-container > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    letter-spacing: -1px;
}

/* --- The Feature Cards --- */
.feature-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 5px;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(58, 38, 31, 0.9) 0%, transparent 100%); 
    z-index: 1;
}

.glass-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    padding: 25px;
    z-index: 2;
}

/* =========================================
   ADVANCED SENSUAL GRID (PROBLÉMATIQUES)
   ========================================= */

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.issue-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.55); /* Gentle translucent white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(196, 122, 101, 0.15); /* Soft terracotta border */
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.issue-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(196, 122, 101, 0.12);
    border-color: rgba(196, 122, 101, 0.4);
}

.issue-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(214, 77, 46, 0.08) 0%, rgba(196, 122, 101, 0.15) 100%);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-right: 15px;
    transition: all 0.4s ease;
}

.issue-card:hover .issue-icon {
    background: var(--brand-primary);
    color: white;
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(214, 77, 46, 0.3);
}

.issue-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    opacity: 0.85;
}

/* Elegant Conclusion Box */
.conclusion-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(250, 246, 240, 0.9) 100%);
    border: 1px solid rgba(196, 122, 101, 0.2);

}


/* =========================================
   RESULTS & SCIENCE SECTION
   ========================================= */
.results-science-section {
    background-color: var(--bg-light); 
}

.light-card {
    background-color: #ffffff; 
    border-radius: 5px;
    min-height: 320px;
}

.image-card {
    min-height: 320px;
    border-radius: 10px;
}

.float-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pill-top-left { top: 20px; left: 20px; }
.pill-bottom-right { bottom: 20px; right: 20px; }

/* --- Product / Services Cards --- */
.product-card {
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(74, 51, 42, 0.12);
}

.card-green {
    background-color: var(--bg-card-dark); 
    color: var(--bg-beige);
}

.card-light {
    background-color: #ffffff;
}

.badge-status {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-status.light-bg {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-status.dark-bg {
    background-color: var(--bg-beige); 
    color: var(--text-dark);
}

.badge-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.badge-status .dot.green { background-color: var(--brand-primary); }
.badge-status .dot.gray { background-color: var(--brand-accent); }

/* Product Buttons */
.btn-dark-pill {
    background-color: var(--bg-dark); 
    color: white;
    border-radius: 50px;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'The Seasons', 'Playfair Display', serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

.btn-dark-pill:hover {
    background-color: var(--text-dark);
    color: white;
}

.btn-outline-pill {
    background-color: transparent;
    color: var(--bg-dark);
    border: 1px solid #D1C5BD;
    border-radius: 50px;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'The Seasons', 'Playfair Display', serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

.btn-outline-pill:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.text-dark {
    color: var(--text-dark) !important;
}

/* =========================================
   VIDEO SECTION
   ========================================= */

.video-info-section .btn {
    padding: 12px 35px;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-custom-orange {
    background-color: var(--brand-primary);
    color: white !important;
    border: none;
    font-family: 'The Seasons', 'Playfair Display', serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

.btn-custom-orange:hover {
    background-color: #b83e22; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 77, 46, 0.3);
}

.video-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.video-wrapper.is-playing .play-btn-wrapper {
    opacity: 0;
}

.video-wrapper.is-playing:hover .play-btn-wrapper {
    opacity: 1;
}

.play-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--bg-beige);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-primary); /* Icône Play en #d64d2e */
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 10px rgba(214, 77, 46, 0.4),
                0 0 0 20px rgba(214, 77, 46, 0.15);
}

.play-btn:hover {
    background-color: var(--brand-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(214, 77, 46, 0.5),
                0 0 0 20px rgba(214, 77, 46, 0.25);
}

.button-group-styled {
    position: relative;
    display: inline-flex;
}

/* Keep service-card CTA pairs from overflowing on normal desktop widths */
.product-card .d-flex.gap-2 {
    flex-wrap: wrap;
}

.product-card .d-flex.gap-2 > a {
    flex: 1 1 220px;
    min-width: 0;
}

/* --- Mobile Responsiveness --- */
/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    /* --- Base Layout Fixes --- */
    .outer-frame { padding: 0; height: auto; }
    .hero-container { border-radius: 0; height: auto; padding-bottom: 2rem; }
    .arc-graphic-left { opacity: 0.3; }
    
    /* Let the grid collapse slightly sooner on tablets */
    .issues-grid {
        grid-template-columns: 1fr;
    }

    .product-card .d-flex.gap-2 {
        flex-direction: column;
    }

    .product-card .d-flex.gap-2 > a {
        width: 100%;
        flex: none; /* <-- This line fixes the height issue */
    }
}

@media (max-width: 768px) {
    .button-group-styled {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    .button-group-styled a {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}