/* ==========================================================================
   September Fest' 2027 — one page
   Charte : #254441 vert foncé · #04a777 vert · #c94277 rose · #fc814a orange · #fadf7f jaune
   Typos  : Titan One (titres, proche de JT Remillo Black) · Montserrat (texte)
   ========================================================================== */

:root {
  --vert-fonce: #254441;
  --vert: #04a777;
  --rose: #c94277;
  --orange: #fc814a;
  --jaune: #fadf7f;
  --creme: #faf8f5;
  --encre: #1d1d1b;
  --font-display: "Titan One", "Righteous", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --radius: 1.5rem;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { font-family: var(--font-body); color: var(--vert-fonce); background: var(--creme); line-height: 1.6; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -200vw; top: 1rem; z-index: 1000; background: #fff; color: var(--vert-fonce); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; }
.skip-link:focus { left: 1rem; }
.hide-sm { display: none; }
@media (min-width: 800px) { .hide-sm { display: block; } }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.deco { position: absolute; width: var(--size, 60px); height: var(--size, 60px); pointer-events: none; animation: float 6s ease-in-out infinite; z-index: 1; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 2rem; border-radius: 999px; font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--rose)); color: #fff; box-shadow: 0 10px 30px rgba(201, 66, 119, .35); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--vert-fonce); }
.btn-dark { background: var(--vert-fonce); color: #fff; }
.btn-dark:hover { background: var(--vert); }
.btn-light { background: #fff; color: var(--rose); }
.btn-sm { padding: .65rem 1.3rem; font-size: .8rem; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; transition: background .3s, box-shadow .3s, padding .3s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); transition: filter .3s; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; transition: color .3s, opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav.is-scrolled { background: rgba(250, 248, 245, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 2px 20px rgba(37, 68, 65, .08); padding: .6rem 0; }
.nav.is-scrolled .nav-logo img { filter: none; }
.nav.is-scrolled .nav-links a { color: var(--vert-fonce); }
@media (min-width: 800px) { .nav-links { display: flex; } .nav-logo img { height: 36px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; padding: 7rem var(--gutter) 5rem; background: var(--vert-fonce) url("../assets/img/hero-fallback.jpg") center / cover no-repeat; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video.is-hidden { display: none; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(37, 68, 65, .6) 0%, rgba(37, 68, 65, .3) 45%, rgba(37, 68, 65, .9) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 820px; display: grid; gap: 1.4rem; justify-items: center; }
.hero-kicker { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; color: var(--jaune); }
.hero-logo { margin: 0; width: min(88vw, 600px); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .4)); }
.hero-date { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.hero-date span { display: inline-block; background: var(--rose); color: #fff; padding: .1em .45em; border-radius: .35em; transform: rotate(-2deg); margin-right: .3em; text-shadow: none; }
.hero-place { font-size: .95rem; font-weight: 500; opacity: .9; }
.countdown { display: flex; gap: .5rem; justify-content: center; width: 100%; max-width: 440px; }
.countdown-item { flex: 1 1 0; min-width: 0; padding: .65rem .5rem .5rem; border-radius: 1rem; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .25); }
.countdown-item b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-item small { display: block; margin-top: .25rem; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.countdown-live { display: none; font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: var(--jaune); }
.countdown.is-live .countdown-item { display: none; }
.countdown.is-live .countdown-live { display: block; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.hero-note { font-size: .85rem; opacity: .8; font-weight: 500; }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; z-index: 2; width: 28px; height: 44px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; animation: bob 2s ease-in-out infinite; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
@media (min-width: 800px) { .hero-logo { width: min(70vw, 680px); } .countdown { gap: .9rem; max-width: 460px; } }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; background: var(--jaune); color: var(--vert-fonce); padding: .85rem 0; border-block: 3px solid var(--vert-fonce); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { flex: none; display: inline-flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(.9rem, 2.2vw, 1.2rem); white-space: nowrap; letter-spacing: .03em; }
.marquee-ico { width: 1.1em; height: 1.1em; color: var(--rose); --center: var(--vert-fonce); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7rem) 0; position: relative; overflow: hidden; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 800; color: var(--rose); margin-bottom: .8rem; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 7.5vw, 3.8rem); line-height: 1; text-transform: uppercase; color: var(--vert-fonce); overflow-wrap: anywhere; }
.section-lead { margin-top: 1rem; color: rgba(37, 68, 65, .75); font-size: 1.02rem; }

/* ---------- Billetterie ---------- */
.tickets { background: var(--vert-fonce); color: #fff; }
.tickets .eyebrow { color: var(--jaune); }
.tickets .section-title { color: #fff; }
.tickets .section-lead { color: rgba(255, 255, 255, .75); }
.ticket-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }
@media (min-width: 760px) { .ticket-grid { grid-template-columns: 1fr 1fr; } }
.ticket { background: #fff; color: var(--vert-fonce); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); display: flex; flex-direction: column; gap: 1.1rem; position: relative; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.ticket--vip { background: linear-gradient(145deg, var(--orange), var(--rose)); color: #fff; }
.ticket-badge { position: absolute; top: -.85rem; right: 1.5rem; background: var(--jaune); color: var(--vert-fonce); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 999px; }
.ticket-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 5vw, 1.7rem); text-transform: uppercase; line-height: 1; }
.ticket-desc { font-size: .95rem; opacity: .8; margin-top: -.5rem; }
.ticket-options { display: grid; gap: .6rem; }
.ticket-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-radius: 1rem; background: rgba(37, 68, 65, .06); }
.ticket--vip .ticket-option { background: rgba(255, 255, 255, .18); }
.ticket-option span { font-weight: 700; line-height: 1.2; }
.ticket-option small { display: block; font-weight: 500; font-size: .78rem; opacity: .7; margin-top: .15rem; }
.ticket-option b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; white-space: nowrap; }
.ticket-option b i { font-style: normal; font-size: .6em; vertical-align: .35em; margin-left: .05em; }
.ticket-features { display: grid; gap: .4rem; font-size: .92rem; }
.ticket-features li { display: flex; gap: .6rem; align-items: flex-start; }
.ticket-features li::before { content: "✓"; font-weight: 800; color: var(--vert); flex: none; }
.ticket--vip .ticket-features li::before { color: var(--jaune); }
.ticket .btn { margin-top: auto; align-self: stretch; }
.widget-wrap { position: relative; z-index: 2; margin-top: clamp(3rem, 6vw, 5rem); background: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); color: var(--vert-fonce); }
.widget-wrap h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; text-align: center; }
.widget-note { text-align: center; font-size: .9rem; opacity: .7; margin: .4rem 0 1.5rem; }
.widget-container { min-height: 460px; }
.widget-container > a { display: block; margin: 2rem auto; text-align: center; font-weight: 700; color: var(--rose); }

/* ---------- Galerie ---------- */
.gallery { background: var(--creme); }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: .6rem; position: relative; z-index: 2; }
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 1rem; } }
@media (min-width: 1000px) { .mosaic { grid-auto-rows: 210px; } }
.mosaic-item { display: block; border-radius: 1rem; overflow: hidden; position: relative; background: var(--vert-fonce); }
.mosaic-item.tall { grid-row: span 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.gallery-cta { text-align: center; margin-top: 2.5rem; display: grid; gap: .75rem; justify-items: center; position: relative; z-index: 2; }
.gallery-cta small { font-size: .85rem; opacity: .65; }

/* ---------- Infos pratiques ---------- */
.infos { background: #fff; }
.info-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; position: relative; z-index: 2; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info-card { background: var(--creme); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: .6rem; align-content: start; border: 1px solid rgba(37, 68, 65, .06); }
.info-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c, var(--rose)); }
.info-icon svg { width: 24px; height: 24px; }
.info-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; margin-top: .4rem; }
.info-card p { font-size: .95rem; color: rgba(37, 68, 65, .8); }
.info-card a { color: var(--rose); font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--vert-fonce); color: #fff; padding: 4rem 0 2rem; text-align: center; position: relative; overflow: hidden; }
.footer-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1rem; }
.footer-logo { width: min(70vw, 260px); height: auto; }
.footer-tag { opacity: .7; font-size: .95rem; }
.socials { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: .75rem 0 1.5rem; }
.socials a { padding: .65rem 1.3rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .25s, color .25s; }
.socials a:hover { background: #fff; color: var(--vert-fonce); }
.footer-copy { font-size: .78rem; opacity: .55; max-width: 60ch; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; inset: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(29, 29, 27, .92); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 1rem; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--vert-fonce); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Décos du hero : positions desktop, repli discret en mobile ---------- */
.hero-deco--a { --size: 72px; top: 17%; left: 3%; color: var(--orange); --center: var(--jaune); animation-delay: -1s; }
.hero-deco--b { --size: 56px; top: 13%; right: 3%; color: var(--jaune); animation-delay: -3s; }
.hero-deco--c { --size: 72px; bottom: 18%; left: 4%; color: var(--vert); --center: var(--rose); animation-delay: -2s; }
.hero-deco--d { --size: 56px; bottom: 24%; right: 4%; color: var(--rose); animation-delay: -4s; }
@media (max-width: 799px) {
  .hero-deco { display: none; }
  .hero-deco--c, .hero-deco--d { display: block; --size: 44px; top: auto; bottom: 1.1rem; }
  .hero-deco--c { left: 1rem; }
  .hero-deco--d { right: 1rem; }
}
@media (max-width: 480px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; padding: .95rem 1.25rem; font-size: .95rem; }
}

