/* ==========================================================================
   Williwaw — feuille de style unique
   Palette : #4B1A27 #6B2737 #9B3143 #E0AFA0 #F5E6E8
   ========================================================================== */

:root {
  --c-bordeaux-fonce: #4B1A27;
  --c-bordeaux: #6B2737;
  --c-rouge: #9B3143;
  --c-sable: #E0AFA0;
  --c-creme: #F5E6E8;

  --voile-clair: rgba(255, 255, 255, 0.05);
  --voile-sombre: rgba(0, 0, 0, 0.4);
  --voile-sable: rgba(224, 175, 160, 0.1);
  --voile-sable-fort: rgba(224, 175, 160, 0.3);

  --police: 'Georgia', 'Times New Roman', serif;
  --rayon: 4px;
  --largeur-contenu: 900px;
}

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  text-align: center;
  font-family: var(--police);
  line-height: 1.7;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(-45deg, var(--c-bordeaux), var(--c-rouge), var(--c-bordeaux), var(--c-bordeaux-fonce));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  will-change: background-position;
  color: var(--c-creme);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Cible de focus visible au clavier, sur toute la page */
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-sable);
  outline-offset: 3px;
  border-radius: var(--rayon);
}

/* Lien d'évitement : visible uniquement au focus clavier */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -200%);
  background-color: var(--c-sable);
  color: var(--c-bordeaux-fonce);
  padding: 10px 20px;
  border-radius: var(--rayon);
  font-weight: bold;
  text-decoration: none;
  z-index: 200;
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translate(-50%, 10px);
}

/* ----- NAVIGATION ----- */
.main-nav {
  background-color: var(--c-bordeaux);
  border-bottom: 1px solid var(--c-sable);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  animation: fadeIn 0.8s ease;
}
.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-wrap: wrap;
}
.main-nav li {
  margin: 0 15px;
}
.main-nav a {
  color: var(--c-sable);
  text-decoration: none;
  font-size: 1.2em;
  font-family: var(--police);
  padding: 5px 10px;
  border-radius: var(--rayon);
  transition: all 0.3s ease;
  display: inline-block;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background-color: var(--voile-sable-fort);
  color: var(--c-creme);
  transform: scale(1.05);
}

/* ----- LAYOUT ----- */
.container {
  width: 95%;
  max-width: var(--largeur-contenu);
  padding: 20px;
  margin: 20px auto 0;
}

.hero-banner {
  background-color: var(--voile-sombre);
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: var(--rayon);
  border: 1px solid var(--c-sable);
  animation: fadeIn 1s ease;
}
.hero-banner h1 {
  margin: 0 0 10px;
  color: var(--c-sable);
  font-size: 2.5em;
  font-weight: normal;
}
.hero-banner p {
  font-size: 1.3em;
  margin: 0;
}

/* ----- BANDEAU ACTUALITÉS (remplace l'ancienne page News) ----- */
.news-banner {
  background-color: var(--voile-sable);
  border: 1px solid var(--c-sable);
  border-left: 5px solid var(--c-sable);
  border-radius: var(--rayon);
  padding: 18px 25px;
  margin-bottom: 30px;
  text-align: left;
  animation: fadeIn 0.9s ease;
}
.news-banner__label {
  display: inline-block;
  background-color: var(--c-sable);
  color: var(--c-bordeaux-fonce);
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--rayon);
  margin-bottom: 8px;
}
.news-banner h2 {
  color: var(--c-sable);
  font-size: 1.35em;
  font-weight: normal;
  margin: 0 0 6px;
}
.news-banner p {
  margin: 0;
}
/* Bandeau reduit a son seul titre : pas de marge basse superflue */
.news-banner h2:last-child {
  margin-bottom: 0;
}
.news-banner p + p {
  margin-top: 8px;
}
.news-banner a {
  color: var(--c-creme);
  text-decoration: underline;
}
.news-banner a:hover {
  color: var(--c-sable);
}

