/* Hero Section */
.hero-section {
    background: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: #1a202c;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.hero-card-animation {
    position: relative;
    width: 300px;
    height: 180px;
}

.hero-card {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #42adad;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

/* Products Section */
.products-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image-gallery {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    /*
    border-radius: 20px 20px 0 0;
    */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #42adad 0%, #369999 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(66, 173, 173, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(66, 173, 173, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(66, 173, 173, 0.4);
    }
}

.product-card:hover .product-type-badge {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 173, 173, 0.5);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.gallery-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.8) 100%);
}

.gallery-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
}

.gallery-item.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 240px;
    max-height: 240px;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /*
    border-radius: 16px;
    */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
/*    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.8);*/
    backdrop-filter: blur(10px);
}

.gallery-item:hover img {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(66, 173, 173, 0.3);
}

/* Styles spécifiques pour différents formats d'images */
.gallery-item img[src*=".gif"] {
    object-fit: contain;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid rgba(66, 173, 173, 0.2);
}

.gallery-item img[src*=".png"] {
    object-fit: contain;
    background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
}

.gallery-item img[src*=".jpg"], .gallery-item img[src*=".jpeg"] {
    object-fit: cover;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

/* Animation d'entrée pour les images */
@keyframes imageLoad {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gallery-item.active img {
    animation: imageLoad 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.gallery-prev, .gallery-next {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
}

.card-brand {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    z-index: 10;
}

.card-nfc-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card-nfc-icon i {
    color: #42adad;
    font-size: 1rem;
}

.product-info {
    padding: 1.5rem 2rem 2rem;
    background: white;
    border-radius: 0 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-header {
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.product-price {
    margin-bottom: 1.2rem;
    text-align: center;
}

.product-price .price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #42adad;
    display: block;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #42adad;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-add-cart:hover {
    background: #369999;
    transform: translateY(-2px);
}

/* Comparison Section */
.comparison-section {
    padding: 6rem 0;
    background: #ffffff;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.comparison-card.featured {
    border: 2px solid #42adad;
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: #42adad;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #42adad;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.bamboo-card .card-icon {
    background: #34d399;
}

.metal-card .card-icon {
    background: #6b7280;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.card-subtitle {
    font-size: 1rem;
    color: #64748b;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-card .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(66, 173, 173, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(66, 173, 173, 0.1);
    transition: all 0.3s ease;
}

.comparison-card .feature-item:hover {
    background: rgba(66, 173, 173, 0.08);
    border-color: rgba(66, 173, 173, 0.2);
    transform: translateY(-1px);
}

.comparison-card .feature-icon {
    color: #42adad;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(66, 173, 173, 0.1);
    padding: 0.4rem;
    border-radius: 8px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bamboo-card .feature-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.metal-card .feature-icon {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.comparison-card .feature-label {
    font-size: 0.9rem;
    color: #4a5568;
    flex: 1;
}

.comparison-card .feature-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
}

.feature-value i {
    color: #42adad;
    font-size: 1.1rem;
    font-weight: 600;
}

.bamboo-card .feature-value i {
    color: #34d399;
}

.metal-card .feature-value i {
    color: #6b7280;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #42adad 0%, #2d7a7a 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.btn-cta-primary {
    background: white;
    color: #42adad;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: white;
    color: #42adad;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .product-image-gallery {
        height: 200px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-price .price-amount {
        font-size: 1.5rem;
    }

    .btn-add-cart {
        padding: 0.6rem 1rem;
    }
}