/*
Theme Name: Orléans Capitale
Theme URI: https://www.orleans-capitale.fr
Author: Thomas Moysan — Thomas fait de la com
Author URI: https://www.orleans-capitale.fr
Description: Thème sur-mesure pour Orléans Capitale, média économique du Centre-Val de Loire.
Version: 1.1.0
License: Propriétaire
Text Domain: orleans-capitale
*/

/* ── VARIABLES ───────────────────────────────────── */
:root {
  --noir: #0e0e0e;
  --blanc: #f5f2ed;
  --or: #ffde59;
  --or-clair: #ffe87a;
  --gris: #545454;
  --gris-clair: #e8e4de;
  --fond: #eeebe4;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--blanc); color: var(--noir); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── HEADER ──────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--blanc); border-bottom: 1px solid var(--gris-clair); }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 72px; }
.site-logo img { height: 48px; width: auto; display: block; }

.header-social { display: flex; align-items: center; gap: 20px; }
.header-social a { display: flex; align-items: center; justify-content: center; color: var(--gris); transition: color 0.2s; }
.header-social a:hover { color: var(--or); }
.icon-stroke svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

.header-nav { border-top: 1px solid var(--gris-clair); padding: 0 48px; display: flex; align-items: center; }
.header-nav li { list-style: none; display: inline-block; }
.header-nav ul { margin: 0; padding: 0; display: flex; align-items: center; }
.header-nav a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); padding: 14px 20px; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.header-nav a:hover,
.header-nav .current-menu-item > a,
.header-nav .current_page_item > a { color: var(--noir); border-bottom-color: var(--or); }
.nav-cta { margin-left: auto; background: var(--noir) !important; color: var(--blanc) !important; padding: 8px 20px !important; border-radius: 2px; border-bottom: none !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--or) !important; color: var(--noir) !important; }

/* ── MENU HAMBURGER ──────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--noir);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── HERO ACCUEIL ────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border-bottom: 1px solid var(--gris-clair); }
.hero-main { position: relative; overflow: hidden; background: var(--noir); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1209 0%, #2c1f0a 50%, #0e0e0e 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,222,89,0.04) 60px, rgba(255,222,89,0.04) 61px); }
.hero-content { position: relative; z-index: 2; padding: 60px 56px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.hero-cat { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); margin-bottom: 16px; display: block; }
.hero-title { font-family: var(--serif); font-size: 2.4rem; font-weight: 900; line-height: 1.15; color: var(--blanc); margin-bottom: 16px; }
.hero-desc { font-size: 0.95rem; color: rgba(245,242,237,0.65); line-height: 1.7; margin-bottom: 28px; max-width: 440px; }
.btn-lire { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); border-bottom: 1px solid rgba(255,222,89,0.4); padding-bottom: 4px; transition: gap 0.2s; }
.btn-lire:hover { gap: 14px; }
.btn-lire::after { content: '→'; }

.hero-aside { display: grid; grid-template-rows: 1fr 1fr; }
.hero-card { padding: 36px 40px; border-bottom: 1px solid var(--gris-clair); border-left: 1px solid var(--gris-clair); display: flex; flex-direction: column; justify-content: flex-end; transition: background 0.2s; }
.hero-card:last-child { border-bottom: none; }
.hero-card:hover { background: var(--fond); }
.hero-card .card-cat { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); margin-bottom: 10px; display: block; }
.hero-card .card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--noir); margin-bottom: 10px; }
.hero-card .card-desc { font-size: 0.85rem; color: var(--gris); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── TICKER ──────────────────────────────────────── */
.ticker { background: var(--noir); padding: 10px 48px; display: flex; align-items: center; gap: 24px; overflow: hidden; }
.ticker-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); white-space: nowrap; flex-shrink: 0; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-scroll { display: flex; gap: 48px; animation: ticker-scroll 30s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 0.8rem; color: rgba(245,242,237,0.7); }
.ticker-item b { color: var(--or); margin-right: 8px; font-weight: 400; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS RUBRIQUES ──────────────────────────── */
.rubrique-section { padding: 72px 48px; background: var(--fond); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; padding-bottom: 16px; border-bottom: 2px solid var(--noir); }
.section-head h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; }
.voir-plus { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); transition: color 0.2s; }
.voir-plus:hover { color: var(--or); }
.sep { height: 1px; background: var(--gris-clair); margin: 0 48px; }

/* ── GRILLE ARTICLES ─────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { cursor: pointer; }
.article-thumb { aspect-ratio: 16/9; background: var(--gris-clair); margin-bottom: 16px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.article-card:hover .article-thumb img { transform: scale(1.04); }
.article-cat { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); margin-bottom: 8px; display: block; }
.article-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--noir); margin-bottom: 10px; transition: color 0.2s; }
.article-card:hover .article-title { color: var(--gris); }
.article-excerpt { font-size: 0.85rem; color: var(--gris); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-date { margin-top: 12px; font-size: 0.72rem; color: var(--gris); }

/* ── PAGE ARTICLE SINGLE ─────────────────────────── */
.single-hero { background: var(--noir); padding: 72px 48px; }
.single-hero .article-cat { color: var(--or); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; display: block; }
.single-hero h1 { font-family: var(--serif); font-size: 2.8rem; font-weight: 900; color: var(--blanc); line-height: 1.15; max-width: 860px; margin-bottom: 20px; }
.single-hero .single-meta { font-size: 0.8rem; color: rgba(245,242,237,0.5); }
.single-featured { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.single-content { max-width: 760px; margin: 0 auto; padding: 64px 48px; }
.single-content p { font-size: 1.05rem; line-height: 1.85; color: var(--gris); margin-bottom: 24px; }
.single-content h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--noir); margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--or); }
.single-content h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--noir); margin: 32px 0 12px; }
.single-content blockquote { border-left: 3px solid var(--or); padding: 16px 24px; margin: 32px 0; background: var(--fond); }
.single-content blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--noir); margin: 0; }
.single-content ul, .single-content ol { padding-left: 24px; margin-bottom: 24px; }
.single-content li { font-size: 1rem; color: var(--gris); line-height: 1.8; margin-bottom: 8px; }
.single-content a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.single-content img { border-radius: 2px; margin: 32px 0; }

/* ── PAGE CATÉGORIE ──────────────────────────────── */
.archive-hero { background: var(--noir); padding: 56px 48px; }
.archive-hero h1 { font-family: var(--serif); font-size: 2.8rem; font-weight: 900; color: var(--blanc); }
.archive-hero p { color: rgba(245,242,237,0.6); margin-top: 12px; font-size: 1rem; }
.archive-grid { padding: 56px 48px; background: var(--fond); }

