/* =========================================================
   Plume du Monde Magazine — Feuille de style principale
   Palette : Bleu marine (#0c2340) / Or (#c9971f) / Blanc / Rouge accent
   ========================================================= */

:root {
  --bleu-marine: #0c2340;
  --bleu-marine-clair: #143460;
  --or: #c9971f;
  --or-clair: #e0b13a;
  --rouge: #d21f1f;
  --blanc: #ffffff;
  --gris-clair: #f4f5f7;
  --gris-texte: #4a4a4a;
  --gris-bordure: #e2e5ea;
  --font-titre: 'Playfair Display', Georgia, serif;
  --font-texte: 'Poppins', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-texte);
  color: var(--gris-texte);
  background: var(--blanc) url('../assets/world-map-watermark.png') center 420px no-repeat;
  background-size: 1400px auto;
  background-attachment: fixed;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 0 36px; /* léger décalage vers la droite sur toutes les pages */
}
@media (max-width: 600px) {
  .container { padding: 0 14px 0 24px; }
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: linear-gradient(rgba(4,14,28,0.55), rgba(4,14,28,0.55)), url('../assets/blue-map-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #cfd8e5;
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-left: 0;
  padding: 0; border-radius: 50%; transition: transform 0.2s, box-shadow 0.2s;
}
.topbar-social .social-icon svg { width: 22px; height: 22px; border-radius: 50%; }
.topbar-social .social-icon:hover { transform: translateY(-2px) scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.35); }

/* ===================== HEADER ===================== */
.site-header { background: var(--blanc); padding: 12px 0; border-bottom: 1px solid var(--gris-bordure); }
.header-inner { display: flex; justify-content: center; }
.banner-link { display: block; width: 100%; }
.header-banner-img { width: 100%; height: auto; display: block; }

