/* ========================================
   HERO SECTION - PAGE ACCUEIL
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 100px;
    background: linear-gradient(135deg, var(--primary-50) 0%, #ffffff 40%, var(--primary-50) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -30% -50% auto -50%;
    height: 140%;
    background:
        radial-gradient(ellipse 1200px 600px at 20% 10%, rgba(25, 118, 210, .1), transparent),
        radial-gradient(ellipse 1000px 500px at 80% 60%, rgba(25, 118, 210, .08), transparent);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-5%, 5%);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 68px);
    line-height: 1.1;
    margin: 24px 0;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-900);
}

.hero p {
    color: var(--text-600);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
    max-width: 56ch;
    margin-bottom: 0;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Hero Visual - Mockups webapp + mobile */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup {
    position: absolute;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    background: white;
}

.device-mockup.webapp {
    width: 75%;
    height: 85%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid var(--text-900);
    border-radius: 16px;
    z-index: 1;
}

.screen-webapp {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webapp-header {
    height: 40px;
    background: var(--primary-700);
    border-radius: 8px;
}

.webapp-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.device-mockup.mobile {
    width: 38%;
    aspect-ratio: 9/19;
    right: 0;
    bottom: 10%;
    border: 10px solid var(--primary-900);
    border-radius: 36px;
    z-index: 2;
}

.device-mockup.mobile::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 22px;
    border-radius: 0 0 16px 16px;
    background: var(--primary-900);
    z-index: 3;
}

.screen-mobile {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 26px;
    padding: 48px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.mobile-card {
    width: 80%;
    height: 120px;
    background: white;
    border: 2px solid var(--primary-200);
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}

.mobile-card::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    border-radius: 50%;
}

.mobile-card.small {
    height: 80px;
    margin-top: 8px;
}

/* ========================================
   HOW IT WORKS - STEPS
   ======================================== */
#how {
    background: white;
}

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

.step-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
}

.step-icon {
    font-size: 48px;
    margin: 24px 0 20px;
}

.step-icon img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-900);
    margin: 0 0 12px;
    line-height: 1.3;
}

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

/* ========================================
   TWO INTERFACES SECTION
   ======================================== */
.two-interfaces {
    background: var(--bg);
}

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

.interface-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.interface-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-700), var(--primary-500));
    transform: scaleX(0);
    transition: var(--transition);
}

.interface-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-300);
}

.interface-card:hover::before {
    transform: scaleX(1);
}

.interface-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.interface-icon img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto;
}

.interface-card .btn {
    margin-top: 40px;
}

.interface-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-900);
    margin: 0 0 8px;
}

.interface-subtitle {
    color: var(--primary-700);
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.interface-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: inline-block;
    text-align: left;
}

.interface-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0;
    color: var(--text-600);
    font-size: 16px;
    line-height: 1.6;
}

.interface-features li::before {
    content: "✓";
    font-weight: 800;
    color: var(--primary-700);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.download-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    justify-content: center;
}

.store-badge {
    height: 48px;
    width: auto;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    padding: 0;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* ========================================
   WHY FIDELIS SECTION
   ======================================== */
.why-section {
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.why-icon {
    font-size: 52px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon img {
    width: 125px;
    height: 125px;
    display: block;
    margin: 0 auto;
}

.why-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-900);
    margin: 0 0 40px;
    height: 50px;
    display: flex;
    align-items: center;
    text-align: center;
}

.why-card p {
    color: var(--text-600);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* ========================================
   PRICING PREVIEW
   ======================================== */
.pricing-preview {
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.price-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.price-card.popular {
    border-color: var(--primary-700);
    border-width: 3px;
    box-shadow: var(--shadow-primary-lg);
    background: linear-gradient(180deg, white 0%, var(--primary-50) 100%);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    color: white;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-primary);
}

.price-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 2px solid var(--border);
}

.price-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text-900);
}

.price {
    font-size: 52px;
    font-weight: 800;
    color: var(--primary-700);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-600);
}

.price-subtitle {
    color: var(--text-600);
    font-size: 15px;
    margin: 12px 0 0;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    flex: 1;
}

.price-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 14px 0;
    color: var(--text-600);
    line-height: 1.6;
    font-size: 15px;
}

.price-features li::before {
    content: "✓";
    font-weight: 800;
    color: var(--success);
    margin-top: 2px;
    font-size: 18px;
    flex-shrink: 0;
}

.price-card .btn {
    margin-top: 28px;
    width: 100%;
}

/* ========================================
   RESPONSIVE - PAGE ACCUEIL
   ======================================== */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .hero-visual {
        order: -1;
        height: 400px;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        max-width: 100%;
        margin-inline: auto;
    }

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

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

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

@media (max-width: 900px) {
    .hero {
        padding: 64px 0;
    }

    .hero-visual {
        height: 350px;
    }

    .device-mockup.webapp {
        width: 70%;
        height: 80%;
    }

    .device-mockup.mobile {
        width: 40%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .interfaces-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-visual {
        height: 300px;
    }

    .device-mockup.webapp {
        width: 65%;
        height: 75%;
    }

    .device-mockup.mobile {
        width: 42%;
    }

    .price {
        font-size: 44px;
    }

    .interface-card {
        padding: 36px 28px;
    }
}