/* article.css */

:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.8;
  color: var(--dark);
  background-color: white;
}

/* --- NAVIGATION --- */
nav {
  padding: 1.5rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  margin-left: 2rem;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- MISE EN PAGE DE L'ARTICLE --- */
.article-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}
.article-container p {
  text-align: justify;
}
.article-container img {
  max-width: 95%;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.article-category {
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.article-meta {
  color: var(--gray);
  font-size: 0.9rem;
}

/* --- CORPS DE TEXTE --- */
.article-content {
  font-size: 1.15rem;
  color: #334155;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content h2 {
  margin: 40px 0 20px 0;
  font-size: 1.8rem;
  color: var(--dark);
}

.article-content img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- FOOTER --- */
footer {
  padding: 60px 40px;
  text-align: center;
  background: var(--light);
  border-top: 1px solid #e2e8f0;
  margin-top: 80px;
}

.footer-credits {
  color: var(--gray);
  font-size: 0.9rem;
}
/* --- STYLE VIDÉO --- */
.video-wrapper {
  margin: 40px 0;
  width: 100%;
}

.video-wrapper video {
  width: 100%; /* Prend toute la largeur de l'article */
  border-radius: 12px; /* Garde le même arrondi que tes images */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: #000; /* Fond noir pendant le chargement */
}

.video-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
  font-style: italic;
}
