@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --blue-deep: #042C53;
  --blue-mid: #185FA5;
  --blue-light: #E6F1FB;
  --blue-pale: #B5D4F4;
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --white: #FAFCFF;
  --off-white: #F4F7FB;
  --text-dark: #1a2a3a;
  --text-mid: #3d5166;
  --text-light: #7a9bb8;
  --accent: #378ADD;
  --gold: #B8860B;
  --gold-light: #FFF8E7;
  --radius: 16px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text-dark); overflow-x: hidden; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,252,255,0.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(55,138,221,0.12);
  padding: 0 5%; display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--blue-deep); text-decoration: none; letter-spacing: -0.02em; display:flex; align-items:center; gap:10px; }
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ===== PAGE HERO (sous-pages) ===== */
.page-hero {
  background: linear-gradient(160deg, #042C53 0%, #0c4478 50%, #185FA5 100%);
  padding: 120px 5% 70px; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(55,138,221,0.15) 0%, transparent 70%); }
.page-hero-content { position: relative; max-width: 720px; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #85B7EB; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 1.5rem;
}
.page-hero-tag::before { content: ''; width: 6px; height: 6px; background: #5DCAA5; border-radius: 50%; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.page-hero h1 em { color: #85B7EB; font-style: italic; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 580px; font-weight: 300; }
.wave { display: block; width: 100%; margin-top: -2px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 1rem 5%; font-size: 0.8rem; color: var(--text-light); border-bottom: 1px solid rgba(55,138,221,0.08); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ===== LAYOUT CONTENU ===== */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 60px 5%; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.sidebar-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--blue-deep); margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--blue-mid); margin: 2rem 0 0.8rem; }
.article-body p { font-size: 0.97rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 1.2rem; }
.article-body strong { color: var(--text-dark); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body li { font-size: 0.95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 0.4rem; }

/* ===== ENCARTS ===== */
.info-box { background: var(--blue-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem; margin: 2rem 0; }
.info-box h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--blue-deep); margin-bottom: 0.6rem; }
.info-box p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; margin: 0; }
.warning-box { background: #FFF8E7; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem; margin: 2rem 0; }
.warning-box h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: #7a5700; margin-bottom: 0.6rem; }
.warning-box p { font-size: 0.88rem; color: #8a6200; line-height: 1.7; margin: 0; }
.stat-highlight { background: var(--blue-deep); color: white; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; display: flex; align-items: center; gap: 1.5rem; }
.stat-highlight .big-num { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #5DCAA5; line-height: 1; flex-shrink: 0; }
.stat-highlight p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0; }

/* ===== PARAMÈTRES TABLE ===== */
.param-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.param-table th { background: var(--blue-deep); color: white; padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.param-table td { padding: 0.65rem 1rem; border-bottom: 1px solid rgba(55,138,221,0.1); color: var(--text-mid); }
.param-table tr:nth-child(even) td { background: var(--off-white); }
.param-table tr:hover td { background: var(--blue-light); }

/* ===== CARDS GRILLE ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.2rem; margin: 2rem 0; }
.content-card { background: var(--off-white); border: 1px solid rgba(55,138,221,0.1); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s, border-color 0.2s; }
.content-card:hover { box-shadow: 0 8px 32px rgba(24,95,165,0.1); border-color: rgba(55,138,221,0.25); }
.content-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--blue-deep); margin-bottom: 0.5rem; }
.content-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.65; }

/* ===== SECTION TAG ===== */
.section-tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--blue-deep); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-title em { color: var(--accent); font-style: italic; }

/* ===== ADS ===== */
.ad-banner { width: 100%; background: var(--off-white); border-top: 1px solid rgba(55,138,221,0.08); border-bottom: 1px solid rgba(55,138,221,0.08); display: flex; align-items: center; justify-content: center; padding: 12px 5%; min-height: 100px; position: relative; }
.ad-banner::before { content: 'Publicité'; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }
.ad-inline { background: var(--off-white); border: 1px dashed rgba(55,138,221,0.2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 250px; position: relative; margin: 2rem 0; }
.ad-inline::before { content: 'Publicité'; position: absolute; top: 10px; right: 14px; font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }
.ad-sidebar { background: var(--off-white); border: 1px dashed rgba(55,138,221,0.2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 300px; position: relative; }
.ad-sidebar::before { content: 'Publicité'; position: absolute; top: 10px; right: 14px; font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== AFFILIATION SIDEBAR ===== */
.affil-sidebar { background: var(--gold-light); border: 1px solid rgba(184,134,11,0.2); border-radius: var(--radius); padding: 1.4rem; }
.affil-sidebar-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
.affil-sidebar h4 { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--blue-deep); margin-bottom: 0.5rem; }
.affil-sidebar p { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 0.8rem; }
.affil-sidebar .price { font-size: 1.1rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.6rem; }
.affil-btn { display: block; width: 100%; background: var(--blue-deep); color: white; text-decoration: none; text-align: center; padding: 0.7rem; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; transition: background 0.2s; }
.affil-btn:hover { background: var(--blue-mid); }
.affil-disclaimer { font-size: 0.68rem; color: var(--text-light); margin-top: 0.5rem; font-style: italic; text-align: center; }

/* ===== NAVIGATION PAGES ===== */
.page-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(55,138,221,0.12); }
.page-nav a { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--accent); font-size: 0.88rem; font-weight: 500; padding: 0.75rem 1.2rem; border: 1px solid rgba(55,138,221,0.2); border-radius: var(--radius-sm); transition: all 0.2s; }
.page-nav a:hover { background: var(--blue-light); border-color: var(--accent); }

/* ===== FOOTER ===== */
footer { background: var(--blue-deep); color: rgba(255,255,255,0.6); padding: 60px 5% 40px; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.83rem; margin-top: 0.7rem; max-width: 240px; line-height: 1.65; }
.footer-links h4 { color: white; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { font-size: 0.78rem; }

@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .sidebar-sticky { position: static; } }
@media (max-width: 768px) { .nav-links { display: none; } .page-nav { flex-direction: column; } }
