:root {
    --blue: #00A3E0;
    --green: #73C92D;
    --grey: #91999F;
    --bg-color: #f8f9fa;
}

body { font-family: 'Trebuchet MS', sans-serif; background-color: var(--bg-color); color: #333; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.container { width: 100%; max-width: 90%; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
h1, h2, h3 { color: var(--blue); text-align: center; }

.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
input[type="url"] { flex: 1; padding: 12px; border: 1px solid var(--grey); border-radius: 5px; font-family: 'Trebuchet MS', sans-serif; }
button { padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-family: 'Trebuchet MS', sans-serif; font-weight: bold; transition: opacity 0.3s; }
button:hover { opacity: 0.8; }

.btn-add { background-color: var(--grey); color: white; }
.btn-submit { background-color: var(--blue); color: white; width: 100%; font-size: 1.1em; margin-top: 15px; }
.btn-delete { background-color: var(--grey); color: white; margin-top: 10px; width: 100%; }
.btn-save-note { background-color: var(--blue); color: white; margin-top: 10px; width: 100%; }
.btn-small { padding: 5px 10px; font-size: 0.8em; background-color: var(--grey); color: white; display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; }

.queue-section { border: 1px solid var(--blue); border-radius: 8px; padding: 15px; margin-bottom: 25px; background-color: #fcfcfc; }
.queue-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.queue-item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 10px; border: 1px solid #eee; border-radius: 5px; }
.queue-item label { display: flex; align-items: center; gap: 10px; word-break: break-all; cursor: pointer; flex: 1; margin-right: 15px; }
.queue-item input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; cursor: pointer; }
.queue-delete-btn { background: none; color: var(--grey); padding: 5px; cursor: pointer; }
.queue-delete-btn:hover { color: red; }

#loader { display: none; text-align: center; margin: 20px 0; color: var(--blue); }

.result-card, details.history-card { border-left: 5px solid var(--green); background: #fdfdfd; margin-top: 20px; border-radius: 0 5px 5px 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.result-card { padding: 15px; }
details.history-card summary { padding: 15px; cursor: pointer; color: var(--blue); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.history-card summary::-webkit-details-marker { display: none; }
details.history-card summary .fa-chevron-down { transition: transform 0.3s; }
details.history-card[open] summary .fa-chevron-down { transform: rotate(180deg); }
.details-content { padding: 0 15px 15px 15px; border-top: 1px dashed rgba(0,0,0,0.1); margin-top: 10px; padding-top: 15px; }

.slider-container { width: 100%; border-radius: 5px; overflow: hidden; margin-bottom: 20px; background: #000; position: relative; }
.slider-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-wrapper::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; justify-content: center; align-items: center; }
.slide img { width: 100%; height: 250px; object-fit: cover; }
.slider-hint { text-align: center; font-size: 0.8em; color: var(--grey); margin-top: 5px; margin-bottom: 15px; }

.titres-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    margin: 0;
}
.titres-title { margin-top: 0; font-weight: bold; }
.titre-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,0,0,0.05); gap: 10px; }
.titre-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.condenses-container { background-color: rgba(115, 201, 45, 0.1); padding: 15px; border-radius: 5px; margin-bottom: 15px; }
.condense-title { color: var(--green); font-weight: bold; margin-bottom: 10px; margin-top: 0; }
.condense-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--green); }
.condense-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.url-tags { font-size: 0.9em; margin-bottom: 15px; }
.url-tags a { color: var(--blue); text-decoration: none; word-break: break-all; }
.url-tags a:hover { text-decoration: underline; }

.note-container { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.1); }
.note-container label { display: block; color: var(--blue); font-weight: bold; margin-bottom: 10px; }
.note-input { width: 100%; padding: 10px; border: 1px solid var(--grey); border-radius: 5px; font-family: 'Trebuchet MS', sans-serif; resize: vertical; min-height: 80px; box-sizing: border-box; }

.first-letter-cap::first-letter { text-transform: uppercase; }

.queue-accordion {
    margin-top: 10px;
    border-radius: 5px;
    border-left: 5px solid var(--blue);
}
.queue-accordion summary {
    background-color: white;
    border-radius: 5px;
}
.group-checkbox {
    accent-color: var(--blue);
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.keywords-list {
    font-size: 0.85em;
    color: var(--grey);
    margin-top: 8px;
    margin-left: 28px;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    width: calc(100% - 38px);
    box-sizing: border-box;
}

/* --- ADMINISTRATION --- */
.tabs { display: flex; border-bottom: 2px solid var(--blue); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: 1.1em; cursor: pointer; color: var(--grey); transition: 0.3s; font-family: 'Trebuchet MS', sans-serif; }
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); font-weight: bold; margin-bottom: -2px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.admin-section { border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 20px; background: #fcfcfc; }
.admin-section h3 { text-align: left; margin-top: 0; color: var(--blue); border-bottom: 1px dashed var(--blue); padding-bottom: 10px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.form-group label { font-weight: bold; margin-bottom: 5px; color: #333; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"] { padding: 10px; border: 1px solid var(--grey); border-radius: 5px; font-family: 'Trebuchet MS', sans-serif; }
.form-group input:focus { border-color: var(--blue); outline: none; }

.toggle-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: bold; }
.toggle-switch input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }

.nav-links { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.nav-links a { color: var(--grey); text-decoration: none; font-weight: bold; }
.nav-links a:hover { color: var(--blue); }

table {
    table-layout: fixed;
    width: 100%;
}

/* --- MISE EN FORME DES ARTICLES RSS (INDEX ET ADMIN) --- */
.rss-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid var(--grey);
    border-radius: 8px;
    align-items: flex-start;
}

.rss-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.rss-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; 
}

.rss-site-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: bold;
    font-size: 0.9em;
}

.rss-title {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.rss-title a {
    text-decoration: none;
    color: #333;
}

.rss-title a:hover {
    color: var(--green);
}

.rss-desc {
    margin: 0;
    color: #555;
    font-size: 0.95em;
    line-height: 1.4;
}

.rss-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rss-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

/* --- SOUS NAVIGATION RSS --- */
.sub-nav {
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
}

.sub-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    color: var(--grey);
    border-bottom: 3px solid transparent;
    font-family: 'Trebuchet MS', sans-serif;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sub-btn:hover {
    color: var(--blue);
}

.sub-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    font-weight: bold;
}

/* --- BADGES POUR LES COMPTEURS --- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 20px;
    min-width: 22px;
    height: 22px;
    font-size: 0.85em;
    font-weight: bold;
    padding: 0 6px;
}

.badge.bg-blue { background-color: var(--blue); }
.badge.bg-green { background-color: var(--green); }
.badge.bg-grey { background-color: var(--grey); }
.badge.bg-yellow { background-color: #f1c40f; color: #333; }

/* --- MODALE DE PURGE (Global) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px; box-sizing: border-box;
}

.modal-content {
    background: white; padding: 30px; border-radius: 10px;
    width: 100%; max-height: 90vh; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; box-sizing: border-box;
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 28px; cursor: pointer; color: var(--grey);
    line-height: 1; z-index: 10;
}

.close-modal:hover { color: red; }

/* --- BOUTON RETOUR EN HAUT --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--blue);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s, opacity 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#back-to-top:hover {
    background-color: #0082b3;
    transform: scale(1.1);
}

/* --- BOUTONS DE TRI MANUEL --- */
.manual-sort-buttons button {
    background: transparent;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    color: var(--grey);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 1.1em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.manual-sort-buttons button.favori:hover { background: #f1c40f; color: white; border-color: #f1c40f; }
.manual-sort-buttons button.test:hover { background: var(--grey); color: white; border-color: var(--grey); }
.manual-sort-buttons button.promo:hover { background: var(--green); color: white; border-color: var(--green); }
.manual-sort-buttons button.ignore:hover { background: #dc3545; color: white; border-color: #dc3545; }
.manual-sort-buttons button.ai-queue:hover { background: var(--blue); color: white; border-color: var(--blue); }
.manual-sort-buttons button.share:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* --- TABLEAU DE BORD --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.dash-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.dash-card:hover { transform: translateY(-3px); }

.dash-card:nth-child(1), .dash-card:nth-child(2), .dash-card:nth-child(3) { border-bottom-color: var(--blue); }
.dash-card.promo { border-bottom-color: var(--green); }
.dash-card.test { border-bottom-color: var(--grey); }
.dash-card.ignore { border-bottom-color: #dc3545; }
.dash-card.favoris { border-bottom-color: #f1c40f; }

.dash-card i { font-size: 2em; color: var(--grey); margin-bottom: 10px; }
.dash-card.promo i { color: var(--green); }
.dash-card.ignore i { color: #dc3545; }

.dash-card span { font-size: 2.5em; font-weight: bold; color: #333; line-height: 1; margin-bottom: 5px; font-family: 'Trebuchet MS', sans-serif; }
.dash-card p { margin: 0; color: var(--grey); font-size: 0.9em; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; }

.dashboard-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    font-family: 'Trebuchet MS', sans-serif;
}
.dashboard-footer p { margin: 0; color: #555; display: flex; align-items: center; gap: 8px; }
.dashboard-footer strong { color: var(--blue); }

.summary-top-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.summary-titles-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}
.slider-wrapper::-webkit-scrollbar {
    display: none; 
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--blue);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0; 
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-container:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: var(--blue); color: white; }

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.article-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: 'Trebuchet MS', sans-serif;
}

.article-title-mobile { display: none; } 

.article-title-desktop {
    color: var(--blue);
    text-decoration: none;
    font-size: 1.15em;
    font-weight: bold;
}

.article-image-container { flex-shrink: 0; }
.article-image-container img, .article-image-container .img-placeholder {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
}
.article-image-container .img-placeholder {
    background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: var(--grey);
}

.article-main-content {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
}

.article-meta {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.4;
    margin-bottom: 12px; border-bottom: 1px dashed var(--grey); padding-bottom: 10px;
}
.article-date { margin-left: auto; color: var(--grey); font-size: 0.85em; white-space: nowrap; }
.article-desc { margin: 0 0 15px 0; font-size: 0.9em; color: #555; line-height: 1.5; }
.article-actions { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 10px; }

/* ==========================================
   SUJETS EN ATTENTE : RESPONSIVE
   ========================================== */
.queue-summary {
    display: flex; align-items: center; justify-content: space-between; padding: 15px; cursor: pointer;
}
.queue-summary-info { display: flex; align-items: center; gap: 15px; }
.queue-subject-details { display: flex; flex-direction: column; }
.queue-subject-title { font-size: 1.1em; font-weight: bold; color: var(--blue); }
.queue-subject-title::first-letter { text-transform: uppercase; }
.queue-subject-meta { font-size: 0.8em; color: var(--grey); font-weight: normal; margin-top: 3px; }
.queue-summary-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 767px) {
    .article-card { flex-direction: column; gap: 15px; }
    
    .article-title-mobile { display: block; margin: 0 0 10px 0; font-size: 1.2em; line-height: 1.3; }
    .article-title-mobile a { color: var(--blue); text-decoration: none; }
    
    .article-title-desktop, .desktop-separator { display: none; } 
    
    .article-image-container img, .article-image-container .img-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; 
    }
    
    .article-meta { margin-bottom: 10px; padding-bottom: 5px; }
    .article-date { margin-left: 0; } 
    
    .queue-summary { flex-direction: column; align-items: flex-start; gap: 15px; }
    .queue-summary-actions { 
        width: 100%; 
        justify-content: center; 
        position: relative; 
        flex-wrap: wrap; 
    }
    .queue-chevron { 
        position: absolute; 
        right: 0; 
        top: 50%;
        transform: translateY(-50%); 
        margin: 0; 
    }
}

/* ==========================================
   BOUTONS SOUS-MENU ET MODE STORY
   ========================================== */
.sub-nav-actions {
    margin-left: auto; 
    display: flex; 
    gap: 8px;
}

.btn-magic-refresh {
    background-color: var(--blue);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
}

.btn-story-mode {
    display: none; 
    background-color: #f39c12; 
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
}

/* ==========================================
   DESIGN DE LA FENÊTRE STORY MODE
   ========================================== */
.story-overlay {
    position: fixed; 
    top: 0; left: 0; 
    width: 100vw; height: 100dvh; 
    background: #111; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column;
    font-family: 'Trebuchet MS', sans-serif;
    overflow: hidden; 
}

.story-close {
    position: absolute; 
    top: 15px; right: 15px; 
    background: rgba(0,0,0,0.6); 
    border: none; color: white; 
    font-size: 24px; width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer; z-index: 10001;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
}

.story-favorite {
    position: absolute; 
    top: 15px; left: 15px; 
    background: rgba(0,0,0,0.6); 
    border: none; color: white; 
    font-size: 20px; width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer; z-index: 10001;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
    transition: color 0.3s;
}

.story-favorite:hover {
    color: #f1c40f;
}

.story-share {
    position: absolute; 
    top: 65px; /* Modifié : on descend le bouton */
    left: 15px; /* Modifié : aligné à gauche */
    background: rgba(0,0,0,0.6); 
    border: none; color: white; 
    font-size: 18px; width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer; z-index: 10001;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
    transition: color 0.3s, background 0.3s;
}

.story-share:hover {
    color: var(--blue);
}

.story-undo {
    position: absolute; 
    top: 115px; /* Modifié : on descend encore plus */
    left: 15px; /* Modifié : aligné à gauche */
    background: rgba(0,0,0,0.6); 
    border: none; color: white; 
    font-size: 18px; width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer; z-index: 10001;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0; 
    transition: color 0.3s, background 0.3s;
}

.story-undo:hover {
    color: #e74c3c;
}

.story-counter {
    position: absolute; 
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6); 
    color: white; 
    font-size: 0.85em; 
    padding: 5px 12px; 
    border-radius: 15px; 
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

.story-progress-container {
    position: absolute; 
    top: 5px; left: 5px; right: 5px; 
    height: 4px; display: flex; gap: 4px; z-index: 10001;
}

.story-progress-bar { 
    flex: 1; background: rgba(255,255,255,0.3); border-radius: 2px; 
}
.story-progress-bar.active { background: white; }

.story-content {
    flex: 1; position: relative; display: flex; flex-direction: column; color: white; overflow: hidden; width: 100%;
}

.story-image {
    width: 100%; height: 45vh; object-fit: cover; border-radius: 0 0 20px 20px;
    background: #222; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.story-text-container {
    padding: 20px; flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 90px; 
    width: 100%; box-sizing: border-box; word-wrap: break-word; 
}

.story-meta { font-size: 0.85em; color: #aaa; margin-bottom: 10px; display: flex; align-items: center; gap: 8px;}
.story-title { font-size: 1.4em; font-weight: bold; margin: 0 0 15px 0; line-height: 1.3; }
.story-title a { color: white; text-decoration: none; }
.story-desc { font-size: 1em; line-height: 1.6; color: #ddd; text-align: justify; }

.story-actions {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; 
    display: flex; justify-content: space-between; gap: 10px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.95)); z-index: 10000;
    box-sizing: border-box; 
}

.btn-story {
    flex: 1; border: none; padding: 12px 5px; border-radius: 8px; color: white; font-weight: bold; 
    cursor: pointer; font-size: 0.85em; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.btn-story.ai-queue { background-color: var(--blue); }
.btn-story.test { background-color: var(--grey); }
.btn-story.promo { background-color: var(--green); }
.btn-story.ignore { background-color: #dc3545; }

/* ==========================================
   MENU DÉROULANT MOBILE (TABS)
   ========================================== */
.mobile-tabs { display: none; margin-bottom: 20px; }
.mobile-tabs select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--blue);
    font-weight: bold;
    background-color: white;
    font-family: 'Trebuchet MS', sans-serif;
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A3E0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.mobile-tabs select:focus { outline: none; border-color: var(--green); }

/* CSS additionnel pour le Planificateur (Drag & Drop) */
.planner-drop-zone { transition: border-color 0.3s, background-color 0.3s; }
.planner-item { background: white; border: 1px solid #eee; border-left: 4px solid var(--blue); border-radius: 8px; padding: 12px; cursor: grab; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 10px; }
.planner-item:active { cursor: grabbing; }
.planner-item.dragging { opacity: 0.5; }
.planner-day-title { margin-top: 0; margin-bottom: 10px; color: var(--blue); display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 767px) {
    .btn-story-mode { display: inline-flex; align-items: center; justify-content: center; }
    .desktop-tabs { display: none !important; }
    .mobile-tabs { display: block; }
}

@media (min-width: 768px) {
    .summary-top-section {
        flex-direction: row; 
        align-items: stretch;
    }
    
    .slider-container {
        margin: 0;
        width: 250px; 
        flex-shrink: 0;
    }
}

@media (max-width: 600px) { 

	.input-group { 
		flex-direction: column;
	}
	
	.titre-item {
		flex-direction: column;
		align-items: flex-start; 
	}

	.rss-card {
        flex-direction: column;
    }
    .rss-image {
        width: 100%;
        height: 180px;
    }
}