/*
 * Composants extraits pour la landing page Wacati
 * Contient : Hero Section, Pricing Cards, Section Résultats, Footer
 */

@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700");
@import url(https://fonts.bunny.net/css?family=kodchasan:200,400,600);

/* ===================================
   BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #E5E7EB;
    background: #0A0A0A;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Empêcher tous les conteneurs de déborder */
section,
div,
header,
footer,
main {
    max-width: 100vw;
    overflow-x: clip;
}

/* ===================================
   VARIABLES CSS
   =================================== */
:root {
    --yellow: #f6f792;
    --black: #333745;
    --blue: #77c4d3;
    --lightBlue: #daede2;
    --red: #ea2e49;
    --white: #fff;
    --primary: #667eea;
    --secondary: #764ba2;
    --wacati-primary: #6957E1;
    --wacati-secondary: #9333EA;
    --mainFont: "Open Sans", sans-serif;
    --m: 40px; /* Module de base pour le footer */
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    display: block;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6957E1;
    text-decoration: none;
    background: linear-gradient(135deg, #6957E1, #9333EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #E5E7EB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #6957E1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6957E1, #9333EA);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    color: #E5E7EB;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #6957E1;
}

.cta-nav {
    background: linear-gradient(135deg, #6957E1, #9333EA);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(105, 87, 225, 0.3);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(105, 87, 225, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #E5E7EB;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-menu li {
    list-style: none;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #E5E7EB;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(105, 87, 225, 0.1);
    color: #6957E1;
}

.mobile-menu .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.mobile-menu .mobile-cta a {
    text-align: center;
    padding: 0.75rem 1.5rem;
}

/* ===================================
   HERO SECTION AVEC CARTES ANIMÉES
   =================================== */

.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 8rem 5% 4rem 5%;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background animé avec formes et particules */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(105, 87, 225, 0.1), rgba(147, 51, 234, 0.05));
    border-radius: 50%;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.bg-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.bg-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

.bg-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: #6957E1;
    border-radius: 50%;
    opacity: 0.6;
    animation: sparkle 3s infinite ease-in-out;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 40%; right: 15%; animation-delay: 0.5s; }
.particle:nth-child(3) { width: 3px; height: 3px; bottom: 30%; left: 20%; animation-delay: 1s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 60%; right: 30%; animation-delay: 1.5s; }
.particle:nth-child(5) { width: 4px; height: 4px; bottom: 20%; right: 10%; animation-delay: 2s; }
.particle:nth-child(6) { width: 7px; height: 7px; top: 30%; left: 40%; animation-delay: 2.5s; }
.particle:nth-child(7) { width: 3px; height: 3px; bottom: 40%; left: 60%; animation-delay: 3s; }
.particle:nth-child(8) { width: 5px; height: 5px; top: 70%; right: 50%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (min-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        padding: 4rem 8%;
        gap: 6rem;
    }
}

/* Contenu texte de la hero */
.hero-content {
    max-width: 600px;
    z-index: 10;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c0c0c0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:first-child {
    background: linear-gradient(135deg, var(--wacati-primary) 0%, var(--wacati-secondary) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(105, 87, 225, 0.3);
}

.cta-button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(105, 87, 225, 0.5);
}

.cta-button:last-child {
    background: white;
    color: var(--wacati-primary);
    border: 2px solid var(--wacati-primary);
}

.cta-button:last-child:hover {
    background: var(--wacati-primary);
    color: white;
    transform: translateY(-2px);
}

/* Animation des cartes */
.animation-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

/* Effet lumineux coucher de soleil */
.sunset-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(105, 87, 225, 0.4) 0%,
        rgba(147, 51, 234, 0.3) 25%,
        rgba(105, 87, 225, 0.2) 50%,
        rgba(147, 51, 234, 0.1) 75%,
        transparent 100%
    );
    filter: blur(40px);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Stack de cartes */
.card-stack {
    --_offset-steps: 6rem;
    --_scale-steps: 25;
    --_opacity-steps: 15;
    --_ani-duration: 300ms;
    --_ani-delay: 200ms;
    --_offset-steps-two: calc(var(--_offset-steps) * -1);
    --_offset-steps-three: calc(var(--_offset-steps) * -2);
    --scale-steps-two: calc(1 - var(--_scale-steps) * 0.01);
    --scale-steps-three: calc(1 - var(--_scale-steps) * 0.02);
    --opacity-steps-two: calc(1 - var(--_opacity-steps) * 0.02);
    --opacity-steps-three: calc(1 - var(--_opacity-steps) * 0.04);

    display: grid;
    grid-template-areas: "stack";
    color: black;
    width: min(calc(100% - 2rem), 52.5rem);
    position: relative;
    z-index: 5;
}

@media (width > 600px) {
    .card-stack {
        --_offset-steps: 4em;
    }
}

.card-item {
    --_bg-alpha: .5;
    --_border-radius: 12px;
    --_bg-dot-offset: 20px;
    --_bg-dot-color: var(--_bg-clr);

    position: relative;
    isolation: isolate;
    background-color: white;
    grid-area: stack;
    transition: 500ms ease-in-out;
    border-radius: var(--_border-radius);
    translate: 0 var(--_offset);
    order: var(--_order);
    z-index: var(--_order);
    scale: var(--_scale);
    opacity: var(--_opacity);
    font-family: "Kodchasan", var(--mainFont), sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-item::before,
.card-item::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    z-index: -1;
}

.card-item::before {
    z-index: -1;
    inset: calc(var(--_bg-dot-offset) * -1);
    background-image: radial-gradient(var(--_bg-dot-color) 1px, transparent 0px);
    background-repeat: repeat;
    background-size: 5px 5px;
    background-position: center;
    border-radius: calc(var(--_border-radius) + var(--_bg-dot-offset));
}

.card-item::after {
    background-color: white;
    inset: 0;
}

.card-item:nth-of-type(1) {
    --_bg-clr: rgba(105, 87, 225, var(--_bg-alpha, 1));
    --_order: var(--_1-order);
    --_scale: var(--_1-scale);
    --_opacity: var(--_1-opacity);
    --_offset: var(--_1-offset);
    --_pointer-event: var(--_1-pointer-event);
    --_pointer-cursor: var(--_1-pointer-cursor);
}

.card-item:nth-of-type(2) {
    --_bg-clr: rgba(147, 51, 234, var(--_bg-alpha, 1));
    --_order: var(--_2-order);
    --_scale: var(--_2-scale);
    --_opacity: var(--_2-opacity);
    --_offset: var(--_2-offset);
    --_pointer-event: var(--_2-pointer-event);
    --_pointer-cursor: var(--_2-pointer-cursor);
}

.card-item:nth-of-type(3) {
    --_bg-clr: rgba(102, 126, 234, var(--_bg-alpha, 1));
    --_order: var(--_3-order);
    --_scale: var(--_3-scale);
    --_opacity: var(--_3-opacity);
    --_offset: var(--_3-offset);
    --_pointer-event: var(--_3-pointer-event);
    --_pointer-cursor: var(--_3-pointer-cursor);
}

/* États des cartes */
.card-stack.state-1 {
    --_1-order: 3;
    --_1-scale: 1;
    --_1-opacity: 1;
    --_1-offset: 0;
    --_1-pointer-event: auto;
    --_1-pointer-cursor: pointer;
    --_2-order: 2;
    --_2-scale: var(--scale-steps-two);
    --_2-opacity: var(--opacity-steps-two);
    --_2-offset: var(--_offset-steps-two);
    --_3-order: 1;
    --_3-scale: var(--scale-steps-three);
    --_3-opacity: var(--opacity-steps-three);
    --_3-offset: var(--_offset-steps-three);
}

.card-stack.state-2 {
    --_2-order: 3;
    --_2-scale: 1;
    --_2-opacity: 1;
    --_2-offset: 0;
    --_2-pointer-event: auto;
    --_2-pointer-cursor: pointer;
    --_3-order: 2;
    --_3-scale: var(--scale-steps-two);
    --_3-opacity: var(--opacity-steps-two);
    --_3-offset: var(--_offset-steps-two);
    --_1-order: 1;
    --_1-scale: var(--scale-steps-three);
    --_1-opacity: var(--opacity-steps-three);
    --_1-offset: var(--_offset-steps-three);
}

.card-stack.state-3 {
    --_3-order: 3;
    --_3-scale: 1;
    --_3-opacity: 1;
    --_3-offset: 0;
    --_3-pointer-event: auto;
    --_3-pointer-cursor: pointer;
    --_1-order: 2;
    --_1-scale: var(--scale-steps-two);
    --_1-opacity: var(--opacity-steps-two);
    --_1-offset: var(--_offset-steps-two);
    --_2-order: 1;
    --_2-scale: var(--scale-steps-three);
    --_2-opacity: var(--opacity-steps-three);
    --_2-offset: var(--_offset-steps-three);
}

.card-header {
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--_bg-clr);
    transition: background-color var(--_ani-duration) ease-in-out;
    border-radius: var(--_border-radius) var(--_border-radius) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.card-label {
    padding: 0;
    color: #333;
    transition: rotate 300ms ease-in-out;
    pointer-events: var(--_pointer-event, none);
    cursor: var(--_pointer-cursor, none);
    font-size: 1.5rem;
}

.card-label:hover {
    rotate: 90deg;
}

.card-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
    transition: translate var(--_ani-duration) ease-in-out, opacity var(--_ani-duration) ease-in-out;
    transition-delay: var(--_delay-h2, 0);
    opacity: var(--_opacity, 0);
}

