/*
Theme Name: Guide Laeroport News
Theme URI: https://guide.laeroport.fr
Description: Thème actualités pour Guide Laeroport — Design Altitude
Version: 1.0
Author: Digitalyz
*/

/* ============================================================
   Guide News - Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper:        oklch(0.985 0.006 95);
  --paper-2:      oklch(0.965 0.008 95);
  --card:         oklch(1 0 0);
  --ink:          oklch(0.26 0.022 255);
  --ink-soft:     oklch(0.46 0.02 255);
  --ink-faint:    oklch(0.62 0.018 255);
  --line:         oklch(0.90 0.01 255);
  --line-strong:  oklch(0.83 0.014 255);
  --primary:      oklch(0.45 0.105 252);
  --primary-deep: oklch(0.31 0.075 256);
  --primary-tint: oklch(0.95 0.022 252);
  --on-primary:   oklch(0.985 0.006 95);
  --accent:       oklch(0.70 0.165 42);
  --accent-deep:  oklch(0.58 0.16 38);
  --accent-tint:  oklch(0.95 0.03 60);
  --ok:           oklch(0.62 0.13 155);
  --warn:         oklch(0.72 0.15 75);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 255 / 0.06), 0 2px 6px oklch(0.3 0.04 255 / 0.05);
  --shadow:    0 4px 14px oklch(0.3 0.04 255 / 0.08), 0 16px 40px oklch(0.3 0.04 255 / 0.07);
  --shadow-lg: 0 10px 30px oklch(0.3 0.05 255 / 0.12), 0 30px 70px oklch(0.3 0.05 255 / 0.10);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); margin: 2em 0 0.6em; }
h3 { font-size: clamp(20px, 2.5vw, 26px); margin: 1.5em 0 0.5em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1380px; margin-inline: auto; padding-inline: var(--gutter); }

/* — Navigation (identique guide) — */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--paper) l c h / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1380px; margin-inline: auto; padding: 0 var(--gutter);
  height: 70px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 800;
}
.brand b { color: var(--accent-deep); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* — Boutons — */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; line-height: 1;
  background: none;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: oklch(0.2 0.04 40); box-shadow: var(--shadow-sm); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* — Hero page actu — */
.news-hero {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--on-primary);
  padding: clamp(60px, 10vw, 100px) 0 clamp(50px, 8vw, 80px);
}
.news-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.news-hero .lede {
  font-size: 18px;
  color: oklch(0.96 0.01 95 / 0.85);
  max-width: 60ch;
  margin-top: 12px;
}

/* — Breadcrumb — */
.crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint); margin-bottom: 16px;
}
.crumb a { color: var(--primary); }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--line-strong); }
.crumb .here { color: var(--ink-soft); }

/* — Grille articles — */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin: 48px 0;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--paper-2);
}
.news-card-body { padding: 20px 22px 24px; }
.news-card-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.news-card h2 {
  font-size: 20px; font-weight: 600;
  margin: 0 0 8px; line-height: 1.25;
}
.news-card h2 a { color: var(--ink); }
.news-card h2 a:hover { color: var(--primary); }
.news-card-excerpt {
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.55; margin: 0 0 14px;
}
.news-card-meta {
  font-size: 13px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
.news-card-meta time { font-family: var(--font-mono); }

/* — Catégories chips — */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft); transition: all .15s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--primary); border-color: var(--primary);
  color: var(--on-primary);
}

/* — Article single — */
.article { max-width: 780px; margin: 60px auto; }
.article .crumb { margin-bottom: 24px; }
.article h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 12px;
}
.article-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; color: var(--ink-faint);
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.article-meta time { font-family: var(--font-mono); }
.article-thumb {
  width: 100%; border-radius: var(--radius);
  margin-bottom: 32px;
}
.article-content {
  font-size: 18px; line-height: 1.75;
}
.article-content p { margin-bottom: 1.4em; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5em 0; padding: 0.5em 1.2em;
  background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--ink-soft);
}

/* — Pagination — */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 48px 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .15s;
}
.pagination a:hover { background: var(--paper-2); border-color: var(--line-strong); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* — Footer — */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  font-size: 13px; color: var(--ink-faint);
}
.site-footer a { color: var(--primary); }
.site-footer a:hover { text-decoration: underline; }

/* — Responsive — */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .article { padding: 0 var(--gutter); }
}

/* Logo LAéroport — limite la taille header/footer */
.brand-logo { height: 36px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer .brand-logo { height: 34px; max-width: 210px; }
@media (max-width: 640px) { .brand-logo { height: 31px; max-width: 190px; } }

/* Logo footer sur fond sombre */
.footer .brand:has(.brand-logo) { background: #fff; padding: 8px 12px; border-radius: 14px; width: fit-content; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.footer .brand:has(.brand-logo) .brand-logo { height: 36px; max-width: 225px; }

/* Logo footer dédié fourni par le client */
.footer .footer-brand { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; width: fit-content; }
.footer .footer-logo { height: 58px !important; width: auto !important; max-width: 290px !important; object-fit: contain; display: block; }
@media (max-width: 640px) { .footer .footer-logo { height: 46px !important; max-width: 235px !important; } }
