/* ═══════════════════════════════════════════════════════════════════════════
   SUGGERITORE — Feuille de style principale
   Charte : #181616 deep black · #3D5A80 steel blue · #C8C8C8 light grey
   Typo : Cinzel (headings) · Raleway (body)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --black:       #181616;
  --black-soft:  #1e1c1c;
  --black-card:  #222020;
  --black-hover: #2a2727;
  --steel:       #3D5A80;
  --steel-light: #4e6f9a;
  --steel-dim:   #2c4260;
  --grey:        #C8C8C8;
  --grey-dim:    #8a8a8a;
  --grey-muted:  #555;
  --white:       #f0eeee;

  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);

  --transition: .25s ease;
  --max-width:  1200px;
  --col-gap:    2rem;
}

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--grey);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--steel-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--grey); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: .04em;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24,22,22,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61,90,128,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--white);
  text-decoration: none;
}
.logo-main {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--white);
}
.logo-sub {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel-light);
  line-height: 1;
}
.logo:hover .logo-main { color: var(--steel-light); }

.nav { display: flex; gap: 2rem; }
.nav-link {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey-dim);
  transition: color var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey);
  transition: var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid rgba(61,90,128,.15);
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: .75rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--grey-dim);
  letter-spacing: .04em;
  max-width: 700px;
}

/* ── Filters ───────────────────────────────────────────────────────────────── */
.filters-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(24,22,22,.97);
}
.filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-dim);
  background: transparent;
  border: 1px solid rgba(200,200,200,.15);
  border-radius: var(--radius);
  padding: .4rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  color: var(--white);
  border-color: rgba(61,90,128,.5);
}
.filter-btn.active {
  color: var(--white);
  background: var(--steel-dim);
  border-color: var(--steel);
}

/* ── Articles grid ─────────────────────────────────────────────────────────── */
main.container { padding-top: 3rem; padding-bottom: 4rem; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--col-gap);
}

/* Carte article */
.article-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61,90,128,.45);
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--black-soft);
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-image img { transform: scale(1.04); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black-soft), var(--black-hover));
}
.card-image-placeholder::after {
  content: '◆';
  font-size: 2rem;
  color: var(--steel-dim);
}

.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.card-category {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-light);
  padding: .2rem .6rem;
  border: 1px solid rgba(61,90,128,.4);
  border-radius: 2px;
}
.card-date {
  font-size: .7rem;
  color: var(--grey-muted);
  letter-spacing: .05em;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: .03em;
}
.card-excerpt {
  font-size: .82rem;
  color: var(--grey-dim);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link {
  margin-top: auto;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-light);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition), gap var(--transition);
}
.card-link::after { content: '→'; }
.article-card:hover .card-link { color: var(--white); gap: .7rem; }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 3rem; }
.btn-load-more {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(61,90,128,.5);
  padding: .75rem 2.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-load-more:hover {
  background: var(--steel-dim);
  border-color: var(--steel);
}

.no-results {
  text-align: center;
  padding: 4rem 0;
  color: var(--grey-muted);
  font-style: italic;
}

/* ── Article page ──────────────────────────────────────────────────────────── */
.article-page main { min-height: 80vh; }

.article-hero {
  position: relative;
  height: clamp(280px, 45vw, 520px);
  overflow: hidden;
  background: var(--black-soft);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24,22,22,.2) 0%, rgba(24,22,22,.85) 100%);
}

.article-container {
  max-width: 800px;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--grey-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--grey-muted); }
.breadcrumb a:hover { color: var(--steel-light); }

.article-header { margin-bottom: 2.5rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.article-category {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel-light);
  padding: .2rem .6rem;
  border: 1px solid rgba(61,90,128,.4);
  border-radius: 2px;
}
.article-date {
  font-size: .72rem;
  color: var(--grey-muted);
}

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.article-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--grey-dim);
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid var(--steel-dim);
  padding-left: 1rem;
}

/* Corps de l'article */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey);
}
.article-body h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  color: var(--white);
  border-bottom: 1px solid rgba(61,90,128,.3);
  padding-bottom: .5rem;
}
.article-body h3 {
  font-size: 1.15rem;
  margin: 2rem 0 .75rem;
  color: var(--white);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul,
.article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.article-body li { color: var(--grey); }
.article-body strong { color: var(--white); font-weight: 600; }
.article-body em { color: var(--grey-dim); }
.article-body a { color: var(--steel-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--white); }
.article-body blockquote {
  border-left: 3px solid var(--steel);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--black-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--grey-dim);
}
.article-body img {
  border-radius: var(--radius-lg);
  margin: 1.5rem auto;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

/* YouTube embed responsive */
.article-body .video-wrapper,
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 1.75rem 0;
  background: var(--black-soft);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.tag {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-muted);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 2px;
  padding: .25rem .65rem;
}

/* Navigation article */
.article-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.article-nav-prev,
.article-nav-next {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.25rem;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  color: inherit;
}
.article-nav-prev:hover,
.article-nav-next:hover {
  border-color: rgba(61,90,128,.4);
  background: var(--black-hover);
}
.article-nav-next { text-align: right; }
.article-nav-label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.article-nav-title {
  font-family: var(--font-head);
  font-size: .85rem;
  color: var(--white);
  line-height: 1.3;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .08em;
}
.footer-copy {
  font-size: .72rem;
  color: var(--grey-muted);
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-muted);
}
.footer-nav a:hover { color: var(--white); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .site-header .container { position: relative; flex-wrap: wrap; height: auto; padding: 1rem 1.5rem; }
  .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(61,90,128,.2);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .articles-grid { grid-template-columns: 1fr; }
  .filters-bar { top: 0; }

  .article-nav { flex-direction: column; }
  .article-nav-next { text-align: left; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2rem; }
  .article-container { padding-top: 1.5rem; }
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.article-card {
  animation: fadeUp .4s ease both;
}
