/* --- Variables & Reset --- */
:root {
    --primary-color: #006400; 
    --secondary-color: #2e8b57;
    --accent-color: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-dim: #e0e0e0;
    --blur-amount: 15px;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background: #021a0f;
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Background Animation --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #021a0f, #0f3d24, #052918);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-animation::before, .bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.bg-animation::before {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation: float 8s infinite ease-in-out;
}

.bg-animation::after {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    right: 10%;
    animation: float 10s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* --- Navigation Glass --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 26, 15, 0.9);
    backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 3rem; 
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-grow: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- Boutons Flottants --- */
/* Bouton JOUER (Modifié Glassomorphism Jaune + Ombre Dynamique) */
.btn-floating-play {
    position: fixed;
    bottom: 30px;
    right: 30px;
    
    /* Glassomorphism jaune */
    background: rgba(255, 215, 0, 0.25); /* Jaune semi-transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-top-color: rgba(255, 215, 0, 0.8);
    border-bottom-color: rgba(255, 215, 0, 0.3);
    color: var(--accent-color); /* Texte jaune */
    
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Animation d'ombre dynamique */
    animation: playShadowPulse 4s ease-in-out infinite alternate;
}

.btn-floating-play:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.5); /* Plus opaque au survol */
    color: #fff; /* Texte blanc au survol */
    border-color: var(--accent-color);
}

/* Keyframes pour l'ombre dynamique */
@keyframes playShadowPulse {
    0% {
        box-shadow: 0 10px 20px -5px rgba(255, 215, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.1) inset;
    }
    100% {
        box-shadow: 0 15px 35px -5px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.3) inset;
    }
}

.btn-floating-support {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    transition: all 0.3s ease;
}

.btn-floating-support:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-floating-support i { color: #ff6b6b; }


/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.line {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* --- General Layout --- */
section {
    padding: 100px 5% 50px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dim);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Glass Cards & Panels --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/table.png') no-repeat center center/cover;
    opacity: 0.4;
    z-index: 0;
    animation: heroZoomPan 30s ease-in-out infinite alternate;
}

@keyframes heroZoomPan {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 1; 
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 100, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 100, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* --- Video Section --- */
.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

video {
    width: 100%;
    border-radius: 15px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- CHRONOLOGIE / FEATURES --- */
.features-grid-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
    counter-reset: step;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    text-align: left;
    max-width: 800px;
    position: relative;
    margin: 0 auto; 
    width: 100%;
    
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpStep 0.8s forwards;
}

.feature-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -20px;
    top: -20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: #021a0f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 10;
}

.feature-item::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: bounceArrow 2s infinite;
    opacity: 0.8;
}

.feature-item:last-child::after {
    display: none;
}

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

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }
.feature-item:nth-child(7) { animation-delay: 0.7s; }
.feature-item:nth-child(8) { animation-delay: 0.8s; }

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

.feature-content { flex: 1; }

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- CLASSE ZOOMABLE (Images cliquables) --- */
.zoomable {
    cursor: pointer;
    position: relative;
    z-index: 10; 
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.feature-thumb {
    width: 120px;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.types-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.pdf-container {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

/* --- LIGHTBOX STYLES --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* --- Tools Grid --- */
.grid-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-preview {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid var(--glass-border);
    opacity: 0.9;
}
.tool-card:hover .tool-preview {
    opacity: 1;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-card h3 { margin-bottom: 0.5rem; }
.tool-card p { margin-bottom: 1.5rem; color: var(--text-dim); font-size: 0.9rem; flex-grow: 1; }

.btn-download {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.btn-download:hover { border-color: var(--accent-color); letter-spacing: 1px; }

/* --- Footer --- */
.glass-footer {
    padding: 3rem 5%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.socials {
    margin: 1.5rem 0;
}

.social-link {
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover { color: var(--accent-color); }
.small-text { font-size: 0.8rem; opacity: 0.6; margin-top: 1rem; }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .feature-item::before { left: -10px; top: -15px; width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .glass-nav { padding: 1rem 1rem; }
    
    .nav-links {
        position: fixed;
        background: rgba(2, 26, 15, 0.95);
        backdrop-filter: blur(20px);
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.nav-active { right: 0; }
    
    .hamburger { display: flex; z-index: 1001; }
    
    .hamburger.toggle .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line:nth-child(2) { opacity: 0; }
    .hamburger.toggle .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .btn-floating-play {
        padding: 12px 25px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-floating-support {
        bottom: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .feature-item {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-thumb { width: 100%; max-width: 250px; }
    .lightbox-content { width: 95%; }
}

/* Animation Classes */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 0.5s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }