/* Index */
.index-header {
    font-size: 2.5rem;
    font-weight: 600;

    background: linear-gradient(80deg , var(--blue-300), var(--blue-500) 30%, var(--primary));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


@media (min-width: 768px) {
    .index-subheader {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .index-header {
        font-size: 3.25rem;
    }
}

[data-theme-style="dark"] .index-header {
    background: linear-gradient(80deg , var(--blue-600), var(--blue-700) 30%, var(--primary-600));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.index-subheader {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 500;
}

@media (min-width: 768px) {
    .index-subheader {
        font-size: 1.35rem;
    }
}

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

@media (min-width: 768px) and (max-width: 992px) {
    .index-button-wrapper {
        width: 75%;
    }
}

.index-button {
    padding: 0.7rem 3rem;
}

.index-custom-hero-background {
    position: absolute;
    background: linear-gradient(0deg, var(--white), hsla(0, 0%, 100%, 0)) !important;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
}

.index-custom-hero {
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    z-index: -1;
    overflow: hidden;
    opacity: 15%;
}

.index-custom-hero-bar {
    width: 2.5rem;
    min-width: 2.5rem;
    background: var(--gray-300);
    margin: 0 .5rem;
    z-index: -1;
    border-radius: var(--border-radius);
    height: 0;
    transition: height 1s ease-in-out;
}

.index-highly-rounded {
    border-radius: 1rem;
}

/* Index fade */
.index-fade {
    position: absolute;
    background: linear-gradient(0deg, var(--white), hsla(0, 0%, 100%, 0)) !important;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

/* Index testimonial */
.index-testimonial-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    transform: translateY(-70%);
    border: 4px solid var(--white);
    background: var(--white);
    position: absolute;
    left: 50%;
    margin-left: -52px;
}

.index-testimonial-comment {
    margin-left: 18px;
}

/* Index FAQ */
.index-faq svg {
    transition: all .15s;
    color: var(--primary-800);
}

/* Timeline */
.index-timeline {
    position: relative;
}

.index-timeline::before {
    content: '';
    position: absolute;
    border-left: 2px solid var(--primary-100);
    height: 100%;
    left: calc(57px / 2);
}

/* Index call to action */
.index-cta {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 700 700" width="700" height="700"><defs><linearGradient gradientTransform="rotate(58, 0.5, 0.5)" x1="50%" y1="0%" x2="50%" y2="100%" id="ffflux-gradient"><stop stop-color="rgb(38, 111, 238)" stop-opacity="1" offset="0%"></stop><stop stop-color="hsl(165, 70%, 59%)" stop-opacity="1" offset="100%"></stop></linearGradient><filter id="ffflux-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feTurbulence type="fractalNoise" baseFrequency="0.005 0.003" numOctaves="1" seed="4" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence><feGaussianBlur stdDeviation="20 0" x="0%" y="0%" width="100%" height="100%" in="turbulence" edgeMode="duplicate" result="blur"></feGaussianBlur><feBlend mode="color-burn" x="0%" y="0%" width="100%" height="100%" in="SourceGraphic" in2="blur" result="blend"></feBlend></filter></defs><rect width="700" height="700" fill="url(%23ffflux-gradient)" filter="url(%23ffflux-filter)"></rect></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    color: white !important;
}

.index-cta a.btn {
    color: white;
    border-color: white;
    padding: 1.2rem 4.2rem;
    font-size: 1.25rem;
}

.index-cta a.btn:hover {
    border-color: var(--primary);
}

.index-icon-container {
    background: var(--blue-50);
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    color: var(--blue-600);
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
    border-radius: calc(2 * var(--border-radius));
}

[data-theme-style="dark"] {
    .index-icon-container {
        background: var(--blue-100);
    }
}

/* ============================================================
   IX — Index Custom Styles (thème captain refonte)
   ============================================================ */

/* ── Boutons ─────────────────────────────────────────────── */
.ix-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--primary, #3b82f6);
    color: #fff !important;
    font-size: .9rem;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: 10px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(59,130,246,.3);
}
.ix-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59,130,246,.4);
    color: #fff !important;
    background: #2563eb;
}