/* Logo (utilisé dans le pied de page) */
.logo-block { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 55px; height: 55px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-family: var(--font-titre); font-size: 1.7rem; font-weight: 700; color: var(--bleu-marine); }
.logo-italic { font-style: italic; color: var(--or); }
.logo-sub { font-size: 0.85rem; letter-spacing: 4px; font-weight: 600; color: var(--bleu-marine); }
.logo-baseline { font-size: 0.72rem; letter-spacing: 1px; color: #7a869a; margin-top: 3px; }

/* ===================== NAVIGATION ===================== */
.main-nav {
  background: linear-gradient(rgba(4,14,28,0.45), rgba(4,14,28,0.45)), url('../assets/blue-map-bg.jpg');
  background-size: cover;
  background-position: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list li a {
  display: block;
  padding: 13px 9px;
  color: var(--blanc);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.nav-list li a:hover,
.nav-list li a.active { background: var(--or); color: var(--bleu-marine); }
.nav-home { display: flex !important; align-items: center; }
.nav-home svg { width: 15px; height: 15px; }
.nav-search { color: var(--blanc); padding: 0 16px; display: flex; align-items: center; }
.nav-search svg { width: 17px; height: 17px; }

/* Icônes accompagnant du texte (liens, listes, boutons) */
.icon-link { display: inline-flex; align-items: center; gap: 6px; }
.icon-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.icon-pdf-link svg { width: 21px; height: 21px; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--or);
  flex-shrink: 0;
}
.trust-icon svg { width: 17px; height: 17px; }
.btn-outline.icon-link, .btn-gold.icon-link { gap: 8px; }

/* Bouton flottant WhatsApp */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 90px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s, bottom 0.2s;
}
.whatsapp-float.cookie-dismissed { bottom: 22px; }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }
@media (max-width: 600px) {
  .whatsapp-float { right: 14px; bottom: 100px; width: 50px; height: 50px; }
  .whatsapp-float.cookie-dismissed { bottom: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 12px; }
.burger span { width: 24px; height: 2px; background: var(--blanc); display: block; }

/* ===================== BANDEAU EN DIRECT ===================== */
.live-bar { background: var(--gris-clair); border-bottom: 1px solid var(--gris-bordure); }
.live-inner { display: flex; align-items: center; gap: 15px; padding: 10px 20px; flex-wrap: wrap; }
.live-badge { background: var(--rouge); color: var(--blanc); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 3px; letter-spacing: 1px; text-decoration: none; cursor: pointer; transition: filter .2s; }
a.live-badge:hover, a.live-badge:focus { filter: brightness(1.15); color: var(--blanc); text-decoration: none; }
.live-text { font-size: 0.85rem; font-weight: 500; color: var(--bleu-marine); flex: 1; min-width: 200px; }
.live-actions { display: flex; align-items: center; gap: 18px; font-size: 0.8rem; flex-wrap: wrap; }
.live-actions a { color: var(--gris-texte); font-weight: 500; }
.btn-abonner { background: var(--or); color: var(--bleu-marine) !important; font-weight: 700; padding: 7px 16px; border-radius: 4px; }

/* ===================== HERO / DOSSIER SPÉCIAL ===================== */
.hero-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--rouge); color: var(--blanc); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; letter-spacing: 1px; }
.hero-image-wrap { position: relative; display: block; border-radius: 4px; overflow: hidden; cursor: pointer; }
.hero-image { width: 100%; height: 460px; object-fit: cover; transition: transform 0.4s; }
.hero-image-wrap:hover .hero-image { transform: scale(1.03); }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(12,35,64,0.96) 45%, rgba(12,35,64,0.15));
  padding: 40px 25px 22px;
}
.hero-title {
  font-family: var(--font-titre); color: var(--or); font-size: 2.6rem; font-weight: 800;
  text-transform: uppercase; line-height: 1.05; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-chapo { margin-top: 14px; font-size: 0.92rem; color: #e7ecf3; max-width: 90%; }
.btn-lire-dossier {
  display: inline-block; margin-top: 16px; background: var(--or); color: var(--bleu-marine);
  padding: 12px 22px; font-weight: 700; font-size: 0.85rem; border-radius: 3px; letter-spacing: 0.5px;
}
.hero-image-wrap:hover .btn-lire-dossier { background: var(--blanc); }

/* ===== 3 cartes latérales : image pleine avec texte superposé (même principe que le dossier spécial) ===== */
.hero-side { display: flex; flex-direction: column; gap: 15px; }
.side-card { position: relative; display: block; border-radius: 4px; overflow: hidden; cursor: pointer; min-height: 158px; }
.side-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.side-card:hover .side-card-img { transform: scale(1.06); }
.side-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-block; background: var(--rouge); color: var(--blanc); font-size: 0.65rem; font-weight: 700; padding: 3px 9px; letter-spacing: 1px; }
.side-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(12,35,64,0.95) 35%, rgba(12,35,64,0.05));
  padding: 14px 14px 12px;
}
.side-card-overlay h3 { font-size: 0.95rem; color: var(--blanc); margin-bottom: 6px; line-height: 1.3; transition: color 0.2s; }
.side-card:hover .side-card-overlay h3 { color: var(--or); }
.lien-article { font-size: 0.76rem; font-weight: 600; color: var(--or); }


.hero-empty, .empty-msg { padding: 40px; text-align: center; color: #999; background: var(--gris-clair); border-radius: 4px; }

/* ===================== SECTIONS GÉNÉRIQUES ===================== */
.section-block { margin: 45px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--gris-bordure); flex-wrap: wrap; gap: 10px; }
.section-header h2 { font-family: var(--font-titre); font-size: 1.3rem; color: var(--bleu-marine); display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px; }
.section-header .bar { width: 5px; height: 22px; background: var(--or); display: inline-block; flex-shrink: 0; }
.voir-tout { font-size: 0.82rem; font-weight: 600; color: var(--or); white-space: nowrap; }
.voir-tout:hover { text-decoration: underline; }
.section-header-narrow { flex-wrap: nowrap; }
.section-header-narrow h2 { font-size: 1.02rem; gap: 7px; letter-spacing: 0.2px; white-space: nowrap; }
.section-header-narrow .voir-tout { font-size: 0.72rem; }

