/*
Theme Name: Fameen News
Theme URI: https://fameennews.com
Author: Fameen Group
Author URI: https://fameennews.com
Description: Thème média économique et business dédié à la Guinée et à l'Afrique de l'Ouest. Conforme à la charte graphique Fameen News v1.0 — Informer. Comprendre. Agir.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fameen-news
Tags: news, magazine, business, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Variables & Reset — Charte graphique Fameen News v1.0
   ========================================================================== */
:root {
  --fn-navy: #1C2F6B;        /* Bleu institutionnel */
  --fn-navy-dark: #002855;   /* Bleu marine : fonds foncés */
  --fn-red: #D71920;         /* Rouge : boutons, hover, urgence */
  --fn-red-dark: #A81318;
  --fn-breaking: #FF0000;    /* Rouge vif : breaking news */
  --fn-gold: #E9A124;        /* Or : premium/corporate UNIQUEMENT */
  --fn-white: #FFFFFF;
  --fn-ink: #444444;         /* Texte courant */
  --fn-gray: #6B7280;
  --fn-gray-light: #E7EAEF;
  --fn-border: #E2E5EC;
  --fn-bg: #F3F5F7;          /* Fond secondaire */

  --fn-font-body: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fn-font-heading: 'Montserrat', 'Poppins', 'Inter', -apple-system, sans-serif;

  --fn-radius: 8px;
  --fn-shadow: 0 2px 12px rgba(28, 47, 107, 0.08);
  --fn-shadow-hover: 0 6px 24px rgba(28, 47, 107, 0.14);
  --fn-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fn-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fn-ink);
  background: var(--fn-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fn-navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--fn-red); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fn-font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--fn-navy);
  margin: 0 0 .5em;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}

.fn-container {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. Top bar
   ========================================================================== */
.fn-topbar {
  background: var(--fn-navy-dark);
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
}
.fn-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.fn-topbar a { color: rgba(255, 255, 255, .88); }
.fn-topbar a:hover { color: var(--fn-white); }
.fn-topbar__right { display: flex; align-items: center; gap: 20px; }
.fn-topbar__links { display: flex; gap: 8px; align-items: center; }
.fn-topbar__links a { padding: 0 8px; }
.fn-topbar__links a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
.fn-topbar__socials { display: flex; gap: 12px; align-items: center; }
.fn-topbar__socials a { display: inline-flex; }
.fn-topbar__socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ==========================================================================
   3. Header : logo + pub leaderboard
   ========================================================================== */
.fn-header {
  background: var(--fn-white);
}
.fn-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}
.fn-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fn-logo img { max-height: 92px; width: auto; }
.fn-logo__text {
  font-family: var(--fn-font-heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fn-navy);
  line-height: 1;
}
.fn-logo__text span { color: var(--fn-red); }
.fn-logo__tagline {
  display: block;
  font-family: var(--fn-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fn-gray);
  margin-top: 4px;
}
/* 3 bannières publicitaires côte à côte, à droite du logo */
.fn-header__ads {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  min-width: 0;
}
.fn-header__ads .fn-ad--header {
  flex: 1;
  max-width: 340px;
  min-height: 100px;
  margin: 0;
}
.fn-header__ads .fn-ad--header img { width: 100%; height: auto; }

/* ==========================================================================
   4. Barre de navigation
   ========================================================================== */
.fn-navbar {
  background: var(--fn-navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 40, 85, .18);
}
.fn-navbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 52px;
}
/* Icône accueil : carré rouge */
.fn-nav-home {
  display: flex;
  align-items: center;
  background: var(--fn-red);
  color: var(--fn-white) !important;
  padding: 0 18px;
  flex-shrink: 0;
}
.fn-nav-home:hover { background: var(--fn-red-dark); }
.fn-nav-home svg { width: 17px; height: 17px; fill: currentColor; }

.fn-nav { display: flex; align-items: stretch; flex: 1; }
.fn-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fn-nav li { position: relative; display: flex; }
.fn-nav a {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
  white-space: nowrap;
}
.fn-nav a:hover,
.fn-nav .current-menu-item > a,
.fn-nav .current_page_item > a { color: var(--fn-white); background: var(--fn-red); }

/* Sous-menus (dropdown "Plus") */
.fn-nav .menu-item-has-children > a::after,
.fn-nav .page_item_has_children > a::after {
  content: "\25BE"; /* ▾ */
  font-size: 9px;
  margin-left: 6px;
  opacity: .8;
}
.fn-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--fn-white);
  box-shadow: var(--fn-shadow-hover);
  border-radius: 0 0 var(--fn-radius) var(--fn-radius);
  border-top: 3px solid var(--fn-red);
  flex-direction: column;
  z-index: 300;
}
/* Le dernier dropdown ("Plus") s'aligne à droite pour ne pas déborder de l'écran */
.fn-nav li:last-child > .sub-menu { left: auto; right: 0; }
.fn-nav li:hover > .sub-menu,
.fn-nav li:focus-within > .sub-menu { display: flex; }
.fn-nav .sub-menu a::after { content: none; }
.fn-nav .sub-menu .current-menu-item > a { color: var(--fn-red); font-weight: 700; }

/* Bouton d'ouverture des sous-menus (mobile uniquement, injecté en JS) */
.fn-submenu-toggle { display: none; }

/* --- Mega Menu ------------------------------------------------------ */
/* Le panneau s'étend sur toute la largeur de la barre de navigation */
.fn-nav li.menu-item-has-children { position: static; }
.fn-mega {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--fn-white);
  border-top: 3px solid var(--fn-red);
  border-radius: 0 0 var(--fn-radius) var(--fn-radius);
  box-shadow: 0 18px 40px rgba(0, 40, 85, .18);
  z-index: 300;
}
.fn-nav li:hover > .fn-mega,
.fn-nav li:focus-within > .fn-mega { display: block; }
.fn-mega__inner {
  max-width: var(--fn-container);
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  gap: 36px;
}

