/* ========================================
   PUBLIC PAGES - Styles partagés
   Landing page, Guides, Pages SEO
   Version: 2.0 (13 décembre 2025)
   + Animations dynamiques
   + Gradient animé
   + Formes flottantes
   + Micro-interactions
   ======================================== */

:root {
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 25%, #fde68a 65%, #fed7aa 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--slate-700);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--slate-800);
    line-height: 1.3;
}

a {
    color: var(--cyan-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cyan-700);
}

/* Préserver text-white de Tailwind pour les boutons/liens stylisés */
a.text-white,
a.text-white:hover {
    color: white;
}

/* ========================================
   GLASSMORPHISM COMPONENTS
   ======================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.glass-card-solid {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.glass-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.45);
    color: white;
}

.btn-primary-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cyan-600);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid rgba(8, 145, 178, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(8, 145, 178, 0.1);
    border-color: var(--cyan-600);
    color: var(--cyan-700);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NAVIGATION
   ======================================== */

.public-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0 1rem;
}

.public-nav .nav-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.public-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.public-nav .nav-logo img {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 0.75rem;
}

.public-nav .nav-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan-700);
}

.public-nav .nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .public-nav .nav-links {
        display: flex;
    }
    .public-nav .mobile-only {
        display: none;
    }
}

.public-nav .nav-links > a,
.public-nav .nav-links > div > a {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Dropdown */
.public-nav .nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.5rem;
    z-index: 50;
}

.public-nav .group:hover .nav-dropdown {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */

.public-footer {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 4rem 1rem 2rem;
    margin-top: 2rem;
}

.public-footer .container {
    max-width: 80rem;
    margin: 0 auto;
}

.public-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .public-footer .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.public-footer a {
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: white;
}

.public-footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.public-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer ul li {
    margin-bottom: 0.75rem;
}

.public-footer .footer-bottom {
    border-top: 1px solid var(--slate-700);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .public-footer .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.public-footer .footer-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.public-footer .footer-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   CONTENT CARDS
   ======================================== */

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.15);
    background: rgba(255, 255, 255, 0.7);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

/* ========================================
   GUIDE CONTENT
   ======================================== */

.guide-content {
    max-width: 52rem;
    margin: 0 auto;
}

.guide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.guide-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(8, 145, 178, 0.15);
}

.guide-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-content p {
    margin-bottom: 1.25rem;
}

.guide-content ul, .guide-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.guide-content li {
    margin-bottom: 0.6rem;
}

.guide-content .info-box {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--cyan-500);
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
}

.guide-content .warning-box {
    background: rgba(251, 191, 36, 0.12);
    border-left: 4px solid var(--amber-500);
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 2rem 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .guide-content h1 {
        font-size: 2rem;
    }

    .guide-content h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   UTILITIES
   ======================================== */

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

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

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

/* Responsive utilities (Tailwind-like) */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
}

/* ========================================
   MOBILE UX 2025 - Bottom Navigation
   ======================================== */

.bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
    }

    /* Add padding to body for bottom nav */
    body {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }

    /* Hide footer on mobile - simplified experience */
    .public-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .public-footer .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

/* Hide brand text on very small screens */
@media (max-width: 400px) {
    .nav-brand-text {
        display: none;
    }
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--slate-500);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.75rem;
    min-width: 3.5rem;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    color: var(--cyan-600);
    background: rgba(6, 182, 212, 0.08);
}

.bottom-nav-item.active {
    color: var(--cyan-600);
}

.bottom-nav-item.active .bottom-nav-icon {
    stroke-width: 2.5;
}

.bottom-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.75;
}

/* CTA central - style proéminent */
.bottom-nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
    min-width: 4rem;
}

.bottom-nav-cta:hover,
.bottom-nav-cta:active {
    transform: translateY(-0.625rem);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
    color: white;
}

.bottom-nav-icon-cta {
    width: 1.35rem;
    height: 1.35rem;
}

/* ========================================
   MOBILE UX 2025 - Sticky CTA
   ======================================== */

.sticky-cta {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    left: 1rem;
    right: 1rem;
    z-index: 999;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 767px) {
    .sticky-cta {
        display: block;
    }
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta.dismissed {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.sticky-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
}

.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sticky-cta-btn:hover {
    transform: scale(1.02);
    color: white;
}

.sticky-cta-btn svg {
    width: 1rem;
    height: 1rem;
}

.sticky-cta-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--slate-700);
    border: 2px solid var(--slate-600);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sticky-cta-close:hover {
    background: var(--slate-600);
    transform: scale(1.1);
}

/* ========================================
   MOBILE UX 2025 - Snap Scrolling
   ======================================== */