.card-content {
    position: relative;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    place-items: start;
    gap: 2rem;
}

@media (width > 600px) {
    .card-content {
        grid-template-columns: 1fr 2fr;
    }
}

.card-image {
    width: 300px;
    height: 400px;
    object-fit: cover;
    transition: var(--_ani-duration) ease-in-out;
    opacity: var(--_opacity, 0);
    border-radius: 8px;
}

.card-poem {
    width: 100%;
    height: 400px;
    overflow-y: auto;
}

.card-text {
    transition: var(--_ani-duration) ease-in-out;
    transition-delay: 500ms;
    opacity: var(--_opacity, 0);
    margin: 0 0 1rem 0;
    font-size: .9rem;
    color: #333;
}

/* Responsive mobile hero */
/* Hero responsive - Tablette et mobile */
@media (max-width: 1023px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 4% 3rem 4%;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1.25rem;
    }

    .hero-content p {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

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

    .cta-button {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }

    .animation-container {
        min-height: 450px;
        order: -1;
    }

    .sunset-glow {
        width: 400px;
        height: 400px;
    }

    .card-stack {
        width: min(90%, 100%);
        max-width: 600px;
    }

    .card-image,
    .card-poem {
        height: 350px;
    }

    /* Réduire les formes de background */
    .bg-shape:nth-child(1) {
        width: 400px;
        height: 400px;
        top: -200px;
        right: -200px;
    }

    .bg-shape:nth-child(2) {
        width: 300px;
        height: 300px;
        bottom: -150px;
        left: -150px;
    }

    .bg-shape:nth-child(3) {
        width: 250px;
        height: 250px;
    }
}

