/* ==========================================================
   TROCBUY — FOOTER PREMIUM
   VERSION 300 x 300 ADSENSE
========================================================== */

.trocbuy-footer {
    margin-top: 65px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(255, 122, 0, .10),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #0d2037 0%,
            #081727 100%
        );

    color: #ffffff;
}


/* ==========================================================
   CONTENEUR PRINCIPAL
========================================================== */

.trocbuy-footer__inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(280px, 1.35fr)
        minmax(220px, .82fr)
        minmax(300px, .9fr)
        minmax(250px, 1fr);

    align-items: start;

    gap: 42px;

    padding: 52px 0 28px;
}


/* ==========================================================
   COLONNES
========================================================== */

.trocbuy-footer__column {
    min-width: 0;
}

.trocbuy-footer__column h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;

    line-height: 1.3;
    letter-spacing: -.02em;
}


/* ==========================================================
   LOGO
========================================================== */

.trocbuy-footer__logo {
    display: inline-block;

    margin-bottom: 15px;

    color: #ffffff;

    font-size: 38px;
    font-weight: 950;

    line-height: 1;
    letter-spacing: -.05em;

    text-decoration: none;
}

.trocbuy-footer__logo:hover {
    color: #ff7a00;
}


/* ==========================================================
   DESCRIPTION SOUS LE LOGO
========================================================== */

.trocbuy-footer__description {
    display: block;

    width: 100%;
    max-width: 340px;

    margin: 0;

    padding: 8px 10px;

    border: 1px solid rgba(157, 120, 255, .72);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.015)
        );

    color: rgba(255,255,255,.86);

    font-size: 16px;
    line-height: 1.7;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.015),
        0 0 18px rgba(130,90,255,.04);
}


/* ==========================================================
   CTA
========================================================== */

.trocbuy-footer__actions {
    display: grid;

    gap: 14px;

    margin-top: 22px;
}

.trocbuy-footer__cta-block {
    display: grid;

    gap: 7px;
}

.trocbuy-footer__cta-block span {
    color: rgba(255,255,255,.70);

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

.trocbuy-footer__cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    min-height: 44px;

    padding: 10px 16px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ff7200,
            #ff941f
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    line-height: 1.3;

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(255,114,0,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.trocbuy-footer__cta:hover {
    transform: translateY(-2px);

    color: #ffffff;

    box-shadow:
        0 14px 30px rgba(255,114,0,.27);
}

.trocbuy-footer__cta--secondary {
    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.12);

    box-shadow: none;
}

.trocbuy-footer__cta--secondary:hover {
    background: rgba(255,255,255,.12);

    box-shadow: none;
}


/* ==========================================================
   NAVIGATION CATÉGORIES
========================================================== */

.trocbuy-footer__nav {
    display: grid;

    gap: 12px;
}

.trocbuy-footer__nav a {
    display: inline-flex;

    width: fit-content;

    color: rgba(255,255,255,.78);

    font-size: 15px;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}

.trocbuy-footer__nav a:hover {
    color: #ff8a1f;

    transform: translateX(3px);
}



/* ==========================================================
   CATÉGORIES — ACCORDÉONS
========================================================== */

.trocbuy-footer__categories {
    min-width: 0;
}

.trocbuy-footer__nav--accordion {
    gap: 8px;
}

.trocbuy-footer__accordion {
    width: 100%;

    margin: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.02)
        );

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.trocbuy-footer__accordion:hover {
    border-color:
        rgba(255,122,0,.28);
}

.trocbuy-footer__accordion[open] {
    border-color:
        rgba(255,122,0,.36);

    background:
        linear-gradient(
            135deg,
            rgba(255,122,0,.075),
            rgba(255,255,255,.025)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(255,122,0,.025);
}


/* ==========================================================
   TITRE DE L'ACCORDÉON
========================================================== */

.trocbuy-footer__accordion summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 48px;

    padding: 10px 12px;

    list-style: none;

    cursor: pointer;

    user-select: none;
}

.trocbuy-footer__accordion summary::-webkit-details-marker {
    display: none;
}

.trocbuy-footer__accordion summary::marker {
    display: none;
    content: "";
}

.trocbuy-footer__accordion-title {
    min-width: 0;
    flex: 1;
}


/* Lien vers la catégorie principale */