/* ---------- Tuile « toute la galerie » dans la mosaïque ---------- */
.mosaic-cta { display: grid; place-items: center; align-content: center; gap: .35rem; padding: 1rem; text-align: center; background: linear-gradient(145deg, var(--orange), var(--rose)); color: #fff; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; line-height: 1.1; font-size: clamp(.8rem, 2.2vw, 1.05rem); transition: transform .3s ease; }
.mosaic-cta:hover { transform: scale(1.03); }
.mosaic-cta svg { width: clamp(28px, 5vw, 44px); height: clamp(28px, 5vw, 44px); color: var(--jaune); --center: var(--vert-fonce); }
.mosaic-cta small { font-family: var(--font-body); font-weight: 600; text-transform: none; font-size: .75rem; opacity: .9; }

/* ---------- Accessibilité : texte lu par les lecteurs d'écran et Google, invisible à l'écran ---------- */
.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; }

/* ---------- Le festival (présentation) ---------- */
.about { background: #fff; }
.about-inner { max-width: 760px; text-align: center; position: relative; z-index: 2; }
.about-text { margin-top: 1.5rem; display: grid; gap: 1rem; color: rgba(37, 68, 65, .85); font-size: 1.05rem; line-height: 1.75; }
.about-facts { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.about-facts li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: var(--creme); border: 1px solid rgba(37, 68, 65, .08); font-weight: 600; font-size: .9rem; }
.about-facts svg { width: 22px; height: 22px; color: var(--rose); --face: #fff; }
