/* ================================================================
   Gorée Actualités — frontend.css v1.0.0
   Palette : Bleu #1B4FA8 | Or #C9951A | Rouge #C8102E | Sable #F7F2E8
   Typo    : Playfair Display (titres) + Source Sans 3 (corps)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --gn-primary:  #1B4FA8;
  --gn-dark:     #0D2E6E;
  --gn-gold:     #C9951A;
  --gn-gold-lt:  #E8B84B;
  --gn-red:      #C8102E;
  --gn-sable:    #F7F2E8;
  --gn-text:     #1a1a2e;
  --gn-muted:    #666;
  --gn-border:   #e0e0e0;
  --gn-t:        .22s ease;
}

/* ── Base ──────────────────────────────────────────────────── */
.gorn-wrap  { font-family: 'Source Sans 3', system-ui, sans-serif; }
.gorn-empty { color: #888; font-style: italic; padding: 20px; text-align: center; }

/* ── Ticker Alerte / Breaking ──────────────────────────────── */
.gorn-ticker-wrap  { display: flex; align-items: center; background: #0d0d0d; overflow: hidden; height: 40px; }
.gorn-ticker-label {
  background: var(--gn-red); color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 0 16px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.gorn-ticker-track { flex: 1; overflow: hidden; }
.gorn-ticker-inner { display: flex; align-items: center; animation: gorn-ticker 30s linear infinite; white-space: nowrap; }
.gorn-ticker-inner:hover { animation-play-state: paused; }
.gorn-ticker-item  { color: rgba(255,255,255,.88); font-size: 13px; text-decoration: none; padding: 0 20px; transition: color var(--gn-t); }
.gorn-ticker-item:hover { color: var(--gn-gold-lt); }
.gorn-ticker-sep   { color: rgba(255,255,255,.3); font-size: 18px; }
@keyframes gorn-ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ── Filtres ───────────────────────────────────────────────── */
.gorn-filter-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--gn-sable);
}
.gorn-ftab {
  background: none; border: 2px solid var(--gn-border);
  padding: 7px 18px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--gn-muted);
  border-radius: 4px;
  transition: all var(--gn-t);
}
.gorn-ftab:hover  { border-color: var(--gn-primary); color: var(--gn-primary); }
.gorn-ftab.active { background: var(--gn-primary); border-color: var(--gn-primary); color: #fff; }

/* ── Grille d'articles ─────────────────────────────────────── */
.gorn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ── Carte article ─────────────────────────────────────────── */
.gorn-card-article {
  background: #fff;
  border: 1px solid var(--gn-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.gorn-card-article:hover { box-shadow: 0 12px 32px rgba(13,46,110,.14); transform: translateY(-3px); }
.gorn-card-photo-link { display: block; text-decoration: none; }

/* Photo */
.gorn-card-photo { position: relative; padding-top: 56.25%; overflow: hidden; background: #1a1a2e; }
.gorn-card-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s ease;
}
.gorn-card-article:hover .gorn-card-photo img { transform: scale(1.05); }
.gorn-photo-fallback {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 40px; background: var(--gn-sable);
}

/* ── Système position titre ────────────────────────────────── */
.gorn-card-top-overlay {
  position: absolute; left: 0; right: 0;
  padding: 14px 14px 40px; z-index: 3; pointer-events: none;
}
.gorn-card-top-overlay .gorn-card-title-text {
  margin: 0; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.gorn-card-title-below { display: none; }

/* overlay_top : overlay en haut */
.gorn-tp-overlay_top  .gorn-card-top-overlay { top: 0; bottom: auto; }
.gorn-tp-overlay_top  .gorn-card-title-below { display: none; }
/* overlay_bottom : overlay en bas */
.gorn-tp-overlay_bottom .gorn-card-top-overlay { top: auto; bottom: 0; padding: 40px 14px 14px; }
.gorn-tp-overlay_bottom .gorn-card-title-below { display: none; }
/* below : titre dans le corps */
.gorn-tp-below .gorn-card-top-overlay           { display: none; }
.gorn-tp-below .gorn-card-title-below           { display: block; }
.gorn-tp-below .gorn-card-title-below a         { color: var(--gn-text); text-decoration: none; }
.gorn-tp-below .gorn-card-title-below a:hover   { color: var(--gn-primary); }

/* Titre générique */
.gorn-card-title-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px; font-weight: 700;
  line-height: 1.35; margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Corps */
.gorn-card-body    { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gorn-card-excerpt { font-size: 13px; color: var(--gn-muted); line-height: 1.6; margin: 0; flex: 1; }
.gorn-card-meta    {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: #aaa;
  padding-top: 8px; border-top: 1px solid var(--gn-sable); margin-top: auto;
}

/* ── Badges ────────────────────────────────────────────────── */
.gorn-badge-breaking,
.gorn-badge-une {
  position: absolute; top: 10px; left: 0; z-index: 3;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; display: inline-block;
}
.gorn-badge-breaking { background: var(--gn-red);  color: #fff; }
.gorn-badge-une      { background: var(--gn-gold);  color: #fff; }

.gorn-badge-cat {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(13,46,110,.75); color: #fff; border-radius: 3px;
}

/* ── Article À LA UNE ──────────────────────────────────────── */
.gorn-une         { display: block; position: relative; text-decoration: none; overflow: hidden; min-height: 500px; border-radius: 8px; }
.gorn-une-photo   { position: absolute; inset: 0; }
.gorn-une-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gorn-une:hover .gorn-une-photo img { transform: scale(1.03); }
.gorn-une-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,46,110,.88) 0%, rgba(13,46,110,.3) 50%, transparent 100%); }
.gorn-une-content {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; min-height: 500px; padding: 36px 40px; color: #fff;
}
.gorn-une-cat {
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--gn-gold); padding: 4px 14px;
  display: inline-block; align-self: flex-start; margin-bottom: 14px;
  border-radius: 3px;
}
.gorn-une-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px; font-weight: 900;
  line-height: 1.15; margin: 0 0 14px; color: #fff; max-width: 720px;
}
.gorn-une-excerpt { font-size: 17px; opacity: .88; line-height: 1.6; margin: 0 0 16px; max-width: 620px; }
.gorn-une-meta    { display: flex; gap: 18px; font-size: 13px; opacity: .72; margin-bottom: 18px; flex-wrap: wrap; }
.gorn-une-btn {
  display: inline-block; font-family: 'Source Sans 3', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.6); padding: 10px 24px;
  transition: all var(--gn-t); align-self: flex-start; border-radius: 4px;
}
.gorn-une:hover .gorn-une-btn { background: #fff; color: var(--gn-dark); border-color: #fff; }

/* ── Highlight ─────────────────────────────────────────────── */
.gorn-highlight-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gorn-hl-card         {
  position: relative; min-height: 240px;
  background-size: cover; background-position: center;
  overflow: hidden; border-radius: 8px;
}
.gorn-hl-overlay  { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,46,110,.82) 0%, transparent 60%); }
.gorn-hl-content  { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; z-index: 1; }
.gorn-hl-content h3 {
  margin: 6px 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px; font-weight: 700; line-height: 1.3;
}
.gorn-hl-content h3 a { color: #fff; text-decoration: none; }
.gorn-hl-content h3 a:hover { color: var(--gn-gold-lt); }
.gorn-hl-date { font-size: 11px; color: rgba(255,255,255,.6); }

/* ── Sidebar Actualités ────────────────────────────────────── */
.gorn-sidebar-actus { font-family: 'Source Sans 3', sans-serif; width: 100%; }

.gorn-sidebar-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; font-weight: 700;
  color: var(--gn-dark);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gn-primary);
  margin: 0 0 6px;
}

