 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color:#0f1117;
    color: #ffffff;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid #252840;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
/* HERO */

.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url('/media/favicon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-auth {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #7c3aed;
    color: white;
}

.btn-signup {
    background: #7c3aed;
    border: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-signup:hover {
    background: #6d28d9;
}

/* HERO */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url('/media/logo\ site\ choix\ .jpeg'), opacity(0,8);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: #7c3aed;
}

.hero p {
    font-size: 1.2rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
}

.btn-primary {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* SECTIONS */
.featured,
.latest {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


    .featured h2,
        .latest h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, #c54141, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            display: inline-block;
            padding-bottom: 0.5rem;
            /* text-decoration: underline; */
        }
    
        .featured h2::after,
        .latest h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: #c7bcdb;
            border-radius: 10px;
        }


/* CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background:#1a1d2e;
    border: 1px solid #252840;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #7c3aed;
}

.card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a0a2e, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}
.card-content {
    padding: 1.2rem;
}

.card-tag {
    background: #252840;
    color: #7c3aed;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-desc {
    font-size: 0.85rem;
    color: #a0a0b0;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #606070;
}

/* NEWSLETTER */
.newsletter {
    text-align: center;
    padding: 4rem 2rem;
    background: #1a1d2e;
    margin-top: 3rem;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.newsletter p {
    color: #a0a0b0;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #252840;
    background: #0f1117;
    color: white;
    font-size: 1rem;
    width: 300px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #7c3aed;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: #606070;
    font-size: 0.85rem;
    border-top: 1px solid #252840;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal {
    background:#1a1d2e;
    border: 1px solid #252840;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    position: relative;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #a0a0b0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #252840;
    background: #0f1117;
    color: white;
    font-size: 0.95rem;
}

.modal input:focus {
    outline: none;
    border-color: #7c3aed;
}

.modal .btn-primary {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-switch {
    text-align: center;
    font-size: 0.85rem;
    color: #a0a0b0;
}

.modal-switch span {
    color: #7c3aed;
    cursor: pointer;
    font-weight: 500;
}

.modal-switch span:hover {
    text-decoration: underline;
}

.nav-user {
    color: #7c3aed;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}


/* PAGE ARTICLE */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.btn-retour {
    display: inline-block;
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.btn-retour:hover {
    color: #ffffff;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header .card-tag {
    margin-bottom: 1rem;
    display: inline-block;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #a0a0b0;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-emoji {
    width: 100%;
    min-height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a0a2e, #1a1d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.article-emoji img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    margin: 0 !important;
}
/* CONTENU ARTICLE */



        /* PAGE PUBLIER */
        .publier-container {
            max-width: 700px;
            margin: 0 auto;
            padding: 3rem 2rem;
        }
    
        .publier-container h1 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }
    
        .publier-subtitle {
            color: #a0a0b0;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }
    
        /* TYPE SELECTOR */
        .type-selector {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
    
        .type-btn {
            flex: 1;
            padding: 0.85rem;
            border-radius: 10px;
            border: 1px solid #252840;
            background: #1a1d2e;
            color: #a0a0b0;
            text-align: center;
            cursor: pointer;
            font-size: 0.95rem;
            transition: all 0.3s;
        }
    
        .type-btn:hover {
            border-color: #7c3aed;
            color: #ffffff;
        }
    
        .type-btn.active {
            border-color: #7c3aed;
            background: rgba(124, 58, 237, 0.15);
            color: #ffffff;
            font-weight: 500;
        }
    
        /* FORM GROUPS */
        .form-group {
            margin-bottom: 1.5rem;
        }
    
        .form-group label {
            display: block;
            font-size: 0.9rem;
            color: #a0a0b0;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
    
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.85rem 1rem;
            border-radius: 10px;
            border: 1px solid #252840;
            background: #1a1d2e;
            color: #ffffff;
            font-size: 0.95rem;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.3s;
        }
    
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #7c3aed;
        }
    
        .form-group select option {
            background: #1a1d2e;
            color: #ffffff;
        }
    
        .form-group textarea {
            min-height: 250px;
            resize: vertical;
            line-height: 1.6;
        }
    
        .form-group small {
            display: block;
            color: #606070;
            font-size: 0.8rem;
            margin-top: 0.4rem;
        }
    
        /* BOUTON PUBLIER */
        .btn-publier {
            width: 100%;
            padding: 1rem;
            font-size: 1.1rem;
            margin-top: 1rem;
        }
    
        .btn-publier:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

                                /* BOUTON FLOTTANT PUBLIER */
                                .btn-flottant {
                                    position: fixed;
                                    bottom: 2rem;
                                    right: 2rem;
                                    width: 60px;
                                    height: 60px;
                                    background: #7c3aed;
                                    color: white;
                                    border-radius: 50%;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    font-size: 2rem;
                                    text-decoration: none;
                                    z-index: 999;
                                    transition: all 0.3s;
                                    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
                                }
                
                                .btn-flottant:hover {
                                    background: #6d28d9;
                                    transform: scale(1.1);
                                }

 /* UPLOAD ZONE */
 .upload-zone {
     border: 2px dashed #252840;
     border-radius: 12px;
     padding: 2rem;
     text-align: center;
     cursor: pointer;
     transition: all 0.3s;
     color: #a0a0b0;
 }

 .upload-zone:hover {
     border-color: #7c3aed;
     background: rgba(124, 58, 237, 0.05);
     color: #ffffff;
 }

 .upload-zone p {
     margin: 0.5rem 0;
     font-size: 0.95rem;
 }

 .upload-zone small {
     font-size: 0.8rem;
     color: #606070;
 }

 /* GRILLE PHOTOS */
 .photos-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     gap: 1rem;
 }

 .photo-item {
     position: relative;
     border-radius: 10px;
     overflow: hidden;
     border: 1px solid #252840;
     aspect-ratio: 1;
 }

 .photo-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .photo-supprimer {
     position: absolute;
     top: 6px;
     right: 6px;
     width: 26px;
     height: 26px;
     background: rgba(226, 75, 74, 0.9);
     border: none;
     border-radius: 50%;
     color: white;
     font-size: 0.75rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }

 .photo-supprimer:hover {
     background: #e24b4a;
     transform: scale(1.1);
 }

 .photo-nom {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: rgba(0, 0, 0, 0.7);
     color: white;
     font-size: 0.7rem;
     padding: 4px 6px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }



 /* TAGS & HASHTAGS */
 .tag-input-container {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     padding: 0.75rem;
     border-radius: 10px;
     border: 1px solid #252840;
     background: #1a1d2e;
     cursor: text;
     transition: border-color 0.3s;
 }

 .tag-input-container:focus-within {
     border-color: #7c3aed;
 }

 .tag-input-container input {
     border: none !important;
     background: transparent !important;
     padding: 0 !important;
     flex: 1;
     min-width: 120px;
     color: #ffffff;
     font-size: 0.95rem;
 }

 .tag-input-container input:focus {
     outline: none !important;
 }

 .tags-liste {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .tag-item {
     display: flex;
     align-items: center;
     gap: 0.4rem;
     padding: 0.3rem 0.75rem;
     border-radius: 20px;
     font-size: 0.85rem;
     font-weight: 500;
 }

 .tag-personne {
     background: rgba(124, 58, 237, 0.2);
     color: #a78bfa;
     border: 1px solid rgba(124, 58, 237, 0.3);
 }

 .tag-hashtag {
     background: rgba(29, 158, 117, 0.2);
     color: #34d399;
     border: 1px solid rgba(29, 158, 117, 0.3);
 }

 .tag-item button {
     background: transparent;
     border: none;
     color: inherit;
     cursor: pointer;
     font-size: 0.75rem;
     padding: 0;
     opacity: 0.7;
     transition: opacity 0.2s;
 }

 .tag-item button:hover {
     opacity: 1;
 }

 /* AVATAR NAVBAR */
 .nav-profil-btn {
     text-decoration: none;
     display: flex;
     align-items: center;
 }

 .nav-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     object-fit: cover;
     border: 2px solid #7c3aed;
     transition: all 0.3s;
 }

 .nav-avatar:hover {
     border-color: #ffffff;
     transform: scale(1.05);
 }

 .nav-avatar-initiale {
     background: #7c3aed;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.9rem;
     font-weight: 600;
     cursor: pointer;
 }


 /* PAGE PROFIL */
 .profil-page {
     max-width: 1000px;
     margin: 0 auto;
     padding-bottom: 4rem;
 }

 /* COUVERTURE */
 .profil-couverture {
     width: 100%;
     height: 180px;
     background: linear-gradient(135deg, #1a0a2e, #7c3aed);
     position: relative;
     border-radius: 0 0 16px 16px;
 }

 .couverture-overlay {
     position: absolute;
     bottom: 1rem;
     right: 1rem;
 }

 .couverture-overlay button {
     background: rgba(0, 0, 0, 0.6);
     color: white;
     border: 1px solid rgba(255, 255, 255, 0.3);
     padding: 0.5rem 1rem;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.85rem;
     transition: all 0.3s;
 }

 .couverture-overlay button:hover {
     background: rgba(0, 0, 0, 0.8);
 }

 /* AVATAR */
.profil-info-container {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem 0.5rem;
    margin-top: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    background: #0f1117;
    position: relative;
    z-index: 10;
}

 .profil-avatar-wrapper {
     position: relative;
     flex-shrink: 0;
 }

.profil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #7c3aed;
    border: 4px solid #0f1117;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    margin-top: -70px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

 .avatar-overlay {
     position: absolute;
     bottom: 4px;
     right: 4px;
     width: 32px;
     height: 32px;
     background: #7c3aed;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     border: 2px solid #0f1117;
 }

 .avatar-overlay button {
     background: transparent;
     border: none;
     color: white;
     cursor: pointer;
     font-size: 0.85rem;
 }

 /* INFOS PROFIL */
.profil-infos {
    flex: 1;
    padding-bottom: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

 .profil-infos h1 {
     font-size: 1.6rem;
     font-weight: 700;
     color: #ffffff;
     margin-bottom: 0.25rem;
     margin-top: 1rem;
 }

 .profil-username {
     color: #7c3aed;
     font-size: 0.95rem;
     margin-bottom: 0.5rem;
 }

 .profil-bio {
     color: #a0a0b0;
     font-size: 0.9rem;
     margin-bottom: 1rem;
     max-width: 500px;
 }

 /* STATS */
 .profil-stats {
     display: flex;
     gap: 2rem;
     margin-bottom: 1rem;
 }

 .stat {
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .stat-nombre {
     font-size: 1.3rem;
     font-weight: 700;
     color: #ffffff;
 }

 .stat-label {
     font-size: 0.75rem;
     color: #a0a0b0;
 }

 /* BOUTONS PROFIL */
 .profil-boutons {
     display: flex;
     gap: 0.75rem;
 }

 /* BOUTONS PROFIL CÔTE À CÔTE */
 .profil-boutons {
     display: flex;
     gap: 0.75rem;
     flex-wrap: wrap;
     margin-top: 1rem;
 }

 .btn-partager {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
 }

 .profil-bio {
     color: #a0a0b0;
     font-size: 0.95rem;
     line-height: 1.6;
     margin: 1rem 0 1.5rem;
     min-height: 2rem;
     max-width: 400px;
 }

 .btn-edit-profil {
     background: transparent;
     border: 1px solid #252840;
     color: #ffffff;
     padding: 0.5rem 1.2rem;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.3s;
 }

 .btn-edit-profil:hover {
     border-color: #7c3aed;
     color: #7c3aed;
 }

 .btn-abonner {
     padding: 0.5rem 1.5rem !important;
 }

 /* ONGLETS */
.profil-onglets {
    display: flex;
    gap: 0;
    margin: 2rem 2rem 0;
    border-bottom: 1px solid #252840;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.profil-onglets::-webkit-scrollbar {
    height: 3px;
}

.profil-onglets::-webkit-scrollbar-track {
    background: transparent;
}

.profil-onglets::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}

 .onglet {
     background: transparent;
     border: none;
     color: #a0a0b0;
     padding: 0.75rem 1.5rem;
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.3s;
     border-bottom: 2px solid transparent;
     margin-bottom: -1px;
 }

 .onglet:hover {
     color: #ffffff;
 }

 .onglet.active {
     color: #7c3aed;
     border-bottom-color: #7c3aed;
 }

 /* CONTENU PROFIL */
 .profil-contenu {
     padding: 2rem;
 }

 /* GRILLE PHOTOS PROFIL */
 .photos-profil-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
     gap: 4px;
 }

 .photo-profil-item {
     position: relative;
     aspect-ratio: 1;
     overflow: hidden;
     cursor: pointer;
     border-radius: 4px;
 }

 .photo-profil-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.3s;
 }

 .photo-profil-item:hover img {
     transform: scale(1.05);
 }

 .photo-profil-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
     padding: 1rem 0.75rem 0.5rem;
     opacity: 0;
     transition: opacity 0.3s;
 }

 .photo-profil-item:hover .photo-profil-overlay {
     opacity: 1;
 }

 .photo-profil-overlay span {
     color: white;
     font-size: 0.8rem;
 }


 /* BOUTON PARTAGER */
 .btn-partager {
     background: transparent;
     border: 1px solid #252840;
     color: #a0a0b0;
     padding: 0.4rem 1rem;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.85rem;
     margin-top: 0.75rem;
     transition: all 0.3s;
 }

 .btn-partager:hover {
     border-color: #7c3aed;
     color: #7c3aed;
 }



 /* PAGE CATÉGORIE */
 .categorie-hero {
     text-align: center;
     padding: 3rem 2rem;
     background: linear-gradient(135deg, #0f1117 0%, #1a0a2e 100%);
     border-bottom: 1px solid #252840;
 }

 .categorie-emoji {
     font-size: 3.5rem;
     margin-bottom: 0.75rem;
 }

 .categorie-hero h1 {
     font-size: 2.2rem;
     font-weight: 700;
     color: #ffffff;
     margin-bottom: 0.5rem;
 }

 .categorie-hero p {
     color: #a0a0b0;
     font-size: 1rem;
 }

 /* FILTRES */
 .categorie-filtres {
     display: flex;
     gap: 0.75rem;
     padding: 1.5rem 2rem;
     max-width: 1200px;
     margin: 0 auto;
     flex-wrap: wrap;
 }

 .filtre-btn {
     background: #1a1d2e;
     border: 1px solid #252840;
     color: #a0a0b0;
     padding: 0.5rem 1.2rem;
     border-radius: 20px;
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.3s;
 }

 .filtre-btn:hover {
     border-color: #7c3aed;
     color: #ffffff;
 }

 .filtre-btn.active {
     background: #7c3aed;
     border-color: #7c3aed;
     color: #ffffff;
 }

 /* CONTAINER CATÉGORIE */
 .categorie-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem 4rem;
 }

 /* BARRE DE RECHERCHE */
 /* ICÔNE RECHERCHE NAVBAR */
 .nav-search-btn {
     background: transparent;
     border: none;
     color: #a0a0b0;
     font-size: 1.2rem;
     cursor: pointer;
     padding: 0.4rem;
     border-radius: 8px;
     transition: all 0.3s;
 }

 .nav-search-btn:hover {
     color: #ffffff;
     background: #252840;
 }

 /* RECHERCHE PLEIN ÉCRAN */
 .recherche-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: #0f1117;
     z-index: 2000;
     display: none;
     flex-direction: column;
 }

 .recherche-header {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 1.5rem 2rem;
     border-bottom: 1px solid #252840;
 }

 .recherche-header input {
     flex: 1;
     background: #1a1d2e;
     border: 1px solid #252840;
     color: #ffffff;
     padding: 0.85rem 1.5rem;
     border-radius: 12px;
     font-size: 1.1rem;
     transition: border-color 0.3s;
 }

 .recherche-header input:focus {
     outline: none;
     border-color: #7c3aed;
 }

 .recherche-header button {
     background:#1a1d2e;
     border: 1px solid #252840;
     color: #ffffff;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 1rem;
     transition: all 0.3s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .recherche-header button:hover {
     background: #252840;
 }

 .recherche-resultats {
     flex: 1;
     overflow-y: auto;
     max-width: 700px;
     width: 100%;
     margin: 0 auto;
     padding: 1.5rem 2rem;
 }
 /* RÉSULTATS DE RECHERCHE */
 .search-resultats {
     position: absolute;
     top: calc(100% + 8px);
     left: 0;
     right: 0;
     background: #1a1d2e;
     border: 1px solid #252840;
     border-radius: 12px;
     overflow: hidden;
     z-index: 500;
     min-width: 320px;
     max-height: 400px;
     overflow-y: auto;
 }

 .search-item {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     padding: 0.75rem 1rem;
     cursor: pointer;
     transition: background 0.2s;
     text-decoration: none;
     color: #ffffff;
 }

 .search-item:hover {
     background: #252840;
 }

 .search-item-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: #7c3aed;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.9rem;
     font-weight: 600;
     color: white;
     flex-shrink: 0;
     overflow: hidden;
 }

 .search-item-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .search-item-info {
     flex: 1;
 }

 .search-item-nom {
     font-size: 0.9rem;
     font-weight: 500;
     color: #ffffff;
 }

 .search-item-sub {
     font-size: 0.78rem;
     color: #a0a0b0;
 }

 .search-section-titre {
     padding: 0.5rem 1rem;
     font-size: 0.75rem;
     color: #606070;
     background:#0f1117;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .search-vide {
     padding: 1.5rem;
     text-align: center;
     color: #606070;
     font-size: 0.9rem;
 }

 /* RÉSULTATS RECHERCHE CONTENUS */
 .search-item-contenu {
     display: flex;
     align-items: center;
     border-bottom: 1px solid #252840;
 }

 .search-item-contenu .search-item {
     flex: 1;
     border-bottom: none;
 }

 .search-auteur {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.75rem 1rem;
     text-decoration: none;
     color: #a0a0b0;
     font-size: 0.8rem;
     transition: all 0.3s;
     flex-shrink: 0;
     border-left: 1px solid #252840;
 }

 .search-auteur:hover {
     color: #7c3aed;
     background: #252840;
 }

 .search-auteur-avatar {
     width: 28px;
     height: 28px;
     border-radius: 50%;
     background: #7c3aed;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.75rem;
     font-weight: 600;
     color: white;
     overflow: hidden;
     flex-shrink: 0;
 }

 .search-auteur-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }


 /* SUGGESTIONS DE RECHERCHE */
 .search-suggestion {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0.75rem 1rem;
     cursor: pointer;
     transition: background 0.2s;
     color: #ffffff;
     font-size: 0.9rem;
     border-bottom: 1px solid #252840;
 }

 .search-suggestion:hover {
     background: #252840;
 }

 /* FORMAT SELECTOR */
 .format-selector {
     display: flex;
     gap: 0.75rem;
     margin-bottom: 1rem;
 }

 .format-btn {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.4rem;
     padding: 0.75rem 1rem;
     border-radius: 10px;
     border: 1px solid #252840;
     background: #1a1d2e;
     color: #a0a0b0;
     cursor: pointer;
     transition: all 0.3s;
     font-size: 0.8rem;
 }

 .format-btn:hover {
     border-color: #7c3aed;
     color: #ffffff;
 }

 .format-btn.active {
     border-color: #7c3aed;
     background: rgba(124, 58, 237, 0.15);
     color: #ffffff;
 }

 .format-preview {
     background: #a0a0b0;
     border-radius: 2px;
     transition: background 0.3s;
 }

 .format-btn.active .format-preview {
     background: #7c3aed;
 }

 /* ÉDITEUR IMAGE */
 .editeur-canvas-wrapper {
     position: relative;
     width: 100%;
     padding-top: 56.25%;
     overflow: hidden;
     border-radius: 8px;
     background: #0f1117;
     margin-bottom: 0.75rem;
 }

 .editeur-controls {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     padding: 0.75rem;
     background: #0f1117;
     border-radius: 8px;
     flex-wrap: wrap;
 }

 .editeur-controls input[type=range] {
     flex: 1;
     min-width: 100px;
 }

 .btn-reset-image,
 .btn-changer-image {
     background: #252840;
     border: 1px solid #252840;
     color: #a0a0b0;
     padding: 0.4rem 0.75rem;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.8rem;
     transition: all 0.3s;
     white-space: nowrap;
 }

 .btn-reset-image:hover,
 .btn-changer-image:hover {
     border-color: #7c3aed;
     color: #ffffff;
 }


 /* ACTIONS CARTE */
 .card-actions {
     display: flex;
     gap: 0.4rem;
     margin-left: auto;
 }

 .card-action-btn {
     background: transparent;
     border: 1px solid #252840;
     color: #a0a0b0;
     width: 36px;
     height: 36px;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.9rem;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }

 .card-action-btn:hover {
     background: #252840;
     color: #ffffff;
     border-color: #7c3aed;
     transform: translateY(-2px);
 }

 .card-action-btn:hover {
     border-color: #7c3aed;
     color: #ffffff;
     background: rgba(124, 58, 237, 0.15);
 }

 .card-action-delete:hover {
     border-color: #e24b4a !important;
     color: #e24b4a !important;
     background: rgba(226, 75, 74, 0.15) !important;
 }

 .card-action-edit:hover {
     border-color: #1D9E75 !important;
     color: #1D9E75 !important;
     background: rgba(29, 158, 117, 0.15) !important;
 }

 /* ÉDITEUR PHOTO PROFIL */
 .editeur-photo-wrapper {
     position: relative;
     width: 100%;
     overflow: hidden;
     border-radius: 12px;
     background: #0f1117;
     border: 1px solid #252840;
 }