/* Hero responsive - Mobile uniquement */
@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding: 5rem 3% 2rem 3%;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
        line-height: 1.6;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .animation-container {
        min-height: 320px;
        margin-top: 1rem;
    }

    .sunset-glow {
        width: 280px;
        height: 280px;
    }

    .card-stack {
        width: 90%;
        max-width: 100%;
    }

    .card-image,
    .card-poem {
        height: 280px;
        border-radius: 16px;
    }

    /* Labels des cartes */
    .controls {
        bottom: -35px;
        gap: 8px;
    }

    .controls label {
        width: 8px;
        height: 8px;
    }

    /* Background encore plus petit sur mobile */
    .bg-shape:nth-child(1) {
        width: 300px;
        height: 300px;
        top: -150px;
        right: -150px;
    }

    .bg-shape:nth-child(2) {
        width: 250px;
        height: 250px;
        bottom: -125px;
        left: -125px;
    }

    .bg-shape:nth-child(3) {
        width: 200px;
        height: 200px;
    }

    /* Réduire les particules sur mobile */
    .particle {
        display: none;
    }

    .particle:nth-child(1),
    .particle:nth-child(3),
    .particle:nth-child(5) {
        display: block;
    }
}

/* ===================================
   PRICING CARDS SECTION
   =================================== */