/* Colonne des sous-rubriques avec icônes.
   Sélecteurs préfixés ".fn-mega" : ils doivent l'emporter sur les règles
   génériques ".fn-nav a" et ".fn-nav .sub-menu" de la barre. */
.fn-mega .fn-mega__links {
  display: flex;
  flex: 0 0 280px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  position: static;
  min-width: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fn-mega .fn-mega__links li { display: block; }
.fn-mega .fn-mega__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  border-bottom: 0;
  color: var(--fn-ink);
  font-family: var(--fn-font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  background: transparent;
}
.fn-mega .fn-mega__links a:hover { background: var(--fn-bg); color: var(--fn-red); }
.fn-mega .fn-mega__links a::after { content: none; }
.fn-mega .fn-mega__links .current-menu-item > a { color: var(--fn-red); background: var(--fn-bg); }
.fn-mi { width: 18px; height: 18px; flex-shrink: 0; color: var(--fn-navy); }
.fn-mega .fn-mega__links a:hover .fn-mi { color: var(--fn-red); }

/* Sous-niveaux supplémentaires (niveau 3) : liste imbriquée simple */
.fn-mega .fn-mega__links .sub-menu {
  display: block;
  position: static;
  min-width: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding-left: 30px;
  background: transparent;
}
.fn-mega .fn-mega__links .sub-menu a { font-weight: 500; font-size: 13px; padding: 7px 14px; }

/* Aperçu des derniers articles de la rubrique */
.fn-mega .fn-mega__posts {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--fn-border);
  padding-left: 36px;
}
.fn-mega .fn-mega__posts-title {
  display: block;
  font-family: var(--fn-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fn-gray);
  margin-bottom: 14px;
}
.fn-mega .fn-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fn-mega .fn-mega-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
}
.fn-mega .fn-mega-card::after { content: none; }
.fn-mega .fn-mega-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--fn-gray-light);
  margin-bottom: 10px;
}
.fn-mega .fn-mega-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fn-mega .fn-mega-card__title {
  color: var(--fn-navy);
  font-family: var(--fn-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}
.fn-mega .fn-mega-card:hover .fn-mega-card__title { color: var(--fn-red); }
.fn-mega .fn-mega-card time { font-size: 11.5px; color: var(--fn-gray); margin-top: 4px; }
.fn-nav .sub-menu li { display: block; }
.fn-nav .sub-menu a {
  color: var(--fn-ink);
  padding: 11px 18px;
  text-transform: none;
  font-family: var(--fn-font-body);
  font-weight: 500;
  border-bottom: 1px solid var(--fn-gray-light);
  display: block;
}
.fn-nav .sub-menu li:last-child a { border-bottom: 0; }
.fn-nav .sub-menu a:hover { color: var(--fn-red); background: var(--fn-bg); }

.fn-navbar__actions { display: flex; align-items: stretch; }

/* Bouton S'abonner : bloc rouge intégré à la barre */
.fn-btn-subscribe {
  display: inline-flex;
  align-items: center;
  background: var(--fn-red);
  color: var(--fn-white) !important;
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background .2s ease;
  white-space: nowrap;
}
.fn-navbar .fn-btn-subscribe { border-radius: 0; padding: 0 20px; }
.fn-btn-subscribe:hover { background: var(--fn-red-dark); }

.fn-search-toggle,
.fn-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--fn-white);
  cursor: pointer;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 1;
}
.fn-search-toggle:hover { color: rgba(255, 255, 255, .7); }
.fn-menu-toggle { display: none; }

/* Tiroir de recherche */
.fn-search-drawer {
  display: none;
  background: var(--fn-navy-dark);
  padding: 16px 0;
}
.fn-search-drawer.is-open { display: block; }
.fn-search-drawer form { display: flex; gap: 8px; }
.fn-search-drawer input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--fn-font-body);
}
.fn-search-drawer button {
  background: var(--fn-red);
  border: 0;
  color: var(--fn-white);
  font-weight: 700;
  padding: 0 24px;
  border-radius: 4px;
  cursor: pointer;
}
.fn-search-drawer button:hover { background: var(--fn-red-dark); }

/* ==========================================================================
   5. Breaking news : label + rotation d'un titre + heure + flèches
   ========================================================================== */
.fn-breaking {
  background: var(--fn-white);
  border-bottom: 1px solid var(--fn-border);
}
.fn-breaking__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 6px 0;
}
.fn-breaking__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fn-breaking);
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fn-breaking__label .fn-bolt { font-size: 13px; }
.fn-breaking__slides { flex: 1; position: relative; min-height: 24px; overflow: hidden; }
.fn-breaking__slides a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--fn-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fn-breaking__slides a.is-active { opacity: 1; visibility: visible; position: relative; }
.fn-breaking__slides a:hover { color: var(--fn-red); }
.fn-breaking__time {
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--fn-navy);
  white-space: nowrap;
}
.fn-breaking__nav { display: flex; gap: 8px; flex-shrink: 0; }
.fn-breaking__nav button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--fn-border);
  background: var(--fn-white);
  color: var(--fn-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s ease;
}
.fn-breaking__nav button:hover { background: var(--fn-red); border-color: var(--fn-red); color: var(--fn-white); }

/* ==========================================================================
   6. Layout
   ========================================================================== */
.fn-main { padding: 28px 0 56px; background: var(--fn-white); }
.fn-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

