/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

:root {
    --act-green: #203F36;
    --act-beige: #C2B59B;
    --act-brown: #8B7355;
    --act-cream: #F5F2EC;
    --header-height: 80px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--act-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--act-green);
    border-radius: 6px;
    border: 2px solid var(--act-cream);
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5248;
}

/* Selection Colors */
::selection {
    background: var(--act-beige);
    color: var(--act-green);
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--act-green);
    outline-offset: 2px;
}

/* ==========================================================================
   HEADER Styles - Desktop & Mobile
   ========================================================================== */

#main-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .header-glass {
    background: rgba(255, 255, 255, 0.98);
}

/* Logo Diamond */
.logo-diamond {
    box-shadow: 0 4px 20px rgba(32, 63, 54, 0.15);
}

/* Desktop Navigation Links (ancien style) */
.nav-link {
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
}

.nav-link-bg {
    border-radius: 8px;
}

/* Contact CTA */
.contact-cta {
    box-shadow: 0 4px 20px rgba(32, 63, 54, 0.2);
    transition: all 0.3s var(--transition-smooth);
}

.contact-cta:hover {
    box-shadow: 0 6px 30px rgba(32, 63, 54, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu Button Animation */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
#mobile-menu-panel {
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

#mobile-menu-panel.active {
    transform: translateX(0);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Language Switcher */
.lang-btn {
    position: relative;
    padding: 2px 8px;
    transition: all 0.3s var(--transition-smooth);
}

.lang-btn.active {
    font-weight: 600;
}

.lang-btn:not(.active):hover {
    transform: scale(1.1);
}

.logo-acc {
    width: 200px;
    height: auto;
}

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

.hero-slider {
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
    background:  #ffffff ;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero-slider {
        height: calc(100vh - 64px);
        min-height: 500px;
    }
}

.slider-wrapper {
    height: 100%;
    position: relative;
}

.slides-container {
    height: 100%;
    position: relative;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-inner {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
    gap: 60px;
}

/* Slide Content */
.slide-content {
    flex: 1;
    max-width: 600px;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #333;
}

.slide-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Button */
.btn-primary {
    background: transparent;
    border: 2px solid var(--act-green);
    color: var(--act-green);
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--act-green);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(32, 63, 54, 0.2);
}

.btn-primary:hover::before {
    width: 100%;
}

/* Slide Visual */
.slide-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 40px;
    background: white;
    padding: 60px;
    border-radius: 20px;
    
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--act-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--act-green);
}

.grid-item:hover .icon-wrapper {
    transform: scale(1.1);
    background: var(--act-green);
}

.grid-item:hover .icon-wrapper i {
    color: white;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.line {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.grid-item:hover .line {
    width: 80px;
}

/* Image Visuals */
.solution-visual,
.network-visual,
.partners-visual,
.ambition-visual {
    width: 100%;
    max-width: 600px;
}

.solution-visual img,
.network-visual img,
.partners-visual img,
.ambition-visual img {
    width: 100%;
    height: auto;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--act-green);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 30px;
    border-radius: 5px;
    opacity: 1;
    background: var(--act-green);
}

.dot:hover:not(.active) {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Navigation Buttons */
.slider-nav {
    background: white;
    border: 2px solid var(--act-green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--act-green);
    box-shadow: 0 4px 15px rgba(32, 63, 54, 0.1);
}

.slider-nav:hover {
    background: var(--act-green);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(32, 63, 54, 0.2);
}

.slider-nav:active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slide-inner {
        flex-direction: column;
        padding: 40px 20px;
        gap: 40px;
        text-align: center;
    }
    
    .slide-content {
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 30px;
        gap: 20px;
    }
    
    .slider-controls {
        bottom: 20px;
        gap: 20px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}


/* ==========================================================================
   SECTION ADN Styles
   ========================================================================== */

.section-adn {
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.section-adn::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--act-cream) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

/* Section Header */
.section-label {
    display: inline-block;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--act-beige);
    transform: translateY(-50%);
}

.section-label::before {
    left: -40px;
}

.section-label::after {
    right: -40px;
}

.section-title {
    position: relative;
    z-index: 1;
}

.title-line {
    animation: expandWidth 1s ease-out forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 6rem;
    }
}

/* Mission Block */
.mission-block {
    position: relative;
    padding-left: 20px;
}

.mission-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--act-green), var(--act-beige));
    border-radius: 2px;
}

/* Value Pills */
.value-pill {
    position: relative;
    overflow: hidden;
}

.value-pill::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 ease;
}

.value-pill:hover::before {
    left: 100%;
}

/* Levier Cards */
.levier-card {
    position: relative;
}

