/* ===== Home (page-accueil-v2.php, incluse par front-page.php) ===== */

/* ---------- Section vidéo « Sur scène, en vrai » (2e boucle) ---------- */
.video-section { position: relative; overflow: hidden; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; background: var(--bg-primary); color: #fff; }
.video-section__media { position: absolute; inset: 0; overflow: hidden; }
.video-section__media::before { content: ''; position: absolute; inset: 0; background: var(--poster) center / cover no-repeat; } /* poster et vidéo : étalonnage cuit dans les fichiers */
.video-section__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } /* opaque d'emblée : cf. site.css, iPad iOS 16 */
.video-section__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 13, 0.55) 0%, rgba(8, 9, 13, 0.1) 40%, rgba(8, 9, 13, 0.92) 100%); }
.video-section__content { position: relative; z-index: 1; width: 100%; padding-block: 120px 72px; }
.video-section h2 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.video-section .eyebrow { color: #EEF0F4; }
.video-section .lead { color: #EEF0F4; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }

/* ---------- Chiffres animés ---------- */
.stats { background: linear-gradient(90deg, #12141C, #191322); padding: 72px 0 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: 1fr; gap: 36px 28px; }
@media (min-width: 620px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } } /* 3 chiffres depuis le retrait de « 9 langues » (Marc, 2026-09-10) */
.stat__value { font-family: 'Archivo Black', sans-serif; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--fg-title); font-variant-numeric: tabular-nums; }
.stat__value .grad { display: inline-block; }
.stat__label { margin-top: 10px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-body); }
.stat--langs { min-width: 0; }

/* Le marquee de base (.marquee / .marquee__track) est passé dans site.css le 2026-09-17 :
   la bande « Ils nous ont fait confiance » sert AUSSI à /pour-qui/, qui ne charge pas ce fichier. */

/* « 9 langues » : 4e ligne défilante G→D, drapeau à gauche + pays à droite, même taille/typo que les artistes (Marc). */
.repertoire__head--langues { margin-top: 56px; }
.marquee--artists.marquee--langues span { color: var(--fg-title); -webkit-text-stroke: 0; } /* tout en blanc : lisible avec le drapeau */
.marquee--langues span em { font-style: normal; margin-right: 0.35em; }
.marquee--flags { margin-top: 44px; }
.marquee--flags .marquee__track { animation-duration: 28s; }
.flag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; margin-right: 10px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); white-space: nowrap; }
.flag em { font-style: normal; font-size: 1.5rem; line-height: 1; }

.stats { padding-bottom: 72px; }
.repertoire { margin-top: 64px; padding: 48px 0 56px; border-top: 1px solid var(--border); }
.repertoire__head { margin-bottom: 28px; }
.marquee--artists { margin-top: 6px; }
.marquee--artists .marquee__track { animation-duration: var(--dur, 70s); } /* --dur = nb de noms × 7 s (≈ 90 px/s) — Marc : « un peu plus vite » */
.marquee--artists span {
	font-family: 'Archivo Black', sans-serif;
	font-size: clamp(0.9375rem, 1.9vw, 1.5rem); /* même taille que les noms de villes de la bande de logos (Marc 2026-09-10) */
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 0 0.45em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255,255,255,0.55); /* contour plus net : un nom en contour ne doit jamais disparaître entre deux blancs */
}
.marquee--artists span:nth-child(3n+1) { color: var(--fg-title); -webkit-text-stroke: 0; }
.marquee--artists span::after { content: '·'; margin-left: 0.9em; color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Section technologie : pluie de code ---------- */
.tech-section { position: relative; overflow: hidden; background: var(--bg-primary); }
.tech-section__matrix { position: absolute; inset: 0; opacity: 0.8; pointer-events: none; }
.tech-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 13, 0.9) 0%, rgba(8, 9, 13, 0.8) 45%, rgba(8, 9, 13, 0.55) 65%, rgba(8, 9, 13, 0.25) 100%), linear-gradient(180deg, var(--bg-primary), transparent 12%, transparent 88%, var(--bg-primary)); pointer-events: none; }
.tech-section__content { position: relative; z-index: 1; }
.tech-section .lead strong { color: var(--fg-title); }
.tech-section .tech-team { display: block; background: rgba(20, 22, 29, 0.92); }  /* plus de mire : bloc texte seul, fond opaque pour la lisibilité */
.tech-section .tech-team h3 { font-size: 1.375rem; margin-bottom: 10px; }
.tech-section .tech-item { background: rgba(16, 18, 25, 0.94); }

/* Section technologie : texte à gauche, « écran du développeur » à droite (Marc 2026-09-15 : « c'est trop vide »).
   Aucune vidéo — le code s'écrit en DOM, donc net à toute résolution et rien à télécharger. */
.tech-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.tech-split .sec-head { margin-bottom: 0; }
.tech-split .sec-head h2 { text-wrap: balance; }
.tech-screen { margin: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
	background: rgba(6, 15, 21, 0.96); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.tech-screen__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(14, 30, 40, 0.96); border-bottom: 1px solid var(--border); }
