/* ===============================
   FONT (Acumin Variable Concept)
   =============================== */
@font-face {
  font-family: "Acumin Variable Concept";
  src: url("fonts/AcuminVariableConcept-ExtraCondensedSemibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Acumin Variable Concept", system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ===============================
   BACKGROUND COMMUN
   =============================== */
/* Index : background avec logo sur .hero */
/* Home classique : background avec logo sur .page-bg */
.page-index .hero,
.page-home .page-bg {
  background-image: url("img/7cup-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Contact / Competition (sans logo dans l'image) */
.page-home-alt .page-bg {
  background-image: url("img/7cup-bg-plain.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Structure commune pour les wrappers de home/home-alt */
.page-home .page-bg,
.page-home-alt .page-bg {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dégradé en bas pour home + home-alt */
.page-home .page-bg::after,
.page-home-alt .page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom,
              transparent 0,
              transparent 55%,
              rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

/* ===============================
   HERO COMMUN
   =============================== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1.5rem 3rem;
  z-index: 1;
}

/* Sur l’index, on force la hauteur pleine */
.page-index .hero {
  min-height: 100vh;
  width: 100%;
}

/* Utilisé sur l’index pour positionner le CTA */
.hero-inner {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
}

/* ===============================
   CTA REGISTER (INDEX)
   =============================== */
.cta-wrapper {
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.cta-button {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 0;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  animation: floatText 2.4s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    text-shadow 0.25s ease,
    letter-spacing 0.25s ease;
}

@keyframes floatText {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.cta-button:hover,
.cta-button:focus-visible {
  animation-play-state: paused;
  transform: translateY(0) scale(1.03);
  letter-spacing: 0.22em;
  text-shadow: 0 0 14px rgba(0, 0, 0, 1);
  outline: none;
}

/* ===============================
   TOP MENU (HOME & HOME-ALT)
   =============================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.top-nav a {
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  white-space: nowrap;
  position: relative;
  padding-bottom: 0.15rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  width: 100%;
}

.top-nav a.active::after {
  width: 100%;
}

/* ===============================
   SPONSORSHIP (COMMUN)
   =============================== */
#sponsors {
  background: #000;
  padding: 4rem 1.5rem 5rem;
}

#sponsors .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#sponsors h2 {
  text-align: center;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.logo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scrollLogos 28s linear infinite;
}

.logo-item img {
  height: 55px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.9;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.logo-item img:hover {
  transform: scale(1.07);
  filter: grayscale(0);
  opacity: 1;
}

@keyframes scrollLogos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===============================
   RESPONSIVE GLOBAL
   =============================== */

/* Mobile : backgrounds verticaux */
@media (max-width: 768px) {
  /* vertical AVEC logo : index + home */
  .page-index .hero,
  .page-home .page-bg {
    background-image: url("img/7cup-bg-vertical.webp");
    background-position: center top;
  }

  /* vertical SANS logo : contact / competition */
  .page-home-alt .page-bg {
    background-image: url("img/7cup-bg-vertical-plain.webp");
    background-position: center top;
  }

  .top-nav-inner {
    gap: 1.1rem;
    padding-inline: 1rem;
  }

  .top-nav a {
    letter-spacing: 0.12em;
  }

  .cta-wrapper {
    top: 62%;
  }

  .logo-track {
    gap: 1.8rem;
    animation-duration: 22s;
  }

  .logo-item img {
    height: 42px;
  }
}

@media (max-width: 520px) {
  .top-nav-inner {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  #sponsors {
    padding-inline: 1rem;
  }

  .logo-item img {
    height: 36px;
  }
}

/* ===============================
   CONTACT + COMPETITION CARDS
   (même taille / même style)
   =============================== */

.contact-card,
.competition-card {
  position: relative;
  z-index: 2;
  max-width: 760px;            /* même largeur */
  width: 100%;
  margin: 0 auto;
  padding: 2.4rem 2.2rem;       /* même padding */
  background: rgba(0, 0, 0, 0.86);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 560px;            /* hauteur mini commune desktop */
}

/* CONTACT specific text */

.contact-card h1 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.6rem;
}

.contact-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 1.6rem;
}

/* FORM FIELDS (contact + competition) */

.contact-form .field-row {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 10, 10, 0.65);
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f6a623;
  background: rgba(10, 10, 10, 0.9);
  box-shadow: 0 0 0 1px rgba(246, 166, 35, 0.7);
}

/* bouton (contact + competition submit) */
.contact-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: #000;
  background: linear-gradient(135deg, #f6a623, #ffdd72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.85);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
  filter: brightness(1.05);
}

.contact-submit:active {
  transform: translateY(1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.9);
}

/* Responsive contact/competition card */
@media (max-width: 600px) {
  .contact-card,
  .competition-card {
    padding: 1.9rem 1.5rem;
    max-width: 100%;
    min-height: auto;                  /* on laisse respirer sur mobile */
    border-radius: 24px 24px 0 0;      /* arrondi en haut uniquement */
    border: none;                      /* aucun contour */
    background: #000;                  /* se fond avec le fond noir */
    box-shadow: none;                  /* pas d’ombre en bas */
  }
}

/* ===============================
   COMPETITION – STEPS & SCROLL
   =============================== */

.comp-steps {
  position: relative;
}

.comp-step {
  display: none;
  opacity: 0;
}

.comp-step--active {
  display: block;
  animation: compStepIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 1;
}

@keyframes compStepIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.comp-step-header {
  margin-bottom: 1.4rem;
}

.comp-step-pill {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.comp-step-header h1 {
  margin-top: 0.7rem;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comp-subtitle {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  opacity: 0.78;
}

/* Rules scroller (step 1) */

.rules-scroll {
  margin-top: 0.7rem;
  padding-right: 1.2rem;         /* marge pour la scrollbar */
  max-height: min(52vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0.9;

  /* scrollbar sexy (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #f6a623 rgba(255, 255, 255, 0.05);
}

/* Scroll container pour la 2e étape (form) */

.comp-form-scroll {
  margin-top: 0.6rem;
  padding-right: 1.2rem;         /* marge pour la scrollbar */
  max-height: min(52vh, 380px);
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: #f6a623 rgba(255, 255, 255, 0.05);
}

/* Scrollbars sexy (Chrome / Edge / Safari) */
.rules-scroll::-webkit-scrollbar,
.comp-form-scroll::-webkit-scrollbar {
  width: 8px;
}

.rules-scroll::-webkit-scrollbar-track,
.comp-form-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.rules-scroll::-webkit-scrollbar-thumb,
.comp-form-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f6a623, #ffdd72);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

.rules-scroll::-webkit-scrollbar-thumb:hover,
.comp-form-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffc552, #ffe58c);
}

.rules-scroll h2 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rules-scroll h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rules-scroll ul,
.rules-scroll ol {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0.6rem;
}

.rules-scroll hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1rem 0;
}

.rules-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* accept rules */

.rules-accept {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
}

.rules-accept input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f6a623;
}

.comp-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: flex-end;
}

.comp-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: #000;
  background: linear-gradient(135deg, #f6a623, #ffdd72);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.85);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.comp-btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.comp-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.9);
  filter: brightness(1.05);
}

.comp-btn-primary:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.9);
}

/* Step 2 form */

.comp-back {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 0;
}

.comp-back:hover {
  color: #ffffff;
}

.competition-form .field-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.35rem;
}

.field-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.competition-form select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 10, 10, 0.65);
  padding: 0.7rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.competition-form select:focus {
  border-color: #f6a623;
  background: rgba(10, 10, 10, 0.9);
  box-shadow: 0 0 0 1px rgba(246, 166, 35, 0.7);
}

/* categories */

.comp-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.comp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.comp-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f6a623;
}

