/* Mégadanse : suite de l'accueil (après le héros), reprise telle quelle de la version 1 de l'atelier
   (atelier/v1/css/v1-socle.css, v1-effets.css, v1-accueil.css). Tout est limité à .v1-zone : rien d'autre
   de la page n'est touché. Retirés : barre, menu, fond et pied de V1 (ceux du site v2 restent seuls),
   grand « 30 ans » (doublon du héros), effets non utilisés ici (ClickSpark, GlareHover, Shuffle, CountUp). */
@font-face { font-family: 'Archivo B'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-italique.woff2') format('woff2'); }

.v1-zone {
  --rouge: #d0111f;
  --rouge-sombre: #7d0a13;
  --noir: #0d0b0b;
  --noir-2: #1a1516;
  --blanc: #ffffff;
  --encre-douce: #46434a;
  --f-geste: 'Archivo B', 'Arial Black', sans-serif;
  --f-chiffre: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-texte: 'Work Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
  --barre: 68px;
  --gouttiere: clamp(16px, 4vw, 56px);
  --r-carte: 18px;
  --ombre-carte: 0 30px 70px rgb(0 0 0 / 0.5);
  --ombre-texte: 0 2px 6px rgb(13 11 11 / 0.35), 0 10px 40px rgb(13 11 11 / 0.5);
  --penche: 0deg;
  position: relative; font-family: var(--f-texte); font-size: 1rem; line-height: 1.55; color: var(--noir);
}
@media (min-width: 900px) { .v1-zone { --penche: 1.2deg; } }
.v1-zone :focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.v1-zone .v1-carte-rouge :focus-visible { outline-color: var(--blanc); }
.v1-insecable { white-space: nowrap; }

/* ---------- Sections : le contenu posé sur le fond, jamais de bloc plein ---------- */
.v1-section { position: relative; padding: clamp(48px, 6vw, 96px) var(--gouttiere); }
.v1-section-in { position: relative; max-width: 1320px; margin: 0 auto; }

/* ---------- Cartes (le style validé) ---------- */
.v1-carte { position: relative; border-radius: var(--r-carte); background: var(--blanc); color: var(--noir); box-shadow: var(--ombre-carte); }
.v1-carte-rouge { background: var(--rouge); color: var(--blanc); }
.v1-carte-noire { background: var(--noir); color: var(--blanc); }
.v1-penche-g { rotate: calc(var(--penche) * -1); }
.v1-penche-d { rotate: var(--penche); }

/* ---------- Typographie ---------- */
.v1-titre {
  margin: 0; padding-top: 0.06em;
  font-family: var(--f-geste); font-style: italic; font-weight: 900; font-stretch: 116%;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
.v1-titre em { font-style: italic; color: var(--rouge); }
.v1-carte-rouge .v1-titre em, .v1-carte-noire .v1-titre em { color: var(--blanc); }
.v1-trait { display: block; width: 96px; height: 6px; margin-top: 16px; border-radius: 3px; background: var(--rouge); transform-origin: 0 50%; }
.v1-carte-rouge .v1-trait { background: var(--blanc); }
.v1-chapo { max-width: 60ch; margin: 16px 0 0; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--encre-douce); }
.v1-carte-rouge .v1-chapo, .v1-carte-noire .v1-chapo { color: rgb(255 255 255 / 0.86); }
.v1-date { margin: 0 0 8px; font-weight: 700; font-size: 0.9rem; color: var(--rouge); }
.v1-date::first-letter { text-transform: uppercase; }
/* Gros chiffres blancs posés sur le fond, avec leur légende en Archivo italique blanc. */
.v1-chiffre { font-family: var(--f-chiffre); font-weight: 400; line-height: 0.86; color: var(--blanc); text-shadow: var(--ombre-texte); font-variant-numeric: tabular-nums; }
.v1-legende {
  font-family: var(--f-geste); font-style: italic; font-weight: 800; font-stretch: 108%; text-transform: uppercase;
  color: var(--blanc); text-shadow: var(--ombre-texte); line-height: 1.05;
}

/* ---------- Boutons en pilule ; survol : fond noir, texte blanc, bord rouge ---------- */
.v1-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 48px;
  padding: 0.9em 1.5em; border: 0; border-radius: 999px; cursor: pointer; text-align: center;
  font: 700 1rem/1.15 var(--f-texte); text-decoration: none; background: var(--rouge); color: var(--blanc);
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
}
.v1-btn:hover, .v1-btn:focus-visible { background: var(--noir); color: var(--blanc); box-shadow: inset 0 0 0 2px var(--rouge); }
.v1-btn:active { transform: scale(0.97); }
.v1-btn-ligne { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.v1-btn-blanc { background: var(--blanc); color: var(--noir); }
.v1-carte-rouge .v1-btn { background: var(--blanc); color: var(--noir); }
.v1-carte-rouge .v1-btn-ligne { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 2px var(--blanc); }
.v1-carte-rouge .v1-btn:hover, .v1-carte-rouge .v1-btn:focus-visible { background: var(--noir); color: var(--blanc); box-shadow: inset 0 0 0 2px var(--rouge); }
.v1-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Attente : masqué le temps que la mise en scène se prépare (4 s au plus) ---------- */
.v1-attente .v1-zone [data-v1-entree] { opacity: 0; }

/* ---------- Effets portés de React Bits (MIT + Commons Clause, David Haz) : transform et opacity seulement ---------- */
.v1-zone .sc { isolation: isolate; overflow: hidden; }
.sc-lumiere { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.sc-bord {
  position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; padding: 3px; opacity: 0; visibility: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.sc-bord-lumiere { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.mb-carte { isolation: isolate; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.mb-lumiere { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.mb-bord {
  position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: inherit; padding: 3px; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.mb-bord-lumiere, .mb-vague { position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.mb-vague { transform-origin: 50% 50%; }
.tc { position: relative; display: block; perspective: 800px; text-decoration: none; }
.tc-corps { position: relative; display: block; overflow: hidden; border-radius: 15px; transform-style: preserve-3d; will-change: transform; box-shadow: 0 2px 0 rgb(255 255 255 / 0.4) inset; }
.tc-corps img { width: 100%; height: auto; }
.tc-reflet {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.25) 45%, rgb(255 255 255 / 0) 70%);
}
.tc-ombre {
  position: absolute; inset: -4% -6% -10%; opacity: 0.4; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgb(13 11 11 / 0.7), rgb(13 11 11 / 0.35) 55%, rgb(13 11 11 / 0) 100%);
}
.tc-legende {
  position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 12px; border-radius: 999px; pointer-events: none; opacity: 0;
  background: var(--blanc); color: var(--noir); font: 700 0.82rem/1.2 var(--f-texte); white-space: nowrap; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
  margin: 14px 0 0 14px;
}
.sr-mot { position: relative; display: inline-block; }
.sr-surbrillance .sr-mot::after {
  content: attr(data-m); position: absolute; left: 0; top: 0; color: var(--rouge); opacity: var(--eclat, 0); pointer-events: none;
}

/* ---------- Bienvenue ---------- */
.v1-bienvenue { padding-top: clamp(64px, 8vw, 120px); }
.v1-bienvenue-grille { display: grid; gap: clamp(28px, 4vw, 56px); }
.v1-bienvenue-cote { display: contents; }
.v1-bienvenue-carte { order: 1; padding: clamp(24px, 4vw, 56px); }
.v1-affiche { order: 2; margin: 0; padding: 10px; width: min(100%, 440px); justify-self: end; }
.v1-affiche a { display: block; border-radius: 10px; overflow: hidden; }
.v1-affiche img { width: 100%; height: auto; }
.v1-bienvenue-texte { margin-top: 24px; }
.v1-bienvenue-texte p { max-width: 62ch; margin: 0 0 14px; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.14rem); color: var(--noir); }
.v1-bienvenue-texte .v1-envoi {
  margin-top: 24px; padding-left: 18px; box-shadow: inset 4px 0 0 var(--rouge);
  font-family: var(--f-geste); font-style: italic; font-weight: 800; font-stretch: 104%; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25;
}
@media (min-width: 900px) {
  .v1-bienvenue-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .v1-bienvenue-cote { display: grid; gap: 40px; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--barre) + 32px); }
  .v1-bienvenue-carte { grid-column: 1; grid-row: 1; }
  .v1-affiche { justify-self: start; }
}

/* ---------- Les danses (MagicBento) ---------- */
.mb-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); grid-auto-flow: dense; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mb-tete, .mb-grande, .mb-longue { grid-column: span 2; }
.mb-grande { grid-row: span 2; }
.mb-cellule { display: flex; min-width: 0; }
.mb-carte {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0;
  padding: clamp(16px, 2vw, 24px); border-radius: var(--r-carte); background: var(--blanc); color: var(--noir); text-decoration: none;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.38);
}
a.mb-carte:hover, a.mb-carte:focus-visible, a.mb-carte[data-actif] { background: var(--noir); color: var(--blanc); box-shadow: inset 0 0 0 2px var(--rouge), 0 18px 44px rgb(0 0 0 / 0.38); }
.v1-zone a.mb-carte:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }
.mb-tete .mb-carte { justify-content: flex-start; background: var(--rouge); color: var(--blanc); }
.mb-tete .v1-titre { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); }
.mb-intro { margin: 16px 0 0; max-width: 40ch; font-weight: 600; color: rgb(255 255 255 / 0.92); }
.mb-intro b { font-family: var(--f-chiffre); font-weight: 400; font-size: 1.6em; line-height: 1; vertical-align: -0.1em; }
.mb-nom {
  font-family: var(--f-geste); font-style: italic; font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(1.1rem, 0.85rem + 1.1vw, 1.9rem); line-height: 1.02; overflow-wrap: break-word;
}
.mb-grande .mb-nom { font-size: clamp(1.9rem, 1rem + 3.4vw, 4rem); }
.mb-jours { font-family: var(--f-geste); font-style: italic; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rouge); }
a.mb-carte[data-actif] .mb-jours, a.mb-carte:hover .mb-jours { color: #ff5a64; }
.mb-detail { font-size: 0.84rem; line-height: 1.35; color: var(--encre-douce); }
a.mb-carte:hover .mb-detail, a.mb-carte[data-actif] .mb-detail { color: rgb(255 255 255 / 0.8); }
.mb-fleche {
  position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px; background: var(--rouge); color: var(--blanc);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.mb-fleche::after { content: ' \2192'; }
@media (max-width: 899px) {
  .mb-fleche { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; font-size: 0; }
  .mb-fleche::after { content: '\2192'; font-size: 0.95rem; }
}
.mb-profs { display: flex; margin-bottom: auto; padding: 0 44px 12px 0; }
.mb-profs img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05);
  box-shadow: 0 0 0 3px var(--blanc), 0 6px 14px rgb(0 0 0 / 0.25);
}
.mb-profs img + img { margin-left: -10px; }
a.mb-carte:hover .mb-profs img, a.mb-carte[data-actif] .mb-profs img { box-shadow: 0 0 0 3px var(--rouge), 0 6px 14px rgb(0 0 0 / 0.25); }
.mb-grande .mb-profs img { width: 64px; height: 64px; }
.mb-couple { position: absolute; right: 4%; top: 8%; height: 62%; width: auto; }
a.mb-carte:hover .mb-couple, a.mb-carte[data-actif] .mb-couple { filter: brightness(0) invert(1); }
.mb-grande .mb-carte { padding-right: 34%; }
@media (min-width: 900px) {
  .mb-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(196px, auto); }
  .mb-grande .mb-carte { padding-right: clamp(16px, 2vw, 24px); }
  .mb-couple { right: 8%; top: 10%; height: 58%; }
}

