/*
 * Fichier : /wp-content/themes/notorious-weed-wordpress/assets/css/main-correctif.css
 * À charger APRÈS assets/css/main.css
 *
 * Exemple dans functions.php :
 * wp_enqueue_style(
 *     'notorious-main-correctif',
 *     get_template_directory_uri() . '/assets/css/main-correctif.css',
 *     array('notorious-main'),
 *     '1.0.0'
 * );
 */

/* =========================================================
   CORRECTIONS GÉNÉRALES
   ========================================================= */

.socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.socials a:hover {
    transform: translateY(-3px);
    border-color: var(--color-green);
    color: var(--color-green);
    box-shadow: 0 0 18px rgba(75, 255, 99, 0.22);
}

.socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
}

.footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid > div:first-child .socials {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
}

.footer-grid > div:first-child .socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

.footer-grid > div:first-child .socials a:hover {
    transform: translateY(-2px);
    border-color: var(--color-green);
    box-shadow: 0 0 14px rgba(75, 255, 99, 0.22);
}

.brand,
.brand .custom-logo-link,
.footer-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand {
    min-width: 0;
}

.brand img,
.brand .custom-logo {
    display: block;
    width: auto;
    max-width: 168px;
    max-height: 62px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.footer-logo,
.footer-grid .custom-logo,
.footer-brand .footer-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 92px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 24px rgba(75, 255, 99, 0.2));
}

.footer-brand {
    align-items: flex-start !important;
}

.footer-wordmark .brand-wordmark__title {
    font-size: 22px;
}

.footer-tagline {
    max-width: 250px;
    margin: 0 0 18px !important;
    line-height: 1.6;
}

.footer-payment {
    padding-left: 4px;
}

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 2px 0 14px;
}

.payment-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: #f4f4f4;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

/* =========================================================
   BLOG
   ========================================================= */

.blog .hero-title-inline {
    display: inline-block;
    width: auto;
    max-width: none;
    margin-left: 0.12em;
    font-size: 1em;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
}

.post-card__image--why {
    background-image: url('../images/bg-why-notorious.png');
}

.post-card__image--hero {
    background-image: url('../images/bg-hero-notorious.png');
}

.post-card__image--cta {
    background-image: url('../images/bg-cta-notorious.png');
}

.home-editor-content > .section:first-child {
    margin-top: 0;
}

/* =========================================================
   WORDPRESS ET CONTACT FORM 7
   ========================================================= */

.admin-bar .site-header {
    top: 32px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.contact-form > form,
.contact-form .wpcf7-form {
    display: grid;
    gap: 16px;
}

.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: var(--color-red-soft);
    font-size: 13px;
}

.contact-form .wpcf7-response-output {
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--color-green) !important;
    border-radius: var(--radius-sm);
    color: var(--color-green-soft);
    background: rgba(75, 255, 99, 0.08);
}

.contact-form__notice {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   AVIS / TRUSTINDEX / ONGLETS BOUTIQUES
   ========================================================= */

.reviews-track-wrap {
    width: 100%;
    overflow: hidden;
}

.reviews-track-wrap iframe,
.reviews-track-wrap .ti-widget,
.reviews-track-wrap .ti-widget-container {
    max-width: 100% !important;
}

.reviews-tabs {
    margin-top: 38px;
}

.reviews-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.reviews-tabs__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.reviews-tabs__button:hover,
.reviews-tabs__button.is-active {
    transform: translateY(-2px);
    background: var(--gradient-main);
    border-color: transparent;
    color: #061006;
    box-shadow: var(--shadow-green);
}

.reviews-tabs__button:focus-visible {
    outline: 3px solid rgba(75, 255, 99, 0.45);
    outline-offset: 3px;
}

.reviews-tabs__panel {
    padding: 30px;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: var(--shadow-card);
}

.reviews-tabs__panel h3 {
    margin-bottom: 22px;
    color: var(--color-text);
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
}

/* =========================================================
   THÈME CLAIR : AVIS ET ONGLETS
   ========================================================= */

:root[data-theme="light"] .reviews-tabs__button {
    background: rgba(255, 255, 255, 0.82);
    color: #151515;
    border-color: rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .reviews-tabs__button:hover,
:root[data-theme="light"] .reviews-tabs__button.is-active {
    color: #061006;
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

:root[data-theme="light"] .reviews-tabs__panel {
    color: #151515;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .reviews-tabs__panel h3,
:root[data-theme="light"] .reviews-tabs__panel p,
:root[data-theme="light"] .reviews-tabs__panel small {
    color: #151515;
}

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

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 1180px) {
    .footer-brand {
        align-items: center !important;
    }

    .footer-brand .footer-logo {
        object-position: center;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-grid > div:first-child .socials {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .footer-grid > div:first-child,
    .footer-brand {
        align-items: flex-start !important;
    }

    .footer-brand .footer-logo {
        max-width: 170px;
        object-position: left center;
    }

    .footer-tagline {
        text-align: left;
    }

    .footer-grid > div:first-child .socials {
        justify-content: flex-start;
    }

    .reviews-tabs__button {
        width: 100%;
    }

    .reviews-tabs__panel {
        padding: 20px;
        border-radius: 24px;
    }
}