/* En-tête et pied de page communs à toutes les pages (voir assets/site.js). */
/* En-tête : une barre porte-bons en inox (photo), sous laquelle les liens sont glissés comme des bons de commande (papier photographié). */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 64px; padding: 0 28px; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start; transition: transform .45s cubic-bezier(.3, .8, .3, 1); }
header.cache { transform: translateY(-190%); }
header > * { pointer-events: auto; }
header::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 21px; z-index: 2; pointer-events: none;
  background: url(rail.webp) repeat-x center / 1300px 100%; box-shadow: 0 5px 8px rgba(0, 0, 0, .55), 0 1px 0 rgba(0, 0, 0, .6); }
header::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #0b0807; pointer-events: none; }
.marque { display: flex; align-items: center; gap: 12px; margin-top: 34px; text-decoration: none; color: var(--fg); }
.marque b { font: 400 24px/1 var(--display); letter-spacing: .04em; font-weight: 400; }
.marque i { width: 11px; height: 11px; border-radius: 50%; background: var(--ember); animation: braise 1.6s ease-in-out infinite;
  box-shadow: 0 0 calc(8px + 22px * var(--heat, 0)) calc(2px + 6px * var(--heat, 0)) rgba(255, 90, 31, .8); }
.marque small { font-size: 13px; color: var(--mute); white-space: nowrap; }
.marque small.ouvert { color: var(--cheddar); }
header nav { position: relative; z-index: 1; display: flex; gap: 12px; padding-top: 10px; }
header nav a { position: relative; display: block; padding: 26px 15px 17px; min-width: 88px; text-align: center; text-decoration: none;
  color: #17100c; font: 400 13px/1.15 "Courier New", ui-monospace, monospace;
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .42)) drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
  transform-origin: 50% 4px; transform: rotate(var(--r, 0deg)); animation: bon 4.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
  transition: padding .25s cubic-bezier(.2, .9, .2, 1.3); }
/* le papier : la photo du ticket, étirée à la taille du lien */
header nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(bon.webp) center / 100% 100% no-repeat; }
header nav a small { display: block; font-size: 10px; letter-spacing: .08em; opacity: .62; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px dashed rgba(23, 16, 12, .32); }
header nav a b { font: 400 17px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; font-weight: 400; }
header nav a:nth-child(1) { --r: -2.5deg; } header nav a:nth-child(2) { --r: 1.8deg; --d: -1.2s; }
header nav a:nth-child(3) { --r: -1.2deg; --d: -2.4s; } header nav a:nth-child(4) { --r: 2.4deg; --d: -3.1s; }
header nav a:nth-child(5) { --r: -1.8deg; --d: -.6s; }
@media (max-width: 1080px) { .marque small { display: none; } header nav { gap: 8px; } }
header nav a:hover, header nav a:focus-visible { padding-top: 38px; animation-play-state: paused; }
/* Les pages ont aussi des boutons « .cta » arrondis : le ticket de l'en-tête ne doit pas en hériter. */
header nav a.cta { background: none; border-radius: 0; margin: 0; align-self: auto; color: #17100c; padding: 26px 15px 17px;
  font: 400 13px/1.15 "Courier New", ui-monospace, monospace; letter-spacing: 0; text-transform: none; }
header nav a.cta:hover { padding-top: 38px; background: none; }
/* le bon « urgent » : le même papier, teinté */
header nav a.cta::before { background: url(bon.webp) center / 100% 100% no-repeat, var(--ember); background-blend-mode: multiply;
  -webkit-mask: url(bon.webp) center / 100% 100% no-repeat; mask: url(bon.webp) center / 100% 100% no-repeat; transition: background-color .2s; }
header nav a.cta:hover::before { background-color: var(--cheddar); }
@keyframes bon { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }
/* Bouton du son : trois barres, à plat quand il est coupé, qui dansent quand il joue. */
.son-b { display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; flex: none; width: 38px; height: 38px; padding: 0 0 12px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(241, 231, 212, .3); background: rgba(13, 9, 7, .72); color: #968876; transition: color .2s, border-color .2s; }
.son-b:hover, .son-b:focus-visible { color: #f1e7d4; border-color: #f1e7d4; }
.son-b i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.son-b.on { color: #ff5a1f; border-color: #ff5a1f; }
.son-b.on i { animation: son .7s ease-in-out infinite alternate; }
.son-b.on i:nth-child(2) { animation-duration: .5s; animation-delay: -.3s; }
.son-b.on i:nth-child(3) { animation-duration: .9s; animation-delay: -.5s; }
@keyframes son { from { height: 3px; } to { height: 14px; } }
.son-b[hidden] { display: none; }
.son-b.long { width: auto; height: auto; min-height: 36px; padding: 10px 16px; border-radius: 999px; align-items: center; font: 400 14px/1 "Fraunces", Georgia, serif; }
.son-b.long i { align-self: flex-end; }
.son-b.long .son-t { margin-left: 7px; }
header nav .son-b { align-self: flex-start; margin-top: 24px; }
.lite .son-b.on i { animation: none; height: 9px; }

/* ---------- Pied de page ---------- */
footer { padding: 12vh 28px 26px; overflow: hidden; }
.foot { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 7vw; align-items: start; }
.bill { background: #f4ecdc; color: #17100c; padding: 28px 24px 30px; position: relative; transform: rotate(1.2deg);
  font: 400 15px/1.5 "Courier New", ui-monospace, monospace; }
.bill::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background: linear-gradient(45deg, #f4ecdc 5px, transparent 0) 0 0 / 14px 10px repeat-x,
              linear-gradient(315deg, #f4ecdc 5px, transparent 0) 0 0 / 14px 10px repeat-x; }
.bill h3 { font: 400 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-align: center; color: #17100c; margin: 0 0 6px; }
.bill .sub { text-align: center; border-bottom: 1px dashed #17100c; padding-bottom: 12px; margin-bottom: 8px; }
.bill dl, .bill dt, .bill dd { margin: 0; }
.bill .r { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted #b7a98f; }
.bill dd { text-align: right; font-variant-numeric: tabular-nums; }
.bill .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.bill .tot b { font: 400 25px/1 var(--display); text-transform: uppercase; text-align: right; }
.bill a { display: block; margin-top: 18px; padding: 14px; border-radius: 999px; background: #17100c; color: #f4ecdc; text-align: center; text-decoration: none;
  font: 400 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; transition: background-color .25s; }
.bill a:hover { background: var(--ember); }
.neon { display: inline-block; padding: 10px 24px 8px; border: 2px solid currentColor; border-radius: 10px; color: var(--ember);
  font: 400 clamp(40px, 5vw, 76px)/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 90, 31, .8), 0 0 50px rgba(255, 90, 31, .5);
  box-shadow: 0 0 22px rgba(255, 90, 31, .35), inset 0 0 18px rgba(255, 90, 31, .25); animation: flick 5s infinite; }
.neon.off { color: #5d544b; text-shadow: none; box-shadow: none; animation: none; }
@keyframes flick { 0%, 92%, 94%, 97%, 100% { opacity: 1; } 93% { opacity: .45; } 96% { opacity: .7; } }
#neon-sub { margin: 14px 0 36px; font-size: 19px; font-style: italic; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 16px; }
footer .cols h3 { font: 600 12px/1 var(--serif); letter-spacing: .08em; color: var(--ember); margin-bottom: 10px; }
footer .liens { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
footer .liens a { font: 400 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
footer .liens a:hover { color: var(--ember); }
/* Lettres de cendre : grises au repos, elles rougeoient près du curseur ou quand on attise. */
/* Les lettres géantes sont un décor : leur zone invisible déborde vers le haut (interligne serré)
   et recouvrait les liens sur écran large. Elles ne doivent donc capter aucun clic. */
footer .big { font: 400 31vw/.78 var(--display); margin: 8vh 0 0 -1vw; white-space: nowrap; display: flex; pointer-events: none; }
footer .foot { position: relative; z-index: 1; }
footer .big span { display: inline-block; color: color-mix(in srgb, #ff5a1f calc(var(--h, 0) * 100%), #2f2924);
  text-shadow: 0 0 calc(70px * var(--h, 0)) rgba(255, 120, 40, calc(.9 * var(--h, 0))); }
footer .legal { font-size: 13px; color: var(--mute); margin-top: 18px; }


@keyframes braise { 50% { opacity: .68; } }
/* Sur les pages autres que l'accueil, le pied de page passe par-dessus le plat fixe. */
body:not([data-page="accueil"]) footer { position: relative; z-index: 9; background: var(--bg); }
header nav a[aria-current="page"]::before { filter: brightness(.86) sepia(.25); }
@media (max-width: 760px) {
  header { padding: 0 16px; }
  header nav a:not(.cta) { display: none; }
  .marque small { display: none; }
  footer .cols, .foot { grid-template-columns: 1fr; }
  .foot { gap: 8vh; }
  footer { padding-left: 20px; padding-right: 20px; }
}
.lite header nav a { animation: none; }

/* ---------- Pastille de l'agence ---------- */
.pastille { position: fixed; left: 50%; bottom: 18px; z-index: 80; display: flex; align-items: stretch; max-width: calc(100vw - 24px);
  transform: translate(-50%, 160%); opacity: 0; transition: transform .6s cubic-bezier(.2, .9, .2, 1.1), opacity .4s;
  background: rgba(13, 9, 7, .9); color: #f1e7d4; border: 1px solid rgba(241, 231, 212, .28); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font: 400 14px/1.3 "Fraunces", Georgia, serif; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pastille.visible { transform: translate(-50%, 0); opacity: 1; }
.pastille a { display: flex; align-items: center; gap: 14px; padding: 10px 6px 10px 18px; color: inherit; text-decoration: none; white-space: nowrap; }
.pastille b { font-weight: 600; }
.pastille em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: #ff5a1f; color: #0d0907; font: 400 14px/1 "Anton", Impact, sans-serif; letter-spacing: .05em; text-transform: uppercase; transition: background-color .2s; }
.pastille a:hover em { background: #ffb319; }
.pastille button { width: 40px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; border-radius: 0 999px 999px 0; }
.pastille button:hover { opacity: 1; }
@media (max-width: 760px) {
  .pastille { bottom: 10px; border-radius: 16px; font-size: 13px; }
  .pastille a { white-space: normal; padding: 9px 4px 9px 14px; gap: 10px; }
  .pastille em { white-space: nowrap; }
}