/* Small button — outline bleu */
.ix-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(37,99,235,.06);
    color: #2563eb !important;
    font-size: .8rem;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: 8px;
    text-decoration: none !important;
    border: 1px solid rgba(37,99,235,.2);
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    letter-spacing: .01em;
}
.ix-btn-sm:hover {
    background: rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.4);
    color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.15);
}
[data-theme-style="dark"] .ix-btn-sm {
    background: rgba(59,130,246,.1);
    color: #60a5fa !important;
    border-color: rgba(59,130,246,.25);
}
[data-theme-style="dark"] .ix-btn-sm:hover {
    background: rgba(59,130,246,.18);
    border-color: rgba(59,130,246,.45);
    color: #93c5fd !important;
}

.ix-btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--gray-700, #374151) !important;
    font-size: .9rem;
    font-weight: 500;
    padding: .6rem 1.5rem;
    border-radius: 10px;
    text-decoration: none !important;
    border: 1px solid var(--gray-200, #e5e7eb);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.ix-btn-ghost:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-300, #d1d5db);
    color: var(--gray-900, #111827) !important;
    transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────────────── */
.ix-hero {
    background: linear-gradient(160deg, #fff 0%, #f0f7ff 50%, #e8f0fe 100%);
    overflow: hidden;
}

.ix-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 100%);
}

.ix-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}
.ix-glow-1 {
    top: -80px; left: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
}
.ix-glow-2 {
    top: 100px; right: 5%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(8,145,178,.06), transparent 70%);
}

/* Uptime bars déco */
.ix-bars-wrapper {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 320px;
    padding: 0 0.5rem;
    pointer-events: none;
    opacity: .32;
    overflow: hidden;
}
.ix-bar {
    flex: 1;
    max-width: 34px;
    min-height: 6px;
    border-radius: 4px 4px 0 0;
    background: rgba(22,163,74,.8);
    transition: height 1.4s cubic-bezier(.4,0,.2,1);
}

/* Badge intro */
.ix-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(37,99,235,.07);
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .75rem;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ix-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    animation: ix-pulse 2s ease-in-out infinite;
}
@keyframes ix-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); }
    50%      { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

/* Titre hero */
.ix-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0f172a;
}

/* Sous-titre hero */
.ix-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: #475569;
    max-width: 560px;
    line-height: 1.7;
}

/* Accent gradient */
.ix-accent {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pills (feature badges) */
.ix-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    transition: all .15s ease;
}
.ix-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ── Tabs ────────────────────────────────────────────────── */
.ix-tab-btn {
    background: transparent;
    border: 1px solid transparent !important;
    color: #475569;
    cursor: pointer;
    transition: all .18s ease;
}
.ix-tab-btn:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
.ix-tab-btn.ix-tab-active {
    background: #fff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ix-tab-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.ix-tab-pane { display: block; }
.ix-tab-pane.d-none { display: none !important; }

/* ── Dark mode overrides ─────────────────────────────────── */
[data-theme-style="dark"] .ix-hero {
    background: linear-gradient(160deg, #070d1a 0%, #0d1526 50%, #0a1535 100%);
}
[data-theme-style="dark"] .ix-hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}
[data-theme-style="dark"] .ix-hero-title { color: #f1f5f9; }
[data-theme-style="dark"] .ix-hero-sub   { color: #94a3b8; }
[data-theme-style="dark"] .ix-intro-badge {
    background: rgba(59,130,246,.1);
    border-color: rgba(59,130,246,.2);
    color: #60a5fa;
}
[data-theme-style="dark"] .ix-pill {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    color: #94a3b8;
}
[data-theme-style="dark"] .ix-btn-ghost {
    color: #94a3b8 !important;
    border-color: rgba(255,255,255,.1);
}
[data-theme-style="dark"] .ix-btn-ghost:hover {
    background: rgba(255,255,255,.05);
    color: #f1f5f9 !important;
}
[data-theme-style="dark"] .ix-tab-btn { color: #94a3b8; }
[data-theme-style="dark"] .ix-tab-btn:hover {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.08) !important;
}
[data-theme-style="dark"] .ix-tab-btn.ix-tab-active {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.1) !important;
    color: #f1f5f9;
}
