:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --tertiary: #a855f7;
    --accent: #d946ef;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --bg-soft-2: #f1f5f9;
    --border: #e2e8f0;

    --success: #10b981;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 22px 60px rgba(15, 23, 42, 0.14);

    --page-max: 1320px;
    --page-padding-desktop: 24px;
    --page-padding-tablet: 20px;
    --page-padding-mobile: 14px;

    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 26px;
}

.home-page,
#Content,
.content_wrapper,
.sections_group,
.entry-content {
    width: 100%;
}

.container,
.top-container {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-left: var(--page-padding-desktop);
    padding-right: var(--page-padding-desktop);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container,
    .top-container {
        padding-left: var(--page-padding-tablet);
        padding-right: var(--page-padding-tablet);
    }
}

@media (max-width: 768px) {
    .container,
    .top-container {
        max-width: none;
        padding-left: var(--page-padding-mobile);
        padding-right: var(--page-padding-mobile);
    }
}

/* =========================
   SECTIONS
   ========================= */

.how-it-works-section,
.benefits-section,
.top-professionals-section {
    position: relative;
    overflow: hidden;
}

.how-it-works-section {
    padding: 88px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.how-it-works-section::before {
    content: "";
    position: absolute;
    top: -280px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 68%);
    pointer-events: none;
}

.benefits-section {
    padding: 88px 0;
    background: #ffffff;
}

.stats-section {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 28%),
                radial-gradient(circle at 80% 30%, rgba(255,255,255,0.10), transparent 24%),
                radial-gradient(circle at 50% 100%, rgba(255,255,255,0.08), transparent 30%);
    pointer-events: none;
}

.top-professionals-section {
    padding: 88px 0 72px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.top-professionals-section::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 72%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .how-it-works-section,
    .benefits-section,
    .top-professionals-section {
        padding: 56px 0;
    }

    .stats-section {
        padding: 48px 0;
    }
}

/* =========================
   SECTION HEADER
   ========================= */

.section-header {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.75;
    }
}

.section-title {
    margin: 0 0 16px;
    color: var(--text-primary);
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.section-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(15px, 2.8vw, 18px);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 34px;
    }

    .section-title {
        font-size: 30px;
        line-height: 1.15;
    }

    .section-description {
        font-size: 15px;
        line-height: 1.65;
    }
}

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

.steps-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    position: relative;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 26px;
    padding: 34px 24px 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.20);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.step-card[data-step="2"] .step-number {
    color: var(--secondary);
}

.step-card[data-step="3"] .step-number {
    color: var(--accent);
}

.step-icon {
    margin-bottom: 18px;
}

.step-icon svg {
    width: 58px;
    height: 58px;
}

.step-title {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.step-description {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

.step-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.step-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.step-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--success);
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        margin-bottom: 28px;
    }

    .step-card {
        padding: 30px 18px 18px;
        border-radius: 22px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-description {
        font-size: 14px;
    }
}

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

.section-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.section-cta-top-pros {
    margin-top: 40px;
}

.cta-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.34);
}

.cta-button-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid rgba(99, 102, 241, 0.22);
    box-shadow: var(--shadow-sm);
}

.cta-button-secondary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    border-color: transparent;
}

.cta-note {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cta-button {
        width: 100%;
    }
}

/* =========================
   BENEFITS
   ========================= */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.benefit-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.18);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.benefit-title {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.benefit-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 20px 18px;
        border-radius: 20px;
    }
}

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

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 22px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.stat-number {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1;
    font-weight: 900;
}

.stat-label {
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 18px 14px;
    }
}

/* =========================
   TOP PROFESSIONALS
   ========================= */

.top-carousel-wrapper {
    position: relative;
}

.top-carousel-container {
    overflow: hidden;
    padding: 4px 2px 8px;
}

.top-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform .35s ease;
    will-change: transform;
}

.top-carousel-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
}

.top-pro-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.top-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.18);
}

.top-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.top-pro-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
}

.top-pro-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-pro-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 42px;
}

.top-pro-card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    color: #be185d;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.8);
}

.top-pro-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1;
}

.top-pro-card-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.top-pro-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-pro-card-location {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.top-pro-card-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.top-pro-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-pro-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.top-pro-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.top-pro-chip-price {
    background: #fdf2f8;
    color: #be185d;
}

.top-pro-chip-duration {
    background: #eff6ff;
    color: #0369a1;
}

/* =========================
   CAROUSEL NAV
   ========================= */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease, background .25s ease, color .25s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.carousel-arrow-prev {
    left: -10px;
}

.carousel-arrow-next {
    right: -10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all .25s ease;
}

.carousel-dot.active {
    width: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

@media (max-width: 1024px) {
    .top-carousel-track {
        gap: 16px;
    }

    .top-carousel-slide {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 768px) {
    .top-carousel-container {
        overflow: visible;
    }

    .top-carousel-track {
        gap: 12px;
        padding-right: 12px;
    }

    .top-carousel-slide {
        flex: 0 0 88%;
        min-width: 88%;
    }

    .top-pro-card {
        border-radius: 22px;
    }

    .top-pro-card-body {
        padding: 16px;
    }

    .top-pro-card-title {
        font-size: 17px;
    }

    .top-pro-card-description {
        font-size: 13px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .top-carousel-slide {
        flex-basis: 92%;
        min-width: 92%;
    }
}

/* =========================
   ANIMATIONS D'ENTRÉE
   ========================= */

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

.step-card,
.benefit-card,
.stat-card,
.top-pro-card {
    animation: fadeInUp .55s ease both;
}

.step-card:nth-child(1),
.benefit-card:nth-child(1) {
    animation-delay: .05s;
}

.step-card:nth-child(2),
.benefit-card:nth-child(2) {
    animation-delay: .10s;
}

.step-card:nth-child(3),
.benefit-card:nth-child(3) {
    animation-delay: .15s;
}

/* =========================
   CONFORT MOBILE / ACCESS
   ========================= */

@media (hover: none) and (pointer: coarse) {
    .step-card:hover,
    .benefit-card:hover,
    .top-pro-card:hover,
    .cta-button:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   MOBILE ONLY - élargir les cards
   sans changer leur style d'origine
   ========================================= */

@media (max-width: 768px) {
    /* conteneurs principaux un peu plus larges */
    #Content .container,
    .top-container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        box-sizing: border-box !important;
    }

    /* section header garde son centrage mais utilise mieux la largeur */
    .section-header {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        box-sizing: border-box !important;
    }

    /* grilles en 1 colonne pleine largeur */
    @media (max-width: 768px) {
        .steps-grid,
        .benefits-grid {
            grid-template-columns: 1fr !important;
            width: 100% !important;
            gap: 18px !important;

            padding-left: 4px;
            padding-right: 4px;
            box-sizing: border-box;
        }
    }

    /* on garde le style d'origine, on élargit seulement */
    .step-card,
    .benefit-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* CTA pleine largeur sur mobile */
    .section-cta .cta-button,
    .section-cta-top-pros .cta-button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    #Content .container,
    .top-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .steps-grid,
    .benefits-grid {
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    #Content .container,
    .top-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 480px) {
    #Content .container,
    .top-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}