/* ===========================================
   ICELABSOFT - Home Page CSS
   =========================================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    /* Background managed by Canvas, but fallback/gradient if needed */
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 40%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-8);
}

.hero-content {
    position: relative;
    z-index: var(--z-default);
    max-width: 600px;
    flex: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-6);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
    z-index: var(--z-default);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-gray-400);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Expertises Section (Bento Grid) */
.section-expertises {
    background: var(--color-off-white);
    text-align: center;
}

.section-expertises .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    margin-top: var(--spacing-10);
    width: 100%;
    max-width: 1100px;
}

.bento-item {
    padding: var(--spacing-6);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-large {
    /* Même taille que les autres cartes pour un alignement uniforme */
    grid-column: span 1;
    background: linear-gradient(135deg, var(--color-white) 0%, #f0f9ff 100%);
}

.expertise-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-electric);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-4);
    transition: var(--transition-base);
}

.bento-item:hover .expertise-icon {
    background: var(--color-primary-electric);
    color: var(--color-white);
    transform: rotate(5deg);
}

.bento-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2);
}

.bento-item p {
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* Products Section */
.section-products {
    text-align: center;
}

.section-products .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-10);
    width: 100%;
    max-width: 900px;
}

/* Limiter à 2 colonnes max sur grands écrans pour products */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(280px, 420px));
        justify-content: center;
    }
}

/* Clients Section */
.section-clients {
    background: var(--color-white);
    padding: var(--spacing-12) 0;
    overflow: hidden;
}

.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-4) 0;
}

/* Gradient masks for carousel */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white), transparent);
}

.clients-track {
    display: flex;
    width: max-content;
    gap: var(--spacing-8);
    animation: scrollLogos 60s linear infinite;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    color: var(--color-gray-600);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-width: 140px;
}

.client-item:hover {
    color: var(--color-primary-electric);
    border-color: var(--color-primary-electric);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Fallback si on utilise encore des images */
.client-logo {
    height: 40px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Why Us Section */
.section-why-us {
    text-align: center;
}

.section-why-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
    width: 100%;
    max-width: 900px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--color-primary-electric);
}

.stat-suffix {
    font-size: var(--font-size-2xl);
    color: var(--color-primary-electric);
    font-weight: 800;
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-500);
    margin-top: var(--spacing-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    width: 100%;
    max-width: 1100px;
}

.feature-item {
    text-align: center;
    padding: var(--spacing-6);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-4);
    font-size: 2rem;
    color: var(--color-primary-electric);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.feature-item p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    line-height: var(--line-height-relaxed);
}

/* CTA Section */
.section-cta {
    background: var(--color-primary-deep);
    background-image: var(--color-primary-gradient);
    position: relative;
    text-align: center;
    color: var(--color-white);
    padding: var(--spacing-24) 0;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-4);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-8);
}

/* ===========================================
   ANIMATION SAPIN DE NOËL - FÊTES 2025
   =========================================== */

.christmas-tree-container {
    position: relative;
    width: 320px;
    height: 420px;
    flex-shrink: 0;
    z-index: 10;
}

/* Étoile au sommet */
.tree-star {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #FFD700;
    animation: starGlow 1.5s ease-in-out infinite, starRotate 4s linear infinite;
    filter: drop-shadow(0 0 15px #FFD700);
    z-index: 15;
}

@keyframes starGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px #FFD700) drop-shadow(0 0 30px #FFA500);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px #FFD700) drop-shadow(0 0 50px #FFA500);
        transform: translateX(-50%) scale(1.15);
    }
}