.levier-card .card-inner {
    position: relative;
    overflow: hidden;
}

.levier-card .card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--act-beige), var(--act-green));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.levier-card:hover .card-inner::before {
    transform: translateX(0);
}

/* Stats Banner */
.stats-banner {
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-adn::before {
        width: 400px;
        height: 400px;
        right: -50%;
    }
    
    .section-label::before,
    .section-label::after {
        width: 20px;
    }
    
    .section-label::before {
        left: -30px;
    }
    
    .section-label::after {
        right: -30px;
    }
    
    .leviers-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-banner {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SECTION SOLUTIONS Styles
   ========================================================================== */

.section-solutions {
    position: relative;
}

/* Background Decoration */
.section-solutions::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--act-cream), transparent);
    opacity: 0.3;
    filter: blur(80px);
    pointer-events: none;
}

.section-solutions::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(194, 181, 155, 0.3), transparent);
    filter: blur(80px);
    pointer-events: none;
}

/* Solution Cards */
.solution-card {
    position: relative;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.card-wrapper {
    position: relative;
}

.card-content {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover .card-content::before {
    opacity: 1;
}

/* Icon animations */
.icon-circle {
    transition: all 0.3s ease;
}

.solution-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

/* Action links */
.action-link a {
    position: relative;
}

.action-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Process Timeline */
.timeline-wrapper {
    position: relative;
}

.timeline-step {
    position: relative;
}

.step-icon {
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.timeline-step:hover .step-icon {
    transform: scale(1.2);
    box-shadow: 0 8px 30px rgba(32, 63, 54, 0.2);
}

/* Progressive timeline animation */
.timeline-step {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.2s; }
.timeline-step:nth-child(3) { animation-delay: 0.3s; }
.timeline-step:nth-child(4) { animation-delay: 0.4s; }
.timeline-step:nth-child(5) { animation-delay: 0.5s; }

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

/* CTA Banner */
.cta-banner {
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    animation: rotate 15s linear infinite;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cta-banner {
        padding: 2rem;
    }
}

/* Hover Effects for Cards */
@media (hover: hover) {
    .solution-card .card-content {
        transform-style: preserve-3d;
        perspective: 1000px;
    }
    
    .solution-card:hover .card-content {
        transform: rotateY(5deg);
    }
}


/* ==========================================================================
   SECTION PRODUITS Styles
   ========================================================================== */

.section-products {
    position: relative;
}

/* Filter Tabs */
.filter-tab {
    background: var(--act-cream);
    color: var(--act-green);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--act-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-tab:hover::before,
.filter-tab.active::before {
    left: 0;
}

.filter-tab.active,
.filter-tab:hover {
    color: black;
    border-color: var(--act-green);
}

/* Product Cards */
.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
}

.card-inner {
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-inner:hover {
    box-shadow: 0 12px 40px rgba(32, 63, 54, 0.15);
    transform: translateY(-5px);
}

/* Product Image Effects */
.product-image {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.product-image img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-view button {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Product Badge */
.product-badge {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Icon Wrapper */
.icon-wrapper {
    transition: all 0.3s ease;
}

.product-card:hover .icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(32, 63, 54, 0.1);
}

/* Specifications */
.spec-item {
    padding: 8px;
    background: rgba(245, 242, 236, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-card:hover .spec-item {
    background: rgba(245, 242, 236, 0.8);
}

/* Product Link */
.product-link {
    position: relative;
    font-weight: 500;
}

.product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.product-link:hover::after {
    width: calc(100% - 20px);
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(4px);
}

/* Load More Button */
.load-more-btn {
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

/* Filter Animation */
@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes filterOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

.product-card.filter-active {
    animation: filterIn 0.5s ease forwards;
}

.product-card.filter-inactive {
    animation: filterOut 0.3s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Hover Parallax Effect */
@media (hover: hover) {
    .product-card {
        transform-style: preserve-3d;
    }
    
    .product-card:hover .card-inner {
        transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
    }
}

/* ==========================================================================
   SECTION RÉSEAU & MARCHÉS Styles
   ========================================================================== */

.section-network {
    position: relative;
    overflow: hidden;
}

/* Map Container */
.map-wrapper {
    position: relative;
    background: linear-gradient(135deg, #fff, #F5F2EC);
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(194, 181, 155, 0.1), transparent);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

/* Country Paths */
.country-path {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.country-path:hover {
    filter: drop-shadow(0 4px 8px rgba(32, 63, 54, 0.3));
    transform: translateY(-2px);
}

/* Pulse Animation for Cities */
@keyframes pulse {
    0% {
        r: 6;
        opacity: 1;
    }
    50% {
        r: 10;
        opacity: 0.5;
    }
    100% {
        r: 6;
        opacity: 1;
    }
}

.pulse-dot {
    animation: pulse 2s ease-in-out infinite;
}

/* Trade Routes Animation */
@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

.trade-route {
    animation: dash 1s linear infinite;
}

/* Country Cards */
.country-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--act-green);
    transition: height 0.3s ease;
    margin-top:5px;
}

.country-card:hover::before,
.country-card.active::before {
    height: 90%;

 
}

.country-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(32, 63, 54, 0.1);
}

.country-card.active {
    background: linear-gradient(135deg, #fff, rgba(245, 242, 236, 0.3));
    border-color: var(--act-green) !important;
}

/* Country Flags */
.country-flag {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Status Indicators */
.status-indicator {
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    to {
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

/* Statistics Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 63, 54, 0.15);
}

.stat-card:hover::after {
    transform: scale(1.1);
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

/* Map Overlay */
.map-overlay {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Badge Styles */
.badge {
    display: inline-block;
    animation: fadeIn 0.5s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .map-wrapper {
        padding: 1rem;
    }
    
    .country-card {
        padding: 1rem;
    }
    
    .country-card:hover {
        transform: none;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* SVG Text Styles */
svg text {
    user-select: none;
    pointer-events: none;
}

/* Hover Group Effect */
.country-group:hover .country-path {
    opacity: 1 !important;
}

.country-group:hover text {
    font-weight: 700;
    font-size: 15px;
}

/* Tailwind */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ====== FLAGS (bandes nettes + étoile Sénégal) ====== */
.flag {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  position: relative; /* nécessaire pour centrer l’étoile */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Sénégal — bandes verticales G-J-R */
.flag--senegal {
  background-image: linear-gradient(
    to right,
    #0b6e3f 0 33.333%,
    #ffd100 33.333% 66.666%,
    #e11d2e 66.666% 100%
  );
}

/* Étoile du Sénégal (SVG enfant) */
.flag--senegal .flag-star {
  position: absolute;
  top: 50%; left: 50%;
  width: 38%; height: 38%;         /* taille de l’étoile (ajuste à ton goût) */
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,.15)); /* un poil de relief */
}

/* Autres drapeaux (si tu en as besoin au même endroit) */
.flag--mali {
  background-image: linear-gradient(
    to right,
    #0b6e3f 0 33.333%,
    #ffd100 33.333% 66.666%,
    #e11d2e 66.666% 100%
  );
}
.flag--guinea {
  background-image: linear-gradient(
    to right,
    #e11d2e 0 33.333%,
    #ffd100 33.333% 66.666%,
    #0b6e3f 66.666% 100%
  );
}
.flag--gambia {
  background-image: linear-gradient(
    to bottom,
    #e11d2e 0 28%,
    #ffffff 28% 32%,
    #1f3a8a 32% 68%,
    #ffffff 68% 72%,
    #16a34a 72% 100%
  );
}
.flag--cote-divoire {
  background-image: linear-gradient(
    to right,
    #ea580c 0 33.333%,
    #ffffff 33.333% 66.666%,
    #16a34a 66.666% 100%
  );
}





/* ==========================================================================
   SECTION CONTACT Styles
   ========================================================================== */

.section-contact {
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.section-contact::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(194, 181, 155, 0.1), transparent);
    pointer-events: none;
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--act-beige), var(--act-green));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.contact-card:hover::before {
    transform: translateX(0);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(32, 63, 54, 0.15);
}

/* Form Styles */
.form-input {
    position: relative;
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(32, 63, 54, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    transition: all 0.3s ease;
}

.file-upload-area.dragover {
    border-color: var(--act-green);
    background: rgba(32, 63, 54, 0.05);
}

.file-upload-area:hover {
    border-color: var(--act-green);
}

/* File List Items */
.file-item {
    background: var(--act-cream);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Social Links */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--act-green);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

/* Submit Button Animation */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::after {
    width: 300%;
    height: 300%;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success State */
.submit-btn.success {
    background: #10b981;
}

/* Map Container */
.map-container {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(194, 181, 155, 0.1) 35px,
            rgba(194, 181, 155, 0.1) 70px
        );
}

/* Character Counter */
.char-count {
    transition: color 0.3s ease;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .file-upload-area {
        padding: 2rem 1rem;
    }
}

/* Accessibility */
.form-input:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--act-green);
    outline-offset: 2px;
}

/* Error Messages Animation */
.error-message {
    animation: slideDown 0.3s ease;
}

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

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

.footer {
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(194, 181, 155, 0.03) 35px,
            rgba(194, 181, 155, 0.03) 70px
        );
    pointer-events: none;
}

/* Footer Columns */
.footer-column {
    position: relative;
}

/* Footer Links */
.footer-link {
    position: relative;
    display: inline-flex;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    width: 0;
    height: 1px;
    background: var(--act-beige);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: calc(100% - 20px);
}

.footer-link:hover i {
    transform: translateX(3px);
}

/* Social Icons */
.social-footer {
    position: relative;
    overflow: hidden;
}

.social-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-footer:hover::before {
    width: 100%;
    height: 100%;
}

/* Newsletter Form */
.footer-newsletter-form input {
    backdrop-filter: blur(10px);
}

.footer-newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(194, 181, 155, 0.2);
}

/* Back to Top Button */
#back-to-top {
    position: relative;
    overflow: hidden;
}

#back-to-top::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transition: top 0.3s ease;
    z-index: -1;
}

#back-to-top:hover::before {
    top: 0;
}

/* Partners Bar */
.partners-bar {
    position: relative;
    background: linear-gradient(90deg, #ffffff, #F5F2EC, #ffffff);
}

.partner-logo {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cookie Banner */
#cookie-banner {
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

#cookie-banner.show {
    transform: translateY(0);
}

/* Footer Animation on Scroll */
.footer-column {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0;
    }
    
    .footer-column {
        margin-bottom: 2rem;
    }
    
    .footer-newsletter-form {
        flex-direction: column;
    }
    
    .footer-newsletter-form input {
        width: 100%;
    }
    
    .footer-newsletter-form button {
        width: 100%;
    }
    
    #cookie-banner {
        padding: 1rem;
    }
}

/* Footer Gradient Overlay */
.footer-main {
    position: relative;
}

.footer-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194, 181, 155, 0.3), transparent);
}

/* Hover Effects */
@media (hover: hover) {
    .footer-column h4 {
        position: relative;
        display: inline-block;
    }
    
    .footer-column h4::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--act-beige);
        transition: width 0.3s ease;
    }
    
    .footer-column:hover h4::after {
        width: 60px;
    }
}

/* ==========================================================================
   SECTION INSIGHTS - TESTIMONIALS Styles
   ========================================================================== */

.testimonials-wrapper {
    position: relative;
    user-select: none;
}

.testimonials-carousel {
    position: relative;
    cursor: grab;
    overflow: hidden;
}

.testimonials-carousel.grabbing {
    cursor: grabbing;
}

.testimonials-carousel.paused .play-pause-indicator .status-icon {
    color: var(--act-beige);
}

.testimonials-carousel.paused .play-pause-indicator .status-label {
    text-decoration: line-through;
    opacity: 0.5;
}

/* Testimonial Slides */
.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 2rem;
}

