/* =========================================
   K-DRE — PAGE ACCUEIL (STYLE BLEU & BLANC)
========================================= */

/* HERO */

.hero {
    min-height: 590px;
    background: #eef3f9;
    overflow: hidden;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-content {
    min-height: 590px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

/* COLONNE TEXTE */

.hero-text {
    max-width: 650px;
    padding: 40px 0 45px;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    display: inline-block;
    color: #2864c8;
    background: #ffffff;
    border: 1px solid #d5e2f5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-text h1 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(40px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.4px;
    color: #111827;
    margin-top: 0;
    margin-bottom: 22px;
}

.hero-text h1 span {
    display: block;
    color: #0077ed;
}

.hero-text > p {
    max-width: 470px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    margin-top: 0;
    margin-bottom: 30px;
}

/* BOUTONS */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #0077ed;
    color: #ffffff;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    box-shadow: 0 8px 20px rgba(0, 119, 237, 0.22);
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-actions .btn-primary:hover {
    background: #0062c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 119, 237, 0.3);
}

.hero-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d9e6;
    color: #1f2937;
    text-decoration: none;
    padding: 15px 22px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.hero-actions .btn-secondary:hover {
    border-color: #0077ed;
    color: #0077ed;
    background: #f8fbff;
}

/* LIGNE CONFIANCE */

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 42px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.trust-line {
    width: 34px;
    height: 1.5px;
    background: #9bb8e3;
    flex-shrink: 0;
}

/* IMAGE HERO & CARROUSEL */

.hero-image {
    height: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dce6f4;
    box-shadow: 0 14px 34px rgba(16, 42, 86, 0.08);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
}

.hero-image::before {
    display: none;
}

/* BOUTONS PRÉCÉDENT / SUIVANT */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #dbe4f0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0.85;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: opacity 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.hero-slider:hover .slider-btn,
.slider-btn:focus-visible {
    opacity: 1;
    background: #ffffff;
    color: #0077ed;
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

/* POINTS INDICATEURS */

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.slider-dot.is-active {
    width: 22px;
    background: #ffffff;
}

/* LÉGENDE */

.image-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 11px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    z-index: 3;
}

.caption-dot {
    width: 8px;
    height: 8px;
    background: #0077ed;
    border-radius: 50%;
    flex-shrink: 0;
}

/* TABLETTE */

@media (max-width: 1050px) {
    .hero-content {
        gap: 28px;
    }

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

    .hero-image {
        height: 450px;
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding: 22px 0 32px;
    }

    .hero-image {
        order: -1;
        height: 290px;
        border-radius: 14px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        opacity: 0.92;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 16px;
        left: 14px;
        gap: 6px;
    }

    .slider-dot {
        width: 7px;
        height: 7px;
    }

    .slider-dot.is-active {
        width: 18px;
    }

    .image-caption {
        bottom: 12px;
        right: 12px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .hero-text {
        padding: 0;
    }

    .hero .eyebrow {
        font-size: 9.5px;
        letter-spacing: 1.1px;
        margin-bottom: 14px;
    }

    .hero-text h1 {
        font-size: clamp(34px, 9vw, 44px);
        letter-spacing: -1px;
        line-height: 1.12;
        margin-bottom: 16px;
    }

    .hero-text > p {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .hero-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 18px;
    }

    .hero-trust {
        margin-top: 22px;
        gap: 12px;
        font-size: 9px;
        letter-spacing: 0.7px;
    }

    .trust-line {
        width: 24px;
    }
}

/* PETITS ECRANS */

@media (max-width: 380px) {
    .hero-image {
        height: 250px;
    }

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