.trocbuy-footer__nav
.trocbuy-footer__category-link {
    display: inline-flex;

    width: auto;
    max-width: 100%;

    color: rgba(255,255,255,.94);

    font-size: 15px;
    font-weight: 850;

    line-height: 1.35;

    text-decoration: none;
}

.trocbuy-footer__nav
.trocbuy-footer__category-link:hover {
    color: #ff8a1f;

    transform: none;
}


/* ==========================================================
   ICÔNE + / −
========================================================== */

.trocbuy-footer__accordion-icon {
    position: relative;

    display: grid;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 8px;

    background:
        rgba(255,255,255,.055);

    color: transparent;

    font-size: 0;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .25s ease;
}

.trocbuy-footer__accordion-icon::before {
    content: "+";

    color: #ff8a1f;

    font-size: 20px;
    font-weight: 700;

    line-height: 1;
}

.trocbuy-footer__accordion[open]
.trocbuy-footer__accordion-icon {
    border-color:
        rgba(255,122,0,.30);

    background:
        rgba(255,122,0,.10);
}

.trocbuy-footer__accordion[open]
.trocbuy-footer__accordion-icon::before {
    content: "−";
}


/* ==========================================================
   SOUS-CATÉGORIES
========================================================== */

.trocbuy-footer__submenu {
    display: grid;

    gap: 2px;

    padding:
        5px
        12px
        12px
        12px;

    border-top:
        1px solid
        rgba(255,255,255,.07);
}

.trocbuy-footer__accordion[open]
.trocbuy-footer__submenu {
    animation:
        trocbuyFooterAccordionIn
        .22s ease both;
}

@keyframes trocbuyFooterAccordionIn {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trocbuy-footer__nav
.trocbuy-footer__submenu a {
    position: relative;

    display: block;

    width: 100%;

    padding:
        7px
        8px
        7px
        18px;

    border-radius: 8px;

    color:
        rgba(255,255,255,.66);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.45;

    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        padding-left .2s ease;
}

.trocbuy-footer__nav
.trocbuy-footer__submenu a::before {
    content: "";

    position: absolute;

    left: 6px;
    top: 50%;

    width: 4px;
    height: 4px;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        rgba(255,138,31,.68);
}

.trocbuy-footer__nav
.trocbuy-footer__submenu a:hover {
    padding-left: 21px;

    background:
        rgba(255,255,255,.045);

    color: #ffffff;

    transform: none;
}


/* ==========================================================
   ACCESSIBILITÉ ACCORDÉONS
========================================================== */

.trocbuy-footer__accordion summary:focus {
    outline: none;
}

.trocbuy-footer__accordion summary:focus-visible {
    outline:
        3px solid
        rgba(255,122,0,.45);

    outline-offset: -3px;

    border-radius: 10px;
}


/* ==========================================================
   COLONNE PUBLICITÉ
========================================================== */

.trocbuy-footer__column--ad {
    min-width: 300px;
}

.trocbuy-footer__column:nth-child(3) > h3 {
    width: 300px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.trocbuy-footer__ad {
    display: block;

    width: 300px;
    max-width: 100%;

    margin: 22px auto 0;

    padding: 0;

    border: 0;

    background: transparent;
}

.trocbuy-footer__ad-label {
    display: none;
}


/* ==========================================================
   ADSENSE FOOTER — FORMAT FIXE 300 x 300
========================================================== */

.trocbuy-footer__adsense {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 300px !important;
    height: 300px !important;

    min-width: 300px;
    min-height: 300px;

    max-width: 300px;
    max-height: 300px;

    margin: 0 auto;

    padding: 0;

    overflow: hidden;

    border:
        1px dashed
        rgba(255,255,255,.22);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.015)
        );

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

    box-sizing: border-box;

    line-height: normal;
}


/* ==========================================================
   TEXTE SI AUCUNE ANNONCE
========================================================== */

.trocbuy-footer__adsense::before {
    content: "Espace publicitaire";

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: calc(100% - 30px);

    color:
        rgba(255,255,255,.42);

    font-size: 13px;
    font-weight: 700;

    line-height: 1.5;

    letter-spacing: .02em;

    text-align: center;

    pointer-events: none;

    z-index: 0;
}


/* ==========================================================
   BLOC GOOGLE ADSENSE
========================================================== */

