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

body {
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.center-content {
  margin: auto;
}

.logo {
  font-size: 6vw;
  font-weight: 700;
  letter-spacing: -1px;
}

/* LOGO */

.logo-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

.logo {
  width: 60vw;     /* occupe 60% de la largeur de la fenêtre */
  max-width: 600px; /* limite pour les grands écrans */
  height: auto;
}

@media (max-width: 768px) {
  .logo {
    width: 75vw;
    max-width: 320px;
  }
}

/* BUTTONS */

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn {
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.2s ease-in-out;
}

.btn.yellow {
  background: #ffde00;
  color: #000;
  border: none;
  font-weight: 600;
}

.btn.yellow:hover {
  background: #ffe94d;
}

.btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn.outline:hover {
  background: #fff;
  color: #000;
}

/* FOOTER */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: #888;
  padding-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: auto;
  opacity: 0.9;
}

/* MODAL LEGALS */

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 1rem;
  padding:1rem;
  max-width: 600px;
  width: 90%;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 30px rgba(0,0,0,0.2);
  position:relative;
}
@media (max-width: 768px) {
  .modal-content {
    max-height: 80vh;
  }
}
.modal-content h5 {
  font-size: 1.2rem;
  color: #1c1c1c;
  margin-top: 1.5rem;
  text-transform:uppercase;
  letter-spacing: 0.2rem;
}
.modal-content h5 {
  span {
    padding-bottom:3px;
    border-bottom:5px solid #ffde00;
    line-height:2.5rem;
  }
}
.modal-content h6 {
  font-size: 1rem;
  margin-top: 1rem;
  color:#000000;
}
.modal-content p {
  line-height: 1.3;
  margin-top: 0.3rem;
  font-size:0.9rem;
  text-align:justify;
}

.modal-content a {
  color: #1c1c1c;
  font-weight:700;
}
.modal-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 1rem;
}
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: #666;
}
/* Firefox */
.modal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #999 #f0f0f0;
}
.close {
  position: absolute;
  top: 11px;
  right: 22px;
  color: #000000;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.close:hover {
  color: #ffde00;
}
.open-legal-btn {
  background: none;
  border: none;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
  margin-top:1rem;
}

/* Fade in modal*/
.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* OPENING MOTION */

:root {
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-logo: 1.4s;
  --dur-buttons: 0.9s;
}

/* Désactive les animations si l’utilisateur l’a demandé */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Conteneur du logo */
.logo-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* État initial du logo */
.logo.modern {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px) scale(.97);
  will-change: clip-path, filter, transform, opacity;
}

/* Apparition logo (plus lente + pop doux) */
body.ready .logo.modern {
  animation:
    logoWipe var(--dur-logo) var(--ease) forwards,
    logoPop calc(var(--dur-logo) * 0.8) var(--ease) 200ms forwards;
}

/* Soulignement jaune */
.logo-hero::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: min(60vw, 800px);
  height: 6px;
  background: #ffde00;
  transform-origin: left center;
  border-radius: 3px;
  opacity: 0;
}

body.ready .logo-hero::after {
  animation: underscore 1.1s var(--ease) 900ms forwards;
}

/* Keyframes logo */
@keyframes logoWipe {
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes logoPop {
  to { filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes underscore {
  0%   { transform: translateX(-50%) scaleX(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
}

/* --- Apparition séquencée des boutons --- */
.buttons a {
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}

/* Les boutons apparaissent après le logo */
body.ready .buttons a:nth-child(1) {
  animation: fadeUp var(--dur-buttons) var(--ease) 1.4s forwards;
}
body.ready .buttons a:nth-child(2) {
  animation: fadeUp var(--dur-buttons) var(--ease) 1.6s forwards;
}
body.ready .buttons a:nth-child(3) {
  animation: fadeUp var(--dur-buttons) var(--ease) 1.8s forwards;
}

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