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

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: #222;

  /* DÉGRADÉ GLOBAL NOIR → BLEU FONCÉ (SECOND PLAN) */
  background: linear-gradient(
    180deg,
    #020409 0%,
    #071225 45%,
    #020409 100%
  );
  background-attachment: fixed;
}

/* =========================
   HERO / BANNIÈRE
========================= */
.hero {
  padding: 2.8rem 2rem; /* ENCORE RÉDUIT */
  text-align: center;
  color: white;

  /* DÉGRADÉ ANIMÉ CONSERVÉ */
  background:
    linear-gradient(
      120deg,
      rgba(88, 24, 124, 0.85),
      rgba(255, 87, 34, 0.85),
      rgba(255, 193, 7, 0.85)
    );
  background-size: 300% 300%;
  animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
}
/* =========================
   PRÉVISUALISATION FORMULAIRE
========================= */
#preview {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: none;
}

#preview img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}


/* =========================
   TIMELINE
========================= */
#timeline {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1rem;
}

.film-section {
  margin-bottom: 6rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-left: 12px solid #ff5722;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.film-section h2 {
  margin-top: 0;
}

.film-meta {
  font-style: italic;
  opacity: 0.75;
}

/* =========================
   CONTENU FILM
========================= */
.film-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.8rem;
  align-items: start;
}

/* POSTERS PLUS PETITS */
.film-content img {
  width: 78%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.film-content img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* =========================
   FORMULAIRE CONTRIBUTIF
========================= */
#contribute {
  /* DÉGRADÉ CONSERVÉ */
  background: linear-gradient(
    135deg,
    rgba(33, 150, 243, 0.95),
    rgba(156, 39, 176, 0.95)
  );

  /* HAUTEUR RÉDUITE */
  padding: 3.5rem 2rem;
  color: rgb(0, 0, 0);
}

/* TEXTES AU-DESSUS DU FORMULAIRE CENTRÉS */
#contribute h2,
#contribute p {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#contribute h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

#contribute p {
  opacity: 0.95;
}

/* =========================
   FORMULAIRE
========================= */
form {
  max-width: 600px;
  margin: 2.2rem auto 0;
  padding: 2.3rem;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #333;
  gap: 0.4rem;
}

input,
textarea {
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #ddd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #9c27b0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.2);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* =========================
   BOUTON
========================= */
button {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 87, 34, 0.5);
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 2.3rem 1rem;
  color: white;
}

/* =========================
   MODALE
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: white;
  padding: 2.5rem;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
}

#closeLegal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.6rem;
}
/* =========================
   LIENS : SOULIGNEMENT & ZOOM TEXTE
========================= */
a {
  display: inline-block; /* essentiel pour le zoom */
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: #000; /* noir par défaut */
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition:
    transform 0.2s ease,
    text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: #e53935; /* rouge */
  transform: scale(1.05);
}

/* Focus clavier (accessibilité) */
a:focus-visible {
  text-decoration-color: #e53935;
  outline: none;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .film-content {
    grid-template-columns: 1fr;
  }

  .film-content img {
    width: 72%;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
/* =========================
   PRÉVISUALISATION FILM
========================= */
.preview-title {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  color: white;
}

.preview-card {
  border-left-color: #2196f3;
  animation: fadeIn 0.6s ease;
}

.preview-card .film-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.preview-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

/* Animation douce */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   CORRECTION FOOTER EN BAS
========================= */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}
/* =========================
   PRÉVISUALISATION – CENTRAGE
========================= */
#previewContainer {
  margin-bottom: 4rem;
}

.preview-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

#previewContainer .film-section {
  color: #000;
}

#previewContainer .film-text {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}
