/* ============================================================
   YLLY — Solutions Expertises
   Figma: NovCast > node 1044:11273 (section complète)
             + node 1044:11282 (card expertise)
   ============================================================ */

.yl-sol-exp {
    background-color: var(--color-surface-default);
    overflow: hidden;
    padding-block: var(--section-py-lg);
    position: relative;
}

/* Pattern — lignes courbes positionnées en haut-gauche
   PNG: lignes claires → invert pour devenir sombres sur bg clair */
.yl-sol-exp__pattern {
    display: block;
    filter: invert(1);
    height: auto;
    left: -16px;
    max-width: 45vw;
    opacity: .25;
    pointer-events: none;
    position: absolute;
    top: -4px;
    user-select: none;
    width: 590px;
    z-index: 0;
}

.yl-sol-exp__inner {
    margin-inline: auto;
    max-width: 1280px;
    padding-inline: clamp(24px, 5vw, 120px);
    position: relative;
    z-index: 1;
}

/* ── Header ──────────────────────────────────────────────── */
.yl-sol-exp__header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
    margin-inline: auto;
    max-width: 820px;
    text-align: center;
}

/* H2 — Figma: Instrument Sans 40px/600, LS -0.8px, LH 100%
   Couleur #312A4A (muted dark purple — effet watermark sur bg sombre) */
.yl-sol-exp__title {
    color: #312A4A;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 100%;
    margin: 0;
}

.yl-sol-exp__title-bold {
    font-style: normal;
}

.yl-sol-exp__title-italic {
    color: var(--color-surface-secondary);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

/* Description — Figma: 18px/500, LS -0.09px, LH 170%, color var(--color-text-default) */
.yl-sol-exp__desc {
    color: var(--color-text-default);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.09px;
    line-height: 170%;
    margin: 0;
    text-align: center;
}

/* ── Cards grid ──────────────────────────────────────────── */
.yl-sol-exp__cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

/* ── Card — Figma node I1044:11282
   bg var(--color-surface-primary), radius 13px, padding 16px, min-height 379px
   Grille interne auto/1fr/auto : titre/tags/CTA alignés */
.yl-sol-exp__card {
    background-color: var(--color-surface-primary);
    border-radius: 13px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    min-height: 379px;
    overflow: hidden;
    padding: 56px 16px 40px;
    position: relative;
    row-gap: 32px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Glow violet flou — top-right de la card */
.yl-sol-exp__card::before {
    background-color: var(--color-decoration-purple);
    border-radius: 50%;
    content: '';
    filter: blur(41px);
    height: 216px;
    opacity: .2;
    pointer-events: none;
    position: absolute;
    right: -40px;
    top: -10px;
    width: 216px;
    z-index: 0;
}

.yl-sol-exp__card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
    transform: translateY(-3px);
}

/* Card title — Instrument Sans SemiBold 32px, LS -0.64px, LH 1 */
.yl-sol-exp__card-title {
    color: var(--color-surface-white);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.64px;
    line-height: 1;
    margin: 0;
    max-width: 240px;
    position: relative;
    text-align: center;
    z-index: 1;
}

/* ── Tags — pills avec bullet orange intégré ── */
.yl-sol-exp__card-tags {
    align-content: center;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    list-style: none;
    margin: 0;
    max-width: 354px;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.yl-sol-exp__card-tag {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 70px;
    color: var(--color-surface-white);
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    height: 29px;
    line-height: 1.2;
    padding: 0 10px;
    white-space: nowrap;
}

.yl-sol-exp__card-tag::before {
    background-color: var(--color-orange-500);
    border-radius: 50%;
    content: '';
    display: block;
    flex-shrink: 0;
    height: 7px;
    width: 7px;
}

/* ── CTA — texte souligné + arrow, padding 3px 22px, no border */
.yl-sol-exp__card-cta {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 44px;
    color: var(--color-surface-white);
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    line-height: 1.6;
    padding: 3px 22px;
    position: relative;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .25s ease;
    z-index: 1;
}

.yl-sol-exp__card-cta:hover {
    color: var(--color-orange-500);
}

.yl-sol-exp__card-cta svg {
    display: block;
    flex-shrink: 0;
    height: 18px;
    transition: transform .25s ease;
    width: 18px;
}

.yl-sol-exp__card-cta:hover svg {
    transform: translateX(4px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .yl-sol-exp__title {
        font-size: 32px;
        letter-spacing: -0.6px;
    }

    .yl-sol-exp__pattern {
        max-width: 50vw;
        width: 400px;
    }

    .yl-sol-exp__card {
        min-height: 320px;
        padding: 40px 16px 32px;
    }

    .yl-sol-exp__card-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .yl-sol-exp__cards {
        grid-template-columns: 1fr;
    }

    .yl-sol-exp__title {
        font-size: 28px;
    }

    .yl-sol-exp__desc {
        font-size: 16px;
    }

    .yl-sol-exp__pattern {
        max-width: 80vw;
        width: 320px;
    }

    .yl-sol-exp__card {
        min-height: 280px;
    }

    .yl-sol-exp__card-title {
        font-size: 26px;
    }
}

/* Carte entière cliquable via le lien étiré — retour design 08/09/2026 */
.yl-sol-exp__card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.yl-sol-exp__card-cta { position: static; } /* sinon le lien étiré ne couvrirait que le bouton */
.yl-sol-exp__card-cta::after { content: ""; inset: 0; position: absolute; z-index: 2; }
.yl-sol-exp__card:hover { box-shadow: 0 14px 38px rgba(10, 5, 25, .35); transform: translateY(-3px); }