/* Rating Stars */
.rating i {
    transition: all 0.3s ease;
}

.testimonial-slide:hover .rating i {
    transform: scale(1.1);
}

.rating i:nth-child(1) { animation-delay: 0.1s; }
.rating i:nth-child(2) { animation-delay: 0.2s; }
.rating i:nth-child(3) { animation-delay: 0.3s; }
.rating i:nth-child(4) { animation-delay: 0.4s; }
.rating i:nth-child(5) { animation-delay: 0.5s; }

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

.testimonial-slide:hover .rating i {
    animation: starPulse 0.6s ease;
}

/* Quote Styling */
blockquote {
    position: relative;
}

/* Author Avatar */
.author-avatar {
    position: relative;
    box-shadow: 0 4px 15px rgba(32, 63, 54, 0.2);
    transition: all 0.3s ease;
}

.testimonial-slide:hover .author-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(32, 63, 54, 0.3);
}

/* Navigation Dots */
.testimonial-dots {
    position: relative;
    z-index: 5;
}

.testimonial-dots .dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot:hover {
    transform: scale(1.5);
}

.testimonial-dots .dot.active {
    width: 24px;
    background: var(--act-green);
}

/* Navigation Arrows */
.testimonial-nav {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.testimonial-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev:hover {
    transform: translate(-16px, -50%) scale(1.1);
}

.testimonial-nav.next:hover {
    transform: translate(16px, -50%) scale(1.1);
}

/* Play/Pause Indicator */
.play-pause-indicator {
    transition: all 0.3s ease;
}

.status-icon i {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Statistics */
.stat-card {
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(32, 63, 54, 0.1);
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonial-slide blockquote {
        font-size: 1.25rem;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .testimonial-nav.prev {
        transform: translate(0, -50%);
    }
    
    .testimonial-nav.next {
        transform: translate(0, -50%);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .testimonials-carousel {
        cursor: default;
    }
    
    .testimonial-nav {
        opacity: 1;
    }
}

