/* =========================================================
   08. BANDEAU DE PRÉSENTATION DES CATÉGORIES
   DA LIQUID GLASS GECKO 3D
   ========================================================= */

.gecko-tag-intro {
    --gecko-orange: #FD9800;

    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;

    width: 100%;
    margin: 20px 0 42px;
    padding: 28px 32px;
    overflow: hidden;

    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 450;
    line-height: 1.6;

    background:
        radial-gradient(
            ellipse at 18% -20%,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.05) 28%,
            transparent 56%
        ),
        radial-gradient(
            ellipse at 90% 130%,
            rgba(91, 124, 204, 0.18) 0%,
            transparent 54%
        ),
        linear-gradient(
            145deg,
            rgba(17, 25, 54, 0.97) 0%,
            rgba(8, 14, 35, 0.99) 55%,
            rgba(4, 8, 23, 1) 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 1px 0 0 rgba(255, 255, 255, 0.08),
        inset -1px 0 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}


/* =========================================================
   REFLETS DU VERRE
   ========================================================= */

.gecko-tag-intro::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: -115px;
    left: -5%;

    width: 68%;
    height: 175px;

    border-radius: 50%;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.24) 0%,
            rgba(255, 255, 255, 0.075) 44%,
            transparent 80%
        );

    filter: blur(2px);
    transform: rotate(-4deg);
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;
}

.gecko-tag-intro::after {
    content: "";
    position: absolute;
    z-index: 0;

    right: -15%;
    bottom: -165px;

    width: 66%;
    height: 235px;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(144, 175, 255, 0.16) 0%,
            rgba(104, 137, 219, 0.07) 38%,
            transparent 72%
        );

    filter: blur(14px);
    transform: rotate(-9deg);
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;
}

.gecko-tag-intro:hover::before {
    transform: translateX(7px) rotate(-3deg);
}

.gecko-tag-intro:hover::after {
    transform: translate(-6px, -3px) rotate(-7deg);
}


/* =========================================================
   CONTENU
   ========================================================= */

.gecko-tag-intro-content {
    position: relative;
    z-index: 2;

    flex: 1 1 auto;
    max-width: 820px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 450;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
}

/*
 * Le premier texte libre placé avant le h1
 * devient le petit intitulé orange.
 */

.gecko-tag-intro-content::first-line {
    color: var(--gecko-orange);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/*
 * Compatible avec les pages utilisant un span
 * pour le petit intitulé.
 */

.gecko-tag-intro-content > span:first-child {
    display: block;
    width: fit-content;
    margin-bottom: 7px;

    color: var(--gecko-orange) !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.gecko-tag-intro-content h1 {
    margin: 5px 0 12px;

    color: #ffffff;
    font-size: clamp(30px, 3vw, 36px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-transform: none;
}

.gecko-tag-intro-content p {
    max-width: 820px;
    margin: 0;

    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 450;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
}

.gecko-tag-intro-content p + p {
    margin-top: 10px;
}


/* =========================================================
   BOUTON EN VERRE
   ========================================================= */

.gecko-tag-intro-button {
    position: relative;
    z-index: 2;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: auto;
    height: auto;
    min-height: 38px;
    max-width: 240px;
    margin: 0;
    padding: 9px 15px;

    color: rgba(255, 255, 255, 0.94) !important;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none;
    white-space: nowrap;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.06) 48%,
            rgba(255, 255, 255, 0.035) 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;

    transform: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

/* Neutralise d’éventuels effets ajoutés par le thème */

.gecko-tag-intro-button::before,
.gecko-tag-intro-button::after {
    content: none !important;
    display: none !important;
}

.gecko-tag-intro-button:hover {
    color: #ffffff !important;
    text-decoration: none !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.19) 0%,
            rgba(255, 255, 255, 0.09) 50%,
            rgba(255, 255, 255, 0.05) 100%
        );

    border-color: rgba(255, 255, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28);

    transform: none;
}

.gecko-tag-intro-button:focus-visible {
    outline: 2px solid var(--gecko-orange);
    outline-offset: 3px;
}


/* =========================================================
   LOGO ÉVENTUEL
   ========================================================= */

.gecko-tag-intro-logo {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 220px;
}

.gecko-tag-intro-logo img {
    display: block;

    width: auto;
    height: auto;
    max-width: 170px;
    max-height: 80px;
    padding: 14px 18px;

    object-fit: contain;

    background:
        radial-gradient(
            ellipse at 25% 0%,
            rgba(255, 255, 255, 1),
            rgba(255, 255, 255, 0.9) 68%
        );

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    filter: none !important;
    opacity: 1;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1024px) {
    .gecko-tag-intro {
        gap: 24px;
        padding: 26px 28px;
    }

    .gecko-tag-intro-button {
        max-width: 210px;
        white-space: normal;
    }

    .gecko-tag-intro-logo {
        flex-basis: 180px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
    .gecko-tag-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 19px;

        margin: 14px 0 28px;
        padding: 22px 20px;

        border-radius: 17px;
    }

    .gecko-tag-intro-content {
        width: 100%;

        font-size: 14px;
        line-height: 1.55;
    }

    .gecko-tag-intro-content::first-line {
        font-size: 9px;
        letter-spacing: 0.11em;
    }

    .gecko-tag-intro-content > span:first-child {
        margin-bottom: 6px;

        font-size: 9px;
        letter-spacing: 0.11em;
    }

    .gecko-tag-intro-content h1 {
        margin-top: 5px;
        margin-bottom: 10px;

        font-size: 28px;
    }

    .gecko-tag-intro-content p {
        font-size: 14px;
        line-height: 1.55;
    }

    .gecko-tag-intro-button {
        align-self: flex-start;

        width: auto;
        height: auto;
        min-height: 36px;
        max-width: 100%;
        padding: 8px 13px;

        font-size: 11px;
        line-height: 1.25;
        white-space: normal;
    }

    .gecko-tag-intro-logo {
        flex: none;
        justify-content: flex-start;

        width: 100%;
    }

    .gecko-tag-intro-logo img {
        max-width: 145px;
        max-height: 70px;
        padding: 12px 16px;
    }
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .gecko-tag-intro::before,
    .gecko-tag-intro::after,
    .gecko-tag-intro-button {
        transition: none !important;
    }
}