.pricing-table {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: top;
    color: white;
    padding: 4rem 2rem;
    background: transparent;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Carte de pricing individuelle */
.pricing-table .pricing-card {
    min-width: 280px;
    max-width: 350px;
    flex: 1;
    min-height: fit-content;
    padding: 30px;
    padding-bottom: 80px;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 46px -4px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease-in-out;
}

/* Styles spécifiques par plan - Thème Wacati (Purple/Violet) */
.pricing-table .pricing-card.plan-starter {
    background: linear-gradient(135deg, #7C3AED 0%, #6957E1 100%);
}

.pricing-table .pricing-card.plan-professional {
    background: linear-gradient(135deg, #6957E1 0%, #9333EA 100%);
}

.pricing-table .pricing-card.plan-business {
    background: linear-gradient(135deg, #9333EA 0%, #C026D3 100%);
}

.pricing-table .pricing-card.plan-enterprise {
    background: linear-gradient(135deg, #4C1D95 0%, #6B21A8 100%);
}

/* Type de subscription */
.pricing-table .pricing-card .type {
    margin-top: 30px;
    letter-spacing: 0.1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Prix */
.pricing-table .pricing-card .price {
    font-size: 6rem;
    position: relative;
    margin: 10px 0px 20px;
    z-index: 2;
    font-weight: 700;
}

.pricing-table .pricing-card .price span {
    font-size: 1.8rem;
    position: absolute;
    left: 95%;
    top: 65%;
}

.pricing-table .pricing-card .price::before {
    position: absolute;
    content: attr(data-price);
    color: rgba(255, 255, 255, 0.06);
    font-size: 5rem;
    z-index: -1;
    right: -30%;
    bottom: 25%;
    text-shadow: 0 0 0px rgba(51, 55, 69, 0);
    transition: all 1s ease-in-out;
}

/* Plan avec bordures */
.pricing-table .pricing-card .plan {
    font-size: 1.3rem;
    position: relative;
    margin-bottom: 10px;
}

.pricing-table .pricing-card .plan::before,
.pricing-table .pricing-card .plan::after {
    position: absolute;
    content: "";
    width: 35px;
    height: 2px;
    background: var(--white);
    bottom: 40%;
    transition: all 0.2s ease-out;
}

.pricing-table .pricing-card .plan::before {
    right: 100%;
    transform: translate(-50%, -50%);
}

.pricing-table .pricing-card .plan::after {
    right: -100%;
    transform: translate(-0%, -50%);
}

/* Détails du plan */
.pricing-table .pricing-card .details {
    text-transform: capitalize;
    list-style: none;
    padding: 0;
    flex-grow: 1;
    width: 100%;
}

.pricing-table .pricing-card .details li {
    margin: 15px 0px;
    text-align: center;
}

/* Bouton container */
.pricing-table .pricing-card .buy-button {
    cursor: pointer;
    position: absolute;
    width: 230px;
    height: 180px;
    background: var(--white);
    border-radius: 15%;
    right: -34%;
    bottom: -16%;
    transition: all 0.4s ease-in-out;
}

/* Bouton */
.pricing-table .pricing-card .buy-button h3 {
    text-shadow: 0 0 0;
    text-decoration: none;
    color: var(--white);
    position: absolute;
    left: 8%;
    top: 10%;
    color: var(--black);
    font-size: 1.2rem;
    transition: all 0.4s ease-in-out;
}

/* Hover states */
.pricing-table .pricing-card:hover {
    transform: scale(1.02);
}

.pricing-table .pricing-card:hover .price::before {
    animation: text-hover 1s ease-in-out infinite normal;
}

.pricing-table .pricing-card:hover .plan::before {
    right: 90%;
}

.pricing-table .pricing-card:hover .plan::after {
    right: -90%;
}

.pricing-table .pricing-card:hover .buy-button {
    width: 100%;
    right: 0%;
    border-radius: 0%;
}

.pricing-table .pricing-card:hover .buy-button h3 {
    left: 50%;
    transform: translate(-50%, 0%);
}

@keyframes text-hover {
    0% { right: -30%; }
    50% { right: -37%; }
    100% { right: -30%; }
}

/* Responsive pricing */
@media (max-width: 768px) {
    .pricing-table {
        flex-direction: column;
        align-items: center;
    }

    .pricing-table .pricing-card {
        margin: 1rem 0;
        width: 100%;
        max-width: 400px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .pricing-table {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-table .pricing-card {
        flex: 0 1 calc(50% - 2rem);
        min-width: 280px;
    }
}

/* ===================================
   SECTION FAQ
   =================================== */

.faq-section {
    padding: 100px 2rem;
    background: #0A0A0A;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--wacati-primary), var(--wacati-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-title p {
    color: #9CA3AF;
    font-size: 1.1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(105, 87, 225, 0.3);
    box-shadow: 0 5px 20px rgba(105, 87, 225, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--wacati-primary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--wacati-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
    color: #9CA3AF;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
}

@media (max-width: 768px) {
    .faq-title h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }
}

/* ===================================
   SECTION RÉSULTATS EXCEPTIONNELS
   =================================== */

.scroll-reveal-section {
    position: relative;
    margin: 0;
    padding: 0;
    height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: #0a0a0a;
    margin-bottom: 50px;
    overflow-x: hidden;
}

.scroll-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    box-shadow:
        0 -20px 60px rgba(105, 87, 225, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    width: min(70%, calc(100% - 4rem));
    height: 100%;
    max-width: 100%;
    min-height: 200px;
    transform-origin: bottom center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--wacati-primary) 0%, var(--wacati-secondary) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.scroll-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.scroll-content:hover::before {
    transform: translateX(100%);
}

.reveal-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}

.reveal-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    transition: all 0.6s ease 0.2s;
    transform: translateY(20px);
}

.reveal-content.visible h2 {
    transform: translateY(0);
}

.reveal-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transition: all 0.6s ease 0.4s;
    transform: translateY(20px);
}

.reveal-content.visible p {
    transform: translateY(0);
}

.reveal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    transition: all 0.6s ease 0.6s;
    transform: translateY(20px);
}

.reveal-content.visible .reveal-stats {
    transform: translateY(0);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .scroll-reveal-section {
        height: auto;
        min-height: 60vh;
        overflow: visible;
    }

    .scroll-content {
        transition: all 0.3s ease;
        will-change: auto;
        width: min(90%, calc(100% - 2rem));
    }

    .reveal-content {
        transition: all 0.4s ease;
        will-change: auto;
    }

    .reveal-content h2,
    .reveal-content p,
    .reveal-stats {
        transition: all 0.3s ease;
    }

    .reveal-stats {
        grid-template-columns: 1fr;
    }

    .reveal-content h2 {
        font-size: 2rem;
    }

    /* Forcer la visibilité sur mobile pour éviter les bugs */
    .faq-section,
    .faq-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===================================
   SECTION CTA
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(105, 87, 225, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #E5E7EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    color: #9CA3AF;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cta-section .cta-button {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--wacati-primary), var(--wacati-secondary));
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(105, 87, 225, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cta-section .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-section .cta-button:hover::before {
    left: 100%;
}

.cta-section .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(105, 87, 225, 0.5);
}

/* ===================================
   FOOTER AVEC EFFET OVERLAY
   =================================== */

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    height: 70vh;

    /* Animation d'apparition */
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-end;
    padding: 5rem 4%;
    gap: 3rem;
    color: white;
}

#footer.footer-visible {
    transform: translateY(0);
}

#footer.footer-overlay {
    transform: translateY(0);
}

#footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0) 5%,
        rgba(0, 0, 0, 0.3) 20%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.8) 40%,
        rgba(0, 0, 0, 1) 50%,
        rgb(0, 0, 0)
    );
    z-index: -7;
}