@media (max-width: 767px) {
    .snap-container {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100vh;
    }

    .snap-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ========================================
   MOBILE UX 2025 - Swipeable Cards
   ======================================== */

.swipe-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.swipe-container::-webkit-scrollbar {
    display: none;
}

.swipe-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .swipe-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        margin: 0;
        padding: 0;
    }

    .swipe-card {
        flex: none;
    }
}

/* Swipe indicators */
.swipe-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .swipe-indicators {
        display: none;
    }
}

.swipe-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--slate-300);
    transition: all 0.2s ease;
}

.swipe-dot.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background: var(--cyan-500);
}

/* ========================================
   MOBILE UX 2025 - Micro-interactions
   ======================================== */

/* Touch feedback */
@media (max-width: 767px) {
    .btn-primary,
    .btn-secondary,
    .feature-card,
    .bottom-nav-item,
    .bottom-nav-cta {
        -webkit-tap-highlight-color: transparent;
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.97);
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    /* Buttons on mobile - taille réduite */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* Smooth transitions everywhere */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Progress dots for sections */
.section-progress {
    display: none;
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

@media (max-width: 767px) {
    .section-progress {
        display: flex;
    }
}

.section-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--slate-400);
    transition: all 0.3s ease;
}

.section-dot.active {
    background: var(--cyan-500);
    border-color: var(--cyan-500);
    transform: scale(1.3);
}

/* ========================================
   MOBILE RESPONSIVE - Optimisation
   Padding réduit + Typo adaptée
   ======================================== */

@media (max-width: 767px) {
    /* Container pleine largeur sur mobile */
    .max-w-7xl,
    .max-w-6xl,
    .max-w-5xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Réduction padding sections */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        padding-left: 0.475rem !important;
        padding-right: 0.475rem !important;
    }

    /* Hero section : moins de padding top */
    section:first-of-type {
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }

    /* Typo responsive */
    h1, .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Paragraphes et texte */
    p {
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
    }

    .text-xl {
        font-size: 1rem !important;
    }

    .text-lg {
        font-size: 0.9375rem !important;
    }

    /* Stats - chiffres plus petits */
    .stat-number {
        font-size: 2rem !important;
    }

    .stat-card {
        padding: 1rem 0.75rem !important;
    }

    /* Cards - padding suffisant pour le contenu */
    .glass-card,
    .glass-card-solid,
    .feature-card {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }

    /* Grilles : moins de gap */
    .grid {
        gap: 0.75rem !important;
    }

    /* Margin bottom réduites */
    .mb-6 {
        margin-bottom: 1rem !important;
    }

    .mb-8 {
        margin-bottom: 1.25rem !important;
    }

    .mb-10 {
        margin-bottom: 1.5rem !important;
    }

    .mt-6 {
        margin-top: 1rem !important;
    }

    .mt-8 {
        margin-top: 1.25rem !important;
    }

    /* Feature icons plus petits */
    .feature-icon {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* ========================================
   ANIMATIONS DYNAMIQUES v2.0
   ======================================== */

/* Gradient animé pour le background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient-bg {
    background: linear-gradient(-45deg, #cffafe, #a5f3fc, #fde68a, #fed7aa, #c4b5fd);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
}

/* Reveal au scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation pour les grilles */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Formes géométriques flottantes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(1px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 10%;
    right: -5%;
    animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    bottom: 20%;
    left: -3%;
    animation: floatShape2 18s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #a855f7, #9333ea);
    top: 50%;
    right: 20%;
    animation: floatShape3 22s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    bottom: 30%;
    right: 10%;
    animation: floatShape1 15s ease-in-out infinite reverse;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(0, -60px) rotate(180deg); }
    75% { transform: translate(-30px, -30px) rotate(270deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 20px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.9); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

/* Effet lift sur les cards au hover (sans rotation 3D pour éviter aliasing) */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(31, 38, 135, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Bouton CTA avec glow pulsé */
.btn-glow {
    position: relative;
    overflow: visible;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    border-radius: 9999px;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

/* Gradient text animé */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        #0891b2 0%,
        #0e7490 25%,
        #f59e0b 50%,
        #0e7490 75%,
        #0891b2 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Compteur animé - style */
.stat-counter {
    display: inline-block;
}

/* Icônes animées au hover */
.feature-icon-animated {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon-animated {
    transform: scale(1.15) rotate(5deg);
}

/* Effet typewriter */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--cyan-500);
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end),
        blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--cyan-500); }
}

/* Badge animé "Nouveau" */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Parallax léger */
.parallax-slow {
    will-change: transform;
}

/* Hero card tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

/* Ligne de progression dans les sections */
.section-line {
    position: relative;
}

.section-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--cyan-300) 20%,
        var(--cyan-500) 50%,
        var(--cyan-300) 80%,
        transparent 100%
    );
    opacity: 0.3;
    transform: translateX(-50%);
}

/* Hover shine effect sur les boutons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Glass morphism amélioré avec reflet */
.glass-premium {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