/* En-tête de section : titre souligné rouge + lien "Voir tout" */
.fn-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--fn-border);
  margin: 36px 0 20px;
}
.fn-sechead:first-child { margin-top: 0; }
.fn-sechead h2 {
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fn-navy);
  margin: 0;
  padding-bottom: 10px;
  position: relative;
}
.fn-sechead h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 3px;
  background: var(--fn-red);
}
.fn-sechead__more { font-size: 13px; font-weight: 600; color: var(--fn-gray); white-space: nowrap; }
.fn-sechead__more:hover { color: var(--fn-red); }

/* Titre de section autonome (page auteur, articles similaires du single) */
.fn-section-title {
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fn-navy);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fn-border);
  position: relative;
}
.fn-section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 3px;
  background: var(--fn-red);
}

/* ==========================================================================
   7. Hero : carrousel principal + 3 cartes empilées
   ========================================================================== */
.fn-hero {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}
.fn-hero__secondary {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
}
.fn-hero-card {
  position: relative;
  border-radius: var(--fn-radius);
  overflow: hidden;
  background: var(--fn-navy-dark);
  min-height: 130px;
  display: block;
}
.fn-hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.fn-hero-card:hover img { transform: scale(1.04); }
.fn-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 20, 45, .92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.fn-hero-card__title {
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 4px;
}
.fn-hero-card:hover .fn-hero-card__title { text-decoration: underline; text-decoration-color: var(--fn-red); text-underline-offset: 4px; }
.fn-hero-card__excerpt { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.5; margin: 4px 0 10px; }
.fn-hero-card__meta { display: flex; gap: 16px; color: rgba(255, 255, 255, .75); font-size: 12.5px; }

/* Carrousel principal */
.fn-hero-carousel { position: relative; border-radius: var(--fn-radius); overflow: hidden; min-height: 460px; }
.fn-hero-carousel .fn-hero-card {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
}
.fn-hero-carousel .fn-hero-card.is-active { opacity: 1; visibility: visible; }
.fn-hero-carousel .fn-hero-card__overlay { padding: 28px; }
.fn-hero-carousel .fn-hero-card__title { font-size: 30px; font-weight: 800; margin: 10px 0 8px; }
.fn-hero-dots {
  position: absolute;
  bottom: 16px; right: 20px;
  display: flex;
  gap: 7px;
  z-index: 5;
}
.fn-hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.fn-hero-dots button.is-active { background: var(--fn-red); transform: scale(1.25); }

/* Badge de rubrique */
.fn-cat-badge {
  display: inline-block;
  background: var(--fn-navy);
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 3px;
  align-self: flex-start;
}
.fn-cat-badge:hover { color: var(--fn-white); opacity: .9; }

/* ==========================================================================
   8. Cartes d'articles
   ========================================================================== */
/* Grille "Dernières actualités" : 4 colonnes, cartes épurées */
.fn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.fn-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 22px; row-gap: 30px; }
.fn-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.fn-mini-card { display: flex; flex-direction: column; }
.fn-mini-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: var(--fn-radius);
  overflow: hidden;
  background: var(--fn-gray-light);
  margin-bottom: 12px;
}
.fn-mini-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fn-mini-card:hover .fn-mini-card__thumb img { transform: scale(1.05); }
.fn-mini-card__cat {
  font-family: var(--fn-font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--fn-navy);
  margin-bottom: 5px;
}
.fn-mini-card__title { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.fn-mini-card__title a { color: #1A1D2B; }
.fn-mini-card__title a:hover { color: var(--fn-red); }
.fn-mini-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fn-gray); margin-top: auto; }

/* Carte classique (archives, articles similaires) */
.fn-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}
.fn-card:hover { box-shadow: var(--fn-shadow-hover); transform: translateY(-3px); }
.fn-card__thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fn-gray-light); }
.fn-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fn-card:hover .fn-card__thumb img { transform: scale(1.05); }
.fn-card__thumb .fn-cat-badge { position: absolute; top: 12px; left: 12px; }
.fn-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fn-card__title { font-size: 17px; line-height: 1.35; margin: 0 0 8px; }
.fn-card__title a { color: var(--fn-navy); }
.fn-card__title a:hover { color: var(--fn-red); }
.fn-card__excerpt { font-size: 14px; color: var(--fn-gray); margin: 0 0 14px; flex: 1; }
.fn-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--fn-gray);
  border-top: 1px solid var(--fn-gray-light);
  padding-top: 12px;
}
.fn-card__meta a { color: var(--fn-navy); font-weight: 600; }

/* Liste (résultats de recherche) */
.fn-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.fn-list-item__thumb { display: block; aspect-ratio: 4 / 3; background: var(--fn-gray-light); }
.fn-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fn-list-item__body { padding: 16px 20px 16px 0; display: flex; flex-direction: column; justify-content: center; }
.fn-list-item__title { font-size: 19px; margin: 6px 0; }
.fn-list-item__title a { color: var(--fn-navy); }
.fn-list-item__title a:hover { color: var(--fn-red); }
.fn-list-item__excerpt { font-size: 14px; color: var(--fn-gray); margin: 0 0 8px; }
.fn-list-item__meta { font-size: 12.5px; color: var(--fn-gray); }

/* ==========================================================================
   9. À la une par rubrique : 5 colonnes
   ========================================================================== */
.fn-rubriques {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.fn-rubrique__lead-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 12;
  border-radius: var(--fn-radius);
  overflow: hidden;
  background: var(--fn-gray-light);
  margin-bottom: 10px;
}
.fn-rubrique__lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fn-rubrique__lead-thumb .fn-cat-badge { position: absolute; top: 10px; left: 10px; }
.fn-rubrique__lead-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 4px; }
.fn-rubrique__lead-title a { color: #1A1D2B; }
.fn-rubrique__lead-title a:hover { color: var(--fn-red); }
.fn-rubrique__lead-date { font-size: 12px; color: var(--fn-gray); }
.fn-rubrique__list { list-style: none; margin: 10px 0 0; padding: 0; }
.fn-rubrique__list li {
  position: relative;
  padding: 7px 0 7px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  border-top: 1px solid var(--fn-gray-light);
}
.fn-rubrique__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--fn-red);
}
.fn-rubrique__list a { color: var(--fn-ink); font-weight: 500; }
.fn-rubrique__list a:hover { color: var(--fn-red); }

