/* Jessy Cheese — Hi-fi design tokens
   Visual language: playful maximalist, yellow logo + magenta pop, deep ink, cream paper.
   Type system: Bagel Fat One (display chunky), Caveat (script branding/callouts),
                DM Sans (body), JetBrains Mono (labels/badges). */

:root {
  /* Surfaces */
  --bg-black: #0d0d0d;
  --bg-cream: #fdf3c5;
  --bg-paper: #fbf6e2;
  --bg-white: #ffffff;

  /* Brand */
  --yellow:        #f5c513;
  --yellow-deep:   #d6a800;
  --yellow-soft:   #fde8a5;
  --magenta:       #e91e8c;
  --magenta-deep:  #b8156e;
  --magenta-soft:  #fbd6e8;
  --red:           #d63030;

  /* Ink */
  --ink:        #0d0d0d;
  --ink-soft:   #2a2a2a;
  --ink-mid:    #6a6a6a;
  --ink-faint:  #9a9a9a;

  /* Type */
  --font-script:  'Caveat', cursive;
  --font-display: 'Bagel Fat One', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med:  420ms;
  --t-slow: 800ms;

  /* Layout */
  --pad-page: clamp(16px, 3vw, 40px);
  --max-w: 1440px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-soft: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-stamp: 6px 6px 0 var(--ink);
  --shadow-stamp-sm: 3px 3px 0 var(--ink);
  --shadow-stamp-magenta: 6px 6px 0 var(--magenta);
}

* { box-sizing: border-box; }

/* Accessibilité clavier : anneau de focus visible et cohérent sur tous les éléments
   interactifs (magenta vif → lisible sur crème, jaune ET fond encre foncé). §1 a11y. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
iframe:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Ne pas afficher l'anneau sur le conteneur de page ciblé par le skip-link (bruit visuel). */
#contenu:focus-visible { outline: none; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* curseur natif du système */

img { display: block; max-width: 100%; }

/* === Typography utilities ============================== */
.t-script   { font-family: var(--font-script); font-weight: 700; }
.t-display  { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.t-body     { font-family: var(--font-body); }
.t-mono     { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; font-weight: 500; }
.italic     { font-style: italic; }

/* === Buttons / chips ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-script); font-weight: 700; font-size: 24px;
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  text-decoration: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn.btn-magenta { background: var(--magenta); color: var(--bg-cream); box-shadow: 5px 5px 0 var(--ink); }
.btn.btn-ink { background: var(--ink); color: var(--yellow); box-shadow: 5px 5px 0 var(--magenta); }
.btn.btn-ghost { background: transparent; color: var(--ink); }
.btn.btn-sm { padding: 8px 16px; font-size: 18px; box-shadow: 3px 3px 0 var(--ink); border-width: 2.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-script); font-weight: 700; font-size: 17px;
  background: var(--bg-white); color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  transition: transform var(--t-fast) var(--ease-bounce);
}
.chip:hover { transform: translateY(-2px) rotate(-2deg); }
.chip.is-active { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }

/* === Sticker (round badge with rotated transform) ============== */
.sticker {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--font-script); font-weight: 700;
  text-align: center; line-height: 1.05;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

/* === Marquee ============== */
.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
  padding: 14px 0;
}
.marquee__track {
  display: flex; flex-shrink: 0;
  animation: marquee-scroll var(--marquee-dur, 28s) linear infinite;
  will-change: transform;
}
.marquee__track > * {
  flex-shrink: 0; padding: 0 32px;
  white-space: nowrap;
  font-family: var(--font-display); font-size: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.marquee.is-magenta { background: var(--magenta); color: var(--bg-cream); }
.marquee.is-ink     { background: var(--ink);     color: var(--yellow); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* === Photo (polaroid frame, video frame, etc.) ============== */
.photo {
  position: relative;
  background: var(--bg-white);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-stamp);
  overflow: hidden;
  border-radius: 8px;
}
.photo.is-polaroid { padding: 10px 10px 36px; background: var(--bg-white); border-radius: 4px; }
.photo.is-polaroid .photo__caption {
  position: absolute; bottom: 8px; left: 12px;
  font-family: var(--font-script); font-weight: 700; font-size: 18px; color: var(--ink);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo .photo__missing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--magenta-soft) 0 6px, var(--bg-paper) 6px 12px);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink); text-align: center; padding: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.photo .photo__missing strong { font-weight: 600; }

/* === Logo lockup (rounded ink container, image fills cover) ============== */
.logo {
  display: inline-block; position: relative;
  background: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 24%;
  box-shadow: 3px 3px 0 var(--magenta);
  overflow: hidden;
}
.logo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo.is-sm { width: 52px; height: 52px; box-shadow: 2px 2px 0 var(--magenta); }
.logo.is-md { width: 92px; height: 92px; }
.logo.is-lg { width: 140px; height: 140px; }

/* === Custom cursor ============================== */
.cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  transform: translate(-50%, -50%);
  transition: width var(--t-fast) var(--ease-bounce),
              height var(--t-fast) var(--ease-bounce),
              background var(--t-fast),
              border-radius var(--t-fast);
  will-change: left, top, transform;
}
.cursor::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  border-top: 2px solid transparent; border-right: 2px solid transparent;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.cursor.is-hover { width: 32px; height: 32px; background: var(--magenta); }
.cursor.is-hover::after { opacity: 1; border-color: var(--bg-cream); }

@media (hover: none) { .cursor { display: none; } }

/* === Section bg variants ============================== */
.bg-cream { background: var(--bg-cream); }
.bg-paper { background: var(--bg-paper); }
.bg-ink   { background: var(--ink); color: var(--bg-cream); }
.bg-yellow { background: var(--yellow); }
.bg-magenta { background: var(--magenta); color: var(--bg-cream); }

/* === Container ============================== */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--pad-page);
}

/* === Animation: reveal on scroll ============================== */
.js-anim .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1; transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }
.reveal.delay-5 { transition-delay: 500ms; }

