/* ============================================
   INDEX.CSS - PAGE D'ACCUEIL
   ============================================ */

/* Import des variables globales depuis main.css */
/* Assurez-vous que main.css est chargé avant */

/* ============================================
   HERO SECTION
   ============================================ */

.main-content {
    padding: 1rem 0 0 0;
    width: 100%;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f8f9fa 100%);
    overflow: hidden;
    padding-top: var(--header-height);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a202c 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--main-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(255, 87, 34, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--main-color) 0%, #ff8a50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero.primary {
    background: var(--main-color);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.3);
}

.btn-hero.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.4);
}

.btn-hero.secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--glass-border);
}

.btn-hero.secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out;
    will-change: transform;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--main-color);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation: floatCard 3s ease-in-out infinite;
}

.card-2 {
    bottom: 30%;
    left: -15%;
    animation: floatCard 3s ease-in-out infinite 0.5s;
}

.card-3 {
    bottom: 10%;
    right: -5%;
    animation: floatCard 3s ease-in-out infinite 1s;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

/* ============================================
   SECTION COMMUNE
   ============================================ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--main-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    background: rgba(255, 87, 34, 0.2);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--main-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.feature-icon.orange {
    background: #fff7ed;
    color: var(--main-color);
}

.feature-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.feature-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature-icon.pink {
    background: #fce7f3;
    color: #ec4899;
}

.feature-icon.cyan {
    background: #cffafe;
    color: #06b6d4;
}

[data-theme="dark"] .feature-icon {
    filter: brightness(0.8);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
    background: linear-gradient(135deg, #fff5f2 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .how-section {
    background: linear-gradient(135deg, #1a202c 0%, var(--bg-primary) 100%);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.step-item {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    gap: 40px;
    align-items: center;
}

.step-item.reverse {
    grid-template-columns: 80px 1fr 400px;
}

.step-item.reverse .step-content {
    order: 2;
}

.step-item.reverse .step-visual {
    order: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--main-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.3);
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.step-visual img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--main-color) 0%, #ff8a50 100%);
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px;
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: white;
    color: var(--main-color);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-note {
    margin-top: 24px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: #e2e8f0;
    padding: 80px 0 0;
}

[data-theme="dark"] .footer {
    background: #0a0f1a;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.logo-footer {
    width: 40px;
    height: 40px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--main-color);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--main-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--main-color);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--main-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #e64a19;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5);
}

/* ============================================
   DARK MODE TOGGLE (Fixed)
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-dark);
    border: 2px solid var(--glass-border);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--main-color);
    color: var(--main-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .brand-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .step-item,
    .step-item.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-number {
        margin: 0 auto;
    }

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

    .step-item.reverse .step-content,
    .step-item.reverse .step-visual {
        order: initial;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 60px 20px;
    }

    .hero-container {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .floating-card {
        display: none;
    }

    .scroll-to-top,
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        right: 20px;
    }

    .dark-mode-toggle {
        bottom: 90px;
    }
}