/* ==========================================================================
   10. Sidebar & widgets : en-tête bleu marine
   ========================================================================== */
.fn-sidebar { min-width: 0; }
.fn-widget {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 18px;
  margin-bottom: 24px;
}
.fn-widget__title {
  margin: -18px -18px 18px;
  background: var(--fn-navy);
  color: var(--fn-white);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 18px;
  border-radius: var(--fn-radius) var(--fn-radius) 0 0;
}
.fn-widget ul { list-style: none; margin: 0; padding: 0; }
.fn-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--fn-gray-light); font-size: 14px; }
.fn-widget ul li:last-child { border-bottom: 0; }

/* Newsletter (sidebar) */
.fn-newsletter-box p { font-size: 14px; color: var(--fn-ink); margin-top: 0; }
.fn-newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fn-newsletter-form input[type="email"] {
  padding: 12px 14px;
  border: 1px solid var(--fn-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--fn-font-body);
  width: 100%;
}
.fn-newsletter-form input[type="email"]:focus { outline: 2px solid var(--fn-navy); border-color: transparent; }
.fn-newsletter-form button {
  background: var(--fn-red);
  color: var(--fn-white);
  border: 0;
  padding: 12px;
  border-radius: 4px;
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .2s ease;
}
.fn-newsletter-form button:hover { background: var(--fn-red-dark); }

/* Les plus lus : numéros carrés rouges */
.fn-popular-item {
  display: grid;
  grid-template-columns: 28px 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--fn-gray-light);
}
.fn-popular-item:first-of-type { padding-top: 0; }
.fn-popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fn-popular-item__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--fn-red);
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-size: 13px;
  font-weight: 800;
  border-radius: 4px;
}
.fn-popular-item__thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fn-gray-light); display: block; }
.fn-popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fn-popular-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 0 0 3px; }
.fn-popular-item__title a { color: #1A1D2B; }
.fn-popular-item__title a:hover { color: var(--fn-red); }
.fn-popular-item__date { font-size: 11.5px; color: var(--fn-gray); }

/* Vidéos à la une */
.fn-video-feat { position: relative; display: block; border-radius: var(--fn-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--fn-navy-dark); margin-bottom: 10px; }
.fn-video-feat img { width: 100%; height: 100%; object-fit: cover; }
.fn-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.fn-video-play::after {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--fn-red);
  margin-left: 4px;
}
.fn-video-feat:hover .fn-video-play { background: var(--fn-red); transform: translate(-50%, -50%) scale(1.08); }
.fn-video-feat:hover .fn-video-play::after { border-left-color: var(--fn-white); }
/* Bouton play compact (cartes de la rubrique Vidéos) */
.fn-video-play--sm { width: 40px; height: 40px; }
.fn-video-play--sm::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
.fn-mini-card:hover .fn-video-play--sm { background: var(--fn-red); }
.fn-mini-card:hover .fn-video-play--sm::after { border-left-color: var(--fn-white); }
.fn-video-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, .75);
  color: var(--fn-white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
}
.fn-video-feat-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0 0 3px; }
.fn-video-feat-title a { color: #1A1D2B; }
.fn-video-feat-title a:hover { color: var(--fn-red); }
.fn-video-feat-date { font-size: 11.5px; color: var(--fn-gray); }
.fn-video-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--fn-gray-light);
}
.fn-video-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fn-video-item__thumb { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--fn-navy-dark); display: block; }
.fn-video-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fn-video-item__thumb .fn-video-duration { bottom: 4px; right: 4px; font-size: 10px; padding: 2px 5px; }
.fn-video-item__title { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; }
.fn-video-item__title a { color: #1A1D2B; }
.fn-video-item__title a:hover { color: var(--fn-red); }

/* ==========================================================================
   11. Emplacements publicitaires
   ========================================================================== */
.fn-ad { display: flex; justify-content: center; align-items: center; margin: 0 auto; }
.fn-ad--leaderboard { max-width: 728px; min-height: 90px; width: 100%; }
.fn-ad--rectangle { max-width: 300px; min-height: 250px; margin-bottom: 24px; }
.fn-ad--banner { max-width: 360px; min-height: 120px; }
.fn-ad__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--fn-bg);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--fn-gray);
  font-family: var(--fn-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 12px;
}
.fn-ad__placeholder small { font-size: 12px; font-weight: 400; letter-spacing: .5px; text-transform: none; }
.fn-ad--in-content { margin: 32px auto; }

/* ==========================================================================
   12. Page article
   ========================================================================== */
.fn-article {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 36px 40px;
}
.fn-article__header { margin-bottom: 24px; }
.fn-article__title { font-size: 36px; line-height: 1.2; margin: 12px 0 16px; letter-spacing: -0.5px; }
.fn-article__excerpt { font-size: 18px; color: var(--fn-gray); font-weight: 400; line-height: 1.55; margin: 0 0 18px; }
.fn-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
  color: var(--fn-gray);
  padding: 14px 0;
  border-top: 1px solid var(--fn-border);
  border-bottom: 1px solid var(--fn-border);
}
.fn-article__meta .fn-avatar { border-radius: 50%; width: 36px; height: 36px; }
.fn-article__meta a { font-weight: 600; }
.fn-article__thumb { margin: 24px 0; border-radius: var(--fn-radius); overflow: hidden; }
.fn-article__thumb figcaption { font-size: 13px; color: var(--fn-gray); padding: 8px 4px 0; font-style: italic; }

