/* Mago Tom — site vitrine "en construction". Noir/rouge, typographie d'affiche, photos sans cadre. */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bebas-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/bebas-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0300-036F, U+1E00-1EFF;
}

:root {
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --red: #c8102e;
  --text: #f2f0ec;
  --text-dim: #90908c;
  --border: rgba(242, 240, 236, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.display {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
}

h1, h2 {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
  margin: 0 0 0.3em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  text-transform: uppercase;
}

h3 {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--text);
  margin: 0 0 0.6rem;
}

a { color: var(--text); }

.sparkles {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.85), rgba(200,16,46,0));
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

/* Giant faint watermark word, drifts at a different rate on scroll for depth */
.bg-word {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 22vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 236, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Contact watermark: a smaller word, a narrow spotlight sweeps across it on loop */
.bg-word-spotlight {
  font-size: clamp(2.6rem, 9vw, 8rem);
  -webkit-text-stroke: 1px rgba(242, 240, 236, 0.11);
  mask-image: linear-gradient(100deg, transparent 0%, #000 22%, #000 55%, transparent 78%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 22%, #000 55%, transparent 78%);
  mask-size: 200% 100%;
  -webkit-mask-size: 200% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  animation: spotlight-sweep 6s ease-in-out infinite;
}

@keyframes spotlight-sweep {
  0%, 100% { mask-position: 0% 0; -webkit-mask-position: 0% 0; }
  50%      { mask-position: 100% 0; -webkit-mask-position: 100% 0; }
}

/* Each letter drops in from a different height/delay but lands on the line at the same moment */
.bg-word-spotlight .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(var(--from-y, -50px));
}

.bg-word-spotlight .sp { width: 0.3em; }

.section.is-visible .bg-word-spotlight .ch {
  animation: letter-drop var(--fall-duration, 1s) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--fall-delay, 0s);
}

@keyframes letter-drop {
  from { opacity: 0; transform: translateY(var(--from-y, -50px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.bg-word-spotlight .ch:nth-child(1)  { --from-y: -70px; --fall-delay: 0.00s; --fall-duration: 1.00s; }
.bg-word-spotlight .ch:nth-child(2)  { --from-y: -35px; --fall-delay: 0.08s; --fall-duration: 0.92s; }
.bg-word-spotlight .ch:nth-child(4)  { --from-y: -90px; --fall-delay: 0.04s; --fall-duration: 0.96s; }
.bg-word-spotlight .ch:nth-child(5)  { --from-y: -50px; --fall-delay: 0.12s; --fall-duration: 0.88s; }
.bg-word-spotlight .ch:nth-child(6)  { --from-y: -65px; --fall-delay: 0.02s; --fall-duration: 0.98s; }
.bg-word-spotlight .ch:nth-child(7)  { --from-y: -30px; --fall-delay: 0.16s; --fall-duration: 0.84s; }
.bg-word-spotlight .ch:nth-child(9)  { --from-y: -80px; --fall-delay: 0.06s; --fall-duration: 0.94s; }
.bg-word-spotlight .ch:nth-child(10) { --from-y: -45px; --fall-delay: 0.10s; --fall-duration: 0.90s; }
.bg-word-spotlight .ch:nth-child(11) { --from-y: -60px; --fall-delay: 0.14s; --fall-duration: 0.86s; }

header.site-header, main, footer.site-footer { position: relative; z-index: 2; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 6vw;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

.brand em { color: var(--red); font-style: normal; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

.lang-sep { color: var(--border); font-size: 0.85rem; }

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.1rem;
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 44%) 1fr;
  align-items: center;
  gap: 2vw;
  padding: 1.75rem 6vw 5rem;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero-gallery {
  position: relative;
  aspect-ratio: 3 / 4;
  will-change: transform;
}

.hero-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 82%, var(--bg) 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.08) saturate(0.92);
  animation: crossfade 18s ease-in-out infinite;
  mask-image: radial-gradient(ellipse 60% 62% at 50% 46%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 46%, #000 45%, transparent 100%);
}

@keyframes crossfade {
  0%    { opacity: 0; transform: scale(1.04); }
  5%    { opacity: 1; transform: scale(1.0); }
  30%   { opacity: 1; transform: scale(1.015); }
  38%   { opacity: 0; transform: scale(1.04); }
  100%  { opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.tag-line {
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--red);
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  padding: 0.35rem 0;
  margin-bottom: 1.4rem;
}

.kicker {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  margin: 0 0 0.5rem;
  color: #fff;
  text-transform: uppercase;
}

.hook {
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  color: var(--text);
  max-width: 34em;
  margin: 0 0 0.8rem;
}

.sub {
  color: var(--text-dim);
  max-width: 34em;
  margin: 0 0 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}

.btn-primary:hover { background: transparent; color: var(--red); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--text); }

/* Sections */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 6vw;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
}

.section.is-visible { opacity: 1; transform: translateY(0); }

/* Curtain reveal: a solid red bar slides away to unveil the heading, like a silk being pulled off a card. */
.reveal-curtain {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.reveal-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}

.section.is-visible .reveal-curtain::after { transform: scaleX(0); }

.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: 880px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }

.section p { color: var(--text-dim); max-width: 60ch; font-size: 1.05rem; }

.loc-line {
  margin-top: 1.2rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.loc-line b { color: var(--text); font-weight: 600; }

.where-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.8rem;
}

.where-block p { margin: 0 0 1rem; }

@media (max-width: 700px) {
  .where-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.dates-box {
  margin-top: 1.6rem;
  border: 1px dashed var(--border);
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
}

.dates-label { margin: 0; color: var(--text-dim); }

.link-inline {
  color: var(--red);
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.link-inline:hover { text-decoration: underline; }

.note {
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-top: 1.2rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2.5rem 6vw 3rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.site-footer p { margin: 0.2rem 0; }

.footer-domain { font-family: "Bebas Neue", sans-serif; letter-spacing: 0.06em; color: var(--red); }

/* Responsive */
@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-top: 1.5rem;
  }
  .hero-gallery { width: 100%; aspect-ratio: 4 / 3; max-width: 480px; margin: 0 auto; }
  .site-header { padding: 1.1rem 5vw; }
}

@media (max-width: 420px) {
  .site-header { padding: 1rem 4vw; }
  .brand { font-size: 1.25rem; }
  .lang-btn { font-size: 0.85rem; }
}