/* ----- SECTIONS ----- */
/* opacity:1 + `backwards` : si l'animation ne se joue pas, le texte reste visible */
.section {
  background-color: var(--voile-clair);
  padding: 25px;
  border-radius: var(--rayon);
  border: 1px solid var(--c-sable);
  opacity: 1;
  animation: fadeIn 0.6s ease backwards;
  margin: 30px 0;
}
/* nth-of-type plutôt que nth-child : insérer le bandeau ne décale plus les délais */
.section:nth-of-type(1) { animation-delay: 0.2s; }
.section:nth-of-type(2) { animation-delay: 0.4s; }
.section:nth-of-type(3) { animation-delay: 0.6s; }
.section:nth-of-type(4) { animation-delay: 0.8s; }

.section h2 {
  color: var(--c-sable);
  margin-top: 0;
  font-size: 1.8em;
  border-bottom: 1px solid var(--c-sable);
  padding-bottom: 10px;
}
.section--centre {
  text-align: center;
}

/* ----- GRILLES ----- */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
  width: 100%;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
  width: 100%;
  overflow: hidden;
  list-style: none;
  padding: 0;
}
.video-card {
  background-color: var(--voile-sable);
  padding: 15px;
  border-radius: var(--rayon);
  border: 1px solid var(--c-sable);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 0;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.video-card a {
  color: var(--c-sable);
  text-decoration: none;
  display: block;
  padding: 10px;
}
.video-card img {
  width: 100%;
  border-radius: var(--rayon);
  margin-bottom: 10px;
}
.video-card p {
  margin: 0;
}

/* ----- TABLEAUX ----- */
/* Le wrapper porte le scroll : le <table> garde sa sémantique pour les lecteurs d'écran */
.table-wrap {
  width: 100%;
  margin: 20px auto;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid var(--c-sable);
}
th {
  background-color: var(--voile-sable);
}
.table-vide {
  font-style: italic;
  color: var(--c-sable);
}

/* ----- IMAGES ----- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rayon);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 15px auto;
  display: block;
  transition: all 0.3s ease;
}
img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
figure {
  margin: 0;
}

/* ----- CONTACT ----- */
.contact-section {
  background-color: var(--voile-clair);
  padding: 25px;
  border-radius: var(--rayon);
  border: 1px solid var(--c-sable);
  margin: 30px auto;
  max-width: 500px;
  text-align: center;
}
.contact-section h2 {
  color: var(--c-sable);
  margin-top: 0;
  font-size: 1.8em;
}
.contact-info {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
}
.contact-info li {
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--c-sable);
  display: inline-block;
  width: 100%;
  list-style: none;
}
.contact-info a {
  color: var(--c-creme);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-sable);
}
.contact-info a:hover {
  color: var(--c-sable);
}

/* ----- LIENS RÉSEAUX ----- */
.social-links a {
  color: var(--c-sable);
}

/* ----- BOUTON (page 404) ----- */
.btn {
  background-color: var(--c-sable);
  color: var(--c-bordeaux-fonce);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: var(--rayon);
  font-weight: bold;
  display: inline-block;
  margin-top: 30px;
  transition: all 0.3s ease;
}
.btn:hover {
  background-color: var(--c-creme);
  transform: scale(1.05);
}

/* ----- PIED DE PAGE ----- */
footer {
  margin-top: 40px;
  font-style: italic;
  color: var(--c-sable);
  font-size: 0.9em;
  padding: 20px;
  border-top: 1px solid var(--c-sable);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
  .hero-banner h1 {
    font-size: 2em;
  }
  .contact-section {
    max-width: 100%;
  }
  .main-nav li {
    margin: 5px 10px;
  }
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  /* Aucun nowrap sur mobile : les deux colonnes passent a la ligne,
     ce qui supprime totalement le scroll horizontal du tableau.
     (.table-wrap reste la comme filet de securite.) */
  th,
  td {
    white-space: normal;
    padding: 10px 6px;
    font-size: 0.95em;
  }
  td:first-child {
    min-width: 5.5em;
  }
  .news-banner {
    padding: 15px 18px;
  }
}