/* ---------- Prochain rendez-vous ---------- */
.v1-rdv-grille { display: grid; gap: clamp(32px, 4vw, 56px); }
.v1-rdv-titre { margin: 0 0 clamp(14px, 2vw, 24px); font-size: clamp(1.7rem, 1rem + 2.6vw, 3.2rem); }
.v1-compte-chiffres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px clamp(16px, 2.4vw, 32px); margin: 0; }
.v1-unite { display: inline-grid; justify-items: start; row-gap: 6px; }
.v1-unite-jours { flex-basis: 100%; grid-template-columns: max-content max-content; justify-content: start; align-items: end; column-gap: 16px; }
.v1-unite .v1-chiffre { display: inline-block; font-size: clamp(3rem, 2rem + 4.4vw, 5.6rem); min-width: 1.1em; }
.v1-unite-jours .v1-chiffre { font-size: clamp(7rem, 4rem + 12vw, 13rem); min-width: 0; }
.v1-unite .v1-legende { font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.2rem); }
.v1-unite-jours .v1-legende { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); padding-bottom: 0.25em; }
.v1-rdv-carte { display: grid; overflow: visible; }
.v1-rdv-visuel { padding: 14px 14px 0; }
.v1-rdv-corps { padding: clamp(20px, 3vw, 36px); }
.v1-rdv-nom {
  margin: 0 0 12px; font-family: var(--f-geste); font-style: italic; font-weight: 800; font-stretch: 104%; text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); line-height: 1.1; overflow-wrap: anywhere;
}
.v1-rdv-texte { margin: 0; white-space: pre-line; color: var(--encre-douce); }
.v1-sans-affiche { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 280px; border-radius: 15px; background: var(--rouge); color: var(--blanc); text-align: center; padding: 20px; }
.v1-sans-affiche img { height: 120px; width: auto; filter: brightness(0) invert(1); }
.v1-sans-affiche b { font-family: var(--f-geste); font-style: italic; font-weight: 900; font-size: 1.4rem; text-transform: uppercase; }
.v1-ensuite { padding: clamp(20px, 3vw, 32px); }
.v1-ensuite h3 { margin: 0 0 10px; font-family: var(--f-geste); font-style: italic; font-weight: 900; font-stretch: 112%; font-size: 1.35rem; text-transform: uppercase; }
.v1-ensuite ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.v1-ensuite a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; border-radius: 10px; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.v1-ensuite time { font-weight: 700; font-size: 0.82rem; color: var(--rouge); }
.v1-ensuite time::first-letter { text-transform: uppercase; }
.v1-ensuite span { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v1-ensuite a:hover, .v1-ensuite a:focus-visible { background: var(--noir); color: var(--blanc); box-shadow: inset 4px 0 0 var(--rouge); }
.v1-ensuite a:hover time, .v1-ensuite a:focus-visible time { color: #ff5a64; }
@media (min-width: 640px) {
  .v1-rdv-carte { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; }
  .v1-rdv-visuel { padding: 0; margin: -34px 0 -34px -22px; }
}
@media (min-width: 900px) {
  .v1-rdv-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: 'compte carte' 'ensuite carte'; align-items: start; }
  .v1-compte { grid-area: compte; }
  .v1-rdv-carte { grid-area: carte; margin-top: 40px; }
  .v1-ensuite { grid-area: ensuite; }
}

/* ---------- Pour plus d'infos (SpotlightCard) ---------- */
.v1-infos-grille { display: grid; gap: 28px; }
.v1-contact { padding: clamp(26px, 4vw, 52px); }
.v1-contact .v1-btns { margin-top: 28px; }
.v1-mail { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); overflow-wrap: anywhere; }
.v1-contact-ville { margin: 22px 0 0; font-weight: 600; color: rgb(255 255 255 / 0.9); }
.v1-lieux-titre { margin: 0 0 16px; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.v1-lieux { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.v1-lieu { padding: clamp(20px, 2.6vw, 30px); min-height: 140px; display: grid; align-content: end; gap: 6px; }
.v1-lieu h3 { margin: 0; font-family: var(--f-geste); font-style: italic; font-weight: 900; font-stretch: 108%; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.08; text-transform: uppercase; }
.v1-lieu p { margin: 0; color: rgb(255 255 255 / 0.78); }
.v1-lieu::before { content: ''; width: 34px; height: 4px; border-radius: 2px; background: var(--rouge); margin-bottom: 8px; }
@media (min-width: 640px) { .v1-lieux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .v1-infos-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .v1-contact { position: sticky; top: calc(var(--barre) + 32px); }
}