.backdrop {
    z-index: -5;
    position: absolute;
    inset: 0;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    mask-image: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.5) 10%,
        rgba(0, 0, 0, 0.8) 20%,
        rgba(0, 0, 0, 1) 30%,
        rgb(0, 0, 0)
    );
    -webkit-mask-image: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.5) 10%,
        rgba(0, 0, 0, 0.8) 20%,
        rgba(0, 0, 0, 1) 30%,
        rgb(0, 0, 0)
    );
}

.col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(0.5 * var(--m)) calc(0.8 * var(--m));
    width: 23%;
}

.col1 {
    width: 28%;
}

.col2,
.col3,
.col4 {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(105, 87, 225, 0.1);
    border-radius: calc(0.6 * var(--m));
    backdrop-filter: blur(10px);
}

.col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wacati-primary) 0%, var(--wacati-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.col p {
    color: #D1D5DB;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.footer-link {
    text-decoration: none;
    color: #E5E7EB !important;
    cursor: pointer;
    display: block;
    margin: 0.7rem 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding-left: 0;
    position: relative;
    will-change: transform;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wacati-primary), var(--wacati-secondary));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--wacati-primary) !important;
    transform: translateX(5px);
}

.footer-link:hover::before {
    width: 100%;
}

.link {
    padding: 2%;
    width: calc(0.9 * var(--m));
    height: calc(0.9 * var(--m));
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(105, 87, 225, 0.2);
    border-radius: calc(0.15 * var(--m));
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: #E5E7EB !important;
    will-change: transform;
}