/* ===================== GRILLES D'ARTICLES ===================== */
/* ===================== MISE EN PAGE ACCUEIL (2 colonnes persistantes) ===================== */
.home-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  grid-auto-flow: row;
  gap: 22px 30px;
  align-items: start;
  margin: 30px 0 10px;
}
.home-grid > .hero-main, .home-grid > .section-block { margin: 0; }
.home-separator { border-top: 1px solid var(--gris-bordure); margin: 35px 0 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; justify-content: stretch; }
.home-grid .grid-4 { gap: 14px; }
.home-grid .grid-4 .news-img-wrap img { height: 115px; }
.home-grid .grid-4 .news-card h3 { font-size: 0.85rem; }
.home-grid .grid-4 .news-tag { font-size: 0.58rem; padding: 2px 6px; }
.home-grid .grid-4 .news-chapo { display: none; }
.home-grid .grid-4 .news-date { font-size: 0.7rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.news-card { display: flex; flex-direction: column; }
a.news-card { cursor: pointer; }
a.news-card:hover h3 { color: var(--or); }
.news-img-wrap { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.news-img-wrap img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-img-wrap img { transform: scale(1.05); }
.news-tag { position: absolute; top: 10px; left: 10px; background: var(--rouge); color: var(--blanc); font-size: 0.65rem; font-weight: 700; padding: 3px 8px; letter-spacing: 0.5px; }
.news-card h3 { font-size: 1rem; color: var(--bleu-marine); line-height: 1.35; margin-bottom: 8px; }
.news-card h3 a:hover { color: var(--or); }
.news-chapo { font-size: 0.85rem; color: #777; margin-bottom: 8px; }
.news-date { font-size: 0.75rem; color: #999; }

/* ===================== TV ===================== */
.tv-card {
  position: relative; border-radius: 4px; overflow: hidden;
  background: linear-gradient(rgba(4,14,28,0.5), rgba(4,14,28,0.5)), url('../assets/blue-map-bg.jpg');
  background-size: cover; background-position: center;
}
.tv-card img { width: 100%; height: 230px; object-fit: cover; opacity: 0.55; }
.tv-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px; color: var(--blanc); }
.tv-play { font-size: 2.2rem; color: var(--or); margin-bottom: 10px; }
.tv-badge { display: inline-block; background: var(--rouge); font-size: 0.68rem; font-weight: 700; padding: 4px 10px; margin-bottom: 10px; width: fit-content; }
.tv-overlay h3 { font-family: var(--font-titre); font-size: 1.2rem; margin-bottom: 12px; max-width: 95%; }
.tv-link { color: var(--or); font-weight: 700; font-size: 0.9rem; }
.tv-empty { padding: 60px; text-align: center; color: #ccc; }

/* ===================== MAGAZINE ===================== */
.magazine-card { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; background: var(--gris-clair); padding: 18px; border-radius: 4px; height: auto; text-align: left; }
.magazine-card img { width: 100px; flex-shrink: 0; height: auto; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.magazine-info { display: flex; flex-direction: column; }
.magazine-info h3 { font-family: var(--font-titre); font-size: 1.05rem; color: var(--bleu-marine); margin-bottom: 12px; }
.magazine-info .btn-gold { order: 1; }
.magazine-info .btn-outline { order: 2; margin-top: 8px; }
.btn-gold, .btn-outline { display: inline-block; padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 0.82rem; margin-bottom: 10px; text-align: center; }
.btn-gold { background: var(--or); color: var(--bleu-marine); }
.btn-outline { background: var(--blanc); color: var(--bleu-marine); border: 1px solid var(--bleu-marine); }
.btn-gold:hover { background: var(--bleu-marine); color: var(--blanc); }

/* ===================== DOSSIERS ===================== */
.dossier-card { display: block; }
a.dossier-card { cursor: pointer; }
a.dossier-card:hover img { opacity: 0.85; }
a.dossier-card:hover h3 { color: var(--or); }
.dossier-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 12px; transition: opacity 0.2s; }
.dossier-card h3 { font-size: 0.95rem; color: var(--bleu-marine); margin-bottom: 6px; transition: color 0.2s; }
.dossier-card p { font-size: 0.8rem; color: #888; }

/* ===================== TRUST BAR ===================== */
.trust-bar { background: var(--gris-clair); padding: 28px 0; border-top: 1px solid var(--gris-bordure); border-bottom: 1px solid var(--gris-bordure); }
.trust-header { border-bottom: none; margin-bottom: 18px; padding-bottom: 0; }
.trust-header h2 { font-size: 1.05rem; }
.trust-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; font-weight: 500; color: var(--bleu-marine); }
.trust-inner .trust-item { position: relative; padding-right: 15px; }
.trust-inner .trust-item:not(:last-child)::after {
  content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 30px; background: var(--gris-bordure);
}

/* ===================== QUOTE BAR ===================== */
.quote-bar {
  background: linear-gradient(rgba(4,14,28,0.55), rgba(4,14,28,0.55)), url('../assets/blue-map-bg.jpg');
  background-size: cover; background-position: center;
  color: var(--blanc); text-align: center; padding: 30px 20px;
}
.quote-text { font-family: var(--font-titre); font-style: italic; font-size: 1.3rem; color: var(--or); }
.quote-sub { font-size: 0.75rem; letter-spacing: 1px; margin-top: 8px; color: #cfd8e5; }

/* ===================== NEWSLETTER ===================== */
.newsletter-bar {
  background: linear-gradient(rgba(6,20,40,0.6), rgba(6,20,40,0.6)), url('../assets/blue-map-bg.jpg');
  background-size: cover; background-position: center;
  color: #fff; padding: 30px 0;
}
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; flex-wrap: wrap; }
.newsletter-bar h3 { font-family: var(--font-titre); font-size: 1.3rem; margin-bottom: 6px; }
.newsletter-bar p { font-size: 0.85rem; color: #c9d4e5; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 11px 15px; border-radius: 4px; border: none; min-width: 240px; font-family: var(--font-texte); }
.newsletter-form button { border: none; cursor: pointer; }
.newsletter-message { text-align: center; font-size: 0.82rem; padding-top: 10px; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--blanc) url('../assets/world-map-watermark.png') center top no-repeat;
  background-size: 900px auto;
  color: #555; padding: 40px 0 0;
  border-top: 3px solid var(--or);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-brand { display: flex; align-items: center; }
.footer-logo-img { max-width: 260px; width: 100%; height: auto; margin-top: -14px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)); }
.footer-col h4 { color: var(--bleu-marine); margin-bottom: 14px; font-size: 0.95rem; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.82rem; }
.footer-links-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.footer-col ul li a { color: #555; }
.footer-col ul li a:hover { color: var(--or); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.footer-social .social-icon svg { width: 28px; height: 28px; border-radius: 50%; }
.footer-social .social-icon:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.footer-contact li { margin-bottom: 10px; font-size: 0.82rem; color: #555; }
.footer-bottom { background: var(--bleu-marine); border-top: none; padding: 15px 0; margin-top: 25px; }
.footer-bottom-inner { display: flex; justify-content: space-between; font-size: 0.75rem; flex-wrap: wrap; gap: 8px; color: #cfd8e5; }

.form-recherche { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.form-recherche input { flex: 1; min-width: 220px; padding: 12px 15px; border: 1px solid var(--gris-bordure); border-radius: 4px; font-family: var(--font-texte); }
.form-recherche button { border: none; cursor: pointer; }

/* ===================== PAGE CATÉGORIE ===================== */
.page-categorie { padding: 30px 0 60px; }
.titre-categorie { font-family: var(--font-titre); color: var(--bleu-marine); font-size: 1.8rem; margin-bottom: 25px; border-bottom: 3px solid var(--or); padding-bottom: 12px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 35px; }
.pagination a { padding: 8px 14px; border: 1px solid var(--gris-bordure); border-radius: 4px; font-weight: 600; color: var(--bleu-marine); }
.pagination a.active, .pagination a:hover { background: var(--bleu-marine); color: var(--blanc); }

/* ===================== PAGE ARTICLE ===================== */
.page-article { padding: 30px 0 60px; max-width: 900px; }
.fil-ariane { font-size: 0.8rem; color: #999; margin-bottom: 20px; }
.fil-ariane a:hover { color: var(--or); }
.article-tag { display: inline-block; background: var(--rouge); color: var(--blanc); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; margin-bottom: 12px; }
.article-full h1 { font-family: var(--font-titre); font-size: 2.1rem; color: var(--bleu-marine); line-height: 1.25; margin-bottom: 15px; }
.article-meta { font-size: 0.82rem; color: #999; margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.article-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.article-chapo { font-size: 1.1rem; font-weight: 500; color: var(--bleu-marine); border-left: 4px solid var(--or); padding-left: 15px; margin-bottom: 25px; }
.article-contenu { font-size: 1rem; line-height: 1.8; color: #333; }
.article-contenu p { margin-bottom: 18px; }
.article-contenu img { margin: 20px 0; border-radius: 4px; }
.article-video { margin-top: 25px; }

/* ===================== PLUME DU MONDE TV (intégration vidéo) ===================== */
.tv-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 6px; overflow: hidden; margin-bottom: 15px; }
.tv-embed-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; border:0; }
.tv-embed-wrap .fb-video,
.tv-embed-wrap .fb-video iframe,
.tv-embed-wrap span[style] {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  border: 0 !important;
}
.tv-embed-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; }
.tv-logo-overlay {
  position: absolute;
  top: 8px;
  right: 10px;
  display: block;
  width: 64px;
  height: 44px;
  background: url('../assets/logo.png') center / contain no-repeat;
  opacity: 0.85;
  z-index: 2147483000;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 600px) {
  .tv-logo-overlay { top: 5px; right: 6px; width: 44px; height: 30px; }
}
.tv-fullscreen-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px; border: 0; border-radius: 4px;
  background: rgba(4,14,28,0.6); color: #fff; font-size: 1.1rem; line-height: 1;
  cursor: pointer; z-index: 2147483000; transition: background .2s;
}
.tv-fullscreen-btn:hover, .tv-fullscreen-btn:focus { background: rgba(4,14,28,0.85); }
/* En plein écran maison : le cadre occupe tout l'écran, logo et bouton restent visibles */
.tv-embed-wrap:fullscreen,
.tv-embed-wrap:-webkit-full-screen {
  width: 100vw; height: 100vh; padding-top: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.tv-embed-wrap:fullscreen iframe, .tv-embed-wrap:fullscreen video,
.tv-embed-wrap:-webkit-full-screen iframe, .tv-embed-wrap:-webkit-full-screen video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.tv-embed-wrap:fullscreen .tv-logo-overlay,
.tv-embed-wrap:-webkit-full-screen .tv-logo-overlay {
  width: 110px; height: 76px; top: 22px; right: 22px;
}
.tv-embed-wrap:fullscreen .tv-fullscreen-btn,
.tv-embed-wrap:-webkit-full-screen .tv-fullscreen-btn {
  bottom: 24px; right: 24px;
}
.tv-embed-note { font-size: 0.82rem; color: #888; margin-bottom: 25px; }
.tv-embed-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.pdf-viewer-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.pdf-viewer-wrap { width: 100%; height: 80vh; min-height: 500px; border: 1px solid var(--gris-bordure); border-radius: 4px; overflow: hidden; }
.pdf-viewer-wrap iframe { width: 100%; height: 100%; border: 0; }

.video-thumb-card { display: block; cursor: pointer; }
.video-thumb-wrap { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 10px; height: 160px; background: #000; }
.video-thumb-wrap img { width: 100%; height: 160px; object-fit: cover; transition: transform 0.3s; }
.video-thumb-card:hover .video-thumb-wrap img { transform: scale(1.05); }
.video-thumb-wrap .fb-video,
.video-thumb-wrap .fb-video iframe,
.video-thumb-wrap span[style] {
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important; height: 100% !important;
  border: 0 !important;
}
.video-thumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; opacity: 0.92; }
.video-thumb-play svg { width: 46px; height: 46px; }
.video-thumb-card h3 { font-size: 0.95rem; color: var(--bleu-marine); margin-bottom: 4px; transition: color 0.2s; }
.video-thumb-card:hover h3 { color: var(--or); }
.video-thumb-badge { position: absolute; top: 8px; left: 8px; background: rgba(12,35,64,0.85); color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.03em; }
.video-thumb-card.active .video-thumb-wrap { outline: 3px solid var(--or); outline-offset: 2px; }
.video-thumb-card.active h3 { color: var(--or); }

/* ===================== ARCHIVES DU MAGAZINE ===================== */
.archives-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.archive-card { display: block; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: transform 0.2s; }
.archive-card:hover { transform: translateY(-4px); }
.archive-card img { width: 100%; height: 220px; object-fit: cover; }
.archive-card-info { padding: 12px 14px; }
.archive-card-info h3 { font-size: 0.9rem; color: var(--bleu-marine); margin-bottom: 4px; }
.archive-card-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 992px) { .archives-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .archives-grid { grid-template-columns: 1fr; } }

/* ===================== PAGES SIMPLES (À propos, Contact, Mentions...) ===================== */
.page-simple { padding: 30px 0 60px; max-width: 950px; }

.intro-texte { font-size: 1rem; color: #666; margin-bottom: 25px; }
.texte-page h2 { font-family: var(--font-titre); color: var(--bleu-marine); font-size: 1.3rem; margin: 25px 0 12px; }
.texte-page p { margin-bottom: 14px; line-height: 1.7; }
.liste-page { padding-left: 20px; }
.liste-page li { margin-bottom: 8px; list-style: disc; }

.equipe-grid .equipe-card { text-align: center; }
.equipe-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; margin-bottom: 12px; }
.equipe-card h3 { color: var(--bleu-marine); font-size: 1rem; margin-bottom: 4px; }
.equipe-card span { font-size: 0.8rem; color: #888; }

.contact-grid { align-items: start; }
.form-contact label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 0.85rem; color: var(--bleu-marine); }
.form-contact input, .form-contact textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gris-bordure); border-radius: 4px; font-family: var(--font-texte); font-size: 0.9rem;
}
.form-contact button { margin-top: 18px; border: none; cursor: pointer; }
.contact-infos { background: var(--gris-clair); padding: 25px; border-radius: 4px; }
.contact-infos h3 { color: var(--bleu-marine); margin-bottom: 15px; }
.contact-infos p { margin-bottom: 10px; font-size: 0.9rem; }

.magazine-card-large { height: auto; }
.magazine-card-large img { width: 220px; }

/* ===================== 404 ===================== */
.page-404 { text-align: center; padding: 80px 0; }
.titre-404 { font-family: var(--font-titre); font-size: 6rem; color: var(--or); }
.page-404 p { margin: 15px 0 25px; color: #777; }

/* ===================== BANNIÈRE COOKIES ===================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: linear-gradient(rgba(4,14,28,0.7), rgba(4,14,28,0.7)), url('../assets/blue-map-bg.jpg');
  background-size: cover; background-position: center;
  color: #dfe6f0;
  display: none; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 25px; flex-wrap: wrap;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
}
.cookie-banner p { font-size: 0.85rem; max-width: 700px; }
.cookie-banner a { color: var(--or); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button { border: none; cursor: pointer; padding: 8px 16px; border-radius: 4px; font-weight: 600; font-size: 0.82rem; }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .magazine-card { flex-direction: column; align-items: center; text-align: center; }
  .magazine-info { align-items: center; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .home-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
  /* Les 3 cartes latérales "à la une" passent en pleine largeur ici (home-grid
     devient 1 colonne juste au-dessus) : à hauteur fixe (158px), la photo devient
     beaucoup plus large que haute et se retrouve rognée en haut/bas. On augmente
     la hauteur, proportionnelle à la largeur d'écran (vw), pour qu'elle reste
     visible en entier quel que soit l'écran. */
  .side-card { min-height: 55vw; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; gap: 5px; text-align: center; }
  .header-inner { justify-content: center; text-align: center; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: linear-gradient(rgba(4,14,28,0.75), rgba(4,14,28,0.75)), url('../assets/blue-map-bg.jpg');
    background-size: cover; background-position: center;
    flex-direction: column; z-index: 100;
  }
  .nav-list.open { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; }
  .burger { display: flex; }
  .nav-search { margin-left: auto; }
  .live-inner { flex-direction: column; align-items: flex-start; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .magazine-card { flex-direction: column; height: auto; text-align: center; }
  .magazine-card img { width: 140px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .trust-inner { flex-direction: column; text-align: center; }
  .logo-title { font-size: 1.3rem; }
  .article-full h1 { font-size: 1.5rem; }
  /* "Grands dossiers" en pleine largeur (grid-3 devient 1 colonne juste au-dessus) :
     même logique que .side-card ci-dessus, hauteur proportionnelle à la largeur
     d'écran plutôt que fixe (140px), pour ne plus rogner le haut/bas des photos. */
  .dossier-card img { height: 55vw; }
  /* Sur un écran très étroit, les cartes latérales bénéficient d'un peu plus de
     hauteur encore (55vw d'un écran de 360px ne laisse que ~198px). */
  .side-card { min-height: 60vw; }
}
