/* ============================================================
   YLLY — Solutions Tech Grid
   Figma: NovCast > node 893:11817 (Card Grid, colonnes 4)
   ============================================================ */

.yl-sol-tech {
    background-color: var(--color-surface-white);
    padding-block: var(--section-py-lg);
}

.yl-sol-tech__inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-inline: auto;
    max-width: 1280px;
    padding-inline: clamp(24px, 5vw, 120px);
}

/* ── Header (overline badge + titre) centré ────────────── */
.yl-sol-tech__header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

/* Overline — badge pill avec star icon, padding 6/19/6, rounded 70px */
.yl-sol-tech__overline {
    align-items: center;
    color: var(--color-text-default);
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    gap: 10px;
    letter-spacing: -0.048px;
    line-height: 1.6;
    padding: 6px 19px 6px 6px;
    border-radius: 70px;
}

/* Etoile — Figma node 882:1856 (20.538 x 20.722).
   Etait le caractere « * » avec une rotation CSS, ce qui portait sa boite a
   27.32px. Remplace par le vecteur pre-pivote partage par les autres blocs. */
.yl-sol-tech__star {
    display: block;
    width: 20.538px;
    height: 20.722px;
    flex-shrink: 0;
}

/* Titre H2 — Instrument Sans SemiBold 46px, LS -0.92px, LH 100% */
.yl-sol-tech__title {
    color: var(--color-text-default);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 46px;
    font-weight: 600;
    letter-spacing: -0.92px;
    line-height: 100%;
    margin: 0;
    text-align: center;
}

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

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

/* Description — Instrument Sans Medium 18px, LS -0.09px, LH 170%, var(--color-text-default) */
.yl-sol-tech__desc {
    color: var(--color-text-default);
    display: flex;
    flex-direction: column;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    gap: 24px;
    letter-spacing: -0.09px;
    line-height: 170%;
    margin: 0;
    max-width: 830px;
    text-align: center;
}

.yl-sol-tech__desc p {
    margin: 0;
}

/* ── Grid — CSS grid 4 cols, gap 10px ────────────────────── */
.yl-sol-tech__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* ── Card — bg white, border, radius 10px, padding 25px, centré ── */
.yl-sol-tech__card {
    align-items: center;
    background-color: var(--color-surface-white);
    border: 1px solid var(--color-stroke-light);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 25px;
    text-align: center;
    transition: box-shadow .25s ease, transform .2s ease;
}

.yl-sol-tech__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

/* Icon container — 48×48, bg transparent léger, radius 6px */
.yl-sol-tech__icon {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    display: flex;
    flex-shrink: 0;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.yl-sol-tech__icon svg {
    color: var(--color-surface-secondary);
    display: block;
    height: 32px;
    width: 32px;
}

/* Body — gap 12px entre titre et desc, centré */
.yl-sol-tech__card-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    width: 100%;
}

/* Card title — Instrument Sans SemiBold 20px, LS -0.2px, LH 1.3 */
.yl-sol-tech__card-title {
    color: var(--color-text-default);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

/* Card desc — Instrument Sans Regular 14px, LH 1.6, var(--color-text-default) */
.yl-sol-tech__card-desc {
    color: var(--color-text-default);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ── CTA Button — bg orange, pill, h:55px ───────────────── */
.yl-sol-tech__cta {
    align-items: center;
    background-color: var(--color-surface-secondary);
    border-radius: 44px;
    color: var(--color-surface-white);
    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 .25s ease, transform .2s ease;
}

.yl-sol-tech__cta:hover {
    background-color: var(--color-orange-500);
    transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .yl-sol-tech__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .yl-sol-tech__title {
        font-size: 36px;
        letter-spacing: -0.72px;
    }

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

    .yl-sol-tech__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .yl-sol-tech__inner {
        gap: 32px;
    }

    .yl-sol-tech__title {
        font-size: 30px;
        letter-spacing: -0.6px;
    }

    .yl-sol-tech__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   VARIANTE SOMBRE — Figma node 893:11521 (color: Purple)
   Trigger: <section class="yl-sol-tech yl-sol-tech--dark">
   ============================================================ */

.yl-sol-tech--dark {
    background-color: var(--color-surface-primary);
    color: var(--color-surface-white);
    overflow: hidden;
    position: relative;
}

/* Glow violet flou top-left (705×704, blur 41px, opacity .23) */
.yl-sol-tech--dark::before {
    background-color: var(--color-decoration-purple);
    border-radius: 50%;
    content: '';
    filter: blur(41px);
    height: 705px;
    left: -161px;
    opacity: .23;
    pointer-events: none;
    position: absolute;
    top: -169px;
    width: 705px;
    z-index: 0;
}

.yl-sol-tech--dark .yl-sol-tech__inner {
    position: relative;
    z-index: 1;
}

/* Header — overline + titre en blanc */
.yl-sol-tech--dark .yl-sol-tech__overline {
    color: var(--color-surface-white);
}

.yl-sol-tech--dark .yl-sol-tech__title,
.yl-sol-tech--dark .yl-sol-tech__title-bold,
.yl-sol-tech--dark .yl-sol-tech__title-italic {
    color: var(--color-surface-white);
}

.yl-sol-tech--dark .yl-sol-tech__desc {
    color: var(--color-surface-white);
}

.yl-sol-tech--dark .yl-sol-tech__desc p {
    color: var(--color-surface-white);
}

/* Cards glass — fond translucide, bordure subtile blanche */
.yl-sol-tech--dark .yl-sol-tech__card {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.yl-sol-tech--dark .yl-sol-tech__card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

/* Icons blancs sur cartes glass */
.yl-sol-tech--dark .yl-sol-tech__icon {
    background-color: transparent;
}

.yl-sol-tech--dark .yl-sol-tech__icon svg {
    color: var(--color-surface-white);
}

/* Force SVG stroke/fill blanc (override les couleurs explicites du SVG stocké) */
.yl-sol-tech--dark .yl-sol-tech__icon svg [stroke]:not([stroke="none"]) {
    stroke: var(--color-surface-white);
}

.yl-sol-tech--dark .yl-sol-tech__icon svg [fill]:not([fill="none"]):not([fill="transparent"]) {
    fill: var(--color-surface-white);
}

/* Card title + desc blancs */
.yl-sol-tech--dark .yl-sol-tech__card-title,
.yl-sol-tech--dark .yl-sol-tech__card-desc {
    color: var(--color-surface-white);
}

/* CTA reste orange — lisible sur les 2 thèmes */

/* Rangée incomplète centrée (ex. 6 cartes sur une grille de 4) — retour design 08/09/2026 */
.yl-sol-tech__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.yl-sol-tech__card { flex: 0 1 calc(25% - 7.5px); }
@media (max-width: 1100px) { .yl-sol-tech__card { flex-basis: calc(33.333% - 6.67px); } }
@media (max-width: 800px) { .yl-sol-tech__card { flex-basis: calc(50% - 5px); } }
@media (max-width: 500px) { .yl-sol-tech__card { flex-basis: 100%; } }