.link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wacati-primary), var(--wacati-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link:hover {
    border-color: var(--wacati-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(105, 87, 225, 0.3);
    text-decoration: none !important;
}

.link:hover::before {
    opacity: 1;
}

/* Icônes FontAwesome dans les liens sociaux */
.link i {
    color: #E5E7EB !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.link:hover i {
    color: #FFFFFF !important;
    transform: scale(1.1);
}

.link img {
    height: calc(0.35 * var(--m));
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.link:hover img {
    filter: brightness(1.2);
}

.footer-copyright {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #9CA3AF;
    text-align: center;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid rgba(105, 87, 225, 0.1);
}

.footer-copyright a {
    color: var(--wacati-primary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-copyright a:hover {
    color: var(--wacati-secondary) !important;
    border-bottom-color: var(--wacati-secondary);
}

.footer-copyright i.fa-heart {
    color: #ef4444 !important;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Footer responsive - Tablette */
@media screen and (max-width: 1024px) {
    #footer {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 4rem 3%;
        gap: 2rem;
        height: auto;
        min-height: 70vh;
        max-height: 85vh;
        overflow-y: auto;
    }

    .col {
        width: 48%;
        padding: calc(0.4 * var(--m)) calc(0.6 * var(--m));
    }

    .col1 {
        width: 48%;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
        margin-top: 2rem;
    }

    /* Spacer pour tablette */
    .footer-spacer {
        height: 70vh;
    }
}

/* Footer responsive - Mobile */
@media screen and (max-width: 700px) {
    #footer {
        /* Garde position fixed pour l'animation d'apparition */
        position: fixed;
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 3rem 1.5rem 4rem;
        gap: 2rem;
        height: auto;
        min-height: 80vh;
        max-height: 90vh;
        overflow-y: auto;
        align-items: stretch;
    }

    .col {
        width: 100%;
        padding: 1.5rem;
    }

    .col1 {
        width: 100%;
    }

    .col h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .col p {
        font-size: 0.95rem;
    }

    .footer-link {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }

    .social {
        justify-content: center;
        gap: 1.5rem;
    }

    .link {
        width: 45px;
        height: 45px;
        text-decoration: none !important;
    }

    .link i {
        font-size: 1.1rem !important;
    }

    .footer-copyright {
        position: relative;
        transform: none;
        left: auto;
        bottom: auto;
        margin-top: 1rem;
        text-align: center;
        font-size: 0.9rem;
        padding: 1rem 0;
    }

    /* Garde le spacer pour l'effet overlay sur mobile */
    .footer-spacer {
        height: 80vh;
    }
}

/* Spacer pour le footer fixe */
.footer-spacer {
    height: 40vh;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
    padding: 100px 2rem;
    background: #0A0A0A;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6957E1, #9333EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 1.1rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(105, 87, 225, 0.3);
    box-shadow: 0 20px 50px rgba(105, 87, 225, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6957E1, #9333EA);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: #9CA3AF;
    line-height: 1.8;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
    padding: 100px 2rem;
    background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(105, 87, 225, 0.3);
    box-shadow: 0 10px 30px rgba(105, 87, 225, 0.2);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #FBBF24;
    font-size: 1.2rem;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.8;
    color: #E5E7EB;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6957E1, #9333EA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.author-info h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE - SECTIONS COMMUNES
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem;
    }

    .cta-nav {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}
