:root {
    --primary: #25d366;
    --primary-dark: #128c7e;
    --primary-light: #dcf8c6;
    --secondary: #34b7f1;
    --dark: #075e54;
    --bg-light: #f0f2f5;
    --text-dark: #111b21;
    --text-light: #667781;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --gradient: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-download {
    background: var(--gradient);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-download::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 ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-light) 0%, #e8f5e9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 900;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.2);
}

.feature-card h3,
.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

.feature-card:hover h3,
.feature-card:hover h4 {
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-card {
    background: var(--gradient);
    color: white;
    padding: 5rem;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.3);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-card h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.cta-card p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
}

.cta-card .btn-download {
    background: white;
    color: var(--primary-dark);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.cta-card .btn-download:hover {
    background: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Product Page Styles */
.product-showcase {
    padding-top: 9rem;
    background: linear-gradient(180deg, #e8f5e9 0%, var(--bg-light) 100%);
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.gallery-main img {
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-main img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-info {
    animation: fadeInRight 0.8s ease;
}

.product-info h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.feature-list {
    margin: 2rem 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px);
}

.feature-list li::before {
    content: "✓";
    color: white;
    background: var(--gradient);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .nav-links {
        display: none;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-card {
        padding: 3rem 2rem;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Gallery */
.animated-gallery {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    animation: scrollGallery 25s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-slide {
    flex-shrink: 0;
    width: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: white;
}

.gallery-slide:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

.gallery-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-slide:hover img {
    transform: scale(1.1);
}

.slide-label {
    display: block;
    padding: 1rem 1.5rem;
    background: white;
    color: #075e54;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-top: 3px solid #25d366;
}

@media (max-width: 768px) {
    .gallery-slide {
        width: 300px;
    }

    .gallery-slide img {
        height: 200px;
    }

    .gallery-track {
        animation-duration: 20s;
    }
}

/* ============================================
   EFFETS VISUELS PREMIUM
   ============================================ */

/* Animation de révélation au scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Effet de scale au scroll */
.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Boutons avec effet glow */
.btn-download {
    position: relative;
    z-index: 1;
}

.btn-download::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 50px;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
}

.btn-download:hover::after {
    opacity: 0.6;
}

/* Effet de pulsation sur les boutons CTA */
.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.8), 0 0 60px rgba(37, 211, 102, 0.4);
    }
}

/* Effet de brillance continue */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

/* Effet de bordure animée */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #25d366, #128c7e, #34b7f1, #25d366);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientBorder 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-border:hover::before {
    opacity: 1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Feature cards avec effets améliorés */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(37, 211, 102, 0.2);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(37, 211, 102, 0.05), transparent);
    transition: height 0.4s ease;
}

.feature-card:hover::after {
    height: 100%;
}

/* Effet de texte gradient animé */
.gradient-text {
    background: linear-gradient(135deg, #25d366, #128c7e, #34b7f1, #25d366);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Effet de flottement pour les images */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* CTA Card avec effets */
.cta-card {
    transition: all 0.4s ease;
    position: relative;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(37, 211, 102, 0.4);
}

/* Particules de fond CSS */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1) 0%, transparent 70%);
    animation: particleFloat 8s ease-in-out infinite;
}

.particles-bg::before {
    top: -150px;
    right: -150px;
}

.particles-bg::after {
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(0, -20px) scale(0.9);
    }

    75% {
        transform: translate(-30px, -10px) scale(1.05);
    }
}

/* Effet de survol avec inclinaison 3D */
.tilt-effect {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.tilt-effect:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Ligne de progression animée */
.progress-line {
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.5s ease;
}

.progress-line:hover::after {
    width: 100%;
}

/* Section transitions */
.section {
    transition: background 0.5s ease;
}

/* Effet de zoom sur hover pour les images */
.zoom-hover {
    overflow: hidden;
    border-radius: 20px;
}

.zoom-hover img {
    transition: transform 0.5s ease;
}

.zoom-hover:hover img {
    transform: scale(1.1);
}

/* Bouton avec effet ripple */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Effet typewriter pour les titres */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Stagger animation delay pour les cards */
.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* Glow effect on focus */
.btn-download:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.3), 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Smooth underline effect */
.underline-effect {
    position: relative;
    display: inline-block;
}

.underline-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.underline-effect:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}