/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs Vindica */
    --color-bg-warm-white: #F4EDED;
    --color-text-dark: #100107;
    --color-accent-green: #0E2719;
    --color-cta-rose: #B98671;
    --color-strong-red: #711510;
    --color-logo-green: #1E6B4A;
    --color-white: #FFFFFF;
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Tailles de police */
    --font-size-h1-desktop: 48px;
    --font-size-h1-mobile: 32px;
    --font-size-h2: 36px;
    --font-size-subtitle: 18px;
    --font-size-body: 18px;
    --font-size-nav: 15px;
    --font-size-small: 14px;
    
    /* Espacements */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 60px 0;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-scale: transform 0.2s ease;
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-warm-white);
    overflow-x: hidden;
    padding-top: 80px; /* Compense le header fixe */
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER QUI DISPARAÎT AU SCROLL ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(244, 237, 237, 0.02) !important; /* Ultra-translucide */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(14, 39, 25, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0); /* Position normale */
}

/* Header disparaît au scroll */
.header.hidden {
    transform: translateY(-100%); /* Disparaît vers le haut */
    opacity: 0;
}

/* Header visible quand on remonte */
.header.visible {
    transform: translateY(0);
    opacity: 1;
    background: rgba(244, 237, 237, 0.05) !important; /* Légèrement plus visible */
    backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-img {
    height: 70px !important; /* Logo 70px fixe */
    width: auto !important;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

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

/* Logo garde TOUJOURS la même taille */
.header.visible .logo-img,
.header.hidden .logo-img {
    height: 70px !important; /* Pas de changement */
    width: auto !important;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: var(--font-size-nav);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85) !important; /* Fond pour lisibilité */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(14, 39, 25, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-link:hover {
    color: var(--color-white);
    background: var(--color-strong-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 21, 16, 0.3);
}



/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-warm-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.organic-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('assets/animation/organic_shape_1.png'),
        url('assets/animation/organic_shape_2.png');
    background-repeat: no-repeat;
    background-position: 
        80% 20%,
        20% 80%;
    background-size: 
        600px auto,
        400px auto;
    opacity: 0.15;
    animation: organicFloat 20s ease-in-out infinite;
}

@keyframes organicFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-20px, -30px) rotate(2deg);
    }
    50% {
        transform: translate(30px, -20px) rotate(-1deg);
    }
    75% {
        transform: translate(-10px, 20px) rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-title {
    font-size: var(--font-size-h1-desktop);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text-dark);
}

.hero-subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: var(--font-weight-light);
    color: var(--color-accent-green);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-cta-rose);
    background-color: transparent;
    border: 2px solid var(--color-strong-red);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(185, 150, 113, 0.3);
    background-color: var(--color-cta-rose);
    color: var(--color-white);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-accent-green);
    border-bottom: 2px solid var(--color-accent-green);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== SECTIONS GÉNÉRALES ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section:nth-child(even) {
    background-color: rgba(14, 39, 25, 0.02);
}

.section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 32px;
    line-height: 1.3;
}

.section-text {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    margin-bottom: 40px;
}

.section-text p {
    margin-bottom: 20px;
}

.section-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(16, 1, 7, 0.1);
}

/* ===== SECTION RECHERCHE ===== */
.section-icons {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.section-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.icon-item:hover .section-icon {
    opacity: 1;
    transform: scale(1.1);
}

.icon-label {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent-green);
}

/* ===== SECTION INNOVATION ===== */
.innovation-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.highlight-item {
    text-align: center;
    padding: 24px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(16, 1, 7, 0.05);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(16, 1, 7, 0.1);
}

.highlight-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.highlight-item h3 {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.highlight-item p {
    font-size: var(--font-size-small);
    color: var(--color-accent-green);
    line-height: 1.5;
}

/* ===== SECTION PARTENARIATS ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.partner-logo {
    aspect-ratio: 3/2;
    background-color: var(--color-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 1, 7, 0.05);
    transition: var(--transition-smooth);
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 1, 7, 0.1);
}

.partner-placeholder {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent-green);
    text-align: center;
}

/* ===== SECTION CONTACT ===== */
.contact-section {
    background: linear-gradient(135deg, var(--color-bg-warm-white) 0%, rgba(14, 39, 25, 0.1) 100%);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: var(--font-size-body);
    color: var(--color-text-dark);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: var(--font-size-small);
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-cta-rose);
}

.footer-animation {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 1;
}

.pulse-cell {
    width: 60px;
    height: 60px;
    background-color: var(--color-cta-rose);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* ===== RESPONSIVE DESIGN OPTIMISÉ ===== */
@media (max-width: 768px) {
    /* Header mobile ultra-compact */
    .header {
        padding: 0;
        min-height: 60px; /* Plus compact */
        background: rgba(244, 237, 237, 0.01) !important; /* Encore plus transparent */
    }
    
    .header-content {
        flex-direction: row; /* Garde horizontal sur mobile */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 0; /* Padding réduit */
    }
    
    /* Logo mobile plus petit */
    .logo-img {
        height: 50px !important; /* Plus petit sur mobile */
        width: auto !important;
    }
    
    /* Navigation mobile compacte */
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 12px; /* Plus compact */
        font-size: 13px;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Language selector mobile */
    .language-selector {
        font-size: 11px;
        gap: 4px;
        padding: 6px 8px;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 6px;
    }
    
    /* Hero mobile - plus d'espace en haut */
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding-top: 80px; /* Réduit car header plus petit */
    }
    
    .hero-title {
        font-size: var(--font-size-h1-mobile);
    }
    
    /* Sections mobile */
    .section {
        padding: var(--section-padding-mobile);
    }
    
    .section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .section-img {
        height: 250px;
    }
    
    .section-icons {
        justify-content: center;
        gap: 20px;
    }
    
    .innovation-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        gap: 16px;
    }
    
    /* Animation simplifiée sur mobile */
    .organic-animation {
        background-size: 
            300px auto,
            200px auto;
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header encore plus compact sur très petit écran */
    .header {
        min-height: 50px;
    }
    
    .header-content {
        padding: 5px 0;
        gap: 8px;
    }
    
    /* Logo très petit écran */
    .logo-img {
        height: 40px !important;
    }
    
    /* Navigation très compacte */
    .nav-list {
        gap: 8px;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* Language selector très petit */
    .language-selector {
        font-size: 10px;
        gap: 2px;
        padding: 4px 6px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== LANGUAGE SELECTOR STYLES ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lang-active {
    color: #0E2719;
    font-weight: 700;
}

.lang-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: #0E2719;
}

.lang-separator {
    color: #ccc;
    font-weight: 300;
}

/* Responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        font-size: 12px;
        gap: 6px;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
    
    .nav {
        order: 2;
    }
    
    .language-selector {
        order: 3;
    }
}

/* Update header layout to accommodate language selector */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.language-selector {
    flex-shrink: 0;
}
/* ===== CHARTE DE COULEURS OFFICIELLE VINDICA ===== */
:root {
    /* Couleurs officielles Vindica selon COLOR-SWATCH.pdf */
    --color-strong-red: #711510;        /* CMYK 32,100,97,48 - Rouge bordeaux principal */
    --color-cta-rose: #B98671;          /* CMYK 23,48,51,12 - Rose/beige pour CTA */
    --color-accent-green: #0E2719;      /* CMYK 88,56,81,75 - Vert foncé accent */
    --color-text-dark: #100107;         /* CMYK 50,60,30,100 - Noir texte principal */
    --color-bg-warm-white: #F4EDED;     /* CMYK 5,8,6,0 - Blanc cassé fond */
    --color-white: #FFFFFF;
    
    /* Couleurs dérivées pour l'interface */
    --color-logo-green: #0E2719;        /* Utilise le vert officiel */
    --color-nav-hover: #711510;         /* Rouge bordeaux pour hover */
    --color-section-bg: #F4EDED;        /* Fond sections */
    
    /* Typographie */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Tailles de police */
    --font-size-h1-desktop: 48px;
    --font-size-h1-mobile: 32px;
    --font-size-h2: 36px;
    --font-size-subtitle: 18px;
    --font-size-body: 18px;
    --font-size-nav: 15px;
    --font-size-small: 14px;
    
    /* Espacements */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 60px 0;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-scale: transform 0.2s ease;
}

/* ===== MISE À JOUR DES COULEURS PRINCIPALES ===== */

/* Header et navigation */
.header {
    background: var(--color-white);
    border-bottom: 1px solid rgba(14, 39, 25, 0.1);
}

.nav-link {
    color: var(--color-text-dark);
}

.nav-link:hover {
    color: var(--color-strong-red);
}

/* Logo */
.logo-img {
    height: 40px;
    width: auto;
}

/* Hero section */
.hero {
    background: var(--color-bg-warm-white);
}

.hero-title {
    color: var(--color-text-dark);
}

.hero-subtitle {
    color: var(--color-accent-green);
}

/* CTA Buttons */
.cta-button {
    background: var(--color-strong-red);
    color: var(--color-white);
    border: 2px solid var(--color-strong-red);
}

.cta-button:hover {
    background: transparent;
    color: var(--color-strong-red);
}

/* Sections */
.section-title {
    color: var(--color-text-dark);
}

.section-description {
    color: var(--color-text-dark);
}

/* Language selector */
.lang-active {
    color: var(--color-strong-red);
    font-weight: 700;
}

.lang-link {
    color: var(--color-accent-green);
}

.lang-link:hover {
    color: var(--color-strong-red);
}

/* Footer */
.footer {
    background: var(--color-accent-green);
    color: var(--color-white);
}

.footer-link {
    color: var(--color-cta-rose);
}

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

/* Animation organique - utilise les couleurs officielles */
.organic-animation {
    background: linear-gradient(135deg, 
        rgba(185, 134, 113, 0.1) 0%, 
        rgba(14, 39, 25, 0.05) 50%, 
        rgba(113, 21, 16, 0.1) 100%);
}

/* Pulse cell animation */
.pulse-cell {
    background: radial-gradient(circle, 
        var(--color-cta-rose) 0%, 
        transparent 70%);
}