@keyframes starRotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Sapin */
.tree {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-layer {
    width: 0;
    height: 0;
    border-style: solid;
    position: relative;
}

.tree-top {
    border-width: 0 55px 90px 55px;
    border-color: transparent transparent #1B5E20 transparent;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.tree-middle {
    border-width: 0 75px 100px 75px;
    border-color: transparent transparent #2E7D32 transparent;
    margin-top: -25px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.tree-bottom {
    border-width: 0 100px 120px 100px;
    border-color: transparent transparent #388E3C transparent;
    margin-top: -30px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.tree-trunk {
    width: 40px;
    height: 50px;
    background: linear-gradient(90deg, #5D4037 0%, #8D6E63 50%, #5D4037 100%);
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
}

/* Boules de Noël scintillantes */
.ornament {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: ornamentGlow 2s ease-in-out infinite;
    box-shadow: inset -3px -3px 6px rgba(0,0,0,0.3), 
                inset 3px 3px 6px rgba(255,255,255,0.4),
                0 0 15px currentColor;
}

.ornament-1 {
    top: 100px;
    left: 130px;
    background: radial-gradient(circle at 30% 30%, #FF6B6B, #C62828);
    color: #FF6B6B;
    animation-delay: 0s;
}

.ornament-2 {
    top: 100px;
    right: 130px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FFA000);
    color: #FFD700;
    animation-delay: 0.3s;
}

.ornament-3 {
    top: 170px;
    left: 100px;
    background: radial-gradient(circle at 30% 30%, #42A5F5, #1565C0);
    color: #42A5F5;
    animation-delay: 0.6s;
}

.ornament-4 {
    top: 160px;
    right: 100px;
    background: radial-gradient(circle at 30% 30%, #AB47BC, #7B1FA2);
    color: #AB47BC;
    animation-delay: 0.9s;
}

.ornament-5 {
    top: 230px;
    left: 75px;
    background: radial-gradient(circle at 30% 30%, #66BB6A, #2E7D32);
    color: #66BB6A;
    animation-delay: 1.2s;
}

.ornament-6 {
    top: 240px;
    right: 75px;
    background: radial-gradient(circle at 30% 30%, #FF7043, #E64A19);
    color: #FF7043;
    animation-delay: 1.5s;
}

.ornament-7 {
    top: 290px;
    left: 55px;
    background: radial-gradient(circle at 30% 30%, #EC407A, #C2185B);
    color: #EC407A;
    animation-delay: 1.8s;
}

.ornament-8 {
    top: 300px;
    right: 55px;
    background: radial-gradient(circle at 30% 30%, #26C6DA, #00838F);
    color: #26C6DA;
    animation-delay: 2.1s;
}

@keyframes ornamentGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: inset -3px -3px 6px rgba(0,0,0,0.3), 
                    inset 3px 3px 6px rgba(255,255,255,0.4),
                    0 0 10px currentColor;
    }
    50% {
        transform: scale(1.15);
        box-shadow: inset -3px -3px 6px rgba(0,0,0,0.3), 
                    inset 3px 3px 6px rgba(255,255,255,0.4),
                    0 0 25px currentColor,
                    0 0 40px currentColor;
    }
}

/* Guirlandes lumineuses */
.lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: lightBlink 0.8s ease-in-out infinite;
}

.light-1 { top: 70px; left: 145px; background: #FF0000; animation-delay: 0s; }
.light-2 { top: 85px; right: 145px; background: #00FF00; animation-delay: 0.1s; }
.light-3 { top: 130px; left: 115px; background: #FFFF00; animation-delay: 0.2s; }
.light-4 { top: 140px; right: 115px; background: #FF00FF; animation-delay: 0.3s; }
.light-5 { top: 190px; left: 90px; background: #00FFFF; animation-delay: 0.4s; }
.light-6 { top: 200px; right: 90px; background: #FF6600; animation-delay: 0.5s; }
.light-7 { top: 260px; left: 65px; background: #FF0066; animation-delay: 0.6s; }
.light-8 { top: 270px; right: 65px; background: #66FF00; animation-delay: 0.7s; }
.light-9 { top: 320px; left: 50px; background: #0066FF; animation-delay: 0.8s; }
.light-10 { top: 330px; right: 50px; background: #FF3399; animation-delay: 0.9s; }

@keyframes lightBlink {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 8px currentColor, 0 0 15px currentColor;
    }
    50% { 
        opacity: 0.3;
        box-shadow: 0 0 2px currentColor;
    }
}

/* Flocons de neige */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.sf-1 { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 1rem; }
.sf-2 { left: 30%; animation-duration: 10s; animation-delay: 1s; font-size: 1.5rem; }
.sf-3 { left: 50%; animation-duration: 7s; animation-delay: 2s; font-size: 1rem; }
.sf-4 { left: 70%; animation-duration: 9s; animation-delay: 0.5s; font-size: 1.3rem; }
.sf-5 { left: 90%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.1rem; }

@keyframes snowfall {
    0% {
        top: -20px;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 100%;
        opacity: 0.3;
        transform: translateX(30px) rotate(360deg);
    }
}

/* Message festif */
.festive-message {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.festive-message span {
    font-size: 1.1rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(90deg, #FF6B6B, #FFD700, #4CAF50, #2196F3, #9C27B0, #FF6B6B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Responsive Home */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .christmas-tree-container {
        transform: scale(0.8);
        margin-top: var(--spacing-6);
    }
    
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-4);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-4);
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
        max-width: 500px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .christmas-tree-container {
        transform: scale(0.65);
        height: 300px;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
        max-width: 400px;
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .stat-suffix {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 480px) {
    .christmas-tree-container {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
        max-width: 300px;
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
}