/* === NOUVELIMAG MAGAZINE - STYLE FINAL V9 === */
:root {
    --primary: #0066c4;
    --dark: #333333;
    --light: #f0f0f0;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #cccccc;
    --border-color: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 85px;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === TICKER BLEU RÉDUIT === */
.ticker-bar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: var(--primary); color: white;
    padding: 8px 0; overflow: hidden; z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.ticker-content { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker-item { padding: 0 30px; font-size: 0.85rem; font-weight: 500; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* === HEADER FIXE === */
header {
    position: fixed; top: 34px; left: 0; width: 100%;
    background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000; padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; }

.nav-links { display: flex; gap: 15px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--dark); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* === RECHERCHE === */
.search-box { display: flex; align-items: center; margin-left: 20px; }
.search-input { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 20px; outline: none; width: 160px; transition: all 0.3s ease; font-size: 0.85rem; }
.search-input:focus { border-color: var(--primary); width: 200px; }
.search-btn { background: var(--primary); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; margin-left: -25px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-btn svg { width: 14px; height: 14px; fill: white; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* === HERO AGRANDI === */
.hero {
    padding: 100px 20px;
    background: var(--light);
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--primary); margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: 1.2rem; color: var(--text-light); max-width: 800px; margin: 0 auto 40px; }

.btn { display: inline-block; padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 102, 196, 0.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* === SECTIONS & GRILLES === */
.section { padding: 50px 0; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 30px; color: var(--primary); font-weight: 700; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease; border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; color: var(--dark); }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 15px; }
.card-link { color: var(--primary); font-weight: 600; display: inline-block; margin-top: 10px; font-size: 0.9rem; }

/* === ACTUALITÉ === */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.main-article img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.main-article h2 { font-size: 1.8rem; margin-bottom: 10px; color: var(--dark); }
.main-article .category { display: inline-block; background: var(--primary); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; }
.side-list { display: flex; flex-direction: column; gap: 20px; }
.side-item { display: flex; gap: 15px; align-items: flex-start; }
.side-item img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; }
.side-item h4 { font-size: 1rem; margin-bottom: 5px; color: var(--dark); }
.side-item .time { font-size: 0.8rem; color: var(--text-light); }

/* === BANNIÈRES ADAPTATIVES === */
.ad-banner { background: var(--light); display: flex; align-items: center; justify-content: center; margin: 20px auto; text-align: center; overflow: hidden; }
.ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-970x250 { width: 970px; height: 250px; max-width: 100%; }
.ad-300x250 { width: 300px; height: 250px; }
.ad-300x600 { width: 300px; height: 600px; }

/* === MAGAZINE === */
.mag-issue { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; border: 1px solid var(--border-color); }
.mag-info { flex: 1; min-width: 250px; }
.mag-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--dark); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.badge.free { background: #e6f7ee; color: #2ecc71; }
.download-btn { padding: 10px 20px; border-radius: 6px; font-weight: 600; min-width: 160px; font-size: 0.9rem; border: none; cursor: pointer; background: var(--primary); color: white; text-align: center; }
.download-btn:hover { background: #0055a3; transform: translateY(-2px); }

/* === CONTACT INFO === */
.contact-info-box { background: var(--light); padding: 2rem; border-radius: 8px; margin-bottom: 2rem; }
.contact-item { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 10px; }
.contact-item strong { min-width: 100px; display: inline-block; color: var(--primary); }

/* === FOOTER CHIC === */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 30px; border-top: 3px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.2rem; font-weight: 600; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 2px; background: var(--primary); }
.footer-col a { color: var(--footer-text); display: block; margin-bottom: 10px; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-form input { flex: 1; padding: 12px; border: 1px solid #444; background: #2a2a2a; color: white; border-radius: 4px; outline: none; }
.newsletter-form button { padding: 12px 20px; background: var(--primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { width: 40px; height: 40px; background: #2a2a2a; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; color: white; }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #333; color: #888; font-size: 0.9rem; }
.footer-bottom a { color: #aaa; margin: 0 10px; }
.footer-bottom a:hover { color: var(--primary); }

/* === BANNIÈRE COOKIES === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 20px; z-index: 9999; border-top: 4px solid var(--primary);
    display: none;
}
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.cookie-text h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.cookie-text p { font-size: 0.9rem; color: #555; line-height: 1.5; }
.cookie-text a { color: var(--primary); text-decoration: underline; font-weight: 600; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.btn-cookie { padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; transition: all 0.3s ease; }
.btn-param { background: white; border: 1px solid #ccc; color: #333; }
.btn-refuse { background: #e0e0e0; color: #333; }
.btn-accept { background: #28a745; color: white; }
.btn-accept:hover { background: #218838; }

@media (min-width: 768px) {
    .cookie-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .cookie-text { flex: 1; padding-right: 20px; }
    .cookie-buttons { flex: 0 0 auto; }
}

/* === MOBILE === */
@media (max-width: 768px) {
    .ticker-bar { display: none; }
    header { top: 0; }
    body { padding-top: 70px; }
    .news-layout { grid-template-columns: 1fr; }
    .nav-links, .search-box { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .mag-issue { flex-direction: column; align-items: flex-start; }
    .download-btn { width: 100%; margin-top: 10px; }
    .ad-970x250, .ad-300x250, .ad-300x600 { width: 100%; height: auto; min-height: 100px; }
}