/* ----- ANIMATIONS ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- MOUVEMENT RÉDUIT ----- */
/* Sans ce bloc, le dégradé animé tourne en boucle indéfiniment (batterie, vertiges) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body {
    background-size: 100% 100%;
  }
  .section,
  .hero-banner,
  .news-banner {
    opacity: 1;
    transform: none;
  }
  img:hover,
  .video-card:hover,
  .main-nav a:hover,
  .btn:hover {
    transform: none;
  }
}

/* ----- IMPRESSION ----- */
@media print {
  body {
    background: none;
    color: #000;
    animation: none;
  }
  .main-nav,
  .skip-link {
    display: none;
  }
  .section,
  .hero-banner,
  .news-banner,
  .contact-section {
    border-color: #000;
    background: none;
    animation: none;
  }
  .section h2,
  .hero-banner h1,
  footer {
    color: #000;
  }
}

/* ----- PAGE MUSIQUE : album ----- */
.album {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 20px;
  text-align: left;
}
.album__cover img {
  margin: 0;
  width: 100%;
  max-width: 315px;
  border: 1px solid var(--c-sable);
}
.album__title {
  color: var(--c-sable);
  font-size: 1.6em;
  font-weight: normal;
  margin: 0 0 4px;
}
.album__meta {
  color: var(--c-sable);
  font-size: 0.9em;
  font-style: italic;
  margin: 0 0 18px;
}
.album__desc {
  margin: 0 0 22px;
}

/* ----- BOUTONS D'ÉCOUTE ----- */
.streaming {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.streaming li {
  margin: 0;
}
.streaming a {
  display: inline-block;
  background-color: var(--voile-sable);
  color: var(--c-sable);
  border: 1px solid var(--c-sable);
  border-radius: var(--rayon);
  padding: 9px 20px;
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.3s ease;
}
.streaming a:hover {
  background-color: var(--c-sable);
  color: var(--c-bordeaux-fonce);
  transform: translateY(-2px);
}
.streaming--centre {
  justify-content: center;
  margin-top: 15px;
}

/* ----- LISTE DES TITRES ----- */
.tracklist td:first-child {
  width: 3em;
  color: var(--c-sable);
}
.tracklist td:nth-child(2) {
  text-align: left;
}
.tracklist td:last-child {
  width: 5em;
  color: var(--c-sable);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .album {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }
  .album__cover img {
    max-width: 260px;
  }
  .streaming {
    justify-content: center;
  }
  .tracklist td:nth-child(2) {
    text-align: left;
  }
}

/* ----- COMPOSITIONS ----- */
.compos {
  list-style: none;
  margin: 20px auto;
  padding: 0;
  max-width: 480px;
}
.compos li {
  border-bottom: 1px solid var(--c-sable);
  padding: 12px 0;
}
.compos a {
  color: var(--c-creme);
  text-decoration: none;
  font-size: 1.1em;
  border-bottom: 1px dotted var(--c-sable);
}
.compos a:hover {
  color: var(--c-sable);
}
.compos__note {
  display: block;
  color: var(--c-sable);
  font-size: 0.85em;
  font-style: italic;
  margin-top: 3px;
}

/* ----- PAGES DE TEXTE (mentions légales) ----- */
.section--texte {
  text-align: left;
}
.section--texte h3 {
  color: var(--c-sable);
  font-size: 1.15em;
  font-weight: normal;
  margin: 25px 0 8px;
}
.section--texte h3:first-of-type {
  margin-top: 5px;
}
.section--texte p {
  margin: 0 0 12px;
}
.section--texte ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.section--texte li {
  margin-bottom: 6px;
}
.section--texte a {
  color: var(--c-creme);
  border-bottom: 1px dotted var(--c-sable);
  text-decoration: none;
}
.section--texte a:hover {
  color: var(--c-sable);
}
.a-remplir {
  color: var(--c-sable);
  font-style: italic;
}

/* ----- LIEN PIED DE PAGE ----- */
footer a {
  color: var(--c-sable);
  text-decoration: none;
  border-bottom: 1px dotted var(--c-sable);
}
footer a:hover {
  color: var(--c-creme);
}
