/**
 * Landing Page
 * Styles spécifiques à la page d'accueil publique
 */

/* ==========================================================================
   HERO SPÉCIFIQUE LANDING
   ========================================================================== */

.landing-hero {
    padding-top: 100px;
}

.landing-hero .hero-text h1 {
    font-size: 52px;
}

.landing-hero .hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    max-width: 500px;
}

/* Visual/Mockup */
.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
}

.mockup-header {
    background: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.mockup-content {
    padding: 20px;
}

.mockup-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.mockup-table th,
.mockup-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.mockup-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-title);
    font-size: 11px;
}

.mockup-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-body);
}

.mockup-table .dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.mockup-table .dot.green { background: var(--success); }
.mockup-table .dot.orange { background: var(--warning); }
.mockup-table .dot.red { background: var(--error); }

.mockup-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: var(--text-light);
}

.mockup-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mockup-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-legend .dot.green { background: var(--success); }
.mockup-legend .dot.orange { background: var(--warning); }
.mockup-legend .dot.red { background: var(--error); }

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-title);
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

.floating-badge .lnr {
    font-size: 16px;
}

.floating-badge.badge-success {
    animation-delay: 0s;
}
.floating-badge.badge-success .lnr {
    color: var(--success);
}

.floating-badge.badge-warning {
    animation-delay: 0.5s;
}
.floating-badge.badge-warning .lnr {
    color: var(--warning);
}

.floating-badge.badge-info {
    animation-delay: 1s;
}
.floating-badge.badge-info .lnr {
    color: var(--main-color);
}

.floating-badge.badge-stats {
    animation-delay: 1.5s;
}
.floating-badge.badge-stats .lnr {
    color: var(--success);
}

.floating-badge.badge-purple {
    animation-delay: 2s;
}
.floating-badge.badge-purple .lnr {
    color: #8b5cf6;
}

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

/* Cercles décoratifs */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.deco-circle-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
}

.deco-circle-2 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    left: -50px;
    background: rgba(255, 255, 255, 0.05);
    animation: pulse 4s ease-in-out infinite 1s;
}

.deco-circle-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: -30px;
    background: rgba(255, 255, 255, 0.08);
    animation: pulse 3s ease-in-out infinite 0.5s;
}

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

/* Animation d'entrée pour le mockup */
.hero-mockup {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(30px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(0);
    }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card .card-icon {
    width: 65px;
    height: 65px;
    background: var(--main-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-card:hover .card-icon {
    background: var(--main-color);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* Feature card highlight (avec badge) */
.feature-card-highlight {
    position: relative;
    border-color: #e9d5ff;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.feature-card-highlight:hover {
    border-color: #8b5cf6;
}

.feature-card-highlight:hover .card-icon {
    background: #8b5cf6 !important;
    color: white !important;
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   COMPETENCES SECTION
   ========================================================================== */

.section-label-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.competences-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.competences-card {
    display: flex;
    justify-content: center;
}

.competences-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-light);
}

.competences-mockup .mockup-header {
    background: #f5f3ff;
    border-bottom-color: #ede9fe;
}

.competences-mockup .mockup-title {
    color: #6d28d9;
}

.competences-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon .lnr {
    font-size: 22px;
    color: #7c3aed;
}

.benefit-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition);
    width: fit-content;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    color: white;
}

.competences-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 30px;
    font-style: italic;
}

/* Niveaux de compétences */
.mockup-table .level {
    display: inline-flex;
    gap: 3px;
}

.mockup-table .level::before,
.mockup-table .level::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #e5e7eb;
}

.mockup-table .level::before {
    content: '';
}

.level {
    display: inline-flex;
    gap: 3px;
}

.level::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #e5e7eb;
    box-shadow:
        12px 0 0 #e5e7eb,
        24px 0 0 #e5e7eb,
        36px 0 0 #e5e7eb;
}

.level-1::before {
    background: #8b5cf6;
    box-shadow:
        12px 0 0 #e5e7eb,
        24px 0 0 #e5e7eb,
        36px 0 0 #e5e7eb;
}

.level-2::before {
    background: #8b5cf6;
    box-shadow:
        12px 0 0 #8b5cf6,
        24px 0 0 #e5e7eb,
        36px 0 0 #e5e7eb;
}

.level-3::before {
    background: #8b5cf6;
    box-shadow:
        12px 0 0 #8b5cf6,
        24px 0 0 #8b5cf6,
        36px 0 0 #e5e7eb;
}

.level-4::before {
    background: #8b5cf6;
    box-shadow:
        12px 0 0 #8b5cf6,
        24px 0 0 #8b5cf6,
        36px 0 0 #8b5cf6;
}

.mockup-legend .level {
    width: auto;
    margin-right: 40px;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--main-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-light);
}

/* Connecteur entre étapes */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), var(--main-light));
}

/* ==========================================================================
   TESTIMONIALS (optionnel)
   ========================================================================== */

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--main-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-title);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

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

@media (max-width: 991px) {
    .landing-hero .hero-text h1 {
        font-size: 38px;
    }

    .hero-visual,
    .floating-elements,
    .deco-circle {
        display: none;
    }

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

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

    .step:not(:last-child)::after {
        display: none;
    }

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

    /* Competences section */
    .competences-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .competences-card {
        order: -1;
    }

    .competences-benefits {
        text-align: left;
    }

    .btn-purple {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .landing-hero .hero-text h1 {
        font-size: 32px;
    }

    .landing-hero .hero-subtitle {
        font-size: 16px;
    }

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

    .stat-number {
        font-size: 36px;
    }

    /* Competences section mobile */
    .competences-mockup {
        max-width: 100%;
    }

    .mockup-legend {
        flex-wrap: wrap;
        gap: 10px;
    }

    .mockup-legend .level {
        margin-right: 30px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-icon .lnr {
        font-size: 18px;
    }
}
