/*
Theme Name: Mon thème Festival 2025
Description: Thème créé pour l'exercice de creation de site pour un festival par Steeve.
Author: Steeve Mauprivez
*/

/* =========================
   VARIABLES / BASE
========================= */

:root {
  --color-bg: #fff5e6;
  --color-black: #111111;
  --color-accent: #1e88ff;

  --color-green: #00c49a;
  --color-yellow: #ffd33d;
  --color-red: #ff6b6b;
  --color-white: #fff;

  --font-main: "Antonio", system-ui, sans-serif;

  --container-width: 1300px;
  --header-height: 90px;

  --border-strong: 3px solid var(--color-black);
}

/* =========================
   RESET / GLOBAL
========================= */
html {
  margin-top: 0 !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-black);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   TITRES GLOBAUX
========================= */

h1,
h2,
h3 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  margin: 0 0 2.5rem;
  text-align: center;
}

h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* =========================
   HEADER (mobile first)
========================= */

.site-header {
  position: relative;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   BURGER (mobile first)
========================= */

.burger {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;

  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-black);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* état ouvert (IMPORTANT: marche sans dépendre de l'ordre HTML) */
.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   MENU MOBILE (default)
========================= */

.menu-mobile {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;

  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.menu-mobile.is-open {
  transform: translateY(0);
}

.menu-list-mobile {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

.menu-list-mobile a {
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Logos (mobile : en bas du menu) */
.logos {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;

  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.logos img {
  width: 24px;
  height: 24px;
}

/* Desktop menu caché par défaut (mobile-first) */
.menu-desktop {
  display: none;
}

/* =========================
   HERO 
========================= */

.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  background: url(assets/fond.webp) center / cover no-repeat;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-bottom: var(--border-strong);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/fond-motifs.webp) center / cover no-repeat;
  z-index: 0;
  width: 100%;
  height: 100%;

}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* titre */
.hero-title {
  margin: 0 0 1.5rem 2rem;
  line-height: 0.9;
}

.hero-title-top {
  display: block;
  font-size: clamp(5rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--color-green);
  text-shadow: -4px 4px 0 var(--color-black);
}

.hero-title-bottom {
  display: block;
  font-size: clamp(5.5rem, 10vw, 6.5rem);
  font-weight: 700;
  color: var(--color-yellow);
  text-shadow: -4px 4px 0 var(--color-black);
}

/* carte date */
.hero-date-card {
  display: flex;
  gap: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-black);
  padding: 1.25rem;
  max-width: 500px;
  box-shadow: var(--color-black) -6px 6px;
}

.hero-date {
  text-align: center;
}

.hero-date .day {
  font-size: 5rem;
  font-weight: 700;
  display: block;
}

.hero-date .month {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 3rem;
}

.hero-date-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-date-text p {
  font-size: 1.3rem;
  font-weight: 600;
}

.hero-date-text strong {
  font-size: 1.5rem;
  font-weight: 600;
}

.hero-right {
  position: relative;
}

.hero-right::after {
  content: "TICKET HERE!";
  position: absolute;
  font-size: 2rem;
  font-weight: 100;
  top: 40%;
  text-align: center;
  left: 76%;
  width: 150px;
  background-color: var(--color-green);
  padding: 33px;
  border-radius: 100%;
  border: var(--color-black) solid 1px;
  box-shadow: var(--color-black) -7px 7px;
}

.hero-photo {
  background-color: var(--color-green);
  padding: 10px;
  border: var(--color-black) solid 1px;
  box-shadow: var(--color-black) -7px 7px;
}

/* =========================
   SECTION TÊTES D'AFFICHE
========================= */

.affiche {
  padding: 4rem 1.25rem;
  position: relative;
}

/* =========================
   GRID
========================= */

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

/* =========================
   CARD
========================= */

.card {
  background: var(--color-white);
  border: 4px solid var(--color-black);
  box-shadow: 6px 6px 0 var(--color-black);
  overflow: hidden;
  position: relative;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.card:hover {
  transform: translateY(-6px);
}

/* image */

.card-image {
  position: relative;
  overflow: hidden;
}

.thumb {
  width: 100%;
  height: 320px;
  object-fit: cover;

  filter: sepia(70%) contrast(110%) brightness(95%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.thumb-default {
  filter: grayscale(100%) opacity(0.6);
}


.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2),
      transparent);
  pointer-events: none;
}

.card:hover .thumb {
  filter: none;
  transform: scale(1.05);
}

.card h3 a {
  transition: text-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 10px 10px 0 var(--color-black);
}

.card:hover h3 a {
  text-shadow: 5px 5px 0 #000;
}

/* =========================
   NAME
========================= */

.card-in {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.card h3 a {
  color: var(--color-white);
  text-shadow: 3px 3px 0 var(--color-black);
}

/* =========================
   LIENS RAPIDES
========================= */

.liens-rapides {
  padding: 4rem 1.25rem;
  text-align: center;
}

.pills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

/* =========================
   PILL BASE
========================= */

.pill {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  border: 4px solid var(--color-black);
  box-shadow: 6px 6px 0 var(--color-black);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Couleurs */

.pill-primary {
  background: var(--color-green);
  color: #000;
}

.pill-secondary {
  background: var(--color-yellow);
  color: #000;
}

/* Hover effect */

.pill:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 var(--color-black);
}

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

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  margin-top: 6rem;
}

/* structure principale */

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* colonnes */

.footer-col h3,
.footer-col h4 {
  margin: 0 0 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-col p,
.footer-col li {
  font-weight: 300;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--color-white);
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 0.7;
}

/* socials */

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* bande basse */

.footer-bottom {
  border-top: 2px solid var(--color-white);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}



/* --------------------------------------------------------- */

/* =========================
   PAGE PROGRAMMATION
========================= */

.programmation {
  padding: 4rem 1.25rem;
}

/* header */

.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.kicker {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
}

.programmation section>h2 {
  display: inline-block;
  background: var(--color-yellow);
  padding: 0.5rem 1.5rem;
  border: 3px solid var(--color-black);
  box-shadow: -6px 6px 0 var(--color-black);
  margin-bottom: 3rem;
}


/* =========================
   FILTRE
========================= */

.edition-filter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.edition-filter select {
  padding: 0.75rem;
  border: 3px solid var(--color-black);
  background: var(--color-white);
  font-family: var(--font-main);
  font-size: 1rem;
}

.edition-filter button {
  align-self: flex-start;
}

/* =========================
   BLOCS JOUR
========================= */

.programmation section {
  margin-bottom: 5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================
   SCENE BLOCK
========================= */

.scene-block {
  background: var(--color-white);
  border: 4px solid var(--color-red);
  box-shadow: 6px 6px 0 var(--color-black);
  padding: 2rem;
}

.scene-block:nth-child(3n+1) {
  border-color: var(--color-green);
  box-shadow: 6px 6px 0 var(--color-black);
}

.scene-block:nth-child(3n+2) {
  border-color: var(--color-yellow);
  box-shadow: 6px 6px 0 var(--color-black);
}



/* titre scène */

.scene-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* =========================
   SLOTS
========================= */

.slots {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slot {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.slot:last-child {
  border-bottom: none;
}

.time {
  font-weight: 700;
  min-width: 90px;
  background: var(--color-green);
  color: var(--color-black);
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--color-black);
  box-shadow: -3px 3px 0 var(--color-black);
}

.scene-block .time {
  font-weight: 700;
  min-width: 90px;
  background: var(--color-red);
  color: var(--color-black);
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--color-black);
  box-shadow: -3px 3px 0 var(--color-black);
}

.scene-block:nth-child(3n+1) .time {
  background: var(--color-green);
}

.scene-block:nth-child(3n+2) .time {
  background: var(--color-yellow);
}

.slot strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slot a {
  transition: text-shadow 0.2s ease;
}

.slot a:hover {
  text-shadow: -3px 3px 0 var(--color-red);
}

.scene-block:nth-child(3n+1) .slot a:hover {
  text-shadow: -3px 3px 0 var(--color-green);
}

.scene-block:nth-child(3n+2) .slot a:hover {
  text-shadow: -3px 3px 0 var(--color-yellow);
}

/* =========================
   PAGE ARTISTES
========================= */

.artistes-page {
  padding: 4rem 1.25rem;
}

.artistes-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Variation visuelle par rapport aux headliners */
.artiste-card .thumb {
  filter: grayscale(100%) contrast(110%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.artiste-card:hover .thumb {
  filter: none;
  transform: scale(1.05);
}

.artiste-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.artiste-card:nth-child(2n) {
  animation-delay: 0.1s;
}

.artiste-card:nth-child(3n) {
  animation-delay: 0.2s;
}

.card h2 {
  font-size: 2rem;
  color: var(--color-bg);
  text-shadow: -3px 3px 0 var(--color-black);
}


@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SINGLE ARTISTE
========================= */

.artiste-single {
  padding: 4rem 1.25rem;
}

/* Layout principal */
.artiste-hero {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.artiste-title {
  margin-bottom: 2rem;
}

/* Image */
.artiste-image {
  border: 4px solid var(--color-black);
  box-shadow: -8px 8px 0 var(--color-black);
  overflow: hidden;
  width: 60%;
}

.artiste-image .thumb {
  width: 100%;
  height: auto;
  filter: none;
}

/* Bio */
.artiste-bio {
  background: #fff;
  border: 4px solid var(--color-black);
  box-shadow: 8px 8px 0 var(--color-black);
}

/* Passage */
.artiste-passage {
  margin-bottom: 4rem;
}

/* Liens sociaux */
.liens-sociaux {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.liens-sociaux a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-green);
  border: 3px solid var(--color-black);
  box-shadow: -4px 4px 0 var(--color-black);
  text-transform: uppercase;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.liens-sociaux a:hover {
  transform: translateY(-4px);
  box-shadow: -8px 8px 0 var(--color-black);
}

.artiste-single .card::after {
  display: none;
}

.artiste-single .slot,
.liens-sociaux {
  justify-content: center;
  align-items: center;
}

.artiste-bio {
  padding: 0 1rem;
}

/* =========================
   BREAKPOINTS 
========================= */

/* ≥ 480px */
@media (min-width: 480px) {
  .menu-list-mobile a {
    font-size: 2rem;
  }

  .hero-inner {
    padding: 3.5rem 1.5rem;
  }

  .thumb {
    height: 360px;
  }

  .pill {
    font-size: 1.1rem;
  }
}

/* ≥ 768px (tablette) */
@media (min-width: 768px) {
  .menu-list-mobile {
    gap: 32px;
  }

  .hero-inner {
    padding: 4rem 2rem;
    gap: 3rem;
  }

  .hero-title-top {
    font-size: clamp(7rem, 8vw, 9rem);
  }

  .hero-title-bottom {
    font-size: clamp(8rem, 9vw, 10rem);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pills {
    flex-direction: row;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .edition-filter {
    flex-direction: row;
    align-items: center;
  }

  .edition-filter select {
    min-width: 220px;
  }

  .scene-block {
    padding: 2.5rem;
  }

  .artiste-hero {
    flex-direction: row;
    align-items: center;
    width: var(--container-width);
    margin: auto;
  }

  .artiste-left {
    flex: 1;
  }

  .artiste-bio {
    flex: 1;
  }
}

/* ≥ 1024px (desktop) */
@media (min-width: 1024px) {

  /* burger caché */
  .burger {
    display: none;
  }

  /* menu mobile désactivé */
  .menu-mobile {
    display: none;
  }

  /* menu desktop actif */
  .menu-desktop {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .menu-list {
    display: flex;
    align-items: center;
    gap: 80px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  /* Waves decoration */
  .menu-list::before,
  .menu-list::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 30px;
    background-image: url("assets/icons/wave-blue.webp");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
  }

  .menu-list::before {
    left: -175px;
  }

  .menu-list::after {
    right: -175px;
  }

  .menu-list a {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
  }

  .menu-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.2s ease;
    pointer-events: none;
  }

  .menu-list a:hover::after {
    width: 100%;
  }

  /* logos en haut à droite */
  .logos {
    position: absolute;
    top: 32px;
    right: 24px;
    left: auto;
    bottom: auto;
    transform: none;
    width: fit-content;
  }

  /* hero en 2 colonnes */
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb {
    height: 300px;
  }

  .pill {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
  }

  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .programmation section .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
  }
}