/*
Theme Name: Insights DZ
Description: Insights Theme
Author: Insights
Version: 1.0
*/

/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary-dark: #063118;
    /* Deep Space Green */
    --clr-primary: #0a4f27;
    /* Core Insights Green */
    --clr-primary-light: #16a34a;
    /* Accent Green */

    --clr-accent: #f97316;
    /* Orange accent (from social images) */
    --clr-accent-hover: #ea580c;

    --clr-bg-dark: #ffffff;
    /* Very dark green/black background for space vibe */
    --clr-bg-card: rgba(255, 255, 255, 0.7);
    /* Glass morphic card bg */
    --clr-bg-card-border: rgba(10, 79, 39, 0.15);

    --clr-text-main: #0f172a;
    /* Off white for readability on dark */
    --clr-text-muted: #475569;
    /* Gray for secondary text */
    --clr-text-inverse: #ffffff;
    /* Dark text if needed on light cards */

    --clr-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    /* Reduced from 2rem */
    --space-lg: 3rem;
    /* Reduced from 4rem */
    --space-xl: 4.5rem;
    /* Reduced from 6rem */
    --space-2xl: 6rem;
    /* Reduced from 8rem */

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Sparkle Effect — disabled on hero, kept for other sections via JS if needed */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #ffffff;
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--clr-text-main);
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.highlight {
    color: var(--clr-primary-light);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(22, 163, 74, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.section-green {
    background-color: var(--clr-primary-dark);
    color: var(--clr-white);
}

.section-green h1,
.section-green h2,
.section-green h3,
.section-green h4,
.section-green h5,
.section-green h6 {
    color: var(--clr-white);
}

.section-green .section-desc,
.section-green .section-subtitle,
.section-green .stat-label,
.section-green p {
    color: rgba(255, 255, 255, 0.9);
}

.section-white {
    background-color: var(--clr-white);
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: var(--space-md);
}

.section-title.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-md);
}

.icon-primary {
    color: var(--clr-primary-light);
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* Specific styling to make sections full viewport height on desktop */
@media (min-width: 992px) {
    .section-full-height {
        min-height: auto;
        /* Removed 100vh to fit content */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
}

/* ==========================================================================
   Utility Classes & Components 
   ========================================================================== */
.glass-card {
    background: var(--clr-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: var(--space-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(10, 79, 39, 0.3);
    border-color: rgba(22, 163, 74, 0.3);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--clr-primary-light);
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 79, 39, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.btn-full {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-primary-light);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-bg-card-border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled.menu-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1001;
}

.logo-w,
.logo-g {
    height: auto;
    display: block;
    transition: opacity var(--transition-base);
}

/* Base State (Dark Hero Background) */
/* Hide green logo, show white logo */
.logo-g {
    display: none;
}

.logo-w {
    display: block;
}

/* Scrolled State (White Background) */
/* Hide white logo, show green logo */
.navbar.scrolled .logo-w,
.navbar.menu-open .logo-w {
    display: none;
}

.navbar.scrolled .logo-g,
.navbar.menu-open .logo-g {
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-primary-light);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--clr-white);
}

/* Scrolled link styles */
.navbar.scrolled .nav-link {
    color: var(--clr-text-main);
}

.navbar.scrolled .nav-link:hover {
    color: var(--clr-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Base button outline in navbar (transparent/white for dark hero) */
.navbar .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--clr-white);
}

.navbar .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-white);
}

/* Scrolled button outline (green for white background) */
.navbar.scrolled .btn-outline {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-white);
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: color var(--transition-base);
}

.navbar.scrolled .mobile-menu-btn,
.navbar.menu-open .mobile-menu-btn {
    color: var(--clr-text-main);
}

.mobile-nav {
    display: none;
}