.tech-screen__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2C4A5A; flex: 0 0 auto; }
.tech-screen__bar span:first-child { background: #C85A3A; }
.tech-screen__bar p { margin: 0 0 0 10px; font-size: 0.75rem; letter-spacing: 0.04em; color: #6F8592; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tech-screen__code { margin: 0; padding: 20px 18px; min-height: 232px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem; line-height: 1.85; color: #C6D3DA; white-space: pre-wrap; word-break: break-word;
	/* fond posé explicitement : le thème Kava donne un fond clair aux <pre> sous 900 px */
	background: rgba(6, 15, 21, 0.96); border: 0; border-radius: 0; }
.tech-screen__code .ln { display: inline-block; width: 2.4em; color: #3F5D6C; user-select: none; }
.tech-screen__code .kw { color: #7FD1B9; }
.tech-screen__code .str { color: #E0A47F; }
.tech-screen__code .cur { display: inline-block; width: 7px; height: 1em; margin-left: 1px; background: #7FD1B9; vertical-align: -2px; animation: tech-cur 1s steps(2) infinite; }
@keyframes tech-cur { 50% { opacity: 0; } }
.tech-screen__term { padding: 12px 18px 16px; border-top: 1px solid var(--border); background: rgba(10, 22, 30, 0.9);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; color: #8FA3AE; min-height: 74px; }
.tech-screen__term p { margin: 0 0 4px; }
.tech-screen__term .ok { color: #5FBF8F; }
.tech-screen__term b { color: var(--fg-title); font-variant-numeric: tabular-nums; }
.tech-screen__legende { padding: 12px 18px 16px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--fg-soft); }
@media (max-width: 900px) {
	.tech-split { grid-template-columns: 1fr; gap: 32px; }
	.tech-screen__code { min-height: 200px; font-size: 0.75rem; padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .tech-screen__code .cur { animation: none; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); gap: 16px; } .bento__tile--wide { grid-column: span 2; } .bento--three { grid-template-columns: repeat(3, 1fr); } }
.bento__tile {
	position: relative;
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 22px;
	padding: 28px;
	min-height: 220px;
	display: flex; flex-direction: column;
	transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}
.bento__tile:hover { transform: translateY(-4px); border-color: #3A3F4C; }
.bento__tile h3 { font-size: 1.25rem; margin: 0 0 10px; color: var(--fg-title); }
.bento__tile p { color: var(--fg-body); margin: 0; font-size: 0.9375rem; line-height: 1.55; max-width: 46ch; }
.bento__num { font-family: 'Archivo Black', sans-serif; font-size: 0.875rem; letter-spacing: 0.1em; background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.bento__link { margin-top: auto; padding-top: 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-title); }
.bento__link:hover { color: var(--accent); text-decoration: none; }
.bento__tile--accent { background: var(--grad-hot); border-color: transparent; }
.bento__tile--accent h3, .bento__tile--accent p, .bento__tile--accent .bento__link { color: #fff; }
.bento__tile--accent .bento__num { background: none; color: rgba(255,255,255,0.75); -webkit-text-fill-color: rgba(255,255,255,0.75); }
.bento__tile--stat { justify-content: center; align-items: flex-start; background: var(--bg-section); }
.bento__tile--stat strong { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; color: var(--fg-title); margin-bottom: 10px; }
.bento__tile--stat span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-body); }
/* Déco « bulles smartphone » de la tuile 01 */
.bento__phone { position: absolute; right: -10px; bottom: -10px; width: 150px; height: 120px; pointer-events: none; opacity: 0.9; }
.bento__phone span { position: absolute; right: 0; height: 26px; border-radius: 100px; background: var(--grad-num); }
.bento__phone span:nth-child(1) { width: 110px; bottom: 76px; opacity: 0.35; }
.bento__phone span:nth-child(2) { width: 70px; bottom: 42px; opacity: 0.6; }
.bento__phone span:nth-child(3) { width: 130px; bottom: 8px; }

/* Le bloc « Pour qui » (.v2-segments) est passé dans site.css : il sert AUSSI à l'archive /pour-qui/. */



/* V2 : home mobile plus courte — drapeaux seuls, une seule rangée d'artistes */
@media (max-width: 700px) {
	.flag { padding: 8px 10px; }
}

/* ---------- Hiérarchie de la home (2026-09-16) ----------
   Constat en regardant la page : six titres de même poids s'enchaînent (Cinq formats · Répertoire XXL ·
   9 langues · Une salle pleine · La technologie · Parlons de votre événement) → l'œil ne sait plus où
   est le sommet. Trois rangs, une seule règle : la taille suit l'importance commerciale.
   ① ce qui vend (les spectacles, le CTA final) · ② ce qui appuie (la vidéo, la technologie)
   ③ ce qui prouve en passant (les libellés au-dessus des bandes défilantes).
   CSS seul, chargé uniquement sur la home — aucun template touché. */
#spectacles .sec-head h2,
.cta-final h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); } /* 56 → 36 px (Marc : « les titres sont énormes ») */
.video-section h2,
.tech-split .sec-head h2 { font-size: clamp(1.375rem, 2.4vw, 2rem); }
.repertoire__head .stat__value { font-size: clamp(1.125rem, 1.8vw, 1.5rem); }
.repertoire__head .stat__label { font-size: 0.6875rem; letter-spacing: 0.18em; }

/* Le répertoire n'est pas une section de plus : c'est un intermède. Fond propre + filets,
   collé au bas de la section spectacles (d'où le padding-bottom annulé) pour qu'il se lise comme une bande. */
#spectacles.section { padding-bottom: 0; }
.repertoire { margin-top: 72px; padding: 52px 0 60px; background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* « Pour qui » : section d'appui, donc rang ② (cf. la hiérarchie ci-dessus). */
.section--pourqui .sec-head h2 { font-size: clamp(1.375rem, 2.4vw, 2rem); }
