/* Home Page Styles */
body.home-page {
    margin: 0;
    padding: 0;
    background-image: url('/images/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    cursor: auto;
}

/* Restaurer le curseur natif (le curseur custom de cursor.js a été retiré) */
body.home-page,
body.home-page a,
body.home-page button,
body.home-page input,
body.home-page select,
body.home-page textarea {
    cursor: revert;
}

/* Effet de particules animées en arrière-plan */
body.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
}

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

.home-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 80px 20px 40px;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-title {
    font-family: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
    font-size: 5em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #f0b515);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.2s;
}

.home-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.4s;
    max-width: 800px;
}

.home-description {
    max-width: 900px;
    margin: 0 auto 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.7s;
    text-align: left;
}

.home-description p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.home-description p:last-child {
    margin-bottom: 0;
}

.home-buttons {
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.6s;
}

.btn-glass {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-glass::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;
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.btn-glass-primary {
    background: rgba(201, 148, 0, 0.3);
    border-color: rgba(201, 148, 0, 0.6);
}

.btn-glass-primary:hover {
    background: #c99400;
    color: white;
}

/* Footer Styles */
.home-footer {
    text-align: center;
    padding: 16px 20px 14px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.home-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    padding: 10px 0 4px;
}

.home-logos .footer-logo-card {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: all 0.35s ease;
    opacity: 0;
    animation: logoFadeIn 0.8s ease-out forwards;
}

.home-logos .footer-logo-card.logo-wide {
    width: 156px;
}

.home-logos .footer-logo-card img {
    display: block;
    max-width: calc(100% - 18px);
    max-height: 56px;
    object-fit: contain;
}

.home-logos .footer-logo-card.logo-geolab img {
    max-width: 68px;
    max-height: 68px;
}

.home-logos .footer-logo-card.logo-origin img {
    max-height: 46px;
}

.home-logos .footer-logo-card:hover {
    transform: scale(1.08) translateY(-4px);
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 24px rgba(0,0,0,0.26);
}

.home-copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.home-logos .footer-logo-card:nth-child(1) { animation-delay: 0.8s; }
.home-logos .footer-logo-card:nth-child(2) { animation-delay: 0.9s; }
.home-logos .footer-logo-card:nth-child(3) { animation-delay: 1.0s; }
.home-logos .footer-logo-card:nth-child(4) { animation-delay: 1.1s; }
.home-logos .footer-logo-card:nth-child(5) { animation-delay: 1.2s; }
.home-logos .footer-logo-card:nth-child(6) { animation-delay: 1.3s; }
.home-logos .footer-logo-card:nth-child(7) { animation-delay: 1.4s; }
.home-logos .footer-logo-card:nth-child(8) { animation-delay: 1.5s; }

/* Responsive */
@media (max-width: 768px) {
    .home-title {
        font-size: 2.8em;
    }
    
    .home-subtitle {
        font-size: 1.2em;
    }
    
    .home-description {
        padding: 25px;
        margin: 0 15px 40px 15px;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-glass {
        width: 80%;
        text-align: center;
    }
}
