/* ============================
   AGIR MAINTENANT - STYLE BRUT & VIVANT
   Inspiré par Amnistie.ca et design d'impact
============================ */

:root {
  /* Palette Noir & Impact - Finale */
  --bg: #000000; /* Noir pur - fond de base */
  --ink: #ffffff; /* Blanc pur pour le texte */
  --muted: #cccccc; /* Gris clair pour texte secondaire */
  --accent: #ff6b35; /* Orange vibrant - accents principaux */
  align-items: flex-start;
  text-align: left;
  --warning: #ff9800; /* Orange plus doux pour les alertes */
  --card: #1a1a1a; /* Gris très foncé pour les cartes */
  --ring: #333333; /* Gris moyen pour les bordures */
  --link: #4fc3f7; /* Bleu ciel pour les liens */

  /* Typography impactante */
  --heading: "Anton", "Arial Black", system-ui, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout brut - angles nets */
  --border-thick: 3px;
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.8);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  font-weight: 400;
  overflow-x: hidden;
}

/* ============================
   TYPOGRAPHY BRUTE
============================ */
h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 2vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ============================
   LIENS ET INTERACTIONS
============================ */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ============================
   NAVBAR BRUTALE
============================ */
.navbar {
  background: var(--bg) !important;
  border-bottom: var(--border-thick) solid var(--accent);
  padding: 1rem 0;
}

.navbar .brand {
  font-size: 1.8rem;
  color: var(--accent) !important;
  text-decoration: none;
}

.navbar .nav-link {
  color: var(--ink) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--accent) !important;
  border-color: var(--accent);
}

/* ============================
   BOUTONS IMPACTANTS
============================ */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border: var(--border-thick) solid;
  border-radius: 0;
  transition: all 0.2s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-accent {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
  font-weight: 700;
}

.btn-accent:hover {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

.btn-light {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-light:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-light {
  background: black;
  border-color: white;
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: black;
  border-color: white;
}

.btn-orange {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-orange:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-yellow {
  background: var(--button);
  border-color: var(--button);
  color: var(--button-text);
  font-weight: bold;
}

.btn-yellow:hover {
  background: transparent;
  color: var(--button);
  border-color: var(--button);
}

/* ============================
   HERO SECTION BRUTALE
============================ */
.hero {
  min-height: 80vh;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%), url("img/enfant-gaza.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--accent) 1px, transparent 1px), linear-gradient(-45deg, var(--accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.hero-accent {
  color: var(--button);
  position: relative;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--muted);
  max-width: 600px;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

/* ============================
   HERO CAROUSEL
============================ */
.hero-carousel {
  position: relative;
}

/* Hero layout deux colonnes */
.hero-layout {
  padding: 4rem 0 2rem;
  background: var(--bg);
}
.hero-layout-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-left-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.9;
  margin: 0 0 1.5rem;
}
.hero-left-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.hero-left-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-right {
  position: relative;
  min-height: 70vh;
}
.hero-right .carousel,
.hero-right .carousel-inner,
.hero-right .carousel-item {
  height: 100%;
}
.hero-right .carousel-item {
  position: relative;
}
.hero-right .hero-slide {
  height: 100%;
  border: 2px solid var(--accent);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background-size: cover;
  background-position: center;
}
.hero-compact-box {
  margin: 2rem;
  position: relative;
}
.hero-stats-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}
.hero-stats-inline .stat-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent);
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 72px;
}
.hero-stats-inline .stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--button);
  line-height: 1;
}
.hero-stats-inline .stat-label {
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}
.hero-more-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid var(--accent);
  transition: 0.2s;
}
.hero-more-link:hover {
  color: var(--accent);
}
.hero-controls-abs {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 992px) {
  .hero-right {
    min-height: 60vh;
  }
  .hero-compact-box {
    margin: 1.25rem;
  }
  .hero-stats-inline .stat-item {
    min-height: 60px;
  }
}
@media (max-width: 576px) {
  .hero-left-title {
    font-size: 2.2rem;
  }
  .hero-left-desc {
    font-size: 0.95rem;
  }
}

/* Nouveau layout compact hero */
.hero-slide {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hero-fixed-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 5;
}
.hero-fixed-buttons .btn {
  width: 130px;
}
.hero-compact-box {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--accent);
  padding: 2rem;
  max-width: 480px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}
.hero-title-small {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}
.hero-box-sub {
  color: var(--button);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hero-box-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.hero-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}
.hero-controls .ctrl {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid var(--accent);
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.hero-controls .ctrl:hover {
  background: var(--accent);
  color: #000;
}
.hero-controls .indicators {
  display: flex;
  gap: 0.5rem;
}
.hero-controls .indicators button {
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: 0.2s;
}
.hero-controls .indicators button.active,
.hero-controls .indicators button:hover {
  background: var(--accent);
}
@media (max-width: 768px) {
  .hero-fixed-buttons {
    display: none !important;
  }
  .hero-stats-box {
    position: static;
    margin-top: 1.5rem;
  }
  .hero-compact-box {
    padding: 1.2rem;
  }
  .hero-controls {
    bottom: 0.5rem;
  }
}

.hero-carousel .carousel-item {
  transition: transform 0.8s ease-in-out;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 5%;
  color: var(--accent);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(255, 107, 53, 0.8);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

.hero-carousel .carousel-indicators {
  bottom: 2rem;
}

.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-color: transparent;
}

.hero-carousel .carousel-indicators button.active {
  background-color: var(--accent);
}

/* Hero Stats - Contenu associé */
.hero-stats {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  min-width: 200px;
}

.hero-stats .stats-content {
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.hero-stats .stats-content strong {
  color: var(--accent);
  font-size: 1.2rem;
  display: block;
}

@media (max-width: 768px) {
  .hero-stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 2rem auto 0;
    max-width: 280px;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

/* ============================
   CARROUSEL ARTICLES CARRÉS
============================ */
.articles-section {
  background: var(--bg);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.articles-container {
  width: 100%;
}

.articles-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollArticles 60s linear infinite;
}

.article-card {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.article-card:hover {
  border: 3px solid var(--button);
}

.article-card:hover .articles-track {
  animation-play-state: paused;
}

.article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.8) 100%);
  transition: all 0.3s ease;
}

.article-card:hover .article-overlay {
  background: linear-gradient(180deg, rgba(255, 251, 31, 0.1) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.article-title {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

/* Ressources description en blanc */
.episode-card .episode-body .text-muted.small,
.episode-card .text-muted.small {
  color: #fff !important;
  opacity: 0.85;
}

.article-card:hover .article-title {
  color: var(--button);
  transform: translateY(-3px);
}

@keyframes scrollArticles {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================
   SECTIONS AVEC THÈMES COULEUR
============================ */
.section {
  padding: 4rem 0;
  background: var(--bg) !important;
  color: var(--ink);
}

.section-black {
  background: var(--bg) !important;
  color: var(--ink);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.episode-card {
  background: var(--card);
  border: var(--border-thick) solid var(--ring);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.episode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transition: left 0.3s ease;
}

.episode-card:hover::before {
  left: 0;
}

.episode-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-strong);
}

.episode-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: var(--border-thick) solid var(--ring);
}

.episode-body {
  padding: 1.5rem;
}

.episode-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.episode-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.badge-theme {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--hope);
  color: var(--bg);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================
   SECTION CAGNOTTES
============================ */
.don-section {
  background: var(--accent);
  color: var(--bg);
  padding: 4rem 0;
  position: relative;
  border-top: 2px solid var(--ring);
  border-bottom: 2px solid var(--ring);
}

.don-content {
  text-align: center;
}

.don-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: var(--bg);
}

.don-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--bg);
}

/* ============================
   FOOTER BRUTAL
============================ */
.site-footer {
  background: var(--bg);
  border-top: var(--border-thick) solid var(--hope);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* ============================
   UTILITAIRES
============================ */
.text-accent {
  color: var(--accent);
}
.text-hope {
  color: var(--hope);
}
.text-warning {
  color: var(--warning);
}
.bg-dark {
  background: var(--bg);
}
.container-xxl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .themes-track {
    animation-duration: 20s;
  }
  .navbar .nav-link {
    font-size: 0.8rem;
    margin: 0 0.2rem;
  }
}

/* ============================
   ANIMATIONS SUPPLÉMENTAIRES
============================ */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.shake:hover {
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}
