/* ==========================================================================
   Jouters — Coming Soon
   ========================================================================== */

@font-face {
  font-family: "OVR Demorny";
  src: url("fonts/OVRDemorny-SemiBold.woff2") format("woff2"),
       url("fonts/OVRDemorny-SemiBold.woff") format("woff"),
       url("fonts/OVRDemorny-SemiBold.otf") format("opentype"),
       url("fonts/OVRDemorny-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #a3a3a3;
  --ink: #141414;
  --accent: #64ff00;
  --frame: 10px;
  --pad-desktop: 56px;
  --pad-mobile: 24px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.frame{
  position: relative;
  min-height: 100vh;
  border: var(--frame) solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--pad-desktop);
  overflow: hidden;
}

/* ---------- Reveal animation (page load) ---------- */

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

@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.header{ animation: revealUp .9s var(--ease) both; animation-delay: .05s; }
.cavalcade{ animation: revealUp 1s var(--ease) both; animation-delay: .2s; }
.footer{ animation: revealUp .9s var(--ease) both; animation-delay: .4s; }

/* ---------- Header ---------- */

.header{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.logo{
  width: clamp(220px, 26vw, 380px);
  height: auto;
  flex-shrink: 0;
}

.logo img{
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Cavalcade (fond) — desktop : SVG fusionné (3 cavaliers) ---------- */

.cavalcade{
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 0 0 auto;
  height: clamp(220px, 32vw, 460px);
  margin: 40px 0;
  overflow: hidden;
}

.cavalcade-merged{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

/* le cavalier seul ne sert que sur mobile (fond plein écran) */
.cavalcade-mobile{
  display: none;
}

/* ---------- Footer ---------- */

.footer{
  position: relative;
  z-index: 2;
  text-align: center;
}

.coming-soon{
  font-family: "OVR Demorny", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}

.social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease;
}

.social-link:hover,
.social-link:focus-visible{
  opacity: 1;
  transform: translateY(-2px);
}

.social-link:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Newsletter (Mailchimp restylé) ---------- */

.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.newsletter{
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter-title{
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 10px;
}

.newsletter-row{
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 380px;
}

.newsletter-input{
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color .2s ease;
}

.newsletter-input::placeholder{
  color: var(--ink);
  opacity: .55;
}

.newsletter-input:focus{
  border-color: var(--accent);
}

.newsletter-btn{
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 22px;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.newsletter-btn:hover{
  background: #58e600;
  transform: translateY(-1px);
}

.newsletter-btn:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.mce-responses{
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

#mce-success-response{
  color: var(--ink);
}

#mce-error-response{
  color: #b3261e;
}

/* ---------- Responsive : mobile = hero plein fond ---------- */

@media (max-width: 720px){
  .frame{
    padding: var(--pad-mobile);
  }

  .header{
    justify-content: center;
  }

  .logo{
    width: clamp(180px, 60vw, 260px);
  }

  /* le cavalier devient un fond plein écran derrière tout le contenu */
  .cavalcade{
    position: absolute;
    inset: 0;
    z-index: 0;
    height: auto;
    margin: 0;
    animation: fadeIn 1.2s var(--ease) both;
    animation-delay: .1s;
  }

  /* sur mobile : un seul cavalier (SVG dédié), pas le fichier fusionné 3x */
  .cavalcade-merged{
    display: none;
  }

  .cavalcade-mobile{
    display: block;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* "coming soon" centré verticalement, par-dessus le fond */
  .footer{
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(calc(-50% + 18px));
    animation-name: revealUpCenter;
    padding: 0 24px;
  }

  .newsletter-row{
    max-width: 280px;
    margin: 0 auto;
  }

  @keyframes revealUpCenter{
    from{ opacity: 0; transform: translateY(calc(-50% + 18px)); }
    to{ opacity: 1; transform: translateY(-50%); }
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  @media (max-width: 720px){
    .footer{
      transform: translateY(-50%) !important;
    }
  }
}
