/* ========================================
   Global Styles & Reset
   Version 1.6 - Déploiement 2026-01-15
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #181818;
    --bg-secondary: #222222;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --accent-color: #25D366;
    --accent-hover: #20BA5A;
    --border-color: #3a3a3a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========================================
   Header
   ======================================== */

.header {
    padding: 25px 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(24, 24, 24, 0.95);
}

.logo {
    text-align: center;
}

.logo svg {
    max-height: 45px;
    width: auto;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.logo svg:hover {
    transform: scale(1.03);
    opacity: 1;
    cursor: pointer;
}

/* ========================================
   Social Proof Section
   ======================================== */

.social-proof {
    padding: 60px 0 40px;
    text-align: center;
}

.clients-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    margin: 0 -10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-circle:hover {
    transform: scale(1.12) translateY(-3px);
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.social-proof-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 40px 0 60px;
    text-align: center;
}

.main-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background-color: #000;
    position: relative;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Steps Section - Modern Timeline Design
   ======================================== */

.steps {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.steps .section-title {
    margin-bottom: 50px;
}

.steps-timeline {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

/* Ligne verticale connectant les étapes */
.steps-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50px;
    bottom: 50px;
    width: 3px;
    background: linear-gradient(180deg, 
        var(--accent-color) 0%, 
        rgba(102, 126, 234, 0.5) 50%, 
        var(--border-color) 100%
    );
    border-radius: 10px;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

.step-item:last-child {
    margin-bottom: 0;
}

/* Wrapper pour l'icône avec effet de pulse */
.step-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent-color);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

/* Effet de pulse sur l'icône */
.step-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--accent-color);
    border-radius: 24px;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Hover sur l'item complet - Style élégant et sobre */
.step-item:hover .step-icon {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

/* Contenu de l'étape */
.step-content {
    flex: 1;
    background: var(--bg-card);
    padding: 24px 28px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--border-color);
}

.step-item:hover .step-content {
    transform: translateX(5px);
    border-left-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Boutons CTA dans les étapes */
.step-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.step-cta:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.step-cta i {
    font-size: 16px;
}

/* Affichage conditionnel Desktop/Mobile */
.step-cta-desktop {
    display: none;
}

.step-cta-mobile {
    display: inline-flex;
}

@media (min-width: 769px) {
    .step-cta-desktop {
        display: inline-flex;
    }
    
    .step-cta-mobile {
        display: none;
    }
}

/* Badge numérique subtil */
.step-item::after {
    content: attr(data-step);
    position: absolute;
    left: 28px;
    top: -15px;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========================================
   WhatsApp Section
   ======================================== */

.whatsapp-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.whatsapp-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.whatsapp-content h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.whatsapp-desktop {
    display: none;
}

.whatsapp-mobile {
    display: none;
}

.qr-container {
    background: white;
    padding: 35px;
    border-radius: 18px;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

#qrcode {
    margin: 0 auto;
}

.qr-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent-color);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-button i {
    font-size: 24px;
}

/* Bouton vers les ressources YouTube */
.resources-link {
    margin-top: 30px;
    text-align: center;
}

.resources-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.resources-button:hover {
    background: var(--bg-card);
    border-color: #FF0000;
    color: #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

.resources-button i {
    font-size: 20px;
}

/* ========================================
   Section Title
   ======================================== */

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ========================================
   Carousel Sections
   ======================================== */

.youtube-carousel,
.case-studies-carousel {
    padding: 60px 0;
    background: var(--bg-primary);
}

.case-studies-carousel {
    background: var(--bg-secondary);
}

.carousel-container {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: calc(33.333% - 20px);
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.03);
}

.carousel-item iframe,
.carousel-item video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.video-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* ========================================
   Client Wins Section
   ======================================== */

.client-wins {
    padding: 60px 0;
    background: var(--bg-primary);
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}
    margin-top: 40px;
}

.win-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.win-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.win-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.win-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-logo svg {
    height: 32px;
    width: auto;
    display: block;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .logo svg {
        max-height: 35px;
    }
    
    .social-proof {
        padding: 30px 0 20px;
    }
    
    .avatar-circle {
        width: 45px;
        height: 45px;
        border-width: 2px;
        margin: 0 -8px;
    }
    
    .clients-avatars {
        gap: 0;
    }
    
    .hero {
        padding: 20px 0 40px;
    }
    
    .main-title {
        margin-bottom: 12px;
    }
    
    .subtitle {
        margin-bottom: 30px;
    }
    
    .steps,
    .whatsapp-section,
    .youtube-carousel,
    .case-studies-carousel,
    .client-wins {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    /* Steps responsive sur mobile */
    .steps-timeline::before {
        left: 28px;
        top: 50px;
        bottom: 50px;
    }
    
    .step-item {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        border-radius: 16px;
    }
    
    .step-icon::before {
        border-radius: 20px;
    }
    
    .step-item::after {
        left: 20px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-content::before {
        left: -24px;
        top: 25px;
        border-right-width: 8px;
    }
    
    .step-content h3 {
        font-size: 18px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    .carousel-item {
        min-width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .wins-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-container {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-item {
        min-width: calc(50% - 15px);
    }
    
    .wins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Animations
   ======================================== */

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

.hero,
.social-proof,
.steps,
.whatsapp-section,
.youtube-carousel,
.case-studies-carousel,
.client-wins {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
