/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.7; color: #222; background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.top-bar { background: var(--color-primary, #1a3a6b); color: #e0eaff; font-size: .8rem; padding: 6px 0; text-align: center; }
.top-bar a { color: var(--color-accent, #e8001c); font-weight: 700; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #e4eaf3; box-shadow: 0 1px 8px rgba(0,0,0,.07); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 160px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.navbar-logo img { height: 150px; width: auto; max-width: 220px; object-fit: contain; }
.navbar-logo span { font-size: 1.1rem; font-weight: 800; color: var(--color-primary, #1a3a6b); margin-left: 10px; }
.navbar-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.navbar-menu li a { color: #333; font-size: .88rem; font-weight: 500; padding: 7px 12px; border-radius: 6px; transition: background .15s, color .15s; white-space: nowrap; }
.navbar-menu li a:hover, .navbar-menu li a.active { background: #f0f5ff; color: var(--color-primary, #1a3a6b); }
.navbar-menu li.nav-cta a { background: var(--color-accent, #e8001c); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 6px; margin-left: 6px; }
.navbar-menu li.nav-cta a:hover { opacity: .9; }
.navbar-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar-burger span { display: block; height: 2px; width: 24px; background: #333; border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbar-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.open span:nth-child(2) { opacity: 0; }
.navbar-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.site-header { background: linear-gradient(135deg, var(--color-primary, #1a3a6b) 0%, #0d2347 100%); color: #fff; padding: 64px 0 56px; text-align: center; position: relative; overflow: hidden; }
.site-header::before { content: ''; position: absolute; inset: 0; background: url('/img/hero-bg.jpg') center/cover no-repeat; opacity: .15; }
.site-header .container { position: relative; z-index: 1; }
.site-header h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 16px; line-height: 1.2; max-width: 800px; margin-left: auto; margin-right: auto; }
.site-header .intro { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: .82rem; opacity: .7; margin-bottom: 20px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { opacity: 1; }

/* ── Page header (catégorie, article) ──────────────────────────────────── */
.page-header { background: var(--color-primary, #1a3a6b); color: #fff; padding: 40px 0 36px; text-align: center; }
.page-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.page-header .desc { font-size: 1rem; opacity: .85; max-width: 600px; margin: 0 auto; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.btn-primary { display: inline-block; background: var(--color-accent, #e8001c); color: #fff !important; font-weight: 700; padding: 14px 32px; border-radius: 8px; font-size: 1rem; transition: opacity .2s, transform .15s; }
.btn-primary:hover { opacity: .9; transform: translateY(-2px); }
.btn-outline { display: inline-block; border: 2px solid var(--color-primary, #1a3a6b); color: var(--color-primary, #1a3a6b) !important; font-weight: 600; padding: 10px 24px; border-radius: 8px; font-size: .9rem; transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--color-primary, #1a3a6b); color: #fff !important; }

/* ── Section titres ────────────────────────────────────────────────────── */
.section-title { font-size: 1.7rem; font-weight: 800; color: var(--color-primary, #1a3a6b); text-align: center; margin-bottom: 8px; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--color-accent, #e8001c); margin: 10px auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; color: #666; font-size: 1rem; margin-bottom: 36px; }

/* ── Catégories homepage ───────────────────────────────────────────────── */
.categories-section { padding: 56px 0; background: #f8faff; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.cat-card { background: #fff; border-radius: 12px; padding: 28px 20px; border-top: 3px solid var(--color-primary, #1a3a6b); box-shadow: 0 2px 10px rgba(0,0,0,.07); transition: transform .2s, box-shadow .2s; text-align: center; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.cat-card h3 { font-size: 1rem; font-weight: 700; color: var(--color-primary, #1a3a6b); margin-bottom: 8px; }
.cat-card p { font-size: .85rem; color: #666; line-height: 1.5; }

/* ── Articles grid ─────────────────────────────────────────────────────── */
.articles-section { padding: 56px 0; background: #fff; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.article-card { background: #fff; border-radius: 12px; border: 1px solid #e8eef8; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.article-card-body { padding: 20px; }
.article-card-cat { font-size: .75rem; font-weight: 700; color: var(--color-accent, #e8001c); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.article-card-title { font-size: .97rem; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; line-height: 1.4; }
.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--color-primary, #1a3a6b); }
.article-card-excerpt { font-size: .85rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.article-card-link { font-size: .83rem; font-weight: 600; color: var(--color-primary, #1a3a6b); }
.article-card-date { font-size: .75rem; color: #999; margin-top: 10px; }
.badge-pilier { display: inline-block; background: #fff3cd; color: #856404; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }

/* ── Article page ──────────────────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0; align-items: start; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-primary, #1a3a6b); margin: 36px 0 14px; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; color: #222; margin: 24px 0 10px; }
.article-content p { margin-bottom: 18px; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 6px; line-height: 1.7; }
.article-content strong { color: #1a1a2e; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: .82rem; color: #888; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 90px; }
.sidebar-block { background: #f8faff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #e8eef8; }
.sidebar-block h4 { font-size: .9rem; font-weight: 700; color: var(--color-primary, #1a3a6b); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--color-accent, #e8001c); }
.sidebar-links li { list-style: none; padding: 6px 0; border-bottom: 1px solid #e8eef8; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: .85rem; color: #333; font-weight: 500; }
.sidebar-links a:hover { color: var(--color-primary, #1a3a6b); }
.sidebar-cta { background: var(--color-primary, #1a3a6b); color: #fff; border-radius: 12px; padding: 22px 18px; text-align: center; }
.sidebar-cta h4 { color: #fff; border-bottom-color: rgba(255,255,255,.3); margin-bottom: 10px; }
.sidebar-cta p { font-size: .85rem; opacity: .9; margin-bottom: 14px; }
.sidebar-cta a { background: var(--color-accent, #e8001c); color: #fff !important; display: block; padding: 10px; border-radius: 6px; font-weight: 700; font-size: .88rem; }

/* ── Page article sponsorisé ───────────────────────────────────────────── */
.sponsoring-hero { background: linear-gradient(135deg, #1a1a2e, var(--color-primary, #1a3a6b)); color: #fff; padding: 56px 0; text-align: center; }
.sponsoring-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 16px; }
.sponsoring-hero p { font-size: 1.05rem; opacity: .9; max-width: 600px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 36px 0; }
.pricing-card { background: #fff; border-radius: 16px; padding: 32px 28px; border: 2px solid #e8eef8; text-align: center; transition: border-color .2s, transform .2s; }
.pricing-card:hover { border-color: var(--color-primary, #1a3a6b); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--color-primary, #1a3a6b); background: #f0f6ff; }
.pricing-card .price { font-size: 2.4rem; font-weight: 900; color: var(--color-primary, #1a3a6b); }
.pricing-card .price-label { font-size: .85rem; color: #888; margin-bottom: 20px; }
.pricing-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: #1a1a2e; }
.pricing-card ul { text-align: left; list-style: none; margin: 16px 0; }
.pricing-card ul li { padding: 5px 0; font-size: .88rem; color: #444; }
.pricing-card ul li::before { content: "✓ "; color: var(--color-primary, #1a3a6b); font-weight: 700; }
.stats-bar { display: flex; justify-content: center; gap: 40px; background: #f8faff; padding: 32px; border-radius: 12px; margin: 36px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .val { font-size: 2rem; font-weight: 900; color: var(--color-primary, #1a3a6b); }
.stat-item .lbl { font-size: .82rem; color: #666; }

/* ── RSS / Actualités ──────────────────────────────────────────────────── */
.actu-list { display: flex; flex-direction: column; gap: 16px; }
.actu-item { background: #f8faff; border-left: 3px solid var(--color-accent, #e8001c); border-radius: 0 8px 8px 0; padding: 14px 18px; }
.actu-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.actu-item .actu-source { font-size: .75rem; color: #888; }
.actu-item a { color: var(--color-primary, #1a3a6b); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: #0d1f3c; color: #aab8cc; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-about p { font-size: .85rem; line-height: 1.7; margin-top: 10px; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .84rem; color: #aab8cc; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3a5f; padding-top: 20px; text-align: center; font-size: .78rem; color: #667; }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; }
.navbar-search-form { display:flex; align-items:center; margin-left:32px; border-left: 1px solid rgba(0,0,0,.1); padding-left:24px; }
.navbar-search-form input[type="search"] {
  width:170px; padding:7px 14px 7px 34px;
  border:none; border-radius:20px;
  font-size:.82rem;
  background: rgba(255,255,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.65)' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  color:#fff; outline:none;
  transition:width .3s, background-color .3s;
  -webkit-appearance:none;
}
.navbar-search-form input[type="search"]::placeholder { color:rgba(255,255,255,.55); }
.navbar-search-form input[type="search"]:focus { width:230px; background-color:rgba(255,255,255,.25); }
.navbar-search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance:none; }
@media(max-width:900px){ .navbar-search-form { display:none; } }
.search-form-page { display:flex; gap:0; max-width:540px; margin:20px auto 0; }
.search-form-page input { flex:1; padding:12px 16px; border:none; border-radius:4px 0 0 4px; font-size:1rem; }
.search-form-page button { padding:12px 20px; background:var(--color-accent,#e85d26); color:#fff; border:none; border-radius:0 4px 4px 0; cursor:pointer; font-size:1rem; }

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--color-primary, #1a3a6b), #0d2347); padding: 48px 24px; text-align: center; color: #fff; }
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; }

/* ── Formulaire contact ────────────────────────────────────────────────── */
.contact-form { max-width: 600px; margin: 40px auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; border: 1px solid #d0d8e8; border-radius: 8px; font-size: .95rem; font-family: inherit; transition: border-color .15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary, #1a3a6b); }
.form-group textarea { min-height: 120px; resize: vertical; }
.btn-submit { background: var(--color-primary, #1a3a6b); color: #fff; border: none; padding: 14px 32px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; transition: opacity .2s; }
.btn-submit:hover { opacity: .9; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navbar-burger { display: flex; }
  .navbar-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; border-bottom: 1px solid #e4eaf3; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: 4px; z-index: 999; }
  .navbar-menu.open { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .site-header h1 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { gap: 20px; }
}