.gorn-sidebar-list { display: flex; flex-direction: column; }

.gorn-si {
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #ebebeb; text-decoration: none;
}
.gorn-si:last-child { border-bottom: none; }

.gorn-si-img-link {
  display: block; flex: 0 0 110px; width: 110px; height: 80px;
  overflow: hidden; border-radius: 6px; text-decoration: none; background: #e8e8e8;
}
.gorn-si-img-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gorn-si:hover .gorn-si-img-link img { transform: scale(1.07); }

.gorn-si-no-img {
  flex: 0 0 110px; width: 110px; height: 80px;
  background: var(--gn-sable); display: flex; align-items: center; justify-content: center;
  font-size: 26px; border-radius: 6px; flex-shrink: 0;
}
.gorn-si-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: flex-start; gap: 5px; padding-top: 2px;
}
.gorn-si-cat {
  display: inline-block; background: var(--gn-primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  padding: 2px 8px; border-radius: 3px; text-decoration: none; text-transform: uppercase;
  align-self: flex-start; transition: opacity .2s;
}
.gorn-si-cat:hover { opacity: .85; }

.gorn-si-title {
  font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 700;
  line-height: 1.45; color: var(--gn-dark); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--gn-t);
}
.gorn-si-title:hover { color: var(--gn-primary); }
.gorn-si-date { font-size: 12px; color: #999; white-space: nowrap; }

/* ── Single article ────────────────────────────────────────── */
.gorn-single-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.gorn-single-article { font-family: 'Source Sans 3', sans-serif; }

.gorn-single-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 42px); font-weight: 900;
  color: var(--gn-dark); line-height: 1.2; margin: 0 0 18px;
}
.gorn-single-hero {
  width: 100%; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 20px;
}
.gorn-single-hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 28px;
}
.gorn-single-title-overlay { color: #fff; margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

.gorn-single-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--gn-muted);
  padding: 14px 0; border-top: 2px solid var(--gn-sable); border-bottom: 2px solid var(--gn-sable);
  margin-bottom: 28px;
}
.gorn-single-cat {
  background: var(--gn-primary); color: #fff;
  padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-decoration: none; text-transform: uppercase;
}
.gorn-single-ext-link { color: var(--gn-gold); text-decoration: none; font-weight: 600; }
.gorn-single-ext-link:hover { color: var(--gn-dark); }

