/*
Theme Name: Le Beffroi
Theme URI: https://lebeffroi-journal.fr
Author: Cyrille GITH
Description: Thème journal pour Le Beffroi — Premier journal français édité par IA
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: le-beffroi
*/

/* === GOOGLE FONTS === */
/* Fonts loaded via functions.php for better performance (preload instead of @import) */

:root {
  --brique: #8B2500;
  --brique-sombre: #6B1C00;
  --brique-clair: #A63D1A;
  --cuivre: #B87333;
  --cuivre-clair: #D4944A;
  --ardoise: #2C3E50;
  --ardoise-profond: #1A252F;
  --ivoire: #FAF6ED;
  --ivoire-chaud: #F0E8D5;
  --encre: #1C1C1C;
  --gris-chaud: #5A5248;
  --gris-moyen: #8A8278;
  --papier: #FDFAF3;
  --flamme: #E85D24;
  --braise: #D4420A;
}

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

body {
  background: var(--papier);
  color: var(--encre);
  font-family: 'Lora', 'Georgia', serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brique); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--flamme); }

/* === MANCHETTE / HEADER === */
.masthead {
  background: linear-gradient(175deg, var(--ardoise-profond) 0%, var(--ardoise) 60%, var(--brique-sombre) 100%);
  color: var(--ivoire);
  text-align: center;
  padding: 16px 20px 12px;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(184,115,51,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cuivre-clair);
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  position: relative;
}
.beffroi-icon {
  display: inline-block;
  width: 40px;
  height: 56px;
  position: relative;
  margin: 6px auto 4px;
}
.beffroi-icon svg { width: 100%; height: 100%; }
.masthead-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(36px, 7vw, 72px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 2px;
  text-transform: uppercase;
  position: relative;
  color: var(--ivoire);
  text-shadow: 0 2px 12px rgba(184,115,51,0.2);
}
.masthead-title span.le {
  font-size: 0.45em;
  letter-spacing: 0.2em;
  display: block;
  font-weight: 400;
  color: var(--cuivre-clair);
  margin-bottom: -4px;
}
.masthead-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 6px 0 4px;
  position: relative;
}
.masthead-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(212,148,74,0.7);
  position: relative;
}

/* BANDE CUIVRE */
.bande-cuivre {
  height: 5px;
  background: linear-gradient(90deg, var(--brique) 0%, var(--cuivre) 30%, var(--cuivre-clair) 50%, var(--cuivre) 70%, var(--brique) 100%);
}

/* === NAVIGATION === */
.nav-bar {
  background: var(--ardoise);
  border-bottom: 1px solid rgba(184,115,51,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
}
.nav-inner a {
  color: var(--ivoire);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: all 0.2s;
  white-space: nowrap;
  border-right: 1px solid rgba(184,115,51,0.12);
  position: relative;
}
.nav-inner a:first-child { border-left: 1px solid rgba(184,115,51,0.12); }
.nav-inner a:hover, .nav-inner a.active {
  background: var(--brique);
  color: var(--ivoire);
}

/* === FLASH INFO === */
.flash-bar {
  background: linear-gradient(90deg, var(--braise) 0%, var(--flamme) 50%, var(--braise) 100%);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 20px;
  position: relative;
  overflow: hidden;
}
.flash-label {
  background: white;
  color: var(--braise);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 10px;
  letter-spacing: 0.18em;
}

/* === CONTAINER === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === ÉDITORIAL === */
.editorial-banner {
  background: var(--ardoise-profond);
  color: var(--ivoire);
  padding: 32px 40px;
  margin: 26px 0;
  border-left: 5px solid var(--cuivre);
  position: relative;
  border-radius: 0 4px 4px 0;
}
.editorial-banner::before {
  content: '«';
  font-family: 'Playfair Display', serif;
  font-size: 130px;
  position: absolute;
  top: -25px; left: 18px;
  color: rgba(184,115,51,0.1);
  line-height: 1;
}
.edito-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 10px;
}
.edito-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.edito-text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(250,246,237,0.88);
  max-width: 740px;
}
.edito-text p { margin-bottom: 12px; }
.edito-sig {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--cuivre-clair);
  font-size: 13px;
}

/* === SECTIONS === */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brique);
  padding-bottom: 6px;
  margin: 28px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 18px; height: 3px;
  background: var(--cuivre);
  flex-shrink: 0;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ivoire-chaud);
}

/* === GRID ARTICLES === */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-bottom: 32px;
}
@media (max-width: 768px) { .articles-grid { grid-template-columns: 1fr; } }

/* === ARTICLE PRINCIPAL === */
.article-une { padding-bottom: 24px; }
.article-une .rubrique-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flamme);
  font-weight: 700;
  margin-bottom: 6px;
}
.article-une h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 10px;
  color: var(--ardoise-profond);
}
.article-une h2 a { color: var(--ardoise-profond); }
.article-une h2 a:hover { color: var(--brique); }
.article-une .chapo {
  font-size: 16px;
  font-style: italic;
  color: var(--gris-chaud);
  line-height: 1.6;
  margin-bottom: 14px;
  border-left: 3px solid var(--cuivre);
  padding-left: 16px;
}
.article-une .corps {
  font-size: 14.5px;
  line-height: 1.8;
}
.article-une .corps p { margin-bottom: 14px; text-align: justify; hyphens: auto; }
.article-une .meta-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gris-moyen);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dotted var(--ivoire-chaud);
}

/* === FACT-CHECK === */
.fact-check-box {
  background: rgba(30,120,70,0.06);
  border: 1px solid rgba(30,120,70,0.2);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  color: #1E7846;
  margin-top: 12px;
  font-family: 'Cormorant Garamond', serif;
}
.fact-check-box strong { letter-spacing: 0.12em; text-transform: uppercase; font-size: 10px; }

