/* =============================================================
  Fichier : style.css
  Projet  : Death Note Fansite
  Rôle    : Centraliser tout le style custom (progressivement
         en remplacement des classes Tailwind encore présentes
         dans certaines pages).
  Sections: 
    1. Reset & configuration globale
    2. Header & navigation
    3. Contenu principal / typographie
    4. Footer
    5. Eléments de contenu (cartes, aside, articles)
    6. Sections spécialisées (galerie, vidéos, formulaires)
    7. Responsive / Media queries
  Note: Des blocs "legacy" seront nettoyés au fur et à mesure.
============================================================= */

/* ========================================
   RESET ET CONFIGURATION GLOBALE
   ======================================== */

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

body {
  font-family: Arial, sans-serif;
  /* Fond d'écran avec superposition sombre pour la lisibilité */
  background: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.7)),
    url("../Images/Death%20note%20wallpaper.jpep.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  /* Layout flexbox pour footer en bas */
  display: flex;
  flex-direction: column;
}

/* ========================================
   HEADER ET NAVIGATION
   ======================================== */

header {
  background-color: #000;
  padding: 1rem 0;
  border-bottom: 2px solid #8b0000;
}

/* Logo principal */
.logo {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(2px 2px 4px rgba(255, 0, 0, 0.5));
}

/* Titre masqué (SEO) */
header h1 {
  display: none;
}

/* Navigation principale */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav li {
  display: inline;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* États des liens de navigation */
nav a:hover {
  background-color: #8b0000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

nav a.active {
  background-color: #ff0000;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.6);
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1; /* Pousse le footer vers le bas */
}

/* Titres */
h1 {
  text-align: center;
  color: white;
  margin: 2rem 0;
  font-size: 2rem;
  text-shadow: 1px 1px 2px rgba(199, 0, 0, 0.966);
}

h2 {
  color: #ff6666;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.5rem;
}

/* Image principale d'accueil */
.image-acceuil {
  display: block;
  width: 800px;
  max-width: 90vw;
  height: auto;
  margin: 2rem auto;
  border-radius: 15px;
  box-shadow: 0px 0px 0px rgb(255, 0, 0); /* Pas d'ombre initiale */
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.image-acceuil:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgb(250, 0, 0);
  opacity: 1;
}
.logo-pomme {
  width: 50px;
  height: auto;
  margin-left: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: #000;
  border-top: 2px solid #8b0000;
  padding: 2rem 0;
  margin-top: auto; /* Colle le footer en bas */
  box-shadow: 0 -2px 10px rgba(255, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-section h3 {
  color: #ff6666;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.footer-nav {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-info {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.footer-info a {
  color: #ff6666;
  text-decoration: none;
}

.footer-info a:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* ========================================
   ÉLÉMENTS DE CONTENU
   ======================================== */

/* Paragraphes avec style "carte" */
p {
  margin: 1.5rem 0;
  text-align: justify;
  font-size: 1.1rem;
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sections générales */
section {
  margin: 2rem 0;
}

/* Articles avec bordure colorée */
article {
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  border-left: 4px solid #8b0000;
}

/* Barres latérales */
aside {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #333;
  margin: 1rem 0;
}

aside h3 {
  color: #ff6666;
  margin-bottom: 1rem;
}

/* ========================================
   SECTIONS SPÉCIALISÉES
   ======================================== */

/* Sections pour réalisations, événements et vidéos */
.realisation-section,
.events-section,
.video-section,
.contact-intro {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #2a2a2a;
  border-radius: 10px;
  border-left: 4px solid #ff0000;
}

.realisation-section h2,
.events-section h2,
.video-section h2 {
  color: #ff0000;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Articles pour événements et actualités */
.event-item,
.milestone-item,
.news-item {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #1a1a1a;
  border-radius: 8px;
  border-left: 3px solid #8b0000;
}

/* États des événements */
.event-item.upcoming {
  border-left-color: #00ff00; /* Vert pour les événements à venir */
}

.event-item.past {
  border-left-color: #666; /* Gris pour les événements passés */
}

/* Dates d'événements et actualités */
.event-date,
.news-date {
  color: #ff6666;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ========================================
   GALERIE PHOTOS
   ======================================== */

/* Grille responsive pour les photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* Cartes photo et placeholders */
.photo-item,
.photo-placeholder {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.photo-item:hover,
.photo-placeholder:hover {
  transform: translateY(-5px);
}

/* Images de galerie */
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* uniformise les vignettes */
  display: block;
}

/* Légendes des photos */
.photo-caption {
  padding: 1rem;
  text-align: center;
  background-color: #1a1a1a;
  margin: 0;
}

/* Contenu des placeholders */
.placeholder-content {
  padding: 2rem;
  text-align: center;
  color: #666;
}

.placeholder-content p:first-child {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ========================================
   VIDÉOS
   ======================================== */

/* Conteneurs pour les vidéos */
.video-item {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #2a2a2a;
  border-radius: 10px;
}

.video-container {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 800px;
}

/* Lecteurs vidéo */
.video-player {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
}

.youtube-video {
  width: 100%;
  height: 315px;
  border-radius: 8px;
}

/* Descriptions vidéo */
.video-description {
  margin-top: 0.5rem;
  font-style: italic;
  color: #ccc;
}

/* ========================================
   FORMULAIRES DE CONTACT
   ======================================== */

/* Conteneur principal du formulaire */
.contact-form {
  background-color: #2a2a2a;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

/* Groupes de champs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ff6666;
  font-weight: bold;
}

/* Champs de saisie */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #555;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  font-size: 1rem;
}

/* Focus sur les champs */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ff0000;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Cases à cocher */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

/* Actions du formulaire */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Boutons */
.btn-submit,
.btn-reset {
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit {
  background-color: #ff0000;
  color: white;
}

.btn-submit:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
}

.btn-reset {
  background-color: #666;
  color: white;
}

.btn-reset:hover {
  background-color: #555;
}

/* ========================================
   LIENS ET BOUTONS
   ======================================== */

/* Groupes de liens externes et sociaux */
.external-links,
.social-links,
.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  justify-content: center;
}

/* Style des liens externes et sociaux */
.external-link,
.social-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #8b0000;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.external-link:hover,
.social-link:hover {
  background-color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

/* ========================================
   SECTIONS INFORMATIVES
   ======================================== */

/* Méthodes de contact */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

/* FAQ */
.faq-item {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background-color: #2a2a2a;
  border-radius: 8px;
  border-left: 3px solid #ff6666;
}

.faq-item h3 {
  color: #ff6666;
  margin-bottom: 0.5rem;
}

/* Avertissements et informations */
.video-disclaimer,
.gallery-info {
  background-color: #333;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 2px solid #666;
}

/* Section actualités */
.news-section {
  margin: 3rem 0;
  padding: 2rem;
  background-color: #2a2a2a;
  border-radius: 15px;
  border: 2px solid #ff0000;
}

.news-section h2 {
  color: #ff0000;
  text-align: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  /* ===== Responsive: adaptations mobile (<= 768px) ===== */
  header h1 {
    font-size: 2rem;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  main {
    padding: 1rem;
  }
  .image-acceuil {
    width: 90vw;
    max-width: 500px;
  }
  p {
    font-size: 1rem;
    padding: 1rem;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .external-links,
  .social-links {
    flex-direction: column;
  }
  .form-actions {
    flex-direction: column;
  }
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .youtube-video {
    height: 200px;
  }
  .footer-content {
    padding: 0 1rem;
  }
}
/* Image générique pour les affiches / films */
.images-films {
  width: 100%;
  height: 100%;
  object-fit: cover; /* uniformise le rendu visuel */
}