/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #3078B9 0%, #12254D 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container principal */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #F16262;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #F16262, #3078B9);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


/* Contenu principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Contenu gauche */
.content-left {
    padding-right: 20px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #2d3748;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #F16262, #3078B9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(135deg, #F16262, #F8A9A0);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(241, 98, 98, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(241, 98, 98, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Contenu droit - Mockup mobile */
.content-right {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #FBCCBF 0%, #F8A9A0 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features */
.features {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.feature i {
    color: #F16262;
    font-size: 16px;
}

/* Screenshots Carousel */
.screenshots-carousel {
    position: relative;
    width: 200px;
    height: 400px;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #1a202c;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4a5568;
    border-radius: 2px;
    z-index: 10;
}

.screenshot-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.screenshot-container:hover {
    transform: scale(1.02);
}

.screenshot-container::after {
    content: '👆 Cliquez pour changer';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screenshot-container:hover::after {
    opacity: 1;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.screenshot.active {
    opacity: 1;
    z-index: 2;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #F16262;
    transform: scale(1.2);
}


/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.floating-icon i {
    color: #F16262;
    font-size: 12px;
}

.icon-1 {
    top: 20px;
    right: -15px;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 100px;
    left: -15px;
    animation-delay: 1s;
}

.icon-3 {
    top: 150px;
    right: -20px;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 50px;
    left: -25px;
    animation-delay: 3s;
}



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-left {
        padding-right: 0;
        text-align: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .content-right {
        height: 400px;
    }
    
    .screenshots-carousel {
        width: 160px;
        height: 320px;
    }
    
    .features {
        gap: 15px;
    }
    
    .feature {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .content-right {
        height: 350px;
    }
    
    .screenshots-carousel {
        width: 140px;
        height: 280px;
    }
    
    .features {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Application des animations */
.screenshots-carousel {
    animation: float 3s ease-in-out infinite;
}

.screenshot {
    animation: fadeInUp 1s ease-out both;
}

.screenshot:nth-child(1) { animation-delay: 0.2s; }
.screenshot:nth-child(2) { animation-delay: 0.4s; }
.screenshot:nth-child(3) { animation-delay: 0.6s; }

.carousel-dots {
    animation: fadeInUp 1s ease-out 1s both;
}

/* Animations d'entrée pour le contenu */
.content-left {
    animation: slideInLeft 1s ease-out;
}

.content-right {
    animation: slideInRight 1s ease-out 0.3s both;
}

.main-title {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.description {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.cta-button {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Effet de particules flottantes */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(241, 98, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(48, 120, 185, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(248, 169, 160, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Animation du logo */
.logo-img {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Animation des liens de navigation */
.nav-link {
    animation: fadeInUp 1s ease-out both;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }
