/* ==========================================================================
   CHROME PARTAGÉ — reset + header + footer + séparateur + onde-guide.
   Habillage commun aux pages écrites à la main (spectacle, panier, contact,
   compte). Extrait de spectacle.css pour que les pages « formulaire » ne
   chargent plus les ~480 lignes du tunnel de réservation (.spectacle-*).
   Charger APRÈS composants.css (tokens) et AVANT le CSS propre de la page.
   Les pages spectacle chargent chrome.css PUIS spectacle.css.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--nuit); /* fond = couleur du menu (pas noir) */
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ============ Header (menu plein, fixe) ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 14px max(clamp(48px, 5vw, 96px), calc((100vw - 1800px) / 2));
  background: var(--nuit); border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.header .logo { display: block; line-height: 0; }
.header .logo img { height: clamp(40px, 2.5vw, 48px); width: auto; aspect-ratio: 2689 / 1001; display: block; }
.nav { display: flex; align-items: center; gap: clamp(26px, 2.2vw, 42px); margin-left: auto; }
.nav a { color: var(--white); text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; transition: transform 0.24s ease-out; } /* toujours blanc ; survol = léger lift (identique à l'accueil) */
.nav a:hover { transform: translateY(-2px); }
.nav a.is-active { color: var(--cyan); font-weight: 700; }
.header__actions { display: flex; align-items: center; gap: clamp(16px, 1.35vw, 26px); }
.account { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.account svg { width: 18px; height: 18px; stroke: var(--white); }
.account:hover { opacity: 0.8; }
.cart { position: relative; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); background: none; border: 0; color: var(--white); cursor: pointer; display: grid; place-items: center; transition: transform 0.24s ease-out; }
.cart:hover { transform: translateY(-2px); }
.cart:active { transform: translateY(0) scale(0.94); }
.cart:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cart__badge { position: absolute; top: 0; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--signal); color: #FFFFFF; font-size: 10.5px; font-weight: 700; line-height: 1; border: 2px solid var(--bg); } /* même liseré --bg que l'accueil */
/* Format téléphone : nav masquée (le burger prend le relais, cf. menu-mobile.css).
   Header CALÉ AU PIXEL sur l'accueil mobile (sites/mobile/.../01-hero/index.html) :
   même hauteur (safe-area + 10 px), mêmes marges 14 px, même logo 42 px, même
   panier 44 px → plus aucun décalage entre l'accueil et les sous-pages. */
@media (max-width: 767.98px) {
  .nav { display: none; }
  .header {
    gap: 16px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  }
  .header .logo img { height: 42px; }
  .header__actions { gap: 10px; }
  .cart { width: 44px; height: 44px; }
}
/* TABLETTE (768→960) : mêmes resserrements que sites/desktop/styles/site.css
   → nav bureau qui respire, « Se connecter » sur une ligne. */
@media (min-width: 768px) and (max-width: 960px) {
  .nav { gap: clamp(18px, 2.4vw, 26px); }
  .header__actions { gap: 14px; }
}

/* ============ Onde « guide » bleue (attire l'œil vers l'étape suivante) ============
   Portée par un ::after (n'écrase pas l'ombre propre de l'élément). Utilisée par
   le tunnel spectacle ET par la page connexion (halo de guidage). ---- */
.is-guide { position: relative; }
.is-guide::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 55%, transparent);
  animation: onde-guide 1.9s ease-out infinite;
}
@keyframes onde-guide {
  0%   { box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 60%, transparent); }
  70%  { box-shadow: 0 0 0 11px color-mix(in srgb, var(--blue) 0%, transparent); }
  100% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--blue) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .is-guide::after { animation: none; } }

/* Séparateur avant footer : plus compact en mobile (base .separateur dans composants.css). */
@media (max-width: 767.98px) {
  .separateur { --sep-fondu: clamp(44px, 7svh, 64px); --sep-plein: clamp(52px, 7svh, 80px); }
}

/* Mouvement réduit : coupe toutes les transitions. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ==========================================================================
   FOOTER (composant partagé, DA « façade en fond »). Le CONTENU est rendu par
   footer.js depuis la config ; ici uniquement l'habillage.
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--bg); isolation: isolate; }
.footer__bg { position: absolute; inset: 0; z-index: -2; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.footer__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 92% at 50% 24%, color-mix(in srgb, var(--bg) 12%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, color-mix(in srgb, var(--bg) 42%, transparent) 22%, color-mix(in srgb, var(--bg) 54%, transparent) 50%, color-mix(in srgb, var(--bg) 86%, transparent) 79%, color-mix(in srgb, var(--bg) 97%, transparent) 100%),
    color-mix(in srgb, var(--bg) 34%, transparent);
}
.footer__inner {
  position: relative; z-index: 1;
  width: min(1450px, 100% - 2 * clamp(40px, 5vw, 96px));
  margin-inline: auto; padding-block: clamp(60px, 9svh, 104px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(30px, 5svh, 52px);
}
.footer__logo { display: inline-block; border-radius: var(--radius-sm); }
.footer__logo img { height: clamp(46px, 5vw, 70px); width: auto; display: block; }
.footer__logo:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.footer__socials { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__socials-row { display: flex; gap: clamp(14px, 1.4vw, 20px); }
.footer__social {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--white) 30%, transparent); color: var(--white);
  transition: color var(--duree-hover), border-color var(--duree-hover), transform var(--duree-appui);
}
.footer__social svg { width: 21px; height: 21px; }
.footer__social:hover { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 65%, transparent); transform: translateY(-2px); }
.footer__social:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.footer__handle { color: var(--grey); font-size: clamp(14px, 0.9vw, 15.5px); font-weight: 400; }
.footer__blocs { display: flex; justify-content: center; gap: clamp(36px, 6vw, 100px); flex-wrap: wrap; }
.footer__bloc { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.footer__tiret { width: 46px; height: 2px; background: var(--blue); border-radius: 2px; transition: width var(--duree-hover) var(--ease-flip); }
.footer__verbe { font-size: clamp(20px, 1.7vw, 30px); font-weight: 600; color: var(--white); letter-spacing: -0.4px; transition: color var(--duree-hover); }
.footer__cible { display: inline-flex; align-items: baseline; gap: 0.34em; color: var(--blue); font-size: clamp(16px, 1.3vw, 22px); font-weight: 500; }
.footer__bloc:hover .footer__verbe { color: var(--blue); }
.footer__bloc:hover .footer__tiret { width: 72px; }
.footer__bloc:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: var(--radius-md); }
.footer__legal { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__copyright { color: #7d828c; font-size: clamp(13px, 0.85vw, 14.5px); font-weight: 400; }
.footer__legal-liens { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(8px, 0.8vw, 12px); font-size: clamp(12.5px, 0.8vw, 13.5px); }
.footer__legal-liens a { color: #7d828c; text-decoration: none; font-weight: 400; transition: color var(--duree-hover); }
.footer__legal-liens a:hover { color: var(--blue); }
.footer__legal-liens a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.footer__legal-sep { color: var(--grey-dim); user-select: none; }

/* Footer — VARIANTE MOBILE (compact, façade portrait, « Privatiser » centré en
   haut puis « Contacter » + « Nous trouver » côte à côte). */
@media (max-width: 767.98px) {
  .footer__bg img { object-position: center 28%; }
  .footer__inner { width: 100%; padding: clamp(40px, 6svh, 56px) clamp(20px, 6vw, 30px); gap: clamp(22px, 3.4svh, 30px); }
  .footer__logo img { height: clamp(42px, 11.5vw, 54px); }
  .footer__socials { gap: 12px; }
  .footer__socials-row { gap: 14px; }
  .footer__social { width: 44px; height: 44px; }
  .footer__handle { font-size: clamp(13.5px, 3.7vw, 15px); }
  .footer__blocs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3svh, 26px) clamp(12px, 5vw, 40px);
    justify-items: center; align-items: start; width: 100%;
  }
  /* 4 blocs → 1 + 2 + 1 : « Découvrir » (dernier) pleine largeur, CENTRÉ au milieu ;
     Privatiser (premier) aussi, pour l'équilibre ; Contacter | Nous trouver au centre. */
  .footer__blocs .footer__bloc:first-child,
  .footer__blocs .footer__bloc:last-child { grid-column: 1 / -1; }
  .footer__bloc { gap: 7px; }
  .footer__tiret { width: 42px; }
  .footer__verbe { font-size: clamp(20px, 5.6vw, 24px); letter-spacing: -0.3px; }
  .footer__cible { font-size: clamp(16px, 4.4vw, 19px); }
  .footer__legal { gap: 9px; }
  .footer__copyright { font-size: clamp(12px, 3.2vw, 13.5px); max-width: 30ch; line-height: 1.5; }
  .footer__legal-liens { gap: 8px 10px; font-size: clamp(11.5px, 3vw, 13px); }
}