.trocbuy-footer__adsense .adsbygoogle {
    position: relative;

    z-index: 2;

    display: block !important;

    width: 300px !important;
    height: 300px !important;

    min-width: 300px !important;
    min-height: 300px !important;

    max-width: 300px !important;
    max-height: 300px !important;

    margin: 0 auto !important;

    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   ADSENSE — ANNONCE DISPONIBLE
========================================================== */

.trocbuy-footer__adsense
.adsbygoogle[data-ad-status="filled"] {
    display: block !important;

    width: 300px !important;
    height: 300px !important;

    min-width: 300px !important;
    min-height: 300px !important;

    max-width: 300px !important;
    max-height: 300px !important;
}


/* Cache le texte lorsque Google affiche une annonce */

.trocbuy-footer__adsense:has(
    .adsbygoogle[data-ad-status="filled"]
)::before {
    display: none;
}


/* ==========================================================
   ADSENSE — AUCUNE ANNONCE DISPONIBLE
========================================================== */

.trocbuy-footer__adsense
.adsbygoogle[data-ad-status="unfilled"] {
    display: block !important;

    width: 300px !important;
    height: 300px !important;

    min-width: 300px !important;
    min-height: 300px !important;

    max-width: 300px !important;
    max-height: 300px !important;

    background: transparent !important;
}


/* ==========================================================
   NEWSLETTER
========================================================== */

.trocbuy-footer__newsletter-text {
    margin: 0 0 13px;

    color: rgba(255,255,255,.82);

    font-size: 15px;
    line-height: 1.65;
}

.trocbuy-footer__newsletter {
    display: grid;

    gap: 9px;
}


/* ==========================================================
   CHAMP E-MAIL
========================================================== */

.trocbuy-footer__newsletter input {
    width: 100%;

    min-height: 45px;

    padding: 0 14px;

    border:
        1px solid
        rgba(157,120,255,.72) !important;

    border-radius: 9px;

    background:
        rgba(255,255,255,.035) !important;

    color: #ffffff !important;

    font-size: 14px;

    outline: none !important;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.01),
        0 0 14px rgba(130,90,255,.035) !important;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.trocbuy-footer__newsletter input::placeholder {
    color:
        rgba(255,255,255,.48) !important;

    opacity: 1;
}

.trocbuy-footer__newsletter input:focus {
    border-color:
        rgba(255,122,0,.70) !important;

    background:
        rgba(255,255,255,.05) !important;

    box-shadow:
        0 0 0 3px
        rgba(255,122,0,.08) !important;

    outline: none !important;
}


/* ==========================================================
   BOUTON NEWSLETTER
========================================================== */

.trocbuy-footer__newsletter button {
    min-height: 45px;

    padding: 0 16px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ff7200,
            #ff941f
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.trocbuy-footer__newsletter button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(255,114,0,.22);
}


/* ==========================================================
   RÉSEAUX SOCIAUX
========================================================== */

.trocbuy-footer__social {
    width:
        min(
            1240px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 45px;

    padding: 18px 0;

    border-top:
        1px solid
        rgba(255,255,255,.09);

    border-bottom:
        1px solid
        rgba(255,255,255,.09);
}

.trocbuy-footer__social > span {
    color:
        rgba(255,255,255,.78);

    font-size: 14px;
    font-weight: 800;
}

.trocbuy-footer__social-links {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-left: 0;
}

.trocbuy-footer__social-links a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 35px;

    padding: 0 12px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 9px;

    background:
        rgba(255,255,255,.045);

    color:
        rgba(255,255,255,.82);

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.trocbuy-footer__social-links a:hover {
    transform: translateY(-2px);

    background:
        rgba(255,255,255,.10);

    color: #ffffff;
}


/* ==========================================================
   BARRE BASSE
========================================================== */

.trocbuy-footer__bottom {
    width:
        min(
            1240px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 22px;

    padding: 18px 0 22px;
}

.trocbuy-footer__copyright {
    color:
        rgba(255,255,255,.58);

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

.trocbuy-footer__legal {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 13px;
}

.trocbuy-footer__legal a {
    color:
        rgba(255,255,255,.66);

    font-size: 14px;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color .2s ease;
}

.trocbuy-footer__legal a:hover {
    color: #ff8a1f;
}


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

.trocbuy-footer a:focus-visible,
.trocbuy-footer button:focus-visible {
    outline:
        3px solid
        rgba(255,122,0,.55);

    outline-offset: 3px;
}

.trocbuy-footer input:focus-visible {
    outline: none !important;
}


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

@media (max-width: 1100px) {

    .trocbuy-footer__inner {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 38px 32px;
    }

    .trocbuy-footer__column--ad {
        min-width: 0;
    }

    .trocbuy-footer__inner
    > .trocbuy-footer__column:last-child {
        transform: none;
    }
}


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

@media (max-width: 900px) {

    .trocbuy-footer__inner {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 34px 30px;

        padding:
            45px 0 32px;
    }

    .trocbuy-footer__description {
        max-width: 100%;
    }
}


/* ==========================================================
   POSITION NEWSLETTER — DESKTOP
========================================================== */

@media (min-width: 1101px) {

    .trocbuy-footer__inner
    > .trocbuy-footer__column:last-child {
        transform: translateX(30px);
    }
}


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

@media (max-width: 768px) {

    .trocbuy-footer__column--ad {
        min-width: 0;

        width: 100%;
    }

    .trocbuy-footer__column:nth-child(3) > h3 {
        margin-left: auto;
        margin-right: auto;
    }

    .trocbuy-footer__ad {
        width: 300px;
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;
    }

    .trocbuy-footer__adsense {
        width: 300px !important;
        height: 300px !important;

        min-width: 300px;
        min-height: 300px;

        max-width: 300px;
        max-height: 300px;
    }

    .trocbuy-footer__adsense .adsbygoogle {
        width: 300px !important;
        height: 300px !important;

        min-width: 300px !important;
        min-height: 300px !important;

        max-width: 300px !important;
        max-height: 300px !important;
    }

    .trocbuy-footer__inner
    > .trocbuy-footer__column:last-child {
        transform: none;
    }

    .trocbuy-footer__social {
        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .trocbuy-footer__social-links {
        flex-wrap: wrap;
    }
}


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

@media (max-width: 700px) {

    .trocbuy-footer {
        margin-top: 50px;
    }

    .trocbuy-footer__inner {
        width:
            min(
                calc(100% - 28px),
                1240px
            );

        grid-template-columns: 1fr;

        gap: 30px;

        padding:
            42px 0 30px;
    }

    .trocbuy-footer__logo {
        font-size: 34px;
    }

    .trocbuy-footer__column h3 {
        margin-bottom: 14px;
    }

    .trocbuy-footer__description {
        width: 100%;
        max-width: none;
    }

    .trocbuy-footer__actions {
        margin-top: 19px;
    }

    .trocbuy-footer__cta {
        width: 100%;
    }

    .trocbuy-footer__column--ad {
        text-align: center;
    }

    .trocbuy-footer__nav--accordion {
        gap: 9px;
    }

    .trocbuy-footer__accordion summary {
        min-height: 52px;
        padding: 11px 12px;
    }

    .trocbuy-footer__nav
    .trocbuy-footer__category-link {
        font-size: 15px;
    }

    .trocbuy-footer__nav
    .trocbuy-footer__submenu a {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 13px;
    }

    .trocbuy-footer__social {
        width:
            min(
                calc(100% - 28px),
                1240px
            );

        display: grid;

        justify-content: stretch;

        gap: 13px;

        padding:
            17px 0;
    }

    .trocbuy-footer__social-links {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .trocbuy-footer__social-links a {
        width: 100%;
    }

    .trocbuy-footer__bottom {
        width:
            min(
                calc(100% - 28px),
                1240px
            );

        display: grid;

        justify-content: stretch;

        gap: 14px;

        padding:
            17px 0 22px;
    }

    .trocbuy-footer__legal {
        justify-content: flex-start;

        gap: 11px 14px;
    }
}


/* ==========================================================
   PETITS MOBILES
========================================================== */

@media (max-width: 430px) {

    .trocbuy-footer__inner {
        width:
            calc(100% - 24px);
    }

    .trocbuy-footer__social,
    .trocbuy-footer__bottom {
        width:
            calc(100% - 24px);
    }

    .trocbuy-footer__social-links {
        grid-template-columns: 1fr;
    }

    .trocbuy-footer__legal {
        display: grid;

        gap: 9px;
    }

    .trocbuy-footer__adsense {
        width: 300px !important;
        height: 300px !important;

        min-width: 300px;
        min-height: 300px;

        max-width: 300px;
        max-height: 300px;
    }
}