/* ============================================================
   YLLY — Expertise Hero
   Figma: NovCast > node 843:3459 (Hero)
   ============================================================ */

.yl-exp-hero {
    background-color: var(--color-surface-primary);
    border-radius: 17px;
    /* centré et plafonné : au-delà de 1440px, les marges grandissent au lieu d'étirer le bloc */
    margin-inline: max(clamp(0px, 2vw, 20px), calc((100% - 1440px) / 2));
    overflow: hidden;
    padding: 24px;
    position: relative;

    /* La carte violette est posee sur une bande grise pleine largeur, du
       meme gris que la barre de navigation qui la surmonte : l'en-tete de
       page se lit alors d'un seul tenant au lieu de flotter sur du blanc.
       L'ombre etalee peint les gouttieres laissees par margin-inline ;
       clip-path la contient a la hauteur exacte de la carte. */
    box-shadow: 0 0 0 100vw var(--color-surface-default);
    clip-path: inset(0 -100vw);
}

.yl-exp-hero__inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    position: relative;
}

/* ── Colonne gauche ───────────────────────────────────────── */
.yl-exp-hero__left {
    display: flex;
    flex-direction: column;
    gap: 37px;
    padding: 0 0 65px 60px;
    position: relative;
    width: 540px;
    z-index: 1;
}

/* Glow violet flou — blur 64px, opacity .3, 394×392px, top-left négatif */
.yl-exp-hero__glow {
    background-color: var(--color-decoration-purple);
    border-radius: 50%;
    filter: blur(64px);
    height: 392px;
    left: -229px;
    opacity: .3;
    pointer-events: none;
    position: absolute;
    top: -197px;
    width: 394px;
    z-index: 0;
}

/* Deco étoile/croix top-left — 115×108 */
.yl-exp-hero__deco {
    display: block;
    height: 108px;
    position: relative;
    width: 115px;
    z-index: 1;
}

/* ── Label pill avec star (tag) ──────────────────────────── */
.yl-exp-hero__label {
    align-items: center;
    align-self: flex-start;
    border-radius: 70px;
    color: var(--color-surface-white);
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    letter-spacing: -0.048px;
    line-height: 1.6;
    margin-top: -12px;
    padding: 6px 19px 6px 6px;
    position: relative;
    z-index: 1;
}

/* Etoile du label — Figma node 882:1856 (20.538 x 20.722).
   L'asset est desormais pre-pivote, la rotation CSS n'a plus lieu d'etre :
   elle gonflait la boite englobante a 27.3px. */
.yl-exp-hero__label-star {
    display: block;
    flex-shrink: 0;
    width: 20.538px;
    height: 20.722px;
}

/* ── Text block ──────────────────────────────────────────── */
.yl-exp-hero__text {
    display: flex;
    flex-direction: column;
    gap: 29px;
    position: relative;
    z-index: 1;
}

/* Title — 52px, 2 lignes (italic Playfair + semibold Instrument) */
.yl-exp-hero__title {
    color: var(--color-surface-white);
    display: flex;
    flex-direction: column;
    font-size: 52px;
    line-height: 1;
    margin: 0;
}

.yl-exp-hero__title-italic {
    color: var(--color-surface-white);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -1.04px;
    line-height: 1;
}

.yl-exp-hero__title-bold {
    color: var(--color-surface-white);
    font-family: 'Instrument Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -1.56px;
    line-height: 1;
}

/* Description — 18px Medium, LS -0.09px, LH 1.7 */
.yl-exp-hero__desc {
    color: var(--color-surface-white);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.09px;
    line-height: 1.7;
    margin: 0;
    max-width: 499px;
}

/* ── CTAs ────────────────────────────────────────────────── */
.yl-exp-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.yl-exp-hero__cta {
    align-items: center;
    border-radius: 44px;
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    gap: 11px;
    height: 55px;
    justify-content: center;
    letter-spacing: -0.048px;
    line-height: 1.8;
    min-width: 150px;
    padding: 8px 22px;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.yl-exp-hero__cta:hover {
    transform: translateY(-1px);
}

.yl-exp-hero__cta--primary {
    background-color: var(--color-surface-secondary);
    color: var(--color-surface-white);
}

.yl-exp-hero__cta--primary:hover {
    background-color: var(--color-orange-500);
    color: var(--color-surface-white);
}

.yl-exp-hero__cta--secondary {
    border: 1px solid var(--color-surface-white);
    color: var(--color-surface-white);
}

.yl-exp-hero__cta--secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-surface-white);
}

/* Icon star du CTA primary — rotation + flip */
.yl-exp-hero__cta-icon {
    display: block;
    flex-shrink: 0;
    height: 29px;
    transform: rotate(-30deg) scaleY(-1);
    width: 28px;
}

/* ── Colonne droite — image ──────────────────────────────── */
.yl-exp-hero__right {
    border-radius: 12px;
    flex-shrink: 0;
    height: 541px;
    overflow: hidden;
    position: relative;
    width: 698px;
}

.yl-exp-hero__right::after {
    background-image: linear-gradient(37.78deg, rgba(37, 28, 69, .4) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 12px;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.yl-exp-hero__img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1300px) {
    .yl-exp-hero__left {
        padding: 0 0 32px 24px;
        width: auto;
        flex: 1 1 420px;
    }

    .yl-exp-hero__right {
        height: 480px;
        max-width: 50%;
    }
}

@media (max-width: 1024px) {
    .yl-exp-hero__title {
        font-size: 44px;
    }

    .yl-exp-hero__title-italic {
        letter-spacing: -0.88px;
    }

    .yl-exp-hero__title-bold {
        letter-spacing: -1.32px;
    }

    .yl-exp-hero__right {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .yl-exp-hero {
        border-radius: 12px;
        margin-inline: 0;
        padding: 16px;
    }

    .yl-exp-hero__inner {
        flex-direction: column;
        gap: 24px;
    }

    .yl-exp-hero__left {
        gap: 24px;
        padding: 16px 16px 24px;
        width: 100%;
    }

    .yl-exp-hero__title {
        font-size: 36px;
    }

    .yl-exp-hero__title-italic {
        letter-spacing: -0.72px;
    }

    .yl-exp-hero__title-bold {
        letter-spacing: -1.08px;
    }

    .yl-exp-hero__desc {
        font-size: 16px;
    }

    .yl-exp-hero__right {
        height: 280px;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .yl-exp-hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .yl-exp-hero__cta {
        justify-content: center;
        width: 100%;
    }

    .yl-exp-hero__title {
        font-size: 32px;
    }
}

/* Fil d'Ariane dans le hero (31/08/2026) : aligné sur le label/titre, en blanc */
.yl-exp-hero__left .yl-breadcrumb { margin-bottom: -22px; /* la colonne a un gap de 37px : on le ramène à ~15px sous le fil pour ne pas grandir le bloc */ position: relative; z-index: 2; }
.yl-exp-hero__left .yl-breadcrumb__list { padding: 0; }

/* Sans picto, le label suit directement le fil : on lui rend un peu d'air (31/08/2026) */
.yl-exp-hero__left .yl-breadcrumb + .yl-exp-hero__label { margin-top: 12px; }