#editeur-photo-wrapper.type-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #0f1117;
}

#editeur-photo-wrapper.type-couverture {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #0f1117;
}
 /* AUTEUR CARTE */
 .card-auteur-link {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     text-decoration: none;
     color: #a0a0b0;
     font-size: 0.8rem;
     transition: color 0.2s;
 }

 .card-auteur-link:hover {
     color: #7c3aed;
 }

 .card-auteur-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: #7c3aed;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.85rem;
     font-weight: 600;
     color: white;
     overflow: hidden;
     flex-shrink: 0;
     border: 2px solid #252840;
 }

 /* PROFIL GAUCHE */
 .profil-gauche {
     display: flex;
     flex-direction: column;
     align-items: center;
     flex-shrink: 0;
 }

 .profil-pseudo-nom {
     font-size: 1.1rem;
     font-weight: 700;
     color: #ffffff;
     margin-top: 0.5rem;
     text-align: center;
 }

 /* CORRIGER COULEUR AUTOCOMPLETE */
 input:-webkit-autofill,
 input:-webkit-autofill:hover,
 input:-webkit-autofill:focus {
     -webkit-box-shadow: 0 0 0px 1000px #0f1117 inset !important;
     -webkit-text-fill-color: #ffffff !important;
     transition: background-color 5000s ease-in-out 0s;
 }

 /* LIKES ET COMMENTAIRES */
/* MODAL COMMENTAIRES FIXE */
#commentaires-modal .modal {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
}

.commentaires-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #252840;
    flex-shrink: 0;
}

.commentaires-modal-form {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #252840;
    flex-shrink: 0;
}

.commentaires-modal-liste {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

/* RÉPONSES */
.commentaire-reponses {
    margin-left: 3rem;
    margin-top: 0.75rem;
}

.commentaire-reponse-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid #252840;
}

.commentaire-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-commentaire-action {
    background: transparent;
    border: none;
    color: #606070;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.btn-commentaire-action:hover {
    color: #ffffff;
}

.btn-commentaire-action.liked {
    color: #e24b4a;
}

.btn-commentaire-action.delete {
    color: #606070;
}

.btn-commentaire-action.delete:hover {
    color: #e24b4a;
}

/* FORMULAIRE RÉPONSE */
.reponse-form {
    margin-top: 0.5rem;
    margin-left: 3rem;
    display: flex;
    gap: 0.5rem;
}

.reponse-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #252840;
    background: #0f1117;
    color: #ffffff;
    font-size: 0.85rem;
}

.reponse-form input:focus {
    outline: none;
    border-color: #7c3aed;
}

.reponse-form button {
    background: #7c3aed;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

 .likes-section {
     margin-bottom: 2rem;
 }

 .btn-like {
     background: transparent;
     border: 1px solid #252840;
     color: #a0a0b0;
     padding: 0.6rem 1.5rem;
     border-radius: 20px;
     cursor: pointer;
     font-size: 1rem;
     transition: all 0.3s;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .btn-like:hover {
     border-color: #e24b4a;
     color: #e24b4a;
     background: rgba(226, 75, 74, 0.1);
 }

 .btn-like.liked {
     border-color: #e24b4a;
     color: #e24b4a;
     background: rgba(226, 75, 74, 0.15);
 }

 /* COMMENTAIRES */
 .commentaires-section h3 {
     font-size: 1.2rem;
     font-weight: 600;
     color: #ffffff;
     margin-bottom: 1.5rem;
 }

 .commentaire-form {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
     margin-bottom: 2rem;
 }

@media (max-width: 470px) {
    .commentaire-form {
        flex-direction: column !important;
    }

    .commentaire-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .commentaire-form .btn-primary {
        width: 100% !important;
        align-self: stretch !important;
    }
}

 .commentaire-form textarea {
     width: 100%;
     padding: 0.85rem 1rem;
     border-radius: 10px;
     border: 1px solid #252840;
     background: #1a1d2e;
     color: #ffffff;
     font-size: 0.95rem;
     font-family: 'Inter', sans-serif;
     resize: vertical;
     transition: border-color 0.3s;
 }

 .commentaire-form textarea:focus {
     outline: none;
     border-color: #7c3aed;
 }

.commentaire-form .btn-primary {
    align-self: flex-end;
    padding: 0.6rem 1.5rem;
}
@media (max-width: 480px) {
    .commentaire-form .btn-primary {
        align-self: stretch !important;
        width: 100% !important;
        padding: 0.75rem !important;
    }
}

 /* LISTE COMMENTAIRES */
 .commentaire-item {
     display: flex;
     gap: 0.75rem;
     padding: 1rem 0;
     border-bottom: 1px solid #252840;
 }

 .commentaire-avatar {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: #7c3aed;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.85rem;
     font-weight: 600;
     color: white;
     overflow: hidden;
     flex-shrink: 0;
 }

 .commentaire-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .commentaire-body {
     flex: 1;
 }

 .commentaire-header {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     margin-bottom: 0.4rem;
 }

 .commentaire-auteur {
     font-size: 0.9rem;
     font-weight: 600;
     color: #ffffff;
 }

 .commentaire-username {
     font-size: 0.8rem;
     color: #7c3aed;
 }

 .commentaire-date {
     font-size: 0.75rem;
     color: #606070;
     margin-left: auto;
 }

 .commentaire-texte {
     font-size: 0.9rem;
     color: #c0c0d0;
     line-height: 1.6;
 }

 .commentaire-vide {
     text-align: center;
     padding: 2rem;
     color: #606070;
     font-size: 0.9rem;

    .commentaire-form textarea {
            min-height: 100px !important;
            font-size: 0.9rem !important;
        }
    
        .commentaire-form {
            padding: 0 0.5rem !important;
        }
    
        .notif-dropdown {
            width: 95vw !important;
            right: -10px !important;
            left: auto !important;
        }

                .commentaire-form .btn-primary {
                    width: 100% !important;
                    align-self: stretch !important;
                    padding: 0.75rem !important;
                }
        
                .reponse-form textarea {
                    min-height: 80px !important;
                    font-size: 0.9rem !important;
                    width: 100% !important;
                }
        
                .reponse-form .btn-primary {
                    width: 100% !important;
                    padding: 0.75rem !important;
                }
 }



 /* LAYOUT ARTICLE + BOUTONS TIKTOK */
 .article-container .article-layout {
     display: flex;
     gap: 1.5rem;
     position: relative;
     align-items: flex-start;
 }

 .article-main {
     flex: 1;
     min-width: 0;
 }

 /* BOUTONS TIKTOK */
 .tiktok-actions {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 1.5rem;
     position: fixed;
     top: 50%;
     transform: translateY(-50%);
     right: 2rem;
     padding: 1rem 0.5rem;
     z-index: 50;
 }

 .tiktok-btn-wrapper {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.3rem;
 }

 .tiktok-btn {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     background: #1a1d2e;
     border: 1px solid #252840;
     font-size: 1.4rem;
     cursor: pointer;
     transition: all 0.3s;
     display: flex;
     align-items: center;
     justify-content: center;
     filter: grayscale(0%);
 }

 .tiktok-btn:hover {
     background: #252840;
     transform: scale(1.1);
     filter: grayscale(0%);
 }

 .tiktok-btn.active {
     filter: grayscale(0%);
     background: rgba(226, 75, 74, 0.15);
     border-color: #e24b4a;
 }

 .tiktok-btn.favori-active {
     filter: grayscale(0%);
     background: rgba(124, 58, 237, 0.15);
     border-color: #7c3aed;
 }

 .tiktok-count {
     font-size: 0.75rem;
     color: #a0a0b0;
     text-align: center;
 }

 /* CORRIGER DISPOSITION PROFIL */
 .profil-contenu .cards-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 1.5rem;
     width: 100%;
 }

 .profil-contenu {
     padding: 2rem;
     width: 100%;
 }

 .tab-content {
     width: 100%;
 }


/* DISPOSITION PROFIL */
.profil-page .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.profil-page .article-layout {
    display: block;
}

.profil-page .tiktok-actions {
    display: none;
}


/* ===== CAROUSEL RESPONSIVE ===== */
.carousel-track .card-image {
    height: 450px !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: top center !important;
    border-radius: 0 !important;
}

.carousel-track .card-image img {
    height: 450px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
}

/* Mobile portrait */
@media (max-width: 480px) {
    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 260px !important;
    }
}

/* Mobile paysage */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 220px !important;
    }
}

/* iPad portrait */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 320px !important;
    }
}

/* iPad paysage */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 400px !important;
    }
}

/* Grand écran */
@media (min-width: 1400px) {
    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 580px !important;
    }
}/* ===== CAROUSEL À LA UNE ===== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-track .card {
    min-width: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.carousel-track .card-image {
    height: 450px !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0 !important;
}

.carousel-track .card-image img {
    height: 450px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.carousel-track .card-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
    padding: 2rem !important;
}

.carousel-track .card-title {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.carousel-track .card-desc {
    display: none !important;
}

.carousel-track .card-tag {
    background: rgba(124, 58, 237, 0.9) !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
    display: inline-block !important;
}

.carousel-track .card-footer {
    display: none !important;
}

.carousel-track .card-actions {
    display: none !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #7c3aed;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #252840;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #7c3aed;
    width: 24px;
    border-radius: 4px;
}

/* Mobile portrait */
@media (max-width: 480px) {

    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 260px !important;
    }

    .carousel-track .card-title {
        font-size: 1rem !important;
    }

    .carousel-track .card-content {
        padding: 1rem !important;
    }

    .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
}

/* Mobile paysage */
@media (max-width: 768px) and (orientation: landscape) {

    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 220px !important;
    }
}

/* iPad portrait */
@media (min-width: 481px) and (max-width: 768px) {

    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 320px !important;
    }
}

/* iPad paysage */
@media (min-width: 769px) and (max-width: 1024px) {

    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 400px !important;
    }
}

/* Grand écran */
@media (min-width: 1400px) {

    .carousel-track .card-image,
    .carousel-track .card-image img {
        height: 580px !important;
    }
}
/* ===== TITRES DE SECTIONS STYLÉS ===== */
.featured h2,
.latest h2,
.categorie-container h2,
.articles-similaires h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.featured>div h2::after,
.latest>div h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 2px;
}

/* ===== ARTICLES SIMILAIRES ===== */
.articles-similaires {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #252840;
}

.articles-similaires h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-similaires .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== CONTENU ARTICLE STYLÉ ===== */

.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #c8c8e0;
    max-width: 750px;
    margin: 1.5rem auto;
    background: #0e1122;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    border: 1px solid #1e2133;
}

.article-content p {
    margin-bottom: 1rem;
    color: #c0c0d8;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e2133;
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a78bfa;
    margin: 1.5rem 0 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    padding: 0.75rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1rem 0;
    color: #a78bfa;
    font-style: italic;
    font-size: 0.95rem;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: #c0c0d8;
}

.article-content li {
    margin-bottom: 0.4rem;
}

.article-content ul li::marker {
    color: #7c3aed;
}

.article-content code {
    background: #252840;
    color: #a78bfa;
    padding: 0.15rem 0.4rem;
    border-radius: 5px;
    font-size: 0.88rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #252840;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a78bfa;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #c0c0d8;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #c0c0d8;
}

.article-content li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

.article-content ul li::marker {
    color: #7c3aed;
}


.article-content code {
    background: #1a1d2e;
    color: #a78bfa;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: monospace;
}

.article-content pre {
    background: #1a1d2e;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #252840;
}

.article-content a {
    color: #7c3aed;
    text-decoration: none;
    border-bottom: 1px solid #7c3aed;
    transition: color 0.3s;
}

.article-content a:hover {
    color: #a78bfa;
}

.article-content p img,
.article-content h2 img,
.article-content ul img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}
/* PHOTO COUVERTURE ARTICLE */
#article-emoji {
    width: 100%;
    min-height: 350px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a0a2e, #1a1d2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
/* BOUTONS PROFIL ALIGNÉS */
.btn-edit-profil,
.btn-partager {
    padding: 0.6rem 1.2rem !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    height: 40px !important;
    white-space: nowrap !important;
}

.btn-edit-profil {
    background: transparent !important;
    border: 1px solid #252840 !important;
    color: #ffffff !important;
}

.btn-edit-profil:hover {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
}

.btn-partager {
    background: transparent !important;
    border: 1px solid #252840 !important;
    color: #ffffff !important;
}

.btn-partager:hover {
    border-color: #7c3aed !important;
    color: #7c3aed !important;
}

.profil-info-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.profil-infos {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.profil-bio {
    margin-bottom: 0.25rem !important;
    margin-top: 0.25rem !important;
}

.profil-onglets {
    margin-top: 0 !important;
}

/* BIO PROFIL */
.profil-bio {
    max-width: 400px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
}

/* ===== NOTIFICATIONS ===== */
.notif-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.notif-btn:hover {
    background: #252840;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e24b4a;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #1a1d2e;
    border: 1px solid #252840;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.notif-dropdown.ouvert {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #252840;
}

.notif-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.notif-tout-lire {
    background: transparent;
    border: none;
    color: #7c3aed;
    font-size: 0.8rem;
    cursor: pointer;
}

.notif-liste {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0;}

        /* BLOQUER SCROLL PAGE DERRIÈRE NOTIFICATIONS */
        body.notif-ouvert {
            overflow: hidden;
        }

                /* ===== NOTIFICATIONS STYLÉES ===== */
                .notif-onglets {
                    display: flex;
                    gap: 0;
                    border-bottom: 1px solid #252840;
                    padding: 0 1rem;
                }
        
                .notif-onglet {
                    background: transparent;
                    border: none;
                    color: #606070;
                    padding: 0.6rem 0.75rem;
                    font-size: 0.85rem;
                    cursor: pointer;
                    border-bottom: 2px solid transparent;
                    transition: all 0.3s;
                }
        
                .notif-onglet.active {
                    color: #7c3aed;
                    border-bottom-color: #7c3aed;
                }
        
                .notif-onglet:hover {
                    color: #ffffff;
                }
        
                .notif-avatar {
                    width: 42px;
                    height: 42px;
                    border-radius: 50%;
                    background: #7c3aed;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1rem;
                    font-weight: 600;
                    color: white;
                    overflow: visible;
                    flex-shrink: 0;
                    position: relative;
                }
        
                .notif-type-icone {
                    position: absolute;
                    bottom: -4px;
                    right: -4px;
                    font-size: 0.75rem;
                    background: #1a1d2e;
                    border-radius: 50%;
                    width: 18px;
                    height: 18px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
        
                .notif-point {
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background: #7c3aed;
                    flex-shrink: 0;
                    align-self: center;
                    margin-right: 0.25rem;
                }
        
                .notif-item {
                    display: flex;
                    gap: 0.75rem;
                    padding: 0.85rem 1.25rem;
                    border-bottom: 1px solid #252840;
                    cursor: pointer;
                    transition: background 0.2s;
                    align-items: center;
                }
        
                .notif-item:hover {
                    background: #1a1a2e;
                }
        
                .notif-item.non-lu {
                    background: rgba(124, 58, 237, 0.06);
                }
        
                .notif-texte p {
                    font-size: 0.85rem;
                    color: #c0c0d0;
                    margin: 0 0 0.25rem;
                    line-height: 1.4;
                }
        
                .notif-texte p strong {
                    color: #ffffff;
                }
        
                .notif-texte span {
                    font-size: 0.75rem;
                    color: #606070;
                }

                                /* COULEURS PAR TYPE DE NOTIFICATION */
                                .notif-item[data-type="commentaire"] {
                                    border-left: 3px solid #7c3aed;
                                }
                
                                .notif-item[data-type="like"] {
                                    border-left: 3px solid #e24b4a;
                                }
                
                                .notif-item[data-type="favori"] {
                                    border-left: 3px solid #EF9F27;
                                }
                
                                .notif-item[data-type="abonnement"] {
                                    border-left: 3px solid #1D9E75;
                                }


 /* ===== NOUVELLE PALETTE ===== */
 body {
     background: #0f1117 !important;
     color: #e2e8f0 !important;
 }

 .card {
     background: #1a1d2e !important;
     border-color: #252840 !important;
 }

 .navbar {
     background: rgba(15, 17, 23, 0.97) !important;
     border-bottom-color: #252840 !important;
 }

 .modal {
     background: #1a1d2e !important;
     border: 1px solid #252840 !important;
 }

 input,
 textarea,
 select {
     background: #0f1117 !important;
     border-color: #252840 !important;
     color: #e2e8f0 !important;
 }

 .profil-page {
     background: #0f1117 !important;
 }

 .profil-info-container {
     background: #0f1117 !important;
 }

 .article-container {
     background: #0f1117 !important;
 }

 p,
 span,
 h1,
 h2,
 h3,
 h4 {
     color: #e2e8f0;
 }

 .card-desc,
 .card-tag,
 .commentaire-texte {
     color: #94a3b8 !important;
 }
/* PHOTOS VERTICALES DANS LES CARTES */
.card-image {
    height: 220px !important;
    overflow: hidden !important;
    object-fit: cover !important;
    background-size: cover !important;
    background-position: center !important;
}

.card-image img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
}
 

 

 /* PHOTO COUVERTURE ARTICLE */
 #article-emoji {
     max-height: 500px !important;
     overflow: hidden !important;
     display: flex !important;
     align-items: center !important;
     justify-content: center !important;
     background: #0f1117 !important;
 }

 #article-emoji img {
     width: auto !important;
     max-width: 100% !important;
     max-height: 500px !important;
     object-fit: contain !important;
     border-radius: 16px !important;
 }

 .article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #d0d0e0;
    max-width: 750px;
    margin: 2rem auto;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #252840;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a78bfa;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #c0c0d8;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #c0c0d8;
}

.article-content li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

.article-content ul li::marker {
    color: #7c3aed;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid #7c3aed;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #1a1d2e;
    border-radius: 0 10px 10px 0;
    color: #a0a0b0;
    font-style: italic;
}
/* ===== LOGO ZOTECH ===== */
.nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-style: italic;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    line-height: 1;
}

.logo-texte {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===== MENU AVATAR DROPDOWN ===== */
.nav-profil-wrapper {
    position: relative;
}

.nav-profil-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

.nav-avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #1a1d2e;
    border: 1px solid #252840;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.nav-avatar-dropdown.ouvert {
    display: block;
}

.nav-avatar-dropdown a,
.nav-avatar-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-avatar-dropdown a:hover,
.nav-avatar-dropdown button:hover {
    background: #252840;
}

.nav-avatar-dropdown .dropdown-divider {
    height: 1px;
    background: #252840;
    margin: 0.25rem 0;
}

.nav-avatar-dropdown .btn-deconnexion {
    color: #e24b4a !important;
}

/* ===== NAVBAR ÉPURÉE ===== */
.navbar {
    padding: 0.75rem 2rem !important;
    gap: 0.75rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.nav-links {
    gap: 1.2rem !important;
}

.nav-links a {
    font-size: 0.82rem !important;
}

.nav-auth {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.nav-search-btn {
    padding: 0.35rem !important;
    font-size: 1rem !important;
}

.notif-btn {
    padding: 0.35rem !important;
    font-size: 1rem !important;
}

.nav-avatar {
    width: 34px !important;
    height: 34px !important;
}
/* ===== ANIMATIONS BOUTONS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

/* Effet vague au clic */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

/* Bouton connexion */
.btn-login {
    transition: all 0.3s ease !important;
}

.btn-login:hover {transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    background: linear-gradient(135deg, #6d28d9, #3b82f6) !important;
    
}

/* Bouton inscription */
.btn-signup {
    transition: all 0.3s ease !important;
}

.btn-signup:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    background: linear-gradient(135deg, #6d28d9, #3b82f6) !important;
}

/* Liens navbar */
.nav-links a {
    position: relative;
    transition: color 0.3s !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ffffff !important;
}

/* Boutons TikTok */
.tiktok-btn {
    transition: all 0.3s ease !important;
}

.tiktok-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3) !important;
}

/* Cartes */
.card {
    transition: all 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2) !important;
}
/* ===== MODAL CONFIRMATION ===== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-overlay.ouvert {
    display: flex;
}

.confirm-box {
    background: #1a1d2e;
    border: 1px solid #252840;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: confirmAppear 0.3s ease;
}

@keyframes confirmAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

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

.confirm-icone {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirm-titre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.confirm-message {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-boutons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-btn-annuler {
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #252840;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.confirm-btn-annuler:hover {
    background: #252840;
}

.confirm-btn-confirmer {
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #e24b4a, #c0392b);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.confirm-btn-confirmer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(226, 75, 74, 0.4);
}

.confirm-btn-confirmer.violet {
    background: linear-gradient(135deg, #7c3aed, #3b82f6) !important;
}

.confirm-btn-confirmer.violet:hover {
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4) !important;
}

/* ===== ICÔNES FONT AWESOME ===== */
.nav-search-btn i,
.notif-btn i {
    color: #ffffff !important;
    font-size: 1rem !important;
}

/* ===== ICÔNES PROFESSIONNELLES ===== */
.tiktok-btn i {
    font-size: 1.2rem !important;
    color: #e2e8f0 !important;
}

.tiktok-btn.active i.fa-heart {
    color: #e24b4a !important;
}

.tiktok-btn.favori-active i.fa-bookmark {
    color: #7c3aed !important;
}

