/* ============================================================
   AEN.CSS - STYLES PERSONNALISÉS DE L'AUTISME & NOUS
   Version finale - Réorganisée et optimisée
   ============================================================ */

/* ===============================
   1. VARIABLES GLOBALES
================================= */
:root {
    --brand-purple: #563B85;
    --brand-pink: #EE7CAE;
    --brand-green: #7DC4A3;
    --brand-yellow: #FFD23D;
    --brand-cyan: #00B1EB;
    --brand-orange: #EA5B0D;
    --brand-darkblue: #27348B;
    --brand-darkgreen: #019641;

    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --premium-shadow: 0 15px 35px rgba(86, 59, 133, 0.1);
    --purple-shadow: 0 10px 30px rgba(86, 59, 133, 0.12);
    --purple-shadow-hover: 0 20px 40px rgba(86, 59, 133, 0.25);
    --border-radius-lg: 20px;

    /* Forum */
    --forum-primary: #563B85;
    --forum-success: #64C4A5;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

/* ===============================
   2. GLOBAL RESET & TYPOGRAPHIE
================================= */
body {
    font-family: 'Maitree', serif;
}

a {
    text-decoration: none;
}

/* Tous les textes courants en Maitree */
body, p, span, div, article, .post-content, .card-text, .entry-content, .intro, main p,
.post-content p, .post-content span, .post-content div:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
.event-text, .event-text p, .event-text span, .event-text div,
.event-card-content p, .event-card-content .event-text,
.modern-event-card a, .event-title-link, .read-more,
.forum-wrapper p, .forum-wrapper .subject-text, .forum-wrapper .fs-5,
.topic-card .text-dark, .topic-card .fw-medium,
.guidelines-text, .guidelines-text ul li,
.static-page p, .static-page li, .static-page span, .static-page .page-content,
.page-content-body *, .page-intro-text {
    font-family: 'Maitree', serif !important;
    font-weight: 400 !important;
}

/* Tous les titres en Ubuntu */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand, .card-title, .post-title, .widget-title, .magazine-title, .magazine-title *,
.plan-price, .section-title, .checkout-title, .checkout-form-label,
.block-title-1 h1, .block-title-1 h2, .block-title-1 h3, .block-title-1 h4,
.block-title-2 h1, .block-title-2 h2, .block-title-2 h3, .block-title-2 h4,
.block-title-3 h1, .block-title-3 h2, .block-title-3 h3, .block-title-3 h4,
.block-title-4 h1, .block-title-4 h2, .block-title-4 h3, .block-title-4 h4,
.block-title-5 h1, .block-title-5 h2, .block-title-5 h3, .block-title-5 h4,
.block-title-6 h1, .block-title-6 h2, .block-title-6 h3, .block-title-6 h4 {
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 700 !important;
}

/* Titres entry-title responsives - DIMINUTION SUR MOBILE */
.entry-title,
.posts-index-page .entry-title,
.search-index-page .entry-title {
    color: var(--brand-purple) !important;
    letter-spacing: -1.5px;
    font-weight: 900 !important;
    font-family: 'Outfit', sans-serif !important;
    line-height: 1.1;
}

/* Responsive entry-title */
@media (max-width: 768px) {
    .entry-title,
    .posts-index-page .entry-title,
    .search-index-page .entry-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .entry-title,
    .posts-index-page .entry-title,
    .search-index-page .entry-title {
        font-size: 1.6rem !important;
        letter-spacing: -1px !important;
    }
}

/* Exception pour le display-1 */
.display-1 {
    font-size: 3.6rem;
    font-weight: 300;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 1.8rem !important;
    }
}

/* Badge warning */
.bg-warning {
    background-color: #ffc107 !important;
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 5px;
}

time {
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 300 !important;
    font-size: 14px;
}

/* ===============================
   3. HEADER & NAVIGATION
================================= */
.header-spacing {
    width: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    overflow: hidden;
    height: 300px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-spacing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.09;
    z-index: 0;
}

.header-spacing .container {
    position: relative;
    z-index: 2;
}

/* Navigation principale */
#start-main .nav-link {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    transition: color 0.3s ease;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

