/* ===================================
   DESIGN SYSTEM - Variables CSS
   =================================== */
:root {
    /* ===================================
       DESIGN SYSTEM - Palette Vert Olive
       =================================== */
    /* Couleur principale - Vert olive foncé */
    --primary: #556B2F;
    --primary-dark: #3D4A22;
    --primary-light: #6B7B3E;
    
    /* Couleur secondaire - Vert olive clair */
    --secondary: #8B9A5B;
    --secondary-dark: #6B7A48;
    --secondary-light: #A5B07A;
    
    /* Fond et backgrounds */
    --bg-primary: #2A3318;
    --bg-secondary: #3D4A22;
    --bg-tertiary: #4A5D32;
    --bg-dark-warm: #1F2A10;
    --bg-card: rgba(139, 154, 91, 0.95);
    
    /* Textes - Contraste adapté au vert olive */
    --text-primary: #F5F5F0;
    --text-secondary: #dedcce;
    --text-tertiary: #dcdfd1;
    --text-on-primary: #F0F2E8;
    
    /* Couleurs d'accent - Variations vert olive */
    --accent-sand: #C8D4A8;
    --accent-olive: #8B9A5B;
    --accent-forest: #556B2F;
    --accent-moss: #9CAF88;
    --accent-earth: #cab285;
    --accent-terre: #5A6B35;
    --accent-warm: #7A8B4A;
    
    /* Contraste WCAG - Texte sur fond sombre */
    --contrast-text: #F5F5F0;
    --contrast-text-muted: #f1f5ea;
    
    /* Glassmorphism optimisé */
    --glass-bg: rgba(49, 67, 17, 0.85);
    --glass-bg-hover: rgba(85, 107, 47, 0.95);
    --glass-border: rgba(245, 245, 240, 0.15);
    --glass-border-hover: rgba(165, 176, 122, 0.4);
    --glass-blur: blur(20px);
    
    /* Shadows avec cohérence olive */
    --shadow-sm: 0 2px 8px rgba(85, 107, 47, 0.2);
    --shadow-md: 0 4px 16px rgba(85, 107, 47, 0.25);
    --shadow-lg: 0 10px 35px rgba(85, 107, 47, 0.3);
    --shadow-xl: 0 20px 50px rgba(85, 107, 47, 0.35);
    --shadow-glow-earth: 0 0 30px rgba(85, 107, 47, 0.35);
    --shadow-glow-olive: 0 0 30px rgba(139, 154, 91, 0.4);
    --shadow-glow-moss: 0 0 30px rgba(156, 175, 136, 0.4);
    --shadow-glow: var(--shadow-glow-olive);
    
    /* Spacing System */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;
    --spacing-3xl: 128px;
    
    /* Border radius harmonisé */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions fluides */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-base: "Inter", "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Space Grotesk", "Ubuntu", sans-serif;
    
    /* Sizes responsives */
    --container-max: 1400px;
    --section-padding: clamp(48px, 8vw, 96px);
    
    /* Z-index scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-nav: 1000;
    
    /* Gradients - Palette Vert Olive */
    --gradient-tech: linear-gradient(135deg, #97d826 0%, #9dbb3a 50%, #97c618 100%);
    --gradient-design: linear-gradient(135deg, #97d826 0%, #9dbb3a 50%, #97c618 100%);
    --gradient-full: linear-gradient(135deg,#97d826 0%, #9dbb3a 50%, #97c618 100%);
    --gradient-olive-light: linear-gradient(135deg, #8B9A5B 0%, #A5B07A 100%);
    --gradient-olive-dark: linear-gradient(135deg, #3D4A22 0%, #556B2F 100%);
}

/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#back {
    background-image: 
        linear-gradient(to right, rgba(61, 74, 34, 0.95) 0%, rgba(85, 107, 47, 0.7) 55%, rgba(85, 107, 47, 0.3) 70%, transparent 100%),
        url(/images/plan1.png);
    background-size: cover;
    background-size: 100%;
}

/* ===================================
   NAVIGATION - Modern Glass
   =================================== */
nav {
    position: fixed;
    z-index: var(--z-nav, 1000);
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

nav:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-glow-olive);
    border-color: var(--glass-border-hover);
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    gap: var(--spacing-sm);
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--gradient-tech);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
}

nav a:hover {
    color: var(--accent-olive);
}

nav a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Menu burger pour mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 900px) {
    nav {
        right: 50%;
        transform: translateX(50%);
        top: var(--spacing-sm);
    }
    
    nav ul {
        gap: var(--spacing-xs);
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* ===================================
   HERO SECTION - Page d'accueil
   =================================== */
main#back {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

main#back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/images/PC&.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

main#back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 60%),
                radial-gradient(circle at bottom left, rgba(79, 143, 247, 0.12), transparent 60%);
    z-index: 0;
}

.Bloc2 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: var(--section-padding);
    padding-left: clamp(24px, 8vw, 90px);
    max-width: var(--container-max);
}

.Bloc2 h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-tech);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease forwards;
}

.Bloc2 h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.Bloc2 h4:last-of-type {
    animation-delay: 0.3s;
    color: var(--accent-earth);
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTION DIVIDER
   =================================== */
.ligne {
    width: clamp(60px, 10%, 120px);
    height: 3px;
    background: var(--gradient-tech);
    margin: var(--spacing-xl) auto;
    border-radius: var(--radius-full);
    position: relative;
}

.ligne::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: inherit;
    filter: blur(12px);
    opacity: 0.5;
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================
   BANNER CAROUSEL - Logos tech
   =================================== */
.banner {
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.banner::before,
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: var(--z-dropdown, 100);
    pointer-events: none;
}

.banner::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.banner::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.track {
    display: flex;
    gap: var(--spacing-lg);
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.track:hover {
    animation-play-state: paused;
}

.card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card img {
    height: 60px;
    width: auto;
    display: block;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: all var(--transition-base);
}

.card:hover img {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ===================================
   FOOTER & CONTACT
   =================================== */
footer {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl) var(--spacing-md);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-tech);
}

.contact ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.contact ul h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-design);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact ul li {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===================================
   UTILITIES & EFFECTS
   =================================== */
a {
    position: relative;
    transition: all var(--transition-base);
}

.Effeti {
    transition: transform var(--transition-base), filter var(--transition-base);
    filter: grayscale(0%);
}

.Effeti:hover {
    transform: scale(1.05);
    filter: grayscale(100%);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   BUTTONS & CTAs
   =================================== */
.download-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-tech);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.download-btn::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;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

a.download-btn::before {
    content: '';
}

/* ===================================
   CONTACT FORM - Modern Style
   =================================== */
.contact-section {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    background: rgb(249 255 238 / 85%);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    background: rgb(1, 111, 3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form label {
    font-weight: 600;
    color: rgb(1, 111, 3);
    margin-bottom: var(--spacing-xs);
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transition: all var(--transition-base);
    font-family: var(--font-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-olive);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(126, 138, 80, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 14px 32px;
    background:rgb(1, 111, 3);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-form button:active {
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE - Mobile & Tablet
   =================================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .contact-section {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-md);
    }
    
    .banner {
        padding: var(--spacing-md) 0;
    }
    
    footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 48px;
        --spacing-2xl: 64px;
    }
    
    nav ul {
        gap: 4px;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}