.fn-article__content { font-size: 17.5px; line-height: 1.8; color: var(--fn-ink); }
.fn-article__content > * { margin-top: 0; }
.fn-article__content p { margin-bottom: 1.4em; }
.fn-article__content h2 { font-size: 26px; margin-top: 1.6em; }
.fn-article__content h3 { font-size: 21px; margin-top: 1.4em; }
.fn-article__content a { color: var(--fn-navy); text-decoration: underline; text-decoration-color: var(--fn-red); text-underline-offset: 3px; }
.fn-article__content a:hover { color: var(--fn-red); }
.fn-article__content blockquote {
  border-left: 4px solid var(--fn-red);
  background: var(--fn-bg);
  margin: 1.6em 0;
  padding: 18px 24px;
  border-radius: 0 var(--fn-radius) var(--fn-radius) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--fn-navy);
}
.fn-article__content img { border-radius: var(--fn-radius); margin: 1em auto; }
.fn-article__content ul, .fn-article__content ol { margin-bottom: 1.4em; padding-left: 1.4em; }
.fn-article__content figure { margin: 1.6em 0; max-width: 100%; }
.fn-article__content iframe { max-width: 100%; }
.fn-article__content table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.fn-article__content th, .fn-article__content td { border: 1px solid var(--fn-border); padding: 10px 14px; text-align: left; }
.fn-article__content th { background: var(--fn-navy); color: var(--fn-white); }

.fn-article__tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.fn-article__tags a {
  background: var(--fn-bg);
  color: var(--fn-navy);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}
.fn-article__tags a:hover { background: var(--fn-red); color: var(--fn-white); }

/* Boutons de partage */
.fn-share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fn-border); }
.fn-share__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--fn-gray); margin-bottom: 12px; }
.fn-share__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.fn-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fn-white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  transition: opacity .2s ease, transform .15s ease;
}
.fn-share__btn:hover { opacity: .88; transform: translateY(-1px); }
.fn-share__btn--whatsapp { background: #25D366; }
.fn-share__btn--facebook { background: #1877F2; }
.fn-share__btn--linkedin { background: #0A66C2; }
.fn-share__btn--x { background: #0F1419; }
.fn-share__btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Boîte auteur */
.fn-author-box {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  background: var(--fn-bg);
  border-left: 4px solid var(--fn-red);
  border-radius: var(--fn-radius);
  padding: 24px;
  margin-top: 32px;
}
.fn-author-box img { border-radius: 50%; }
.fn-author-box__name { font-size: 18px; margin: 0 0 6px; }
.fn-author-box__bio { font-size: 14px; color: var(--fn-gray); margin: 0 0 8px; }
.fn-author-box__link { font-size: 13px; font-weight: 700; color: var(--fn-red); }

/* Articles similaires */
.fn-related { margin-top: 40px; }
.fn-related .fn-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fn-related .fn-card__title { font-size: 15px; }

/* Navigation article */
.fn-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; }
.fn-post-nav a {
  flex: 1;
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
}
.fn-post-nav a span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--fn-gray); margin-bottom: 4px; }
.fn-post-nav a:last-child { text-align: right; }

/* ==========================================================================
   13. En-têtes d'archives / pagination
   ========================================================================== */
.fn-archive-header {
  background: var(--fn-navy);
  border-radius: var(--fn-radius);
  color: var(--fn-white);
  padding: 32px 36px;
  margin-bottom: 32px;
  background-image: linear-gradient(135deg, var(--fn-navy) 0%, var(--fn-navy-dark) 100%);
  border-bottom: 4px solid var(--fn-red);
  position: relative;
  overflow: hidden;
}
.fn-archive-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(215, 25, 32, .18);
}
.fn-archive-header__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FF8A8E;
}
.fn-archive-header__title { color: var(--fn-white); font-size: 32px; margin: 6px 0 0; }
.fn-archive-header__desc { color: rgba(255, 255, 255, .8); font-size: 15px; margin: 10px 0 0; max-width: 700px; position: relative; }
.fn-archive-header--author { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; }
.fn-archive-header--author img { border-radius: 50%; border: 3px solid var(--fn-red); position: relative; z-index: 1; }

.fn-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.fn-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fn-navy);
}
.fn-pagination .page-numbers.current { background: var(--fn-navy); border-color: var(--fn-navy); color: var(--fn-white); }
.fn-pagination .page-numbers:hover:not(.current) { background: var(--fn-red); border-color: var(--fn-red); color: var(--fn-white); }

/* ==========================================================================
   14. Pages statiques
   ========================================================================== */