/* file input */

.comp-file-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.comp-file-wrap input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.comp-file-fake {
  display: inline-block;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #08a9ff;
  color: #000;
  cursor: pointer;
}

.comp-file-name {
  font-size: 0.8rem;
  opacity: 0.75;
}

.comp-submit {
  margin-top: 1.1rem;
}

/* Responsive competition card */
@media (max-width: 720px) {
  .rules-scroll {
    max-height: 55vh;
  }

  .comp-form-scroll {
    max-height: 55vh;
  }

  .field-row-grid {
    grid-template-columns: 1fr;
  }

  .comp-actions {
    justify-content: center;
  }
}

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

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 1.5rem 1.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.footer-main {
  font-weight: 600;
}

.footer-sub {
  opacity: 0.75;
  font-size: 0.72rem;
}

/* Footer mobile */
@media (max-width: 600px) {
  .site-footer {
    padding-inline: 1.2rem;
  }

  .footer-logo {
    height: 40px;
  }
}
.footer-credits {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  opacity: 0.8;
}

/* ===============================
   GLOBAL 7CUP PRELOADER
   =============================== */

body.preloader-active {
  overflow: hidden;
}

#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at top, #1f2937 0%, #020617 40%, #000000 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-preloader.hide {
  opacity: 0;
  visibility: hidden;
}

#page-preloader .loader-inner {
  padding: 32px 24px;
}

#page-preloader .loader-logo {
  max-width: 240px;
  width: 45vw;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.8));
}

#page-preloader .loader-bar-outer {
  position: relative;
  width: min(320px, 80vw);
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.3),
    0 14px 35px rgba(0,0,0,.7);
  overflow: hidden;
  margin: 0 auto;
}

#page-preloader .loader-bar-inner {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #a855f7);
  background-size: 200% 100%;
  animation: loader-stripes 1.2s linear infinite;
}

@keyframes loader-stripes {
  0%   { background-position:   0 0; }
  100% { background-position: -200% 0; }
}

#page-preloader .loader-text {
  margin-top: 16px;
  font-size: 0.9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  white-space: nowrap;
}

