/* ========================================
   SCEC S.A - Styles Principaux
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs principales */
    --primary-green: #2C6B3F;
    --primary-dark: #1a4428;
    --primary-light: #3d8555;
    --accent-gold: #C9A961;
    --accent-burgundy: #8B1538;
    
    /* Couleurs neutres */
    --white: #FFFFFF;
    --cream: #FAF9F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Typographie */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   LOADER ANIMATION
   ======================================== */

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loader::before {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-gold);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-base);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 55px;
    width: auto;
    transition: filter var(--transition-base);
}

.logo-img:hover {
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    border-radius: 3px;
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
    background: rgba(44, 107, 63, 0.05);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    margin-top: 0.5rem;
    border: 1px solid var(--gray-100);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-green);
    padding-left: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary-green);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(44, 107, 63, 0.95) 0%, rgba(26, 68, 40, 0.92) 100%);
}

.hero-homepage {
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.15) 35px, rgba(255,255,255,.15) 70px);
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: fadeInUp 0.8s ease-out 0.2s backwards, pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-gold), #e6d5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn-primary {
    background: white;
    color: var(--primary-green);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(44, 107, 63, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.8s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out forwards;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SLIDER
   ======================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .slide.active {
    opacity: 1;
    visibility: visible;
}

.hero .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 107, 63, 0.85) 0%, rgba(26, 68, 40, 0.75) 100%);
    z-index: 1;
}