@media (max-width: 992px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--clr-white);
        padding: 6rem 2rem 2rem;
        /* Start hidden and without any transformation */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .mobile-nav.active {
        opacity: 1;
        visibility: visible;
    }

    /* Staggered animation for links */
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav-link {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        padding: 1rem 0;
        color: var(--clr-text-main);
        border-bottom: 1px solid var(--clr-bg-card-border);
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-nav.active .mobile-nav-link {
        animation: slideUpFade 0.4s ease forwards;
    }

    /* Stagger delays manually or with nth-child */
    .mobile-nav.active .mobile-nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    .mobile-nav.active .mobile-nav-link:nth-child(5) {
        animation-delay: 0.5s;
    }

    .mobile-nav-actions {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-nav.active .mobile-nav-actions {
        animation: slideUpFade 0.4s ease forwards;
        animation-delay: 0.6s;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 70% at 15% 85%, rgba(22, 163, 74, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 20%, rgba(10, 79, 39, 0.40) 0%, transparent 60%),
        linear-gradient(145deg, #063318 0%, #0A4F27 40%, #16A34A 100%);
    color: var(--clr-white);
}

.hero h1,
.hero p {
    color: var(--clr-white);
}

/* Overlay subtil */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(6, 51, 24, 0.45) 0%,
            rgba(10, 79, 39, 0.10) 50%,
            rgba(6, 51, 24, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Grille de points verts */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 168, 90, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 168, 90, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Canvas starfield */
#starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 60px;
    /* espace avant Découvrir */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 2rem;
    /* Added spacing above the title */
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    font-weight: 800;
    animation: fadeInUp 0.9s 0.1s ease both;
    color: var(--clr-white);
}


.hero-subtitle {
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s 0.3s ease both;
}

/* ── Boutons hero ── */
.hero .btn-primary {
    background: var(--clr-primary-light);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.45);
    padding: 0.85rem 2rem;
}

.hero .btn-primary:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(10, 79, 39, 0.55);
}

.hero .btn-outline {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.90);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    padding: 0.85rem 2rem;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px);
}


/* ── Floating Images ── */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.hero-float--left {
    left: 6%;
    top: 42%;
    animation: floatUp 4s ease-in-out infinite;
}

.hero-float--right {
    right: 6%;
    top: 44%;
    animation: floatDown 4.5s ease-in-out infinite;
}

.hero-float__img {
    width: 110px;
    height: 110px;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-float__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes floatDown {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(14px);
    }
}

@media (max-width: 1100px) {
    .hero-float {
        display: none;
    }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollDown 1.8s ease infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-list {
    margin-top: var(--space-xs);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

.flow-animation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, var(--clr-primary) 0%, #031c0e 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Container for particles */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Individual particle styling */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.8) 0%, rgba(74, 222, 128, 0) 70%);
    pointer-events: none;
    animation: particleMove linear infinite forwards;
}

@keyframes particleMove {
    0% {
        transform: translateX(-50px) translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(120%) translateY(var(--drift));
        opacity: 0;
    }
}

/* SVG Container Styling */
.svg-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    /* Increased from 600px to make arrows larger */
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.2));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(22, 163, 74, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(22, 163, 74, 0.5));
    }
}

.svg-container svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .visual-card {
        width: 60%;
        padding-bottom: 60%;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Stats Section (Green)
   ========================================================================== */
.stats {
    padding-top: var(--space-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(145deg, rgba(10, 79, 39, 0.4), rgba(2, 15, 7, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-primary-light);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-primary-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Offers Section (White)
   ========================================================================== */
.offers {
    background: var(--clr-white);
}

.offers-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
    /* Reduced from space-lg */
}

.offer-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: var(--space-md);
    /* Reduced from space-lg space-md */
}

.offer-card.popular {
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.15);
    transform: scale(1.02);
}

.offer-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
    color: var(--clr-white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.offer-icon-wrapper {
    width: 48px;
    /* Slightly smaller to fit beside title */
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(22, 163, 74, 0.1);
    color: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.offer-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.offer-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.offer-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.offer-features {
    margin-bottom: var(--space-lg);
}

.offer-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text-main);
}

.mt-auto {
    margin-top: auto;
}

@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-card.popular {
        transform: none;
    }

    .offer-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Values Section (Green)
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.value-item {
    text-align: center;
    padding: 0 var(--space-sm);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    border: 2px solid rgba(22, 163, 74, 0.3);
    box-shadow: 0 10px 25px rgba(10, 79, 39, 0.4);
    transition: transform var(--transition-base);
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--clr-primary-light);
}

.value-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ==========================================================================
   Testimonials Section (White)
   ========================================================================== */
.testimonials-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.testimonial-card {
    position: relative;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}

/* Dark Glass effect for testimonials inside green sections */
.section-green .testimonial-card.glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle white for dark glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    /* Reduced slightly for performance */
    color: var(--clr-white);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.section-green .testimonial-card.glass-card p {
    color: rgba(255, 255, 255, 0.9);
}