/* ── NEWSLETTER ──────────────────────────────────── */
.nl-section { background: var(--noir); padding: 72px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nl-section h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 900; color: var(--blanc); line-height: 1.2; margin-bottom: 16px; }
.nl-section h2 em { font-style: italic; color: var(--or); }
.nl-section p { font-size: 0.95rem; color: rgba(245,242,237,0.6); line-height: 1.7; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form input { background: rgba(245,242,237,0.08); border: 1px solid rgba(245,242,237,0.2); color: var(--blanc); font-family: var(--sans); font-size: 0.95rem; padding: 14px 20px; outline: none; transition: border-color 0.2s; }
.nl-form input::placeholder { color: rgba(245,242,237,0.3); }
.nl-form input:focus { border-color: var(--or); }
.nl-form button { background: var(--or); color: var(--noir); font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px; border: none; cursor: pointer; transition: background 0.2s; }
.nl-form button:hover { background: var(--or-clair); }
.nl-note { font-size: 0.72rem; color: rgba(245,242,237,0.3); }

/* ── CAPITALE PRO BANNER ─────────────────────────── */
.pro-banner { padding: 72px 48px; background: var(--fond); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pro-badge { display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; background: var(--or); color: var(--noir); padding: 4px 10px; margin-bottom: 20px; }
.pro-banner h2 { font-family: var(--serif); font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.pro-banner p { font-size: 0.95rem; color: var(--gris); line-height: 1.7; margin-bottom: 28px; }
.pro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pro-stat { border-left: 2px solid var(--or); padding-left: 16px; }
.pro-stat-num { font-family: var(--serif); font-size: 1.8rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.pro-stat-label { font-size: 0.75rem; color: var(--gris); line-height: 1.4; }
.btn-pro { display: inline-flex; align-items: center; gap: 10px; background: var(--noir); color: var(--blanc); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 28px; transition: background 0.2s; }
.btn-pro:hover { background: var(--or); color: var(--noir); }
.btn-pro::after { content: '→'; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: #0a0a0a; color: rgba(245,242,237,0.5); padding: 56px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(245,242,237,0.08); margin-bottom: 32px; }
.footer-brand .site-logo img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(245,242,237,0.12); border-radius: 50%; color: rgba(245,242,237,0.4); transition: color 0.2s, border-color 0.2s; }
.footer-social a:hover { color: var(--or); border-color: var(--or); }
.footer-social .icon-stroke svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social .icon-fill svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.footer-col h4 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blanc); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(245,242,237,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--or); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(245,242,237,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--or); }

/* ── PAGES STATIQUES ─────────────────────────────── */
.page-hero { background: var(--noir); padding: 72px 48px; }
.page-hero .cat-tag { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); margin-bottom: 20px; display: block; }
.page-hero h1 { font-family: var(--serif); font-size: 3rem; font-weight: 900; color: var(--blanc); line-height: 1.1; margin-bottom: 16px; }
.page-hero .lead { font-size: 1.1rem; color: rgba(245,242,237,0.65); max-width: 640px; line-height: 1.7; }
.page-body { padding: 72px 48px; max-width: 860px; }
.page-body h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--or); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; color: var(--noir); }
.page-body p { font-size: 1rem; color: var(--gris); line-height: 1.8; margin-bottom: 16px; }
.page-body strong { color: var(--noir); font-weight: 500; }
.page-body ul { padding-left: 20px; margin-bottom: 16px; list-style: disc; }
.page-body ul li { font-size: 1rem; color: var(--gris); line-height: 1.8; margin-bottom: 6px; }
.page-body a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.page-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.page-body table th { background: var(--noir); color: var(--blanc); padding: 12px 16px; text-align: left; font-weight: 500; }
.page-body table td { padding: 12px 16px; border-bottom: 1px solid var(--gris-clair); color: var(--gris); }
.page-body table tr:last-child td { border-bottom: none; }

/* ── NEWSLETTER PAGE ──────────────────────────────── */
.nl-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 56px 48px; background: var(--fond); }
.nl-perk { border-left: 3px solid var(--or); padding: 20px 24px; }
.nl-perk-icon { font-size: 1.6rem; margin-bottom: 12px; }
.nl-perk h3 { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--noir); }
.nl-perk p { font-size: 0.85rem; color: var(--gris); line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* Header */
  .header-top { padding: 0 24px; }
  .header-social { gap: 14px; }

  /* Menu hamburger */
  .menu-toggle { display: flex; }
  .header-nav {
    flex-wrap: wrap;
    padding: 12px 24px;
    align-items: center;
    justify-content: flex-start;
  }
  .header-nav > a {
    display: none;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--gris-clair);
    border-left: none;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }
  .header-nav.open > a { display: block; }
  .header-nav > a.nav-cta {
    margin: 12px 0;
    text-align: center;
    padding: 12px !important;
    border-radius: 2px;
    border-bottom: none !important;
  }

  /* Sections */
  .rubrique-section, .archive-grid, .single-content,
  .page-hero, .page-body, .single-hero, .archive-hero,
  .nl-perks { padding-left: 24px; padding-right: 24px; }

  .hero { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .nl-section, .pro-banner { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 0 0 40px; }
  .ticker { padding: 10px 24px; }
  .sep { margin: 0 24px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .single-hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .nl-perks { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

}