.hero .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero .hero-content {
    animation: none;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.hero .slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero .hero-badge {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.hero .slide.active .hero-badge {
    opacity: 1;
    transform: translateY(0);
}

.hero .hero-title {
    animation: none;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.hero .slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.hero .hero-subtitle {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.hero .slide.active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero .hero-buttons {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.hero .slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive pour hero slider */
@media (max-width: 1200px) {
    .hero .hero-title {
        font-size: 3.8rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .hero .hero-title {
        font-size: 3.2rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Fix: afficher le contenu du hero quand ce n'est pas un hero-slider */
.hero:not(.hero-slider) .hero-content,
.hero:not(.hero-slider) .hero-badge,
.hero:not(.hero-slider) .hero-title,
.hero:not(.hero-slider) .hero-subtitle,
.hero:not(.hero-slider) .hero-buttons {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-homepage {
        min-height: 90vh;
    }
    
    .hero .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
    }
    
    .hero .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 1.5rem;
    }
    
    .hero-stats {
        margin-top: 3rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 55vh;
    }
    
    .hero-homepage {
        min-height: 85vh;
    }
    
    .hero .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
    
    .slider-dots {
        bottom: 1rem;
        gap: 0.75rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-stats {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Améliorations responsive supplémentaires pour hero slider */
@media (min-width: 1400px) {
    .hero .hero-title {
        font-size: 5rem;
    }

    .hero .hero-subtitle {
        font-size: 1.5rem;
    }

    .slider-controls {
        left: 3rem;
        right: 3rem;
    }

    .slider-btn {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
}

@media (max-width: 900px) {
    .hero .hero-title {
        font-size: 2.8rem;
    }

    .hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero .hero-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 58vh;
    }

    .hero-homepage {
        min-height: 88vh;
    }

    .hero .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero .hero-badge {
        font-size: 0.75rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero .hero-buttons {
        max-width: 300px;
    }

    .btn-primary, .btn-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 0.85rem;
    }

    .slider-controls {
        left: 0.75rem;
        right: 0.75rem;
    }

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }

    .slider-dots {
        bottom: 1.25rem;
        gap: 0.5rem;
    }

    .dot {
        width: 11px;
        height: 11px;
    }

    .hero-stats {
        margin-top: 2.5rem;
        padding: 0 1.5rem;
        gap: 1.25rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Optimisations pour écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .slider-btn {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        width: 48px;
        height: 48px;
    }

    .dot {
        width: 14px;
        height: 14px;
    }
}

/* Améliorations pour les images de fond sur différents appareils */
@media (max-width: 768px) {
    .hero .slide {
        background-attachment: scroll;
    }
}

/* Optimisation des performances sur mobile */
@media (max-width: 480px) {
    .hero .slide {
        background-size: cover;
        background-position: center center;
    }

    .hero .slide-overlay {
        background: linear-gradient(135deg, rgba(44, 107, 63, 0.9) 0%, rgba(26, 68, 40, 0.8) 100%);
    }

    .hero .hero-title {
        letter-spacing: -0.02em;
    }

    .hero .hero-subtitle {
        line-height: 1.5;
    }

    .hero .hero-badge {
        border-radius: 40px;
    }

    .btn-primary, .btn-secondary {
        border-radius: 40px;
    }

    .hero-stats .stat-item {
        border-radius: 16px;
    }
}

/* ========================================
   IMAGE SLIDER / CAROUSEL
   ======================================== */

.slider-section {
    padding: var(--spacing-3xl) var(--spacing-md);
    background: white;
    overflow: hidden;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.slider-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
    height: 600px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 107, 63, 0.8) 0%, rgba(26, 68, 40, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: slideContentFade 0.8s ease-out;
}

@keyframes slideContentFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.slider-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--spacing-3xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-subtitle {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    border-radius: 3px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   SERVICES GRID
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(44, 107, 63, 0.03), rgba(201, 169, 97, 0.03));
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(44, 107, 63, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.service-features li {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-fast);
}

.service-features li:hover {
    color: var(--primary-green);
    transform: translateX(8px);
}

.service-features li i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.service-link {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.service-link i {
    transition: transform var(--transition-base);
}

.service-link:hover i {
    transform: translateX(8px);
}

/* ========================================
   ANIMATIONS SCROLL
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */

.floating-chat,
.floating-whatsapp,
.floating-call {
    position: fixed;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-base);
    z-index: 999;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-chat {
    bottom: 160px;
    right: 35px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
}

.floating-whatsapp {
    bottom: 90px;
    right: 35px;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-call {
    bottom: 20px;
    right: 35px;
    background: linear-gradient(135deg, var(--accent-burgundy), #a01644);
}

.floating-chat:hover,
.floating-whatsapp:hover,
.floating-call:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    animation: none;
}

/* Tooltip */
.floating-chat::before,
.floating-whatsapp::before,
.floating-call::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 80px;
    background: var(--gray-900);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.floating-chat:hover::before,
.floating-whatsapp:hover::before,
.floating-call:hover::before {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a1a 100%);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-md);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.3rem;
    transition: all var(--transition-base);
    padding: 0 !important;
    margin: 0 !important;
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-xl);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        gap: 0.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        margin-top: 0.5rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .floating-chat,
    .floating-whatsapp,
    .floating-call {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .floating-chat {
        bottom: 130px;
        right: 20px;
    }

    .floating-whatsapp {
        bottom: 75px;
        right: 20px;
    }

    .floating-call {
        bottom: 20px;
        right: 20px;
    }

    .floating-chat::before,
    .floating-whatsapp::before,
    .floating-call::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   FAQ SECTION - STYLES AVANCÉS
   ======================================== */

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-green), var(--accent-gold));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateX(8px);
    border-color: rgba(44, 107, 63, 0.1);
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item.active {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(44, 107, 63, 0.02), rgba(201, 169, 97, 0.02));
}

.faq-item.active::before {
    transform: scaleY(1);
}

.faq-question {
    width: 100%;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    gap: 1.5rem;
}

.faq-question:hover {
    color: var(--primary-green);
    padding-left: 2.5rem;
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--accent-gold), #e6d5a5);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 0 2rem 2rem;
    color: var(--gray-600);
    line-height: 1.9;
    font-size: 1.05rem;
    animation: fadeInContent 0.5s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer-content strong {
    color: var(--primary-green);
    font-weight: 700;
}

/* ========================================
   FAQ CATEGORY BUTTONS
   ======================================== */

.faq-category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-category-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.faq-category-btn i {
    font-size: 1.1rem;
}