.section-green .testimonial-card .name {
    color: var(--clr-white);
}

.section-green .testimonial-card .title {
    color: rgba(255, 255, 255, 0.7);
}

.section-green .testimonial-card .quote-icon {
    color: var(--clr-primary-light);
    /* Brighter green accent */
    opacity: 0.8;
}

.section-green .testimonial-card .avatar {
    background-color: var(--clr-primary-light);
    /* Brighter green avatar background */
}

.quote-icon {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    width: 32px;
    height: 32px;
    color: rgba(22, 163, 74, 0.3);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--space-lg);
    z-index: 1;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--clr-text-inverse);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FAQ Section (Consolidated Design)
   ========================================================================== */
.faq-container {
    max-width: 800px;
}

.faq-accordion {
    margin-top: var(--space-lg);
}

.faq-item {
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(243, 244, 246, 1);
    /* User's light-gray design */
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(243, 244, 246, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-weight: 700;
    margin-bottom: 0;
    /* Handled by answer margin when active */
    color: var(--clr-primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    margin-bottom: var(--space-xs);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--clr-primary);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    color: var(--clr-text-muted);
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* User's list styles */
.faq-answer ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

.faq-answer ul li {
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Contact Section (White)
   ========================================================================== */
.contact {
    position: relative;
    padding-bottom: var(--space-lg);
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
}

.contact-info .section-title {
    margin-bottom: var(--space-sm);
}

.contact-methods {
    margin-top: var(--space-md);
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.method-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.method-item p {
    color: var(--clr-text-muted);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clr-text-main);
}

/* Compatibilité Contact Form 7 */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form-control-wrap input.form-control,
.wpcf7-form-control-wrap textarea.form-control {
    width: 100%;
}

.contact-form .wpcf7-submit {
    width: 100%;
}

.form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(10, 79, 39, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-primary-light);
    background: rgba(22, 163, 74, 0.05);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: var(--space-md);
    }
}

.footer {
    background: linear-gradient(180deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.footer h4,
.footer a {
    color: var(--clr-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-sm);
    max-width: 300px;
}

.footer-heading {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list a:hover {
    color: var(--clr-primary-light);
}

.footer-list span {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal a:hover {
    color: var(--clr-white);
}

/* ==========================================================================
   Logo Carousel
   ========================================================================== */
.logo-slider {
    height: 80px;
    margin: var(--space-sm) auto var(--space-xl);
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo-slider::before,
.logo-slider::after {
    position: absolute;
    background-image: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    content: '';
    height: 100%;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.logo-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.logo-slide-track {
    width: calc(150px * 24);
    display: flex;
    animation: scroll2 40s linear infinite;
    justify-content: space-between;
}

.logo-slide {
    width: 150px;
    height: 80px;
    display: grid;
    place-items: center;
    transition: 0.5s;
    cursor: pointer;
}

.logo-slide img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-base);
}

.logo-slide:hover img {
    filter: grayscale(0%) opacity(1);
}

.logo-slide:hover {
    transform: scale(1.1);
}

@keyframes scroll2 {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(calc(-150px * 12));
    }
}

@media screen and (max-width: 768px) {
    .logo-slide-track {
        width: calc(100px * 24);
    }

    .logo-slide {
        width: 100px;
    }

    @keyframes scroll2 {
        0% {
            transform: translateX(0px);
        }

        100% {
            transform: translateX(calc(-100px * 12));
        }
    }
}

/* ==========================================================================
   Custom Video Player
   ========================================================================== */
.video-container {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    background-color: var(--clr-text-main);
    overflow: hidden;
}

.video-container .video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}

.play-button-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#circle-play-b {
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

#circle-play-b svg {
    width: 80px;
    height: 80px;
    fill: var(--clr-white);
    stroke: var(--clr-white);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    opacity: 0.9;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

#circle-play-b:hover svg {
    background-color: var(--clr-primary);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Light Theme Specific Styles */
.navbar:not(.scrolled) {
    background-color: var(--clr-primary-dark);
}

.hero-light {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--clr-text-main);
    position: relative;
    padding-top: 8rem;
    /* Account for solid header */
}

.hero-light-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 163, 74, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.hero-light h1 {
    color: var(--clr-primary-dark);
}

.hero-light p {
    color: var(--clr-text-muted);
}

.hero-light .highlight {
    color: var(--clr-primary);
}
