/* ===================================================================
   The Final Loop — Landing
   Standalone stylesheet (ported from the Claude Design export,
   proprietary .dc runtime removed).
   =================================================================== */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #E9E5DC;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

@keyframes tfl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tfl-dash { to { stroke-dashoffset: -560; } }

/* ---- Photo slots (replaces the runtime's <image-slot>) ---- */
.img-slot { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #E4DFD3;
  color: rgba(17, 17, 17, .45);
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: .12em;
  font: 500 12px 'Space Grotesk', monospace;
}

/* ---- Hover states (replaces the runtime's style-hover attribute) ----
   Inline styles win over class selectors on specificity, so hover
   overrides must use !important. */
.navlink:hover        { color: #F4F1EA !important; }
.btn-pill-dark:hover  { background: #F4F1EA !important; color: #111 !important; }
.btn-pill-invert:hover{ background: #fff !important; color: #111 !important; }
.btn-pill-violet:hover{ background: #F4F1EA !important; }
.legal-close:hover    { background: #111 !important; color: #fff !important; }
.legal-navpill:hover  { background: #BEA3FE !important; }
.footer-legal-link:hover { color: #F4F1EA !important; }

.js-open-legal { cursor: pointer; }

/* Disabled "closed" pill — the tirage is over, no link to the form.
   Uses currentColor so it adapts to light (footer) and dark backgrounds. */
.btn-closed { display: inline-block; border-radius: 999px; border: 1.6px solid currentColor; color: inherit; opacity: .5; cursor: default; -webkit-user-select: none; user-select: none; text-decoration: none; }

/* ---- Legal modal (replaces the runtime's <sc-if>) ----
   Hidden inline in the markup and toggled via JS (main.js) so it never
   flashes open before the stylesheet applies. */
#legal-modal h2 + p { margin-top: 14px; color: rgba(17,17,17,.55); font: 400 15px/1.6 'Space Grotesk', sans-serif; }
#legal-modal h3 { margin: 38px 0 0; font: 800 20px 'Bricolage Grotesque', sans-serif; color: #BEA3FE; text-transform: uppercase; letter-spacing: .03em; }
#legal-modal h4 { margin: 18px 0 0; font: 700 16px 'Bricolage Grotesque', sans-serif; }
#legal-modal p { margin: 12px 0 0; color: rgba(17,17,17,.8); }
#legal-modal ul { margin: 12px 0 0; padding-left: 22px; color: rgba(17,17,17,.8); }
#legal-modal li { margin: 6px 0 0; }

/* ---- FAQ (replaces the runtime's <sc-for>) ----
   Answers are hidden inline in the markup and toggled via JS (main.js). */

/* ---- Responsive rules (verbatim from the export) ---- */
@media (max-width: 640px) {
  .tfl-navlink { display: none; }
  /* Hero "un événement" row: stack UN ÉVÉNEMENT / Campus / Ravito and
     drop the asterisk between the two logos. */
  #hero-event { flex-direction: column; align-items: flex-start !important; gap: 12px 20px; }
  #hero-event .hero-event-star { display: none; }
}

@media (max-width: 720px) {
  #concept-photos {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 18px;
    margin: clamp(48px, 8vh, 88px) -20px 0 !important;
    scrollbar-width: none;
  }
  #concept-photos::-webkit-scrollbar { display: none; }
  /* The horizontal scroll container (overflow-x:auto) clips box-shadows,
     so drop them in swipe mode to avoid the cut-off look. */
  #concept-photos > div { flex: 0 0 70vw; scroll-snap-align: center; box-shadow: none !important; }
  #concept-photos > div:first-child { margin-left: 20px; }
  #concept-photos > div:last-child { margin-right: 20px; }
}

@media (max-width: 900px) { #tirage-visual { order: -1; } }
