/* ============================================
   SITE MAMADOU DRAMÉ - LA DRAMSTARS
   Styles communs - Design minimaliste
   ============================================ */

/* === IMPORTS GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

/* === VARIABLES CSS === */
:root {
  --bg-light: #f5f5f5;
  --text-dark: #111111;
  --accent: #4a6fa5;
  --accent-hover: #3a5a8a;
  --white: #ffffff;
  --black: #000000;
  --overlay: rgba(0, 0, 0, 0.85);
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHIE === */
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-light);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  text-transform: uppercase;
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  text-transform: none;
  font-weight: 400;
}

header nav a:hover {
  color: var(--accent);
}

/* === FOOTER === */
footer {
  background-color: var(--bg-light);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

footer .footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

footer .footer-links a {
  font-size: 0.9rem;
  color: var(--text-dark);
}

footer .social-icons {
  display: flex;
  gap: 1.5rem;
}

footer .social-icons a {
  font-size: 1.2rem;
  color: var(--text-dark);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

footer .social-icons a:hover {
  opacity: 1;
}

/* === PAGE ACCUEIL (index.html) === */
.home-container {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.home-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.home-slideshow img.active {
  opacity: 0.4;
}

.home-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-dark);
}

.home-content h1 {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.home-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid var(--text-dark);
  background-color: transparent;
  color: var(--text-dark);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.home-btn:hover {
  background-color: var(--text-dark);
  color: var(--bg-light);
}

/* === PAGES CONTENU (manifeste, chapitre1, apropos) === */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.content-container {
  max-width: 750px;
  margin: 0 auto;
}

/* === PAGE MANIFESTE === */
.manifeste-subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  opacity: 0.6;
  margin-bottom: 2rem;
}

.manifeste-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === PAGE CHAPITRE 1 === */
.chapter-title {
  margin-bottom: 4rem;
  text-align: center;
}

.series-section {
  margin-bottom: 6rem;
}

.series-section h2 {
  margin-bottom: 1rem;
}

.series-section .series-subtitle {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.series-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--text-dark);
  transition: transform 0.3s ease;
}

.series-item:hover {
  transform: scale(1.02);
}

.series-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.series-item:hover img {
  opacity: 0.9;
}

/* === MODALE CADRAGE-CLÉ === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--black);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  color: var(--white);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-image {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background-color: var(--black);
}

.modal-text {
  padding: 2rem;
}

.cc-analysis h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.cc-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-section:last-child {
  border-bottom: none;
}

.cc-section strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  opacity: 0.9;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.cc-section p {
  color: var(--white);
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 0;
}

/* === PAGE À PROPOS === */
.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-header h1 {
  margin-bottom: 1rem;
}

.about-header .subtitle {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.6;
  font-style: italic;
}

.portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 2rem auto;
  display: block;
  border: 3px solid var(--text-dark);
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.about-section ul {
  list-style: none;
}

.about-section ul li {
  margin-bottom: 1.5rem;
  padding-left: 0;
  line-height: 1.8;
}

.about-section ul li strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.about-section ul li a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .main-content {
    padding: 6rem 1.5rem 3rem;
  }

  .series-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .modal-content {
    max-width: 100%;
    margin: 1rem;
  }

  .modal-text {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .home-content h1 {
    font-size: 2.5rem;
  }

  .series-grid {
    grid-template-columns: 1fr;
  }
}

