/* ============================================
   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 .logo:hover {
  color: var(--text-dark);
}

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);
}

/* === MENU STAGGERED MOBILE === */
.staggered-menu-mobile {
  display: none;
}

/* === 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: 3rem;
  text-align: center;
}

.chapter-container {
  max-width: 1120px;
}

.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;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--text-dark);
  transition: transform 0.3s ease;
}

.series-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.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 CADRAGE-CLE PHOTO === */
.photo-detail-page h1,
.photo-detail-page h2 {
  letter-spacing: 0;
}

.photo-detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8.5rem 2rem 4rem;
}

.photo-article {
  max-width: 1120px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.75;
}

.back-link:hover {
  color: var(--accent);
  opacity: 1;
}

.photo-heading {
  max-width: 860px;
  margin-bottom: 3rem;
}

.photo-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.62;
}

.photo-heading h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 3.5rem;
  text-transform: uppercase;
}

.photo-summary {
  max-width: 700px;
  padding-left: 1rem;
  border-left: 3px solid var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.photo-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: start;
}

.photo-figure {
  position: sticky;
  top: 7.5rem;
  margin: 0;
}

.image-zoom-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: var(--black);
  line-height: 0;
  cursor: zoom-in;
}

.image-zoom-toggle img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.image-zoom-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.image-zoom-toggle.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.96);
  cursor: zoom-out;
}

.image-zoom-toggle.is-expanded img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.image-expanded {
  overflow: hidden;
}

.menu-open {
  overflow: hidden;
}

.photo-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark);
  opacity: 0.75;
  font-weight: 500;
}

.photo-analysis {
  font-size: 1.05rem;
  line-height: 1.85;
}

.analysis-block {
  padding-top: 0;
  border-top: 0;
  margin-bottom: 2.5rem;
}

.analysis-block h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.legend-text {
  font-size: 1.15rem;
  font-weight: 500;
}

/* === 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 {
    padding: 1rem;
  }

  body.has-staggered-menu header nav {
    display: none;
  }

  body.has-staggered-menu header {
    justify-content: flex-start;
  }

  .staggered-menu-mobile {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    pointer-events: none;
  }

  .staggered-menu-trigger {
    position: fixed;
    right: 1rem;
    top: 1rem;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: 0.08em;
    cursor: pointer;
    pointer-events: auto;
    z-index: 4;
    transition: color 0.25s ease;
  }

  .staggered-menu-mobile.is-open .staggered-menu-trigger {
    color: #ffffff;
  }

  .sm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1;
  }

  .sm-prelayers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .sm-prelayer,
  .staggered-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sm-prelayer.layer-1 {
    background: #b19eef;
    transition-delay: 0ms;
  }

  .sm-prelayer.layer-2 {
    background: #5227ff;
    transition-delay: 70ms;
  }

  .staggered-menu-panel {
    z-index: 3;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6.5rem 1.6rem 2rem;
    transition-delay: 120ms;
    pointer-events: auto;
  }

  .sm-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .sm-panel-item-wrap {
    overflow: hidden;
    line-height: 1;
  }

  .sm-panel-item {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 0.95;
    position: relative;
    transition: color 0.2s ease;
  }

  .sm-panel-item:hover,
  .sm-panel-item:focus-visible {
    color: #5227ff;
  }

  .sm-panel-item:focus-visible {
    outline: 2px solid #5227ff;
    outline-offset: 6px;
  }

  .sm-panel-item-label {
    display: inline-block;
    transform: translateY(140%) rotate(10deg);
    transform-origin: 50% 100%;
    opacity: 0;
    transition:
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease;
    transition-delay: calc(280ms + (var(--item-index, 0) * 95ms));
  }

  .staggered-menu-mobile.is-open .sm-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .staggered-menu-mobile.is-open .sm-prelayer,
  .staggered-menu-mobile.is-open .staggered-menu-panel {
    transform: translateX(0);
  }

  .staggered-menu-mobile.is-open .sm-panel-item-label {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }

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

  .photo-detail-content {
    padding: 11rem 1.5rem 3rem;
  }

  .photo-heading h1 {
    font-size: 2.45rem;
  }

  .photo-summary {
    font-size: 1.05rem;
  }

  .photo-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .photo-figure {
    position: static;
  }

  .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;
  }

  .photo-detail-content {
    padding: 11rem 1rem 2.5rem;
  }

  .photo-heading {
    margin-bottom: 2rem;
  }

  .photo-heading h1 {
    font-size: 2rem;
  }

  .image-zoom-toggle.is-expanded {
    padding: 1rem;
  }

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