/* === SIDEBAR === */
.sidebar { border-left: 2px solid var(--cuivre); padding-left: 24px; }
.sidebar-article { padding: 16px 0; border-bottom: 1px solid var(--ivoire-chaud); }
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article .rubrique-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flamme);
  font-weight: 700;
  margin-bottom: 4px;
}
.sidebar-article h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ardoise-profond);
  margin-bottom: 6px;
}
.sidebar-article h3 a { color: var(--ardoise-profond); }
.sidebar-article h3 a:hover { color: var(--brique); }
.sidebar-article p { font-size: 13px; color: var(--gris-chaud); line-height: 1.6; }
.sidebar-article .meta-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--gris-moyen);
  margin-top: 6px;
}

/* === GRID CARDS (secondary articles) === */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
@media (max-width: 768px) { .grid-cards { grid-template-columns: 1fr; } }
.card { border-top: 3px solid var(--brique); padding-top: 14px; }
.card .rubrique-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flamme);
  font-weight: 700;
  margin-bottom: 5px;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ardoise-profond);
  margin-bottom: 8px;
}
.card h3 a { color: var(--ardoise-profond); }
.card h3 a:hover { color: var(--brique); }
.card p { font-size: 13.5px; color: var(--gris-chaud); line-height: 1.6; }
.card .meta-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: var(--gris-moyen);
  margin-top: 8px;
}

/* === ORNEMENT === */
.ornement {
  text-align: center;
  color: var(--cuivre);
  font-size: 16px;
  letter-spacing: 10px;
  margin: 22px 0;
  opacity: 0.45;
}

/* === IA BADGE === */
.ia-badge {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--cuivre);
  padding: 4px 14px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cuivre);
  font-family: 'Cormorant Garamond', serif;
}

/* === ÉDITIONS NAVIGATION === */
.editions-nav {
  background: var(--ardoise-profond);
  padding: 14px 20px;
  text-align: center;
  border-top: 2px solid var(--cuivre);
  margin-top: 20px;
}
.editions-nav a {
  color: var(--cuivre-clair);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  margin: 0 4px;
  border: 1px solid rgba(184,115,51,0.25);
  border-radius: 2px;
  display: inline-block;
  transition: all 0.2s;
}
.editions-nav a:hover, .editions-nav a.current {
  background: var(--brique);
  color: white;
  border-color: var(--brique);
}
.editions-nav .editions-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 8px;
}

/* === FOOTER === */
.site-footer {
  background: var(--ardoise-profond);
  color: rgba(250,246,237,0.55);
  text-align: center;
  padding: 28px 20px;
  margin-top: 40px;
  border-top: 4px solid var(--cuivre);
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.site-footer .ft-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--cuivre-clair);
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.site-footer .ft-slogan {
  font-style: italic;
  color: rgba(212,148,74,0.6);
  font-size: 13px;
  margin-bottom: 8px;
}
.site-footer p { margin: 3px 0; }
.site-footer .badge-ia {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--cuivre);
  padding: 5px 16px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cuivre);
}

/* === SINGLE ARTICLE === */
.single-article { max-width: 780px; margin: 30px auto; padding: 0 20px; }
.single-article .rubrique-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flamme);
  font-weight: 700;
  margin-bottom: 8px;
}
.single-article h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ardoise-profond);
  margin-bottom: 14px;
}
.single-article .entry-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--gris-moyen);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ivoire-chaud);
  letter-spacing: 0.05em;
}
.single-article .entry-content {
  font-size: 15px;
  line-height: 1.85;
}
.single-article .entry-content p { margin-bottom: 16px; text-align: justify; hyphens: auto; }
.single-article .entry-content blockquote {
  border-left: 3px solid var(--cuivre);
  padding-left: 16px;
  font-style: italic;
  color: var(--gris-chaud);
  margin: 18px 0;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.24s; }
.fade-in:nth-child(4) { animation-delay: 0.36s; }

/* === HIDE WP ADMIN BAR INTERFERENCE === */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* === MENU DÉROULANT (3 onglets — v4 du 1er juin 2026) === */
.nav-inner { gap: 0; }
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown > .nav-dropdown-toggle {
  /* hérite du style .nav-inner a */
}
.nav-dropdown .caret {
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.75;
  transition: transform 0.2s;
}
.nav-dropdown:hover .caret,
.nav-dropdown:focus-within .caret {
  transform: translateY(2px);
  opacity: 1;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ardoise-profond);
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(184,115,51,0.3);
  border-top: 2px solid var(--cuivre);
  padding: 4px 0;
}
.nav-dropdown-menu a {
  display: block !important;
  padding: 9px 18px !important;
  font-size: 11.5px !important;
  letter-spacing: 0.12em !important;
  border-right: none !important;
  border-left: 2px solid transparent !important;
  white-space: nowrap;
  color: var(--ivoire) !important;
  background: transparent !important;
}
.nav-dropdown-menu a:first-child { border-left-color: transparent !important; }
.nav-dropdown-menu a.nav-dropdown-heading {
  margin-top: 4px;
  border-top: 1px solid rgba(184,115,51,0.3) !important;
  color: var(--cuivre-clair) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  opacity: 0.95;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--brique) !important;
  border-left-color: var(--cuivre-clair) !important;
  color: var(--ivoire) !important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
  animation: dropdown-fade 0.18s ease;
}
@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Mobile : tap = ouverture (focus-within), dropdown en bloc */
@media (max-width: 768px) {
  .nav-inner { flex-direction: column; }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--cuivre);
    background: rgba(0,0,0,0.25);
    min-width: 100%;
  }
  .nav-dropdown-menu a {
    padding-left: 32px !important;
  }
}
