/* =============================================
   KM Section Header
   ============================================= */

.km-sh {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
}

/* Left: surtitle + title */
.km-sh__left {
    flex-shrink: 0;
}

/* Sur-titre (H3) */
.km-sh__surtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Arca Majora 3', Lato, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin: 0 0 4px 0;
    line-height: 0.5;
}

.km-sh__losange {
    flex-shrink: 0;
}

/* Title (H2) */
.km-sh__title {
    font-family: 'Arca Majora 3', Lato, sans-serif;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 12px;
    margin-bottom: 0;
    text-transform: uppercase;
}

.km-sh__title-line1 {
    display: block;
}

.km-sh__title-line2 {
    display: block;
    background: linear-gradient(180deg, #BE9E66, #BE9E6680);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Paragraph */
.km-sh__paragraph {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    color: #262626;
}

/* Right block: paragraph + optional link (default below) */
.km-sh__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 3-column layout: titre | paragraphe | lien */
.km-sh--three-col {
    justify-content: space-between;
}

.km-sh__center {
    flex-shrink: 1;
    align-self: center;
}

.km-sh__end {
    flex-shrink: 0;
    align-self: center;
}

/* Link */
.km-sh__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.km-sh__link:hover {
    opacity: 0.7;
}

.km-sh__link svg,
.km-sh__link i {
    transition: transform 0.2s ease;
}

.km-sh__link:hover svg,
.km-sh__link:hover i {
    transform: translateX(3px);
}

/* Link wrapper + responsive hide */
.km-sh__link-wrap {
    display: block;
}

.km-sh__hide-desktop {
    display: none !important;
}

/* Stacked layout: paragraph below title */
.km-sh--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.km-sh--stacked .km-sh__paragraph {
    margin-top: 16px;
}

/* =============================================
   Responsive - Tablet
   ============================================= */

@media (max-width: 1024px) {
    .km-sh__hide-tablet {
        display: none !important;
    }

    .km-sh__hide-desktop {
        display: block !important;
    }
}

/* =============================================
   Responsive - Mobile
   ============================================= */

@media (max-width: 768px) {
    .km-sh {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .km-sh__title {
        font-size: 28px !important;
        margin-bottom: 8px;
    }

    .km-sh__paragraph {
        font-size: 14px;
        max-width: none !important;
    }

    .km-sh__end {
        align-self: flex-start;
    }

    .km-sh__hide-mobile {
        display: none !important;
    }

    .km-sh__hide-desktop {
        display: block !important;
    }
}