.bp-username-link {
    color: #c1f29f !important;
    font-weight: bold !important;
    font-size: 30px !important;
    font-family: 'Colonna MT', sans-serif !important;
    text-decoration: none !important;
    text-shadow: -1px 1px 2px #100000;
}

.usrname {
    color: #c1f29f !important;
    font-weight: bold !important;
    font-size: 26px !important;
    font-family: 'Colonna MT', sans-serif !important;
    text-shadow: -1px 1px 2px #100000;
}

.user-name {
    color: #3083bb !important;
    font-weight: bold !important;
    font-size: 12px !important;
    font-family: 'Colonna MT', sans-serif !important;
    text-decoration: none !important;
    text-shadow: -1px 1px 1px #100000;
}

.listeo-cart-container {
    display: none !important;
}

.activity-content .youzify-activity-statistics:empty {
    display: none;
}

.activity-content .activity-meta:empty {
    display: none;
}
.activity-content {
    margin: 0;
    padding: 0;
}

.activity-meta {
    margin: 0;
    padding: 0;
}

.activity-content .youzify-activity-statistics {
    display: none;
}

.youzify-wall-embed,
.youzify-wall-embed-user {
    display: none;
}

.activity-content .youzify-activity-statistics {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
.activity-content .youzify-activity-statistics {
    display: none !important;
}

.activity-content .youzify-activity-statistics {
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
.activity-content .youzify-activity-statistics {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.activity-content:has(.activity-inner:not(:empty)) {
    background-color: #f8faf7 !important;
    color: white;
}

.activity-content:has(.activity-inner:empty) {
    display: none !important;
}

.activity-content {
    border-radius: 5px !important;
    overflow: hidden !important;
    background-color: #dbf4b7 !important;
    padding: 1px;
}

.activity-content:has(.youzify-img-with-padding:not(:empty)) {
    background-color: #fccc94 !important;
}

.youzify-name h2 {
    color: #c1f29f !important;
    font-weight: bold !important;
    font-size: 22px !important;
    font-family: 'Colonna MT' !important;
    text-decoration: none !important;
    text-shadow: -1px 1px 1px #100000;
}

.activity-inner p {
    color: #1e7254 !important;
    font-size: 16px !important;
}

.activity-meta a {
    color: #473d3b !important;
}

.groups.bbp_reply_create.activity-item {
    display: none !important;
}

li.friends.friendship_created.activity-item {
    display: none;
}

/* CORRIGÉ : titre des liens partagés — police normale au lieu de Stencil (qui cassait les accents) */
.activity-inner blockquote.wp-embedded-content a {
    color: #3c96c6 !important;
    font-size: 22px !important;
    font-weight: bold;
    text-decoration: none;
}

.hosted-by-title a {
    color: #c1f29f !important;
    font-size: 30px !important;
    text-shadow: -1px 1px 1px #100000;
}

.activity-head a {
    color: #159100 !important;
    font-weight: bold !important;
    font-size: 20px !important;
    font-family: 'Colonna MT', sans-serif !important;
    text-shadow: -1px 1px 1px #100000;
}

.time-since {
    color: #145579 !important;
    font-size: 13px !important;
    font-family: 'Rage Italic' !important;
    text-shadow: -0px 0px 1px #100000;
    text-transform: lowercase !important;
    font-weight: normal !important;
    font-style: italic;
}

.time-since:first-letter {
    text-transform: uppercase !important;
}

.mobile-navigation-wrapper {
    background-color: #222;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-navigation-wrapper,
.mobile-nav-header {
    background-color: #dbeaef;
}

.mobile-navigation-wrapper a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #3387a4;
    transition: background-color 0.3s, transform 0.3s, font-size 0.3s;
}

.mobile-navigation-wrapper a:hover {
    background-color: #273c42;
    transform: translateY(-3px);
    font-size: 20px;
}

.mobile-navigation-wrapper a:active {
    background-color: #235e7d;
}

.mobile-navigation-wrapper a i {
    margin-right: 10px;
    font-size: 20px;
}

.mobile-navigation-wrapper .menu-title {
    font-size: 22px;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.bp-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #555;
    text-decoration: none;
    padding: 5px 10px;
}

.bp-secondary-action:before {
    content: "♡";
    font-size: 24px;
}

.bp-secondary-action.liked:before {
    content: "❤️";
    color: red;
}

.bp-secondary-action:hover {
    color: #f00;
}

.bp-secondary-action:active {
    transform: scale(0.95);
}

.entry-date, .posted-on, .published, .entry-meta .date {
    display: none !important;
}

[class^="category-box"] h3,
[class*=" category-box"] h3 {
    font-size: 28px;
    color: #ffffff;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0px  2px 4px rgba(0,0,0,0.6);
}

[class^="category-box"] span,
[class*=" category-box"] span {
    color: #73aec3;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0px  2px 4px rgba(0,0,0,0.6);
}

#backtotop {
    display: none !important;
}

/* Cache la case "No thumbnail" et son contenu dans l'aperçu de lien avant publication */
.lp-preview-no-thubmnail {
    display: none !important;
}

/* Cache le conteneur d'image UNIQUEMENT s'il n'a pas de style background-image (donc pas de photo) */
.lp-preview-image:not([style]) {
    display: none !important;
}

/* Quand il y a une photo, on l'affiche en pleine hauteur/largeur de son conteneur */
.lp-preview-image[style] {
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
}

/* Largeur 100% appliquée SEULEMENT quand il n'y a pas d'image (sinon ça écrase le texte à côté de la photo) */
.lp-preview-image:not([style]) + .lp-prepost-wrap,
.lp-preview-image:not([style]) + .lp-prepost-wrap .lp-preview-description-wrap,
.lp-preview-image:not([style]) + .lp-prepost-wrap .lp-preview-title-wrap,
.lp-preview-image:not([style]) + .lp-prepost-wrap .lp-preview-description,
.lp-preview-image:not([style]) + .lp-prepost-wrap .lp-preview-title,
.lp-preview-image:not([style]) + .lp-prepost-wrap .lp-preview-domain {
    width: 100% !important;
    box-sizing: border-box !important;
}

.lp-preview-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center !important;
}

.lp-preview-title,
.lp-preview-domain {
    display: block !important;
    text-align: center !important;
}

/* Fait correspondre la hauteur de l'image à celle du bloc de texte à côté */
.lp-prepost-container {
    align-items: stretch !important;
}

/* Aperçu riche personnalisé — image à gauche, texte à droite */
.custom-link-preview {
    display: flex;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    background: #f8faf7;
    align-items: stretch;
}

.custom-link-preview-image {
    width: 180px;
    min-width: 180px;
    background-size: cover;
    background-position: center;
}

.custom-link-preview-text {
    padding: 15px 20px;
    text-align: left;
    flex: 1;
}

.custom-link-preview-title {
    display: block;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.3;
}

.custom-link-preview-desc {
    color: #1e7254;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-link-preview-domain {
    color: #3c96c6;
    font-size: 11px;
    text-align: left;
}

@media (max-width: 480px) {
    .custom-link-preview {
        flex-direction: column;
    }
    .custom-link-preview-image {
        width: 100%;
        height: 150px;
    }
}

/* ============================================================ */
/* CORRIGÉ — la carte native Youzify (.youzify-wall-link-content) n'est PAS */
/* imbriquée dans .activity-inner : elle est dans .youzify-post-attachments, */
/* un DIV FRERE de .activity-inner (tous deux enfants de .activity-content). */
/* Les sélecteurs préfixés ".activity-inner ..." ne matchaient donc JAMAIS   */
/* et c'est pour ça que le post s'affichait avec le style par défaut du     */
/* plugin (image plus grande, pas de bordure, pas de mise en forme).       */
/* On remonte le préfixe au parent commun réel : .activity-content         */
/* ============================================================ */
.activity-content .youzify-wall-link-content {
    display: flex;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    text-decoration: none;
}

.activity-content .youzify-wall-link-content img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-content .youzify-wall-link-data {
    display: flex;
    flex-direction: column;
    padding: 10px;
    flex: 1;
}

.activity-content .youzify-wall-link-title {
    font-weight: bold !important;
    color: #3c96c6 !important;
    font-size: 15px !important;
    order: 1;
}

.activity-content .youzify-wall-link-desc {
    color: #555 !important;
    font-size: 13px !important;
    font-weight: normal !important;
    order: 2;
}

.activity-content .youzify-wall-link-url {
    color: #888 !important;
    font-size: 13px !important;
    font-weight: normal !important;
    text-transform: lowercase !important;
    order: 3;
}

/* ============================================================ */
/* NOUVEAU — carte "fallback" générée par le PHP (.ljde-fallback-preview) */
/* Ce bloc utilise des styles inline (style="...") écrits en dur dans     */
/* functions.php, donc sans classes sur le titre/description/domaine.     */
/* On cible la structure par position pour harmoniser avec la carte       */
/* native Youzify : police plus petite, plus d'espace entre les lignes,   */
/* et l'URL/domaine dans le même bleu que le titre.                       */
/* !important est nécessaire ici pour passer au-dessus des styles inline. */
/* ============================================================ */
.ljde-fallback-preview {
    margin-left: 25px !important;
    margin-right: 25px !important;
}

.ljde-fallback-preview img {
    margin-left: 0 !important;
}

.ljde-fallback-preview a {
    font-size: 15px !important;
    line-height: 1.4 !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.ljde-fallback-preview p {
    font-size: 13px !important;
    line-height: 2 !important;
    margin: 6px 0 !important;
}

.ljde-fallback-preview > div > div:last-child {
    color: #7fb3d5 !important;
    font-size: 13px !important;
    text-transform: lowercase !important;
}

/* ============================================================ */
/* NOUVEAU — Sélecteur de langue (bouton EN/FR/RO) dans le header */
/* Migré depuis le <style> inline de header.php                   */
/* ============================================================ */
.language-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.language-toggle .lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 36px;
    padding: 8px 16px;
    background: #d5a255;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(213, 162, 85, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.language-toggle .lang-current:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 162, 85, 0.5);
    background: #c08d3d;
}

.language-toggle .lang-current i {
    margin-right: 6px;
    font-size: 14px;
}

.language-toggle .lang-dropdown {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
    min-width: 50px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-toggle:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-toggle .lang-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    height: 32px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.language-toggle .lang-dropdown a:hover {
    background: #fef6eb;
    color: #d5a255;
}

.language-toggle .lang-dropdown a i {
    margin-right: 8px;
    font-size: 14px;
    color: #d5a255;
}

@media (max-width: 991px) {
    .language-toggle {
        margin-left: 10px;
    }

    .language-toggle .lang-current {
        min-width: 45px;
        height: 32px;
        padding: 6px 14px;
        font-size: 12px;
    }
}

.mobile-language-toggle {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.mobile-language-toggle .lang-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 24px;
    background: #d5a255;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(213, 162, 85, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.mobile-language-toggle .lang-current:hover {
    background: #c08d3d;
}

.mobile-language-toggle .lang-current i {
    margin-right: 8px;
    font-size: 16px;
}

.mobile-language-toggle .lang-dropdown {
    margin-top: 15px;
    display: none;
}

.mobile-language-toggle.active .lang-dropdown {
    display: block;
}

.mobile-language-toggle .lang-dropdown a {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: #fff;
    color: #d5a255;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid #d5a255;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-language-toggle .lang-dropdown a:hover {
    background: #d5a255;
    color: #fff;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.language-toggle .lang-current:hover i,
.mobile-language-toggle .lang-current:hover i {
    animation: rotate 0.6s ease-in-out;
}
