/* LECYCLONEMAG - CONFIGURATION STYLE PROFESSIONNELLE (RDC)
*/

:root {
    --rdc-blue: #007FFF;
    --rdc-red: #CE1126;
    --rdc-yellow: #FAD201;
    --bg: #f0f2f5;
    --white: #ffffff;
    --text: #1a1a1a;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Roboto', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    line-height: 1.6;
}

/* 1. TOP NAV */
.top-nav { 
    background: #fff; 
    font-size: 11px; 
    padding: 8px 15px; 
    display: flex; 
    justify-content: space-between; 
    color: #666; 
    border-bottom: 1px solid #ddd;
}

/* 2. HEADER */
.header-main {
    background: var(--rdc-blue); 
    color: white; 
    padding: 15px;
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.6rem; 
    letter-spacing: -1px; 
    font-weight: 700;
}

.logo span { color: var(--rdc-yellow); }

.search-btn { 
    position: absolute; 
    right: 20px; 
    cursor: pointer; 
    font-size: 1.2rem; 
}

/* 3. CATEGORIES NAV */
.cat-nav {
    display: flex; 
    overflow-x: auto; 
    background: white; 
    padding: 12px 15px;
    gap: 20px; 
    border-bottom: 2px solid #eee; 
    white-space: nowrap;
}

.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav a { 
    text-decoration: none; 
    color: #444; 
    font-size: 0.9rem; 
    font-weight: 600; 
    text-transform: uppercase;
}

.cat-nav a.active { 
    color: var(--rdc-blue); 
    border-bottom: 2px solid var(--rdc-blue); 
}

/* 4. FLASH INFO */
.flash-container { 
    background: #fff; 
    padding: 10px; 
    display: flex; 
    align-items: center; 
    border-bottom: 3px solid var(--rdc-yellow); 
}

.flash-label { 
    background: var(--rdc-red); 
    color: white; 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    margin-right: 15px; 
}

/* 5. LA UNE (MAIN NEWS CARD) */
.main-news-card {
    height: 380px; 
    margin: 15px; 
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative; 
    overflow: hidden; 
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow);
}

.card-overlay {
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, transparent 100%);
}

.card-overlay h2 { 
    font-size: 1.6rem; 
    line-height: 1.2; 
    font-family: 'Montserrat', sans-serif; 
    color: #ffffff !important; /* Force le blanc */
    margin-bottom: 10px;
}

.tag-urgent { 
    background: var(--rdc-red); 
    color: #fff;
    padding: 4px 12px; 
    border-radius: 5px; 
    font-size: 0.7rem; 
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.card-meta { 
    color: var(--rdc-yellow); 
    font-size: 0.75rem; 
    font-weight: 500;
}

/* 6. TENDANCES (TRENDING) */
.title-divider { 
    padding: 10px 15px; 
    font-size: 1.2rem; 
    font-family: 'Montserrat'; 
    border-left: 6px solid var(--rdc-blue); 
    margin-left: 15px; 
    margin-top: 25px; 
}

.trending-scroll { 
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    padding: 15px; 
}

.trending-scroll::-webkit-scrollbar { display: none; }

.trend-item { 
    background: white; 
    min-width: 260px; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: var(--shadow); 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

.trend-item .number { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: var(--rdc-blue); 
    opacity: 0.2; 
}

/* 7. NEWS FEED (LES DERNIÈRES INFOS) */
.feed { padding: 15px; display: grid; gap: 15px; }

.feed-item { 
    background: white; 
    border-radius: 18px; 
    padding: 12px; 
    display: flex; 
    gap: 15px; 
    box-shadow: var(--shadow); 
    align-items: center;
}

.item-img { 
    width: 110px; 
    height: 100px; 
    border-radius: 12px; 
    background-size: cover; 
    background-position: center;
    flex-shrink: 0; 
    background-color: #eee;
}

.item-info { flex: 1; }

.cat-label { 
    font-size: 0.65rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin-bottom: 5px;
    display: inline-block;
}

.blue { color: var(--rdc-blue); }
.red { color: var(--rdc-red); }
.yellow { color: #b8860b; }

.feed-item h4 { 
    font-size: 1rem; 
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

.meta-small { 
    font-size: 0.7rem; 
    color: #888; 
    margin-top: 8px; 
    display: block; 
}

/* 8. PUBLICITÉ */
.ad-banner { padding: 0 15px; margin: 15px 0; }
.ad-box { 
    background: #f8fbff; 
    border: 1px dashed var(--rdc-blue); 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center; 
    color: #777; 
    font-size: 0.85rem; 
}

/* 9. BUTTONS & FOOTER */
.load-more { 
    width: calc(100% - 30px); 
    margin: 25px 15px; 
    padding: 18px; 
    border-radius: 12px; 
    border: none; 
    background: var(--rdc-blue); 
    color: white; 
    font-weight: bold; 
    font-size: 1rem; 
    box-shadow: 0 4px 15px rgba(0,127,255,0.3);
    cursor: pointer;
}

.footer-pro { 
    background: #111; 
    color: white; 
    padding: 50px 20px; 
    text-align: center; 
}

.footer-logo { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    font-family: 'Montserrat'; 
}

.footer-logo span { color: var(--rdc-yellow); }

.social-links { margin: 20px 0; display: flex; justify-content: center; gap: 20px; }

.legal { font-size: 0.75rem; color: #666; margin-top: 30px; }


/* --- LE CARROUSEL (A LA UNE) - CORRECTION DE LA HAUTEUR --- */

.carousel-container {
    margin: 15px;
    height: 450px; /* AUGMENTE CETTE VALEUR pour un effet plus grand */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background-color: #f0f0f0; /* Couleur de secours pour le loader */
}

.carousel-slide {
    display: none; /* Caché par défaut, le JS l'active */
    width: 100%;
    height: 100%;
    background-size: cover; /* Important : l'image doit couvrir tout l'espace */
    background-position: center; /* Centre l'image */
    position: relative;
    animation: fadeEffect 1s ease-in-out; /* Animation plus douce */
}

/* On s'assure que le fond ne s'écrase pas */
.carousel-slide[style*="background-image"] {
    height: 100% !important;
}

@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 20px;
    /* Dégradé plus prononcé pour la lisibilité sur mobile */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
}

.carousel-overlay h2 {
    font-size: 1.8rem; /* Titre plus grand pour la Une */
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff !important; /* Force le blanc */
    margin-bottom: 5px;
}





/* Points de navigation (facultatif) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}
.dot {
    height: 8px; width: 8px; margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%; display: inline-block;
}
.dot.active { background-color: var(--rdc-yellow); }





/* --- SECTION PUBLICITÉ RESPONSIVE --- */
.ad-banner {
    margin: 20px 0;
    overflow: hidden;
}



/* On cache la barre de défilement pour le look "app" */
.ad-slider::-webkit-scrollbar { display: none; }




.ad-box {
    flex: 0 0 85%;
    min-width: 280px;
    height: 140px; /* Un peu plus haut pour les images */
    border-radius: 15px;
    display: flex;
    align-items: flex-end; /* Texte en bas de l'image */
    justify-content: flex-start;
    text-align: left;
    scroll-snap-align: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none; /* Plus besoin de bordures pointillées */
}

.ad-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 15px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* IMPORTANT pour le mouvement doux */
    -webkit-overflow-scrolling: touch;
}

/* Effet au survol */
.ad-box:hover {
    transform: translateY(-2px);
    transition: 0.3s;
}

@media (min-width: 768px) {
    .ad-box {
        flex: 0 0 320px;
    }
}


.ad-box p {
    font-size: 0.85rem;
    color: #444;
    padding: 15px;
    font-weight: 500;
}

.ad-box strong {
    color: var(--rdc-blue);
    font-size: 0.7rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}