#start-main > li:nth-child(1) .nav-link:hover { color: #00B1EB !important; }
#start-main > li:nth-child(2) .nav-link:hover { color: #EA5B0D !important; }
#start-main > li:nth-child(3) .nav-link:hover { color: #27348B !important; }
#start-main > li:nth-child(4) .nav-link:hover { color: #019641 !important; }
#start-main > li:nth-child(5) .nav-link:hover { color: #00B1EB !important; }
#start-main > li:nth-child(6) .nav-link:hover { color: #EA5B0D !important; }

/* Logo */
.logo-six {
    height: 85px !important;
    width: auto;
    transition: height 0.3s ease;
}

.mobile-sticky {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.nav-top-container {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    padding: 12px 0 !important;
}

.nav-icons-right {
    margin-left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

.nav-icon-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white !important;
    text-decoration: none !important;
}

.nav-icon-circle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-account-badge {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: #EE7CAE !important;
    color: #fff !important;
    padding: 4px 15px 4px 4px !important;
    border-radius: 30px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.nav-account-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 212, 73, 0.4);
}

.nav-account-badge .nav-icon-circle {
    width: 32px !important;
    height: 32px !important;
    background: rgba(86, 59, 133, 0.1) !important;
    color: #fff !important;
}

.cart-badge-modern {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EE7CAE !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #563B85;
}

/* Compteur de posts */
.cat-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    background-color: #EA5B0D !important;
    color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 24px;
    height: 18px;
    margin-left: auto;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    gap: 15px;
}

/* ===============================
   4. BOUTONS
================================= */
.btn-premium-subscribe {
    background: linear-gradient(45deg, #563B85, #EE7CAE, #563B85) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 27px !important;
    padding: 12px 30px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 15px rgba(86, 59, 133, 0.3);
    transition: all 0.4s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-premium-subscribe::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shimmer-wave 3s infinite ease-in-out;
}

@keyframes shimmer-wave {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.btn-premium-subscribe i {
    animation: heart-beat 1.5s infinite ease-in-out;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.btn-premium-subscribe:hover,
.btn-mobile-shop:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-mobile-shop {
    background-color: #7DC4A3 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 27px !important;
    padding: 12px 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
}

.btn-premium-sidebar {
    background: var(--brand-pink);
    color: #fff;
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    text-transform: uppercase;
    width: 100%;
}

.btn-mag {
    background-color: var(--brand-purple);
    color: #fff;
    border: none;
    font-weight: 800;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-mag:hover {
    background-color: var(--brand-pink);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(238, 124, 174, 0.3);
}

.btn-purchased {
    background-color: var(--brand-green);
}

.checkout-btn-submit {
    background: var(--brand-green);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
}

.btn-add-cart {
    background-color: var(--brand-purple);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background-color: var(--brand-pink);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(238, 124, 174, 0.3);
}

.btn-plan {
    border-radius: 16px;
    padding: 16px;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid var(--brand-pink);
    color: var(--brand-pink);
    background: transparent;
    width: 100%;
    display: block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-submit-topic {
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: var(--forum-success);
    border: none;
}

.btn-submit-topic:hover {
    background-color: #146c43;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.25);
}

.btn-subscribe-premium {
    background-color: var(--brand-pink) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    border: none !important;
    font-weight: 800;
    text-transform: uppercase;
}

.btn-action-cart {
    border-radius: 16px;
    padding: 16px 20px;
    font-weight: 800;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.95rem;
    border: none;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.btn-checkout {
    background: #EE7CAE;
    color: white;
    box-shadow: 0 8px 15px rgba(238, 124, 174, 0.2);
}

.btn-checkout:hover {
    background: #d66696;
    transform: translateY(-2px);
    color: white;
}

.btn-login-cart {
    background: #FFD23D;
    color: #000;
    box-shadow: 0 8px 15px rgba(255, 210, 61, 0.2);
    margin-top: 15px;
}

.btn-login-cart:hover {
    background: #e6bd37;
    transform: translateY(-2px);
    color: #000;
}

.btn-forum-action {
    border-radius: 18px;
    font-weight: 800;
    padding: 12px 24px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    letter-spacing: 0.5px;
    border: none;
    text-decoration: none !important;
}

.btn-modal-action {
    padding: 16px 35px !important;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
}

.btn-search-modal {
    background-color: #563B85 !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 12px 40px !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-search-modal:disabled,
#mobileSearchBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Bouton s'abonner dans navigation */
.nav-item.ms-lg-3 .btn-primary {
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.nav-item.ms-lg-3 .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-item.ms-lg-3 .btn-primary:hover::before {
    left: 100%;
}

.nav-item.ms-lg-3 .btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(86, 59, 133, 0.4);
}

.nav-item.ms-lg-3 .btn-primary i {
    transition: transform 0.3s ease;
}

.nav-item.ms-lg-3 .btn-primary:hover i {
    transform: scale(1.2);
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ===============================
   5. TABLES (PANIER / CHECKOUT)
================================= */
.table {
    border-collapse: separate;
    border-spacing: 0 15px;
}

.table thead th {
    border: none;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding-left: 20px;
}

.table tbody tr {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    transition: transform 0.2s ease;
}

.table tbody tr:hover {
    transform: translateY(-3px);
}

.table tbody td {
    vertical-align: middle;
    border: none;
    padding: 25px 20px;
}

.table tbody tr td:first-child {
    border-radius: 20px 0 0 20px;
}

.table tbody tr td:last-child {
    border-radius: 0 20px 20px 0;
}

.checkout-table {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
}

.checkout-table tbody tr {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}

/* ===============================
   6. FOOTER
================================= */
#footer {
    background-color: #EE7CAE !important;
}

.footer-copyright {
    background-color: #563B85 !important;
}

.widget-title {
    color: white;
    font-family: 'Ubuntu', sans-serif !important;
    font-weight: 700 !important;
}

.newsletter-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-text {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Maitree', serif !important;
}

.newsletter-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Maitree', serif !important;
}

.newsletter-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.newsletter-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Ubuntu', sans-serif !important;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.newsletter-button.loading {
    position: relative;
    color: transparent;
}

.newsletter-button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: newsletter-spin 0.6s linear infinite;
}

@keyframes newsletter-spin {
    to { transform: rotate(360deg); }
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

@media (min-width: 769px) {
    .newsletter-wrapper { padding: 1.25rem; }
    .newsletter-text { font-size: 1rem; }
    .newsletter-input { padding: 0.875rem 1rem; }
    .newsletter-button { padding: 0.875rem 1rem; font-size: 1rem; }
}

@media (max-width: 768px) {
    .newsletter-wrapper { padding: 0.875rem; margin: 0.5rem 0 1rem 0; }
    .newsletter-text { font-size: 0.85rem; text-align: center; margin-bottom: 0.75rem; }
    .newsletter-input { padding: 0.7rem 0.875rem; font-size: 0.85rem; }
    .newsletter-button { padding: 0.7rem 0.875rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .newsletter-wrapper { padding: 0.75rem; }
    .newsletter-text { font-size: 0.8rem; }
    .newsletter-input, .newsletter-button { padding: 0.6rem 0.75rem; font-size: 0.8rem; }
}

/* ===============================
   7. CARDS & UI
================================= */
.card-full {
    border: none;
    background: transparent;
}

.image-wrapper img {
    border-radius: 12px;
    object-fit: cover;
    width: 100%;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    text-align: center;
}

.container-optimized {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
    max-width: 1440px;
}

.post-container {
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(86, 59, 133, 0.1);
    position: relative;
}

/* Version posts show (ombre rose) */
.posts-show-page .post-container {
    box-shadow: -15px 0px 0px var(--brand-pink), var(--premium-shadow);
}

/* Version events show (ombre violette) */
.events-show-page .post-container {
    box-shadow: -15px 0px 0px var(--brand-purple), var(--premium-shadow);
}

.featured-image-wrapper {
    margin-top: -30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
    border: 4px solid #fff;
}

/* ===============================
   8. PREMIUM SIDEBAR
================================= */
.premium-sidebar-card {
    background: var(--brand-purple);
    border-radius: 20px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(86, 59, 133, 0.25);
}

.premium-sidebar-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.premium-benefit-item {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.premium-benefit-item i {
    width: 22px;
    color: var(--brand-yellow);
}

/* Version sidebar (classes uniques) */
.sidebar-premium-card {
    background: var(--brand-purple);
    border-radius: 20px;
    padding: 22px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(86, 59, 133, 0.25);
}

.sidebar-premium-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.sidebar-premium-benefit-item i {
    width: 22px;
    color: var(--brand-yellow);
}

/* ===============================
   9. BADGES
================================= */
.badge-physical {
    background: var(--brand-yellow);
    color: #000;
    font-weight: 700;
    border: none;
}

.badge-virtual {
    background: var(--brand-pink);
    color: #fff;
    font-weight: 700;
    border: none;
}

.badge-custom {
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
}

.custom-badge-green {
    background-color: var(--brand-green);
    color: #fff;
}

.custom-badge-pink {
    background-color: var(--brand-pink);
    color: #fff;
}

.custom-badge-yellow {
    background-color: var(--brand-yellow);
    color: #000;
}

.badge-cat {
    font-weight: 800;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border: none !important;
}

.badge-tag-custom {
    display: inline-block;
    padding: 8px 18px;
    background: var(--brand-green) !important;
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.badge-tag-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(125, 196, 163, 0.4);
    filter: brightness(1.05);
    color: #ffffff !important;
}

.checkout-badge {
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
}

.checkout-badge-paper {
    background: #FFD23D;
    color: #000;
}

.checkout-badge-pdf {
    background: #EE7CAE;
    color: #fff;
}

.search-badge-result {
    background: var(--brand-pink);
    box-shadow: 0 4px 12px rgba(238, 124, 174, 0.2);
    font-size: 1.1rem;
    display: inline-block;
}

/* ===============================
   10. SOCIAL
================================= */
.social-two li a {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
}

.bg-instagram {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.bg-linkedin {
    background: #0077b5;
}

.social-sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eee;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.social-sidebar-link i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 12px;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eee;
    text-decoration: none !important;
    margin-bottom: 8px;
}

.sidebar-social-link i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 12px;
}

.link-linked {
    position: relative;
    z-index: 100 !important;
}

/* ===============================
   11. UTILITAIRES
================================= */
.icon-1x {
    font-size: 24px !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.post-row-gap {
    margin-bottom: 5rem !important;
}

.event-row-gap {
    margin-bottom: 3rem !important;
}

.main-content-col {
    padding-right: 3.5rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--brand-purple);
}

.checkout-breadcrumb a {
    color: #7DC4A3;
    text-decoration: none;
}

.u-breadcrumb .breadcrumb-item a {
    color: var(--brand-purple);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.form-control {
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
}

.form-label-custom {
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-select, .form-control {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1rem;
}

.form-select:focus, .form-control:focus {
    background-color: #fff;
    border-color: var(--forum-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.modal-content {
    border-radius: 35px;
    border: none;
}

.modal-header {
    border: none;
    padding-top: 40px;
}

.modal-search .modal-content {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 20px;
}

.search-modal-input {
    border: none !important;
    border-bottom: 3px solid #563B85 !important;
    font-size: 2rem !important;
    font-weight: 700;
    color: #563B85;
    background: transparent !important;
}

.StripeElement {
    background-color: #fff;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.preview-fade {
    position: relative;
    max-height: 250px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.club-paywall {
    background: var(--brand-purple);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem !important;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* ===============================
   12. MEDIA QUERIES GLOBALES
================================= */
@media (max-width: 992px) {
    .post-container {
        padding: 30px;
    }
    .featured-image-wrapper {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .event-row-gap {
        margin-bottom: 2rem !important;
    }
    .logo-six {
        height: 60px;
    }
    .sidebar-separator {
        border: none;
        padding: 30px 0;
        margin: 0;
    }
    .end-sidebar-lg .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        box-shadow: none !important;
        border: 1px solid #eee !important;
        margin-top: 10px;
    }
}

@media (max-width: 991.98px) {
    .logo-six {
        height: 60px !important;
    }
    #navbarNavDropdown {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85% !important;
        max-width: 350px;
        height: 100vh !important;
        background: rgba(253, 253, 254, 0.98) !important;
        backdrop-filter: blur(10px);
        z-index: 2000;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 !important;
        box-shadow: 15px 0 30px rgba(0, 0, 0, 0.05);
        display: flex !important;
        flex-direction: column;
        overflow-y: auto !important;
    }
    #navbarNavDropdown.show {
        left: 0;
    }
    #start-main {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        padding: 10px 20px !important;
    }
    #start-main .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }
    #start-main .nav-link {
        padding: 18px 10px !important;
        width: 100%;
        text-align: left;
        color: #444 !important;
    }
    .dropdown-menu {
        border: none;
        background: transparent;
        padding-left: 20px;
        box-shadow: none;
        width: 100%;
    }
    .main-content-col {
        padding-right: 3rem !important;
    }
}

/* ===============================
   13. ANIMATIONS
================================= */
.fadeIn {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* ===============================
   14. HOMEPAGE
================================= */
.magazine-header {
    padding: 40px 0 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.magazine-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.magazine-title {
    font-weight: 900;
    font-size: 2.7rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .magazine-title {
        font-size: 1.8rem;
        letter-spacing: 0;
        padding: 0 15px 15px 15px;
    }
}

.magazine-title-underline {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background: linear-gradient(to right, #27348B, #006FAB, #7DC4A3, #EE7CAE, #FDD449, #27348B);
    display: block;
}

.title-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.t-blue { color: #00B1EB; }
.t-orange { color: #EA5B0D; }
.t-darkblue { color: #27348B; }
.t-green { color: #019641; }

.my-3, .card-text, .entry-content {
    font-family: 'Maitree', serif !important;
    font-weight: 400 !important;
}

.my-3 *, .card-text *, .entry-content * {
    font-family: 'Maitree', serif !important;
    font-weight: 400 !important;
}

.mag-title-sidebar {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

/* ===============================
   15. FEATURED MAGAZINE & CARDS
================================= */
.featured-magazine {
    background: #fff;
    border-radius: 24px;
    padding: 45px;
    margin-bottom: 60px;
    border: 1px solid rgba(86, 59, 133, 0.08);
    box-shadow: var(--purple-shadow);
    transition: transform 0.4s ease;
}

.featured-magazine:hover {
    transform: translateY(-5px);
}

.featured-mag-img-shadow {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 20px 20px 0px var(--brand-yellow);
    transition: all 0.4s ease;
}

.featured-magazine:hover .featured-mag-img-shadow {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 25px 25px 0px var(--brand-green);
}

.featured-title {
    color: var(--brand-purple);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.magazine-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(86, 59, 133, 0.05);
    padding: 20px;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--purple-shadow);
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--purple-shadow-hover);
    border-color: rgba(86, 59, 133, 0.15);
}

.mag-img-container {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.magazine-card:hover .mag-img-container {
    box-shadow: 12px 12px 0px var(--brand-pink);
}

.mag-img-container img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.magazine-card:hover img {
    transform: scale(1.08);
}

.mag-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-purple);
    line-height: 1.3;
}

.mag-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand-pink);
    font-family: 'Outfit', sans-serif;
}

/* ===============================
   16. PRODUCTS SHOW
================================= */
.product-detail-container {
    background-color: #fcfdfd;
    padding-bottom: 80px;
}

.main-product-image {
    border-radius: 20px;
    box-shadow: var(--purple-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(86, 59, 133, 0.05);
}

.main-product-image:hover {
    transform: scale(1.02);
    box-shadow: var(--purple-shadow-hover);
}

.attachment-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.attachment-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-5px) scale(1.05);
}

.price-tag {
    font-size: 3rem;
    color: var(--brand-pink);
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    display: block;
}

.description-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.order-box {
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--purple-shadow);
    border: 1px solid rgba(86, 59, 133, 0.08);
    margin-top: 40px;
}

/* Lightbox Styles */
.bs5-lightbox .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    border: none;
}

.bs5-lightbox .btn-close {
    filter: invert(1);
    opacity: 1;
}

/* ===============================
   17. CART SUMMARY
================================= */
.cart-summary {
    border: 2px solid #7DC4A3;
    border-radius: 30px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 15px 40px rgba(125, 196, 163, 0.15);
    margin-bottom: 60px;
}

.cart-summary .card-header {
    background: #7DC4A3 !important;
    border: none;
    padding: 25px;
    text-align: center;
}

.cart-summary .card-body {
    padding: 30px 25px !important;
}

.coupon-row-container {
    background-color: #f0fff4;
    margin-left: -25px !important;
    margin-right: -25px !important;
    margin-top: 15px;
    margin-bottom: 25px;
    padding: 15px 25px;
    border-top: 2px dashed #7DC4A3;
    border-bottom: 2px dashed #7DC4A3;
    width: calc(100% + 50px);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.coupon-row-container p {
    margin-bottom: 0 !important;
}

.coupon-impact-row {
    background-color: #ecfdf5;
    border: 2px dashed #10b981;
    border-radius: 15px;
    padding: 18px 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem !important;
    color: #065f46 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.coupon-code-label {
    background: #10b981;
    color: white;
    padding: 2px 12px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    margin-left: 8px;
    text-transform: uppercase;
}

.price-summary-line {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.checkout-form-label {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: inline-block;
}

.checkout-input {
    border-radius: 12px !important;
    padding: 12px !important;
    border: 1px solid #e2e8f0 !important;
}

.checkout-input-readonly {
    background-color: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-style: dashed !important;
}

.checkout-summary-card {
    border: 2px solid #7DC4A3 !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(125, 196, 163, 0.12);
    background: #fff;
}

.checkout-card-header {
    background: #7DC4A3 !important;
    color: white;
    padding: 20px;
    text-align: center;
    border: none;
}

.checkout-card-body {
    padding: 30px 25px !important;
}

.checkout-btn-submit {
    background: #EE7CAE !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(238, 124, 174, 0.2);
    width: 100%;
}

.checkout-btn-submit:hover:not(:disabled) {
    background: #d66696 !important;
    transform: translateY(-2px);
}

.checkout-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===============================
   18. SUBSCRIPTIONS
================================= */
.pricing-card {
    border: 1px solid rgba(86, 59, 133, 0.08) !important;
    border-radius: 24px !important;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: var(--purple-shadow) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.pricing-card.is-premium {
    background: var(--brand-purple) !important;
    border: 1px solid var(--brand-purple) !important;
    color: #ffffff !important;
}

.pricing-card.is-premium .plan-name {
    color: var(--brand-yellow);
}

.pricing-card.is-premium .plan-price {
    color: #ffffff;
}

.pricing-card.is-premium .feature-item {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.is-premium .feature-icon {
    color: var(--brand-yellow);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--purple-shadow-hover) !important;
}

.plan-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--brand-purple);
    font-family: 'Outfit', sans-serif;
}

.premium-badge {
    background: var(--brand-yellow);
    color: #000;
    font-size: 0.7rem;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 900;
    position: absolute;
    top: -12px;
    right: 25px;
    box-shadow: 0 4px 12px rgba(255, 210, 61, 0.4);
    z-index: 10;
}

.feature-item {
    padding: 14px 0;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px dashed #f1f5f9;
}

.feature-icon {
    color: var(--brand-green);
    margin-right: 12px;
    font-size: 1.1rem;
}

.plan-selected {
    border: 3px solid var(--brand-green) !important;
}

.plan-selected.is-premium {
    border-color: var(--brand-yellow) !important;
}

.payment-card {
    border: none !important;
    border-radius: 30px !important;
    box-shadow: var(--purple-shadow) !important;
    overflow: hidden;
}

.payment-header {
    background: var(--brand-purple);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.submit-btn {
    background: var(--brand-pink);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-weight: 800;
    width: 100%;
    font-size: 1rem;
    transition: 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #d66498;
    transform: translateY(-2px);
}

/* ===============================
   19. POSTS PAGES
================================= */
.modern-post-card {
    background: #fff;
    border-radius: 14px !important;
    border: 1px solid rgba(86, 59, 133, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    box-shadow: var(--purple-shadow) !important;
}

.modern-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--purple-shadow-hover) !important;
    border-color: rgba(86, 59, 133, 0.2) !important;
}

.modern-image-wrapper {
    overflow: hidden;
    position: relative;
}

.modern-image-wrapper img {
    transition: transform 0.8s ease;
    object-fit: cover;
    width: 100%;
}

.modern-post-card:hover .modern-image-wrapper img {
    transform: scale(1.1);
}

.post-surtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.post-title-link {
    color: var(--brand-purple);
    font-weight: 800;
    line-height: 1.3;
    font-size: 1.35rem;
    transition: color 0.3s;
}

.modern-post-card:hover .post-title-link {
    color: var(--brand-pink);
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.85;
    color: #333;
}

.related-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px !important;
    border: none !important;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===============================
   20. EVENTS PAGES
================================= */
.search-block {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
}

.input-group-text {
    border: none;
    color: white;
    border-radius: 12px 0 0 12px !important;
    padding: 0 20px;
}

.filter-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.btn-pill {
    background: #fff;
    border: 2px solid var(--brand-purple);
    color: var(--brand-purple);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-pill:hover,
.btn-pill.active {
    background: var(--brand-purple);
    color: #fff;
    transform: translateY(-2px);
}

.btn-pill-clear {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
}

.btn-pill-clear:hover {
    background: var(--brand-pink);
    color: #fff;
}

.modern-event-card {
    background: #fff;
    border-radius: 14px !important;
    border: 1px solid rgba(86, 59, 133, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    box-shadow: var(--purple-shadow) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modern-event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--purple-shadow-hover) !important;
    border-color: rgba(86, 59, 133, 0.2) !important;
}

.modern-image-wrapper-event {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.modern-image-wrapper-event img {
    transition: transform 0.8s ease;
    object-fit: cover;
    width: 100%;
    height: 280px;
    display: block;
}

.modern-event-card:hover .modern-image-wrapper-event img {
    transform: scale(1.1);
}

.event-badges-wrapper {
    padding: 18px 20px 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(86, 59, 133, 0.08);
}

.event-title-link {
    color: var(--brand-purple);
    font-weight: 800;
    line-height: 1.3;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.modern-event-card:hover .event-title-link {
    color: var(--brand-pink);
}

.event-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--brand-pink);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more i {
    transition: transform 0.3s ease;
    margin-left: 8px;
    font-family: 'Font Awesome 6 Free' !important;
}

.read-more:hover {
    color: var(--brand-purple);
}

.read-more:hover i {
    transform: translateX(5px);
}

.event-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-info-box {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: -50px;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===============================
   21. FORUM PAGES
================================= */
/* Forum index */
.forum-wrapper {
    font-family: 'Nunito', sans-serif;
    color: #1e293b;
    padding-bottom: 60px;
    font-size: 1.1rem;
}

.forum-search-group {
    background: #fff;
    border: 2px solid #7DC4A3;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(125, 196, 163, 0.15);
}

.forum-input {
    border: none !important;
    padding: 20px 25px !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.forum-select {
    border: 2px solid #7DC4A3 !important;
    border-radius: 25px !important;
    height: 100%;
    font-weight: 700;
    color: #1e293b;
    padding: 15px 25px !important;
    font-size: 1.1rem;
    cursor: pointer;
}

.alert-charte {
    background-color: #f0fff4;
    border: 2px dashed #7DC4A3;
    border-radius: 30px;
    color: #166534;
    padding: 30px 40px;
    transition: all 0.3s ease;
}

/* Topic cards */
.topic-card {
    background: #fff;
    border: none;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    padding: 40px !important;
}

.forum-index .topic-card {
    border-left: 12px solid #7DC4A3;
    border-right: 12px solid #7DC4A3;
}

.forum-show .topic-card {
    border-left: 8px solid var(--brand-purple);
    border-left: 8px solid var(--brand-purple);
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-title-link {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 15px;
    line-height: 1.3;
    display: block;
}

/* Stats */
.stat-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 12px 18px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.stat-icon {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.6;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: #1e293b;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-box-replies {
    background: #fff5f9;
    border-bottom: 4px solid #EE7CAE !important;
}

/* Forum guidelines */
.forum-guidelines {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.forum-guidelines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--forum-success);
    border-radius: 15px 0 0 15px;
}

.guidelines-icon {
    font-size: 2rem;
    color: var(--forum-success);
    background: rgba(13, 110, 253, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.guidelines-content h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.guidelines-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.guidelines-text ul {
    padding-left: 0;
    list-style: none;
    margin-top: 10px;
    margin-bottom: 0;
}

.guidelines-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 5px;
}

.guidelines-text ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--forum-success);
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.create-topic-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

/* Comments */
.comment-list {
    padding: 0;
    list-style: none;
}

.comment-item {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.comment-body {
    display: flex;
    align-items: start;
    gap: 1.25rem;
}

.avatar-md {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.comment-text,
.topic-text {
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
}

.sub-comment-list {
    margin-left: 4rem;
    margin-top: 1.25rem;
    border-left: 3px solid rgba(86, 59, 133, 0.2);
    padding-left: 1.5rem;
}

.sub-comment-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.reply-section-dynamic {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(86, 59, 133, 0.1);
}

.main-reply-form {
    border-top: 4px solid var(--brand-purple) !important;
}

/* Boutons forum spécifiques */
.btn-edit-topic {
    background-color: #7DC4A3;
    color: white !important;
}

.btn-edit-topic:hover {
    background-color: #69b392;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(125, 196, 163, 0.4);
}

.btn-delete-topic {
    background-color: #fff;
    color: #ef4444 !important;
    border: 2px solid #fee2e2 !important;
}

.btn-delete-topic:hover {
    background-color: #ef4444;
    color: white !important;
    border-color: #ef4444 !important;
    transform: scale(1.02);
}

/* Modales forum */
.modal-forum-content {
    border-radius: 45px !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden;
}

.modal-body.text-center.py-5 {
    padding: 60px 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Pagination forum */
.posts-index-page .pagination,
.search-index-page .pagination {
    gap: 8px;
}

.posts-index-page .pagination .page-item .page-link,
.search-index-page .pagination .page-item .page-link {
    border: 1px solid #eee;
    color: var(--brand-purple);
    border-radius: 10px !important;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    font-family: 'Maitree', serif !important;
}

.posts-index-page .pagination .page-item.active .page-link,
.search-index-page .pagination .page-item.active .page-link {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #fff;
    box-shadow: 0 4px 10px rgba(86, 59, 133, 0.2);
}

/* ===============================
   22. ABOUT PAGE
================================= */
.page-featured-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--purple-shadow);
    border: 1px solid rgba(86, 59, 133, 0.08);
}

.page-featured-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.page-featured-wrapper:hover .page-featured-img {
    transform: scale(1.04);
}

.page-content-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .page-featured-img {
        height: 300px;
    }
}

/* ===============================
   23. SIDEBAR POSTS
================================= */
.end-sidebar-lg {
    --sidebar-green: #7DC4A3;
    --sidebar-primary: #563B85;
    --font-main: 0.88rem;
    position: relative;
}

.sidebar-separator {
    border-left: 1px solid #eee;
    padding-left: 30px;
    margin-left: -15px;
}

.end-sidebar-lg .widget {
    display: block;
    width: 100%;
    margin-bottom: 40px !important;
    clear: both;
}

.end-sidebar-lg .widget .block-title-4 {
    border-bottom: 2px solid #eee;
    position: relative;
    margin-bottom: 20px !important;
}

.end-sidebar-lg .widget .block-title-4 h4 {
    display: inline-block;
    font-size: 0.95rem;
    background: #fff;
    padding-right: 15px;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    color: var(--sidebar-primary) !important;
    text-transform: uppercase;
    font-weight: 800;
}

.end-sidebar-lg .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    z-index: 1050 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.popular-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-topics-list li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 0;
}

.popular-topics-list li a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-topics-list li a i {
    color: #0dcaf0;
    font-size: 0.85rem;
}

.popular-topics-list li a:hover {
    color: var(--brand-purple);
}

.view-count-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.widget:last-child {
    position: relative;
    z-index: 10;
}

.sidebar-social-link:last-child {
    position: relative;
    z-index: 11;
    cursor: pointer;
}

/* ===============================
   24. SELECTEUR DE LANGUE
================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    min-height: 24px;
}

.lang-switcher i {
    width: 14px;
    text-align: center;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle {
    width: 42px;
    height: 22px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-slider {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle.active {
    background: #FF7AAD;
}

.toggle.active .toggle-slider {
    transform: translateX(20px);
}

.label-fr, .label-en {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.label-active {
    opacity: 1;
}

.skiptranslate .VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

/* ===============================
   25. BANDE DÉFILANTE
================================= */
.breaking-box {
    /* Style pour la bande d'alertes défilante */
}

/* ===============================
   26. ÉDITEUR MARKDOWN (SIMPLEDE)
================================= */
.editor-toolbar {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    background: #fff !important;
    padding: 10px !important;
}

.editor-toolbar button {
    border-radius: 6px !important;
    color: var(--text-muted) !important;
}

.editor-toolbar button.active, .editor-toolbar button:hover {
    background: rgba(13, 110, 253, 0.08) !important;
    color: var(--forum-primary) !important;
    border-color: transparent !important;
}

.CodeMirror {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    background: var(--bg-light) !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 1rem !important;
    padding: 10px !important;
    min-height: 300px !important;
}

.CodeMirror-focused {
    border-color: var(--forum-primary) !important;
    background: #fff !important;
}

/* ===============================
   27. FONT AWESOME CORRECTION
================================= */
i, .fa, .fas, .far, .fab, .fal, .fad,
.fa-solid, .fa-regular, .fa-brands,
[class*="fa-"], [class^="fa-"] {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
    font-style: normal;
}

.fab, .fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400;
}