.fn-page {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 40px 44px;
}
.fn-page__title {
  font-size: 34px;
  border-bottom: 3px solid var(--fn-navy);
  box-shadow: 0 3px 0 var(--fn-red);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.fn-page__content { font-size: 16.5px; line-height: 1.75; color: var(--fn-ink); }
.fn-page__content h2 { margin-top: 1.5em; }

.fn-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.fn-info-card {
  background: var(--fn-bg);
  border-top: 4px solid var(--fn-red);
  border-radius: var(--fn-radius);
  padding: 24px;
  text-align: center;
}
.fn-info-card h3 { font-size: 16px; margin-bottom: 8px; }
.fn-info-card p { font-size: 14px; color: var(--fn-gray); margin: 0; }

.fn-ad-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.fn-ad-format {
  border: 2px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 24px;
  text-align: center;
}
.fn-ad-format strong { display: block; font-size: 22px; color: var(--fn-navy); font-family: var(--fn-font-heading); }
.fn-ad-format span { font-size: 13px; color: var(--fn-gray); }

.fn-cta-band {
  background: var(--fn-navy);
  color: var(--fn-white);
  border-radius: var(--fn-radius);
  padding: 32px;
  text-align: center;
  margin-top: 28px;
}
.fn-cta-band h3 { color: var(--fn-white); font-size: 22px; }
.fn-cta-band .fn-btn-subscribe { margin-top: 12px; }

.fn-404 { text-align: center; padding: 60px 20px; }
.fn-404 h1 { font-size: 90px; color: var(--fn-navy); margin: 0; }
.fn-404 p { color: var(--fn-gray); font-size: 17px; }

/* ==========================================================================
   15. Commentaires
   ========================================================================== */
.fn-comments { margin-top: 36px; background: var(--fn-white); border: 1px solid var(--fn-border); border-radius: var(--fn-radius); padding: 28px 32px; }
.fn-comments__title { font-size: 20px; margin-bottom: 20px; }
.fn-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.fn-comments .comment { border-bottom: 1px solid var(--fn-gray-light); padding: 18px 0; }
.fn-comments .comment .children { list-style: none; padding-left: 32px; }
.fn-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.fn-comments .comment-author img { border-radius: 50%; }
.fn-comments .comment-metadata { font-size: 12px; color: var(--fn-gray); margin: 4px 0 8px; }
.fn-comments .comment-content { font-size: 15px; }
.fn-comments .reply a { font-size: 13px; font-weight: 700; color: var(--fn-red); }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--fn-border);
  border-radius: 4px;
  font-family: var(--fn-font-body);
  font-size: 15px;
  margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--fn-navy); border-color: transparent; }
.comment-form .submit {
  background: var(--fn-red);
  color: var(--fn-white);
  border: 0;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease;
}
.comment-form .submit:hover { background: var(--fn-red-dark); }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.fn-footer { background: var(--fn-navy-dark); color: rgba(255, 255, 255, .78); margin-top: 48px; }
.fn-footer a { color: rgba(255, 255, 255, .78); }
.fn-footer a:hover { color: var(--fn-white); }

.fn-footer__widgets {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding: 48px 0 36px;
}
.fn-footer__col h4 {
  color: var(--fn-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.fn-footer__col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 3px;
  background: var(--fn-red);
}
.fn-footer__col ul { list-style: none; margin: 0; padding: 0; }
.fn-footer__col li { padding: 5px 0; font-size: 14px; }
.fn-footer__cols-2 { columns: 2; column-gap: 24px; }
.fn-footer__cols-2 li { break-inside: avoid; }

.fn-footer__brand { text-align: center; }
.fn-footer__brand img { max-height: 110px; width: auto; margin: 0 auto; }
/* Support blanc : le logo couleur reste lisible sur le fond bleu marine (charte §2) */
.fn-footer__logo-img {
  display: inline-block;
  background: var(--fn-white);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.fn-footer__logo { font-family: var(--fn-font-heading); font-size: 26px; font-weight: 800; color: var(--fn-white); margin-bottom: 6px; }
.fn-footer__logo span { color: var(--fn-red); }
.fn-footer__slogan { font-size: 13px; color: rgba(255, 255, 255, .65); margin: 0 0 16px; }

.fn-footer__socials { display: flex; gap: 10px; justify-content: center; }
.fn-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background .2s ease;
}
.fn-footer__socials a:hover { background: var(--fn-red); color: var(--fn-white); }
.fn-footer__socials svg { width: 16px; height: 16px; fill: currentColor; }

.fn-footer__contact li { display: flex; gap: 10px; align-items: baseline; }
.fn-footer__contact .fn-ico { color: var(--fn-red); flex-shrink: 0; }
.fn-footer__qr {
  width: 92px; height: 92px;
  background: var(--fn-white);
  border-radius: 6px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fn-navy-dark);
  font-size: 10px;
  text-align: center;
  overflow: hidden;
}
.fn-footer__qr img { width: 100%; height: 100%; object-fit: contain; }

.fn-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.fn-footer__credit .fn-heart { color: var(--fn-red); }

.fn-back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  background: var(--fn-red);
  color: var(--fn-white);
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--fn-shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 400;
}
.fn-back-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   17. Premium — SEUL usage autorisé de l'or (charte §3)
   ========================================================================== */
.fn-premium { color: var(--fn-gold); }
.fn-badge-premium {
  display: inline-block;
  background: var(--fn-gold);
  color: var(--fn-navy-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 3px;
}

/* ==========================================================================
   17b. Pages institutionnelles (À propos, Publicité, Contact)
   ========================================================================== */
/* Hero de page */
.fn-page-hero {
  background: linear-gradient(135deg, var(--fn-navy) 0%, var(--fn-navy-dark) 100%);
  border-bottom: 4px solid var(--fn-red);
  color: var(--fn-white);
  padding: 52px 0 44px;
  margin: -28px 0 40px; /* colle le hero sous la barre breaking news */
  position: relative;
  overflow: hidden;
}
.fn-page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(215, 25, 32, .15);
}
.fn-page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.fn-page-hero h1 { color: var(--fn-white); font-size: 38px; margin: 14px 0 10px; letter-spacing: -.5px; }
.fn-page-hero__subtitle { color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.6; margin: 0; }
.fn-page-hero__slogan {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fn-white);
  border-left: 3px solid var(--fn-red);
  padding-left: 12px;
}

/* Fil d'Ariane */
.fn-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; }
.fn-breadcrumb li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); }
.fn-breadcrumb li + li::before { content: "›"; color: var(--fn-red); font-weight: 700; }
.fn-breadcrumb a { color: rgba(255, 255, 255, .75); }
.fn-breadcrumb a:hover { color: var(--fn-white); }

/* Sections */
.fn-section { margin-bottom: 52px; }
.fn-section__title {
  font-size: 26px;
  color: var(--fn-navy);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.fn-section__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  background: var(--fn-red);
}
.fn-section p { font-size: 16.5px; line-height: 1.75; color: var(--fn-ink); }
.fn-section--center { text-align: center; }
.fn-section--center .fn-section__title { display: inline-block; }
.fn-section--center .fn-section__title::after { left: 50%; transform: translateX(-50%); }

/* Présentation 2 colonnes (texte + visuel) */
.fn-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.fn-split__media {
  border-radius: var(--fn-radius);
  overflow: hidden;
  min-height: 300px;
  background: linear-gradient(135deg, var(--fn-navy) 0%, var(--fn-navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fn-split__media img { width: 100%; height: 100%; object-fit: cover; }
.fn-split__media-mark {
  font-family: var(--fn-font-heading);
  font-weight: 800;
  font-size: 54px;
  color: rgba(255, 255, 255, .25);
  letter-spacing: 2px;
}

/* Cartes mission / vision */
.fn-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fn-duo__card {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-top: 4px solid var(--fn-navy);
  border-radius: var(--fn-radius);
  padding: 30px;
}
.fn-duo__card:last-child { border-top-color: var(--fn-red); }
.fn-duo__card h3 { font-size: 20px; }

/* Cartes valeurs (6) */
.fn-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fn-value-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fn-value-card:hover { transform: translateY(-4px); box-shadow: var(--fn-shadow-hover); }
.fn-value-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--fn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fn-value-card__icon .fn-mi { width: 26px; height: 26px; color: var(--fn-navy); }
.fn-value-card:hover .fn-value-card__icon { background: var(--fn-red); }
.fn-value-card:hover .fn-value-card__icon .fn-mi { color: var(--fn-white); }
.fn-value-card h3 { font-size: 17px; margin-bottom: 8px; }
.fn-value-card p { font-size: 14px; color: var(--fn-gray); margin: 0; }

/* Rubriques (ligne éditoriale) */
.fn-rubrique-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.fn-rubrique-tags .fn-cat-badge { font-size: 12px; padding: 7px 14px; }
.fn-principles { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.fn-principles span {
  flex: 1;
  min-width: 160px;
  background: var(--fn-navy);
  color: var(--fn-white);
  font-family: var(--fn-font-heading);
  font-weight: 800;
  font-size: 19px;
  text-align: center;
  padding: 20px;
  border-radius: var(--fn-radius);
  border-bottom: 4px solid var(--fn-red);
}

/* Checklist (pourquoi nous suivre / engagement) */
.fn-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.fn-checklist li {
  position: relative;
  padding: 4px 0 4px 34px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fn-ink);
}
.fn-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--fn-red);
}
.fn-checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--fn-white);
  border-bottom: 2px solid var(--fn-white);
  transform: rotate(-45deg);
}

/* Bloc Fameen Group — usage corporate de l'or autorisé (charte §3) */
.fn-group-block {
  background: var(--fn-navy-dark);
  border-radius: var(--fn-radius);
  border-top: 4px solid var(--fn-gold);
  color: rgba(255, 255, 255, .85);
  padding: 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: center;
}
.fn-group-block__brand { text-align: center; }
.fn-group-block__brand img { max-height: 120px; width: auto; margin: 0 auto; }
.fn-group-block__logo { font-family: var(--fn-font-heading); font-weight: 800; font-size: 26px; color: var(--fn-white); }
.fn-group-block__logo span { color: var(--fn-gold); }
.fn-group-block__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fn-gold);
  margin-bottom: 8px;
}
.fn-group-block h2 { color: var(--fn-white); font-size: 24px; }
.fn-group-block p { color: rgba(255, 255, 255, .82); font-size: 15.5px; }

/* Bloc engagement (fond gris clair) */
.fn-engage {
  background: var(--fn-bg);
  border-radius: var(--fn-radius);
  padding: 40px;
}

/* Rangée de CTA */
.fn-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.fn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fn-red);
  color: var(--fn-white) !important;
  font-family: var(--fn-font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 28px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.fn-btn:hover { background: var(--fn-red-dark); transform: translateY(-1px); }
.fn-btn--outline { background: transparent; border: 2px solid var(--fn-red); color: var(--fn-red) !important; }
.fn-btn--outline:hover { background: var(--fn-red); color: var(--fn-white) !important; }

/* Offres publicitaires */
.fn-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fn-offer-card {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fn-offer-card:hover { transform: translateY(-4px); box-shadow: var(--fn-shadow-hover); }
.fn-offer-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--fn-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.fn-offer-card__icon .fn-mi { width: 22px; height: 22px; color: var(--fn-white); }
.fn-offer-card h3 { font-size: 17px; margin-bottom: 8px; }
.fn-offer-card p { font-size: 14px; color: var(--fn-gray); margin: 0; }

/* Packs partenaires */
.fn-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.fn-pack {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 32px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}
.fn-pack--featured { border: 2px solid var(--fn-gold); box-shadow: var(--fn-shadow-hover); }
.fn-pack .fn-badge-premium { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.fn-pack h3 { font-size: 19px; color: var(--fn-navy); }
.fn-pack__tagline { font-size: 13px; color: var(--fn-gray); margin-bottom: 18px; }
.fn-pack ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; text-align: left; }
.fn-pack li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; border-bottom: 1px solid var(--fn-gray-light); }
.fn-pack li:last-child { border-bottom: 0; }
.fn-pack li::before { content: "✓"; position: absolute; left: 0; color: var(--fn-red); font-weight: 700; }
.fn-pack .fn-btn { justify-content: center; }

/* Page contact */
.fn-contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.fn-form {
  background: var(--fn-white);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius);
  padding: 32px;
}
.fn-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--fn-navy); }
.fn-form input[type="text"],
.fn-form input[type="email"],
.fn-form select,
.fn-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fn-border);
  border-radius: 4px;
  font-family: var(--fn-font-body);
  font-size: 15px;
  margin-bottom: 18px;
  background: var(--fn-white);
  color: var(--fn-ink);
}
.fn-form input:focus, .fn-form select:focus, .fn-form textarea:focus { outline: 2px solid var(--fn-navy); border-color: transparent; }
.fn-form textarea { min-height: 150px; resize: vertical; }
.fn-form__honeypot { position: absolute !important; left: -9999px !important; }
.fn-alert { padding: 14px 18px; border-radius: 4px; font-size: 14.5px; font-weight: 600; margin-bottom: 22px; }
.fn-alert--success { background: #E8F6EE; color: #1E8449; border: 1px solid #BFE5CF; }
.fn-alert--error { background: #FDECEA; color: var(--fn-red); border: 1px solid #F5C6C4; }

.fn-contact-aside .fn-info-card { text-align: left; margin-bottom: 16px; }
.fn-contact-aside .fn-info-card h3 { display: flex; align-items: center; gap: 10px; }
.fn-contact-aside .fn-info-card .fn-mi { width: 18px; height: 18px; color: var(--fn-red); }

.fn-map { border-radius: var(--fn-radius); overflow: hidden; border: 1px solid var(--fn-border); margin-top: 8px; }
.fn-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ==========================================================================
   17c. Publicité des articles (zones fameen_ad_*)
   ========================================================================== */
.fn-adslot {
  margin: 28px auto;
  max-width: 728px;
  text-align: center;
}
.fn-adslot__label {
  display: block;
  font-family: var(--fn-font-heading);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #9AA1AE;
  margin-bottom: 6px;
}
.fn-adslot img, .fn-adslot iframe { margin: 0 auto; max-width: 100%; }
.fn-adslot .fn-ad { margin: 0 auto; }
.fn-adslot .fn-ad__placeholder { min-height: 90px; }

/* Haut d'article : 728x90 desktop */
.fn-adslot--top { margin-top: 0; }

/* Sidebar : pavé 300x250 et demi-page 300x600 */
.fn-adslot--sidebar250, .fn-adslot--sidebar600 { max-width: 300px; margin: 0 auto 24px; }
.fn-adslot--sidebar250 .fn-ad__placeholder { min-height: 250px; }
.fn-adslot--sidebar600 .fn-ad__placeholder { min-height: 600px; }
/* La demi-page reste visible pendant la lecture (sticky, non intrusive) */
.fn-adslot--sidebar600 { position: sticky; top: 66px; }

/* Sticky mobile 320x50 : masquée sur desktop, pilotée par fameen-ads.js */
.fn-sticky-ad {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: var(--fn-white);
  box-shadow: 0 -4px 18px rgba(0, 40, 85, .18);
  padding: 6px 8px 8px;
  text-align: center;
}
.fn-sticky-ad .fn-adslot__label { margin-bottom: 4px; }
.fn-sticky-ad .fn-ad__placeholder { min-height: 50px; max-width: 320px; margin: 0 auto; padding: 4px; }
.fn-sticky-ad img, .fn-sticky-ad iframe { margin: 0 auto; max-width: 100%; }
.fn-adslot__close {
  position: absolute;
  top: -14px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--fn-red);
  color: var(--fn-white);
  border: 2px solid var(--fn-white);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--fn-shadow);
}
.fn-adslot__close:hover { background: var(--fn-red-dark); }

/* ==========================================================================
   17d. Zones publicitaires du thème (fameen_ad_zone → Fameen Ads Manager)
   ========================================================================== */
.fn-adzone {
  margin: 28px auto;
  text-align: center;
}
/* Le plugin renvoie <div class="fads-slot"> avec son label et son image :
   on se contente de centrer et de garantir l'image responsive. */
.fn-adzone .fads-slot { margin: 0 auto; }
.fn-adzone img { max-width: 100%; height: auto; display: inline-block; }

/* Repli visuel « Espace publicitaire » (aucune pub active) — discret, jamais agressif */
.fn-adzone__fallback {
  background: var(--fn-bg);
  border: 1px dashed #C5CAD6;
  border-radius: 6px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 90px;
}
.fn-adzone__text {
  font-family: var(--fn-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fn-gray);
}
.fn-adzone__text small {
  display: block;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: none;
  font-size: 12px;
  margin-top: 2px;
}

/* Contraintes de largeur par emplacement (empêchent tout débordement) */
.fn-adzone--header,
.fn-adzone--wide  { max-width: 970px; }
.fn-adzone--sidebar250,
.fn-adzone--sidebar600 { max-width: 300px; }
.fn-adzone--sidebar250 .fn-adzone__fallback { min-height: 250px; }
.fn-adzone--sidebar600 .fn-adzone__fallback { min-height: 600px; }
/* La demi-page suit le défilement, comme le pavé du plugin */
.fn-adzone--sidebar600 { position: sticky; top: 66px; }

/* ==========================================================================
   18. Responsive
   --------------------------------------------------------------------------
   Les media queries (1024 / 768 / 480px) sont externalisées dans
   assets/css/responsive.css, chargée après style.css (voir functions.php).
   ========================================================================== */

/* ==========================================================================
   19. Classes WordPress natives (compatibilité)
   ========================================================================== */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--fn-gray); font-style: italic; text-align: center; padding: 6px 0; }
.sticky {}
.bypostauthor {}
.gallery-caption {}
