﻿@import "normalize.css";

@font-face {
  font-family: 'The Perfect Christmas';
  src: url('font/the_perfect_christmas/The Perfect Christmas.ttf') format('truetype');
}

@font-face {
  font-family: 'Waving at Christmas';
  src: url('font/waving_at_christmas/Waving at Christmas.ttf') format('truetype');
}

@font-face {
  font-family: 'Cream Cake';
  src: url('font/cream_cake/Cream Cake.ttf') format('truetype');
}

:root {
  --rouge: #c71f37;
  --rouge-fonce: #6b0f1a;
  --or: #ffd700;
  --noir: #111;
  --blanc: #fff;
  --gris-transp: rgba(255, 255, 255, 0.1);
  --bordure-radius: 1rem;
}

html {
  font-family: 'Cream Cake', cursive;
  background: radial-gradient(circle at top, var(--rouge-fonce), var(--noir));
  color: var(--blanc);
  font-size: 20px;
  overflow-x: hidden;
}

body {
  margin: 0;
}

#page-chargement-application {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image:url(illustration/chargement.png);
  background: radial-gradient(circle, var(--rouge-fonce), var(--noir));
  font-family: 'The Perfect Christmas', cursive;
  color: var(--or);
  font-size: 2.5rem;
  text-shadow: 0 0 20px var(--or), 0 0 40px var(--rouge);
  animation: pulseGold 2s infinite alternate ease-in-out;
}

@keyframes pulseGold {
  0% { text-shadow: 0 0 10px var(--or), 0 0 20px var(--rouge); opacity: 0.7; }
  100% { text-shadow: 0 0 30px var(--or), 0 0 60px var(--rouge); opacity: 1; }
}

.page {
  min-height: 100vh;
  padding: 5%;
  background:url("illustration/cinema.png");
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(15px);
  border-radius: var(--bordure-radius);
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0.05;
  z-index: -1;
}

.page h1 {
  font-family: 'Cinzel', serif;
  color: var(--or);
  text-align: center;
  font-size: 3.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--or), 0 0 30px var(--rouge);
  margin-bottom: 2rem;
}

.page h2 {
  font-family: 'Waving at Christmas', sans-serif;
  text-align: center;
  color: var(--rouge);
  text-shadow: 0 0 6px var(--or);
  font-size: 2.8rem;
}

#liste-film {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

#liste-film li {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--bordure-radius);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.4s ease;
}

#liste-film li:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  border-color: var(--or);
}

#liste-film li::before {
  content: "🎞️";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.8;
}

.liste-film-item {
  display: block;
  font-family: 'Waving at Christmas', sans-serif;
  font-size: 2.8rem;
  color: var(--or);
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s;
}

.liste-film-item:hover {
  color: var(--rouge);
}

fieldset {
  border: 2px solid var(--or);
  border-radius: var(--bordure-radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
}

legend {
  color: var(--or);
  font-family: 'Waving at Christmas', sans-serif;
  font-size: 1.6rem;
}

input[type="text"],
textarea {
  width: 100%;
  min-height: 3rem;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: var(--bordure-radius);
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--blanc);
  font-size: 1.2rem;
  font-family: 'Cream Cake', cursive;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2);
  display: block;
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 15px var(--or), 0 0 10px rgba(255, 215, 0, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

/* --- BOUTONS --- */
.action {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--bordure-radius);
  background: linear-gradient(90deg, var(--rouge), var(--or));
  border: none;
  color: var(--blanc);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease-in-out;
  margin: 0.5rem;
}

.action:hover {
  background: linear-gradient(90deg, var(--or), var(--rouge));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  transform: scale(1.05);
  text-shadow: 0 0 20px var(--or);
}

form .action {
  display: block;
  width: 50%;
  margin: 1rem auto;
}

.action.secondary {
  background: rgba(255, 215, 0, 0.2);
  color: var(--rouge);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.action.secondary:hover {
  background: rgba(255, 215, 0, 0.4);
  color: var(--noir);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

#html-vue-film .page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--bordure-radius);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
  max-width: 800px;
  margin: 2rem auto;
}

#html-vue-film h1 {
  font-family: 'Cinzel', serif;
  color: var(--or);
  text-align: center;
  font-size: 4.5rem;
  text-shadow: 0 0 10px var(--or), 0 0 20px var(--rouge);
  margin-bottom: 1.5rem;
}

#html-vue-film h2 {
  font-family: 'Waving at Christmas', cursive;
  font-size: 3.5rem;
  color: var(--rouge);
  text-align: center;
  text-shadow: 0 0 6px var(--or);
  margin-bottom: 1rem;
}

#html-vue-film #film-description {
  width: 95%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--bordure-radius);
  padding: 1.8rem;
  line-height: 1.6;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
  color: var(--blanc);
  font-size: 5rem;
  margin-bottom: 2rem;
}

#html-vue-film .action {
  font-size: 1.8rem;
  padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
 #html-vue-film h1 {
    font-size: 2rem;
  }
  #html-vue-film h2 {
    font-size: 2rem;
  }
  #html-vue-film p {
    font-size: 1.5rem;
  }
  #html-vue-film #film-description {
    font-size: 1.4rem;
    padding: 1rem;
  }
  #html-vue-film .action {
    font-size: 1.2rem;
    padding: 0.6rem 1.8rem;
  }
  #liste-film {
    grid-template-columns: 1fr;
  }

  .page {
    background-size: 60%;
    padding: 2.5%;
  }

  .page h1 {
    font-size: 2rem;
  }

  .liste-film-item {
    font-size: 1.8rem;
  }

  .action {
    padding: 0.6rem 1.8rem;
    font-size: 1.2rem;
  }

  form .action {
    width: 100%;
    margin: 1rem 0;
  }
}