.gorn-single-content { line-height: 1.85; font-size: 17px; color: #333; }
.gorn-single-content h2 { font-family: 'Playfair Display', serif; color: var(--gn-dark); margin-top: 32px; }
.gorn-single-content h3 { font-family: 'Playfair Display', serif; color: var(--gn-primary); }
.gorn-single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.gorn-single-content blockquote {
  border-left: 4px solid var(--gn-gold); padding: 14px 22px;
  background: var(--gn-sable); border-radius: 0 6px 6px 0; font-style: italic;
  margin: 24px 0;
}

/* Tags */
.gorn-single-tags { margin: 28px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gorn-tag-pill {
  background: var(--gn-sable); color: var(--gn-dark);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--gn-border); transition: all var(--gn-t);
}
.gorn-tag-pill:hover { background: var(--gn-primary); color: #fff; border-color: var(--gn-primary); }

/* Nav prev/next */
.gorn-single-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin: 36px 0; padding: 20px 0;
  border-top: 2px solid var(--gn-sable); border-bottom: 2px solid var(--gn-sable);
}
.gorn-nav-prev, .gorn-nav-next {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  max-width: 45%;
}
.gorn-nav-next { text-align: right; }
.gorn-nav-dir  { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gn-gold); }
.gorn-nav-title { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--gn-dark); font-weight: 700; line-height: 1.3; transition: color var(--gn-t); }
.gorn-nav-prev:hover .gorn-nav-title,
.gorn-nav-next:hover .gorn-nav-title { color: var(--gn-primary); }
.gorn-nav-empty { flex: 1; }

/* Articles liés */
.gorn-related { margin-top: 40px; }
.gorn-related-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  color: var(--gn-dark); margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 3px solid var(--gn-primary);
}
.gorn-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gorn-related-card { text-decoration: none; border-radius: 6px; overflow: hidden; border: 1px solid var(--gn-border); transition: box-shadow .2s; }
.gorn-related-card:hover { box-shadow: 0 6px 20px rgba(13,46,110,.12); }
.gorn-related-img { position: relative; padding-top: 62%; background: var(--gn-sable); overflow: hidden; }
.gorn-related-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gorn-related-card:hover .gorn-related-img img { transform: scale(1.06); }
.gorn-related-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.gorn-related-body { padding: 12px 14px; }
.gorn-related-body h4 { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--gn-dark); margin: 6px 0 4px; line-height: 1.3; }
.gorn-related-date { font-size: 11px; color: #aaa; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) and (min-width: 769px) {
  .gorn-une-title      { font-size: 28px; }
  .gorn-une-content    { padding: 22px; }
  .gorn-grid           { grid-template-columns: 1fr 1fr; }
  .gorn-highlight-grid { grid-template-columns: 1fr 1fr; }
  .gorn-related-grid   { grid-template-columns: 1fr 1fr; }
  .gorn-si-img-link    { flex: 0 0 100px; width: 100px; height: 72px; }
  .gorn-si-no-img      { flex: 0 0 100px; width: 100px; height: 72px; }
}

/* MOBILE ≤ 768px — 1 colonne stricte */
@media (max-width: 768px) {
  .gorn-grid,
  .gorn-grid[data-pos]     { grid-template-columns: 1fr !important; }
  .gorn-highlight-grid     { grid-template-columns: 1fr !important; }
  .gorn-related-grid       { grid-template-columns: 1fr !important; }

  .gorn-une                { min-height: 300px; }
  .gorn-une-content        { min-height: 300px; padding: 22px 18px; }
  .gorn-une-title          { font-size: 22px; }
  .gorn-une-excerpt        { font-size: 14px; }

  .gorn-filter-tabs        { gap: 5px; margin-bottom: 18px; }
  .gorn-ftab               { padding: 6px 12px; font-size: 12px; }

  .gorn-card-photo         { padding-top: 56%; }
  .gorn-card-title-text    { font-size: 14px !important; }
  .gorn-card-body          { padding: 12px 14px; }

  .gorn-hl-card            { min-height: 190px; }

  .gorn-si-img-link        { flex: 0 0 88px; width: 88px; height: 64px; }
  .gorn-si-no-img          { flex: 0 0 88px; width: 88px; height: 64px; }
  .gorn-si-title           { font-size: 13px; }

  .gorn-single-wrap        { padding: 20px 16px 40px; }
  .gorn-single-title       { font-size: 22px; }
  .gorn-single-content     { font-size: 15px; }

  .gorn-single-nav         { flex-direction: column; gap: 14px; }
  .gorn-nav-prev, .gorn-nav-next { max-width: 100%; }
  .gorn-nav-next           { text-align: left; }

  .gorn-related-grid       { grid-template-columns: 1fr; }
}

/* ── Correctif liens dans les cartes news (thème Gorée) ─────────
   Le global a{color:var(--c-primary)} rend les liens invisibles
   sur fond sombre (.news-featured). Priorité identique au thème.
   ─────────────────────────────────────────────────────────────── */

/* Fond blanc : titre lien = bleu foncé (inherit), hover = bleu primaire */
.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.news-card:hover .news-title a { color: var(--c-primary, #1B4FA8); }

/* Fond sombre (.news-featured) : titre lien = or clair #E8B84B
   Même couleur que le bouton "Lire la suite" sur fond sombre.   */
.news-featured .news-title a {
  color: var(--c-gold-lt, #E8B84B);
}
.news-featured .news-title a:hover { color: #fff; }