/* === Loops ============================== */
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes wobble {
  0%, 100% { transform: rotate(var(--rot, 0deg)); }
  50% { transform: rotate(calc(var(--rot, 0deg) + 6deg)); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes float-up-down {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.spin-slow { animation: spin-slow 22s linear infinite; }
.wobble    { animation: wobble 3s ease-in-out infinite; }
.float     { animation: float-up-down 5s ease-in-out infinite; }
.pulse     { animation: pulse-soft 2.4s ease-in-out infinite; }

/* === Page transition wrap ============================== */
.js-anim .page-fade {
  animation: page-in 420ms var(--ease-out);
}
@keyframes page-in {
  from { opacity: 0.45; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Underline wavy magenta ============================== */
.underline-wavy {
  text-decoration: underline wavy var(--magenta);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* === Yellow text highlight (inline) ============================== */
.hl-yellow {
  background: var(--yellow); color: var(--ink);
  padding: 0.04em 0.3em 0.14em 0.2em;
  border: 3px solid var(--ink); display: inline-block;
  transform: rotate(-1deg);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  line-height: 1.04;
}
.hl-magenta {
  background: var(--magenta); color: var(--bg-cream);
  padding: 0.04em 0.3em 0.14em 0.2em;
  border: 3px solid var(--ink); display: inline-block;
  transform: rotate(-1deg);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  line-height: 1.04;
}

/* Selection */
::selection { background: var(--magenta); color: var(--bg-cream); }

/* === Page / section title kicker (prominent, identical everywhere) ===== */
.page-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(13px, 1.5vw, 16px);
  /* Fond magenta foncé : ratio de contraste ~5.6:1 avec le crème (WCAG AA), vs 3.7:1 en magenta clair. */
  color: #ffffff;
  background: var(--magenta-deep);
  padding: 7px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 20px;
  transform: rotate(-1deg);
}
@media (max-width: 620px) {
  .page-kicker { font-size: 12px; padding: 6px 11px; margin-bottom: 16px; }
}

/* === Reveal slide variants (awwwards-style scroll) ============== */
.js-anim .reveal.from-left  { transform: translateX(-72px); }
.js-anim .reveal.from-right { transform: translateX(72px); }
.js-anim .reveal.zoom-in    { transform: scale(0.88); }
.reveal.from-left.in-view,
.reveal.from-right.in-view,
.reveal.zoom-in.in-view { transform: none; }

/* clip-path image wipe */
.js-anim .reveal.clip {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1100ms var(--ease-out);
}
.reveal.clip.in-view { clip-path: inset(0 0 0 0); }

/* === Responsive / mobile ============================== */
@media (max-width: 880px) {
  /* stack every 2-/multi-col split that uses minmax(0, …)
     (browsers serialize minmax(0,…) → minmax(0px,…), so match without the comma) */
  [style*="minmax(0"] { grid-template-columns: 1fr !important; }
  /* nav mobile : la barre à pilules laisse place au menu burger (logo | espace | burger) */
  .nav-desktop { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  /* hero left column: no forced tall height when stacked */
  .hero-left { min-height: auto !important; gap: 22px !important; }
  .hero-media { margin-top: 8px; }
  .hero-media > div { width: 70% !important; max-width: 340px !important; }
  /* tame oversized stamp shadows on small screens */
  :root { --shadow-stamp: 5px 5px 0 var(--ink); }
}
@media (max-width: 620px) {
  [style*="repeat(3"] { grid-template-columns: 1fr 1fr !important; }
  [style*="repeat(5"] { grid-template-columns: 1fr 1fr !important; }
  /* planning hebdo 7 jours : 4 colonnes sur grands mobiles (au lieu de 7 très serrées) */
  [style*="repeat(7"] { grid-template-columns: repeat(4, 1fr) !important; }
  /* carte actu : le panneau texte reprend un padding mobile + retire le filet vertical */
  .actu-panel { padding: 28px 20px !important; border-left: 0 !important; border-top: 4px solid var(--ink) !important; }
  .container { padding-left: 16px; padding-right: 16px; }
  .marquee__track > * { font-size: 17px !important; padding: 0 16px !important; }
  /* dial section vertical rhythm down a touch */
  section[class^="bg-"] { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 460px) {
  [style*="repeat(7"] { grid-template-columns: 1fr 1fr 1fr !important; }
  .cursor { display: none; }
}

/* keep the hero badge inside the screen on phones */
@media (max-width: 620px) {
  .hero-badge { width: 86px !important; height: 86px !important; right: 4px !important; top: -16px !important; font-size: 13px !important; }
  /* la barre de filtres ne doit pas flotter au milieu sur mobile */
  .filter-bar { position: static !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* === Horizontal cheese rail (native bar hidden — custom UI below) === */
.cheese-rail {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.cheese-rail::-webkit-scrollbar { display: none; height: 0; width: 0; }

/* === Footer + stats responsive ================================= */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
}
.stat-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 620px) {
  .stat-grid { gap: 10px !important; }
  .stat-grid .t-display { font-size: 30px !important; }
  .stat-grid .t-script { font-size: 13px !important; }
  .cheese-rail { grid-auto-columns: 80vw !important; }
}

/* === Hero badge (keep small + on screen on phones) ============= */
@media (max-width: 620px) {
  .hero-badge { width: 62px !important; height: 62px !important; right: -2px !important; top: -16px !important; font-size: 10px !important; box-shadow: 2px 2px 0 var(--ink) !important; }
}

/* === Navigation : burger masqué sur PC (barre à pilules visible), inversé sur mobile ≤880px === */
.nav-burger { display: none; }

/* Entrée douce du panneau menu mobile (reduced-motion neutralisé par la règle globale). */
@keyframes nav-panel-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile-panel { animation: nav-panel-in 220ms var(--ease-out); }
.nav-mobile-panel a { animation: nav-panel-in 300ms var(--ease-out) both; }

/* === Lien d'évitement (accessibilité clavier) : visible uniquement au focus === */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--bg-cream);
  padding: 10px 16px; border-radius: 0 0 10px 0;
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
}
.skip-link:focus { left: 0; outline: 3px solid var(--yellow); }