.card-action-btn i {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

.card-action-btn:hover i {
    color: #ffffff !important;
}

.card-action-edit i {
    color: #7c3aed !important;
}

.card-action-delete i {
    color: #e24b4a !important;
}

.notif-btn i,
.nav-search-btn i {
    color: #ffffff !important;
    font-size: 1rem !important;
}

/* Onglets profil */
.onglet i {
    margin-right: 0.4rem !important;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1d2e;
    border: 1px solid #252840;
    color: #e2e8f0;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.succes {
    border-left: 3px solid #1D9E75;
}

.toast.erreur {
    border-left: 3px solid #e24b4a;
}

.toast.info {
    border-left: 3px solid #7c3aed;
}



/* ===== CARDS GRID DESKTOP ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0;
}

/* ===== GRAND ÉCRAN (TV, moniteur) ===== */
@media (min-width: 1400px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .card-image {
        height: 200px !important;
    }
}

/* ===== DESKTOP NORMAL ===== */
@media (min-width: 1025px) and (max-width: 1399px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .card-image {
        height: 200px !important;
    }
}

/* ===== TABLETTE / IPAD ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .card-image {
        height: 220px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .card-image img {
        height: 220px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .nav-links {
        gap: 1rem !important;
    }

    .nav-links a {
        font-size: 0.8rem !important;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-auth {
        display: flex !important;
    }

    .navbar {
        padding: 0.75rem 1rem !important;
        gap: 0.5rem !important;
    }

    .nav-links {
        display: none !important;
    }

    .logo-texte {
        font-size: 1.1rem !important;
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-auth-desktop {
        display: none !important;
    }

    .nav-desktop-only {
        display: none !important;
    }

    .hero {
        padding: 3rem 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }

    .card {
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .card-image {
        height: 200px !important;
        width: 100% !important;
        background-size: cover !important;
        background-position: center !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .card-image img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .featured,
    .latest {
        padding: 1.5rem 1rem !important;
    }

    .article-container {
        padding: 1rem !important;
    }

    .article-layout {
        flex-direction: column !important;
    }

    .tiktok-actions {
        flex-direction: row !important;
        justify-content: space-around !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #1a1d2e !important;
        border-top: 1px solid #252840 !important;
        padding: 0.75rem 1rem !important;
        z-index: 100 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .article-main {
        padding-bottom: 5rem !important;
    }

    .profil-info-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1rem !important;
    }

    .profil-infos {
        align-items: center !important;
    }

    .profil-stats {
        justify-content: center !important;
    }

    .profil-onglets {
        padding: 0 0.5rem !important;
    }

    .onglet {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.6rem !important;
    }

    .profil-contenu {
        padding: 1rem !important;
    }

    .categorie-hero {
        padding: 2rem 1rem !important;
    }

    .categorie-filtres {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.75rem 1rem !important;
    }

    .categorie-container {
        padding: 1rem !important;
    }

    .modal {
        width: 95% !important;
        padding: 1.25rem !important;
    }

    .notif-dropdown {
        width: 95vw !important;
        right: -10px !important;
        left: auto !important;
    }

    .btn-flottant {
        bottom: 5rem !important;
        right: 1rem !important;
    }

    .newsletter {
        padding: 2rem 1rem !important;
    }

    .newsletter-form {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .newsletter-form input {
        width: 100% !important;
    }

    .articles-similaires .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .carousel-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }

    .commentaire-form .btn-primary {
        align-self: stretch !important;
        width: 100% !important;
        padding: 0.75rem !important;
    }

    .commentaire-form textarea {
        min-height: 100px !important;
        font-size: 0.9rem !important;
    }

    .commentaire-form {
        padding: 0 0.5rem !important;
    }
}
/* ===== MENU HAMBURGER MOBILE ===== */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.mobile-menu.ouvert {
    display: flex;
    flex-direction: column;
}

.mobile-menu-content {
    background: #1a1d2e;
    width: 80%;
    max-width: 300px;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body.menu-ouvert {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu a:hover {
    background: #252840;
}
/* ===== NAVBAR AUTH DESKTOP ===== */
.nav-auth-desktop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-auth-mobile {
    display: none;
}

.nav-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-auth-btn:hover {
    background: #252840;
    color: #ffffff;
}

.nav-deconnexion {
    color: #e24b4a !important;
}

.nav-deconnexion:hover {
    background: rgba(226, 75, 74, 0.1) !important;
}

/* Sur mobile — cacher desktop, afficher mobile */
@media (max-width: 768px) {
    .nav-auth-desktop {
        display: none !important;
    }

    .nav-auth-mobile {
        display: flex !important;
    }
   .nav-desktop-only {
        display: none !important;
    }    
}



@media (max-width: 768px) {
    .tiktok-actions {
        flex-direction: row !important;
        justify-content: space-around !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #1a1d2e !important;
        border-top: 1px solid #252840 !important;
        padding: 1.25rem 1rem !important;
        z-index: 100 !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}
/* ===== MENU HAMBURGER PROFIL ===== */
.profil-hamburger {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    background: #1a1d2e;
    border: 1px solid #252840;
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s;
    font-size: 1rem;
}

.profil-hamburger:hover {
    background: #252840;
    border-color: #7c3aed;
}

.profil-menu-dropdown {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    width: 220px;
    background: #1a1d2e;
    border: 1px solid #252840;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.profil-menu-dropdown.ouvert {
    display: block;
}

.profil-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.profil-menu-item:hover {
    background: #252840;
}

.profil-menu-item i {
    width: 16px;
    color: #7c3aed;
}

.profil-menu-item.danger {
    color: #e24b4a !important;
}

.profil-menu-item.danger i {
    color: #e24b4a !important;
}

.profil-menu-divider {
    height: 1px;
    background: #252840;
    margin: 0.25rem 0;
}

/* CACHER ÉDITEUR PHOTO PAR DÉFAUT */
/* ===== FILTRES RECHERCHE ===== */
.recherche-filtre {
    background: #252840;
    border: 1px solid #252840;
    color: #94a3b8;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.recherche-filtre.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.recherche-filtre:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}
/* ===== FIX MOBILE ===== */
/* ===== FIX MOBILE ===== */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    overflow-x: clip;
}
/* ===== BOUTONS MENU MOBILE ===== */
#menu-mobile-auth .btn-login-mobile {
    width: 100%;
    background: transparent;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

#menu-mobile-auth .btn-login-mobile:hover {
    background: rgba(124, 58, 237, 0.1);
}

#menu-mobile-auth .btn-signup-mobile {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    border: none;
    color: white;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

#menu-mobile-auth .btn-signup-mobile:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== MENU PARTAGE ===== */
#menu-partage button:hover {
    background: #252840 !important;
    transform: translateX(3px);
    transition: all 0.2s;
}

#menu-partage button {
    transition: all 0.2s;
}

#menu-partage {
    animation: fadeIn 0.2s ease;
}

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

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

/* ===== STATS PROFIL CLIQUABLES ===== */
.stat {
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 10px;
}

.stat:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.stat:hover .stat-nombre {
    color: #7c3aed;
}

.stat:hover .stat-label {
    color: #a78bfa;
}
@keyframes splashLogo {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}