/* Le site des Brass' Gamelles. Le style de la vignette HelloAsso « fond-reflet »
   (scripts/decliner-marque.mjs) : fond noir, halo chaud, laiton poli pour ce qui dit la
   marque. Charte : docs/charte-graphique.md (le doré #BB9E52 est une couleur de signe ;
   le texte courant reste blanc ou gris clair). Mobile d'abord, cibles de 44 px. */

@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2-variations'); }
@font-face { font-family: 'Public Sans'; font-weight: 100 900; font-display: swap;
  src: url('/fonts/public-sans-latin.woff2') format('woff2-variations'); }

:root {
  --poli: linear-gradient(163deg, #7E6429 0%, #C9AE6C 18%, #F2E3B4 38%, #BB9E52 55%, #8A6F32 78%, #D3B978 100%);
  --laiton: #BB9E52;
  --laiton-clair: #D9C38A;
  --texte: #FFFFFF;
  --discret: oklch(75.2% 0.0070 88.8);
  --carte: #121110;
  --bord: #2A2721;
  --largeur: 46rem;
  --gouttiere: max(1.25rem, env(safe-area-inset-left));
}
* { box-sizing: border-box; margin: 0; }
html { background: #000; color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100dvh; display: flex; flex-direction: column;
  color: var(--texte); font-family: 'Public Sans', system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  background: radial-gradient(110% 55rem at 50% 0, rgba(187,158,82,.16) 0%, rgba(187,158,82,.04) 40%, #000 72%) no-repeat, #000;
}
img { max-width: 100%; height: auto; display: block; }
/* Aucun lien souligné (Simon) : dans le texte, un lien se reconnaît à sa couleur laiton et
   à sa graisse ; il s'éclaircit au survol. */
a { color: var(--laiton-clair); text-decoration: none; transition: color .2s; }
:where(p, dd) > a { font-weight: 600; }
a:hover, a:focus-visible { color: #F2E3B4; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------------------------------------------------------------- en-tête */
.entete { padding-top: max(.75rem, env(safe-area-inset-top)); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.5rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--texte); min-height: 44px; }
.marque img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.marque span { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.15rem;
  font-variation-settings: 'SOFT' 40, 'WONK' 1; }
.nav { display: flex; gap: .25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .6rem;
  color: var(--texte); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: .5rem; }
.nav a[aria-current="page"] { color: var(--laiton-clair); }
.nav a:hover { background: rgba(255,255,255,.06); }
/* Sur téléphone, le nom tient dans le monogramme : la place va aux liens. */
@media (max-width: 30rem) { .marque span { display: none; } }

/* ---------------------------------------------------------------- titres */
.titre, h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-variation-settings: 'SOFT' 40, 'WONK' 1; letter-spacing: -.015em; line-height: 1.18; }
h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.poli { background-image: var(--poli); -webkit-background-clip: text; background-clip: text; color: transparent; }
.filet { width: 4.5rem; height: 2px; background: var(--poli); border: 0; }
.chapo { color: var(--discret); font-size: 1.1rem; }

main { flex: 1; }
.section { padding-block: 2.25rem; display: flex; flex-direction: column; gap: .85rem; }
.section + .section { border-top: 1px solid var(--bord); }
.page-titre { padding-block: 1rem .75rem; display: flex; flex-direction: column; gap: .6rem; }
.page-titre .date { margin-bottom: -.35rem; }

/* Sur téléphone, des respirations courtes : un écran de 600 px n'a pas de place à perdre
   en marges. Le grand écran, lui, en reprend. */
@media (min-width: 40rem) {
  .section { padding-block: 3.25rem; gap: 1.1rem; }
  .page-titre { padding-block: 2rem 1rem; gap: .9rem; }
  .ouverture { padding-block: 2rem 3.25rem; gap: 1.6rem; }
  .article { gap: 1.25rem; padding-bottom: 3rem; }
}

/* ---------------------------------------------------------------- boutons */
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1.2 'Public Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid var(--laiton); color: var(--texte); background: transparent;
}
.bouton:hover, .bouton:focus-visible { color: var(--texte); background: rgba(187,158,82,.12); }
/* Le bouton principal porte le laiton poli : texte noir dessus, contraste > 7:1 partout. */
.bouton.principal { background: var(--poli); border-color: transparent; color: #000; }
.bouton.principal:hover, .bouton.principal:focus-visible { color: #000; filter: brightness(1.08); }
.bouton svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.bouton[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- accueil */
.ouverture { padding-block: 1.25rem 2.25rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.2rem; }
.ouverture .logo { position: relative; width: min(78vw, 380px); }
.ouverture .logo img { width: 100%; }
/* Le reflet du laiton, limité à l'anneau et aux initiales par le masque. */
.ouverture .logo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255,250,232,.95) 50%, transparent 66%);
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url('/logo-masque.svg') center / 100% 100% no-repeat;
          mask: url('/logo-masque.svg') center / 100% 100% no-repeat;
  /* Un reflet traverse le laiton, puis le laiton se repose, et ça recommence : 2,4 s de
     passage, 4,6 s de pause. */
  animation: reflet 7s cubic-bezier(.4, 0, .2, 1) .5s infinite;
}
@keyframes reflet { 0% { background-position: 130% 0; } 34%, 100% { background-position: -30% 0; } }
.ouverture .baseline { font-size: clamp(1.65rem, 7.4vw, 2.5rem); }
.ouverture .boutons { justify-content: center; }
.ouverture > * { animation: monte .9s ease-out both; }
.ouverture > :nth-child(2) { animation-delay: .2s; }
.ouverture > :nth-child(3) { animation-delay: .35s; }
.ouverture > :nth-child(4) { animation-delay: .5s; }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } }

.occasions { padding: 0; list-style: none; }
.occasions a { display: flex; align-items: center; color: var(--texte); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.occasions a:hover, .occasions a:focus-visible { border-color: var(--laiton); background: rgba(187,158,82,.1); color: var(--laiton-clair); }
/* Sur téléphone, une liste : une ligne par prestation, une flèche en laiton (comme les pages du
   pied). En étiquettes, elles passaient à la ligne au hasard des longueurs et ne disaient pas
   qu'on pouvait appuyer dessus. */
@media (max-width: 39.99rem) {
  .occasions { border: 1px solid var(--bord); border-radius: .9rem; overflow: hidden; background: var(--carte); }
  .occasions li + li { border-top: 1px solid var(--bord); }
  .occasions a { justify-content: space-between; gap: 1rem; min-height: 50px; padding-inline: 1.1rem; }
  .occasions a::after { content: '›'; color: var(--laiton); font-size: 1.4rem; line-height: 1; transform: translateY(-.06em); }
}
@media (min-width: 40rem) {
  .occasions { display: flex; flex-wrap: wrap; gap: .5rem; }
  .occasions a { display: inline-flex; min-height: 44px; padding: .3rem 1rem; border: 1px solid var(--bord); border-radius: 999px; font-size: .95rem; }
}

/* ---------------------------------------------------------------- actus */
.actus { display: grid; gap: 1rem; }
.carte-actu {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: center;
  padding: .75rem; border: 1px solid var(--bord); border-radius: 1rem; background: var(--carte);
  color: var(--texte); text-decoration: none;
}
.carte-actu:hover, .carte-actu:focus-visible { border-color: var(--laiton); color: var(--texte); }
.carte-actu img { border-radius: .6rem; aspect-ratio: 1; object-fit: cover; }
.carte-actu .date, .article .date { color: var(--discret); font-size: .9rem; }
.carte-actu h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; }
.carte-actu p { color: var(--discret); font-size: .95rem; line-height: 1.45; }

.article { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 2.25rem; }
.article figure img { border-radius: 1rem; width: 100%; height: auto; display: block; background: #000; }
.miniature-video { position: relative; display: block; border-radius: 1rem; overflow: hidden; color: #fff; text-decoration: none; }
.miniature-video img { transition: transform .5s ease, filter .3s; }
.miniature-video:hover img, .miniature-video:focus-visible img { transform: scale(1.03); filter: brightness(.85); }
.miniature-video .lecture { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
.miniature-video .lecture svg { width: 42px; height: 42px; fill: #fff; margin-left: 5px; }
.miniature-video .libelle { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; text-align: center; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.article figure figcaption { margin-top: .5rem; color: var(--discret); font-size: .9rem; text-align: center; }
/* Un article se lit sur téléphone : des paragraphes qui respirent, et deux ou trois mots
   clés en gras blanc (jamais en laiton, réservé aux liens). */
.article .corps { font-size: 1.1rem; line-height: 1.75; }
.article .corps p + p { margin-top: 1.1rem; }
.article .corps strong { color: #fff; font-weight: 700; }
/* Plusieurs photos : en grille, la première en grand. */
.article figure.galerie { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.article figure.galerie .zoom { display: block; cursor: zoom-in; }
.article figure.galerie img { border-radius: .6rem; height: 100%; object-fit: cover; }
.article figure.galerie .zoom:first-child { grid-column: 1 / -1; }

/* La visionneuse : une photo d'une galerie en plein écran (site.js). Fond noir quel que
   soit le thème, comme toutes les visionneuses : la photo doit être seule. */
.visionneuse { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, .95); color: #fff; overflow: hidden; }
.visionneuse::backdrop { background: rgba(0, 0, 0, .95); }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse img { max-width: 100vw; max-height: 100dvh; object-fit: contain; user-select: none; -webkit-user-select: none;
  transition: opacity .2s; }
.visionneuse img.change { opacity: 0; }
.visionneuse button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.visionneuse button:hover, .visionneuse button:focus-visible { background: rgba(0, 0, 0, .75); color: var(--laiton-clair); }
.visionneuse .fermer { top: calc(env(safe-area-inset-top) + .75rem); right: .75rem; font-size: 1.6rem; }
.visionneuse .precedente { left: .5rem; top: 50%; transform: translateY(-50%); }
.visionneuse .suivante { right: .5rem; top: 50%; transform: translateY(-50%); }
.visionneuse .compteur { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 1rem);
  text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .8); pointer-events: none; }
.retour { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; align-self: flex-start;
  color: var(--discret); text-decoration: none; font-size: .95rem; transition: color .2s; }
.retour:hover, .retour:focus-visible { color: var(--laiton-clair); }

/* ---------------------------------------------------------------- pages de prestations */
.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq dt { font-weight: 600; }
.faq dd { margin: .2rem 0 0; color: var(--discret); }
.carte-prestation { display: block; padding: 1rem 1.1rem; border: 1px solid var(--bord); border-radius: 1rem; background: var(--carte);
  color: var(--texte); text-decoration: none; transition: border-color .25s, transform .25s; }
.carte-prestation:hover, .carte-prestation:focus-visible { border-color: var(--laiton); color: var(--texte); transform: translateY(-2px); }
/* Partenaires : chaque logo sur une plaque blanche, dans ses couleurs ; sur notre noir, un
   logo d'entreprise en noir disparaîtrait, et on ne le recolore pas. */
.partenaires { display: grid; gap: 1rem; padding-bottom: 1rem; }
@media (min-width: 40rem) { .partenaires { grid-template-columns: 1fr 1fr; } }
.carte-partenaire { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--bord); border-radius: 1rem;
  background: var(--carte); color: var(--texte); text-decoration: none; transition: border-color .25s, transform .25s; }
.carte-partenaire:hover, .carte-partenaire:focus-visible { border-color: var(--laiton); color: var(--texte); transform: translateY(-2px); }
.carte-partenaire .plaque { display: grid; place-items: center; height: 7.5rem; padding: 1.1rem 1.5rem; border-radius: .7rem; background: #fff; }
.carte-partenaire .plaque img { max-height: 5.2rem; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.carte-partenaire h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; margin-top: .25rem; }
.carte-partenaire p { color: var(--discret); font-size: .95rem; line-height: 1.45; }
.avantage-fiscal { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--laiton); border-radius: 1rem; background: var(--carte); }
.carte-prestation h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; }
.carte-prestation p { color: var(--discret); font-size: .95rem; margin-top: .2rem; }
.section p a, .chapo a { color: var(--laiton-clair); }

/* ---------------------------------------------------------------- carte de la zone */
.carte { margin-block: .5rem 1rem; }
.carte-zone { display: block; width: 100%; max-width: 32rem; height: auto; margin-inline: auto; }
.legende { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; margin-top: .75rem; color: var(--discret); font-size: .9rem; }
.legende span { display: inline-flex; align-items: center; gap: .45rem; }
.pastille { display: inline-block; width: .9rem; height: .9rem; border-radius: .2rem; }
.pastille.chez-nous { background: rgba(187,158,82,.5); border: 1px solid #D9C38A; }
.pastille.region { background: rgba(187,158,82,.16); border: 1px solid rgba(187,158,82,.45); }
.pastille.france { background: #16150F; border: 1px solid #3A362E; }

/* ---------------------------------------------------------------- espace presse */
.a-copier { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border: 1px solid var(--bord); border-radius: 1rem; background: var(--carte); }
.a-copier .etiquette { color: var(--discret); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.a-copier blockquote { margin: 0; line-height: 1.55; }
.bouton.copier { align-self: flex-start; min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.reperes dd { color: var(--texte); }
.logos-presse { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.logo-presse { margin: 0; border: 1px solid var(--bord); border-radius: 1rem; overflow: hidden; background: var(--carte); }
.logo-presse .apercu { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: .9rem; }
.logo-presse .apercu.clair { background: #F4F1EA; }
.logo-presse .apercu.sombre { background: #000; }
.logo-presse .apercu img { max-width: 100%; max-height: 100%; width: auto; }
.logo-presse .apercu.mono img { max-height: 70%; }
.logo-presse figcaption { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .75rem .8rem; font-size: .85rem; line-height: 1.35; }
.logo-presse figcaption > span:not(.formats) { color: var(--discret); }
.formats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.formats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--bord); border-radius: 999px;
  color: var(--texte); font-size: .8rem; font-weight: 600; }
@media (max-width: 30rem) { .logo-presse figcaption { padding-inline: .6rem; } .formats { gap: .25rem; } .formats a { padding: 0 .45rem; font-size: .78rem; } }
.formats a:hover, .formats a:focus-visible { border-color: var(--laiton); color: var(--laiton-clair); }
.couleurs { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.couleur { display: flex; align-items: center; gap: .8rem; }
.couleur strong { display: block; }
.couleur span:not(.echantillon) { color: var(--discret); font-size: .88rem; }
.echantillon { width: 3rem; height: 3rem; border-radius: .6rem; border: 1px solid transparent; flex: none; }
.regles { display: flex; flex-direction: column; gap: .45rem; padding-left: 1.2rem; }
.liste-presse { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.liste-presse > li > a, .liste-presse .carte { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--bord); border-radius: .9rem;
  background: var(--carte); color: var(--texte); transition: border-color .2s; }
.liste-presse > li > a:hover, .liste-presse > li > a:focus-visible { border-color: var(--laiton); }
.liste-presse .carte a.format { align-self: flex-start; }
.liste-presse .carte a.format:hover { color: var(--texte); }
.liste-presse .date { color: var(--discret); font-size: .85rem; }
.liste-presse span:not(.date):not(.format) { color: var(--discret); font-size: .92rem; }
.liste-presse .format { color: var(--laiton-clair); font-size: .85rem; font-weight: 600; margin-top: .2rem; }
/* La coupure d'un article (espace-presse.mjs) : l'image du journal, un tap l'ouvre en grand. */
.liste-presse .coupure { margin: .55rem 0 .2rem; }
.liste-presse .coupure .zoom { display: block; cursor: zoom-in; border-radius: .6rem; overflow: hidden; max-width: 36rem; }
.liste-presse .coupure img { display: block; width: 100%; height: auto; }
.liste-presse .coupure figcaption { color: var(--discret); font-size: .8rem; margin-top: .35rem; }

/* ---------------------------------------------------------------- formulaire */
.formulaire { display: flex; flex-direction: column; gap: 1.5rem; }
fieldset { border: 1px solid var(--bord); border-radius: 1rem; padding: 1.25rem 1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; background: var(--carte); }
legend { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.25rem; padding-inline: .4rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ .aide { color: var(--discret); font-size: .85rem; line-height: 1.4; }
.champ .requis { color: var(--laiton-clair); }
.champ .alerte { color: #E8B04B; }
.deux { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .deux { grid-template-columns: 1fr 1fr; } }
input, textarea, select {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border-radius: .6rem;
  border: 1px solid #3A362E; background: #000; color: var(--texte);
  font: 400 1rem/1.4 'Public Sans', system-ui, sans-serif;
}
textarea { min-height: 8rem; resize: vertical; }
select { appearance: none; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BB9E52' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 1.1rem; padding-right: 2.5rem; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--laiton); outline-offset: 0; border-color: transparent; }
::placeholder { color: #8B877E; }
.message { border-radius: .8rem; padding: 1rem 1.1rem; }
.message.erreur { border: 1px solid #C2564B; background: rgba(194,86,75,.12); }
.message.ok { border: 1px solid var(--laiton); background: rgba(187,158,82,.1); }
.message h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.mention { color: var(--discret); font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- pied */
/* Une signature centrée : le monogramme et la baseline en laiton poli (le seul éclat), puis
   les deux actions, les pages, les réseaux, et les mentions en petit. Aucun intitulé. */
.pied { border-top: 1px solid var(--bord); padding-block: 2.5rem max(1.5rem, env(safe-area-inset-bottom)); text-align: center;
  background: radial-gradient(60% 70% at 50% 0, rgba(187,158,82,.10), transparent 70%); }
.pied .conteneur { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.signature-pied { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-decoration: none; }
.signature-pied img { width: 3.5rem; height: 3.5rem; }
.signature-pied .titre { font-size: clamp(1.2rem, 5.2vw, 1.6rem); line-height: 1.22; }
.actions-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.actions-pied .bouton { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }
/* Sur téléphone, les pages sont une liste : une ligne par page, une flèche en laiton. Posées
   en grille de texte nu, elles se lisaient comme des intitulés, pas comme des liens. */
/* Le bandeau des partenaires : discret, au-dessus du pied. Les logos en blanc, un peu
   éteints, qui s'allument au survol ; tout le bandeau mène à la page des partenaires. */
.bandeau-partenaires { border-top: 1px solid var(--bord); padding: 1.6rem 0 1.4rem; }
.bandeau-partenaires a { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-decoration: none; color: var(--discret); }
.bandeau-partenaires .intitule { font-size: .8rem; letter-spacing: .02em; }
.bandeau-partenaires .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.8rem; }
.bandeau-partenaires img { width: auto; opacity: .72; transition: opacity .25s; }
.bandeau-partenaires a:hover img, .bandeau-partenaires a:focus-visible img { opacity: 1; }
@media (max-width: 30rem) { .bandeau-partenaires .logos { display: grid; grid-template-columns: auto auto; justify-items: center; gap: 1.1rem 2.4rem; } }
.bandeau-partenaires a:hover .intitule, .bandeau-partenaires a:focus-visible .intitule { color: var(--laiton-clair); }
.pages-pied { display: flex; flex-direction: column; width: min(100%, 22rem); border: 1px solid var(--bord);
  border-radius: .9rem; overflow: hidden; background: var(--carte); }
.pages-pied a + a { border-top: 1px solid var(--bord); }
.pied .pages-pied a { justify-content: space-between; padding-inline: 1.1rem; min-height: 50px; }
.pages-pied a::after { content: '›'; color: var(--laiton); font-size: 1.4rem; line-height: 1; transform: translateY(-.06em); }
@media (min-width: 40rem) {
  .pages-pied { flex-direction: row; justify-content: center; width: auto; gap: 0 1.6rem; border: 0; border-radius: 0; background: none; }
  .pages-pied a + a { border-top: 0; }
  .pied .pages-pied a { padding-inline: 0; min-height: 44px; }
  .pages-pied a::after { content: none; }
}
.pages-pied a, .mentions-pied a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pages-pied a { color: var(--texte); font-size: .98rem; }
.pages-pied a:hover, .pages-pied a:focus-visible, .mentions-pied a:hover, .mentions-pied a:focus-visible { color: var(--laiton-clair); }
.reseaux-pied { display: flex; gap: .75rem; }
.reseaux-pied a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bord);
  color: var(--laiton); transition: border-color .2s, color .2s; }
.reseaux-pied a:hover, .reseaux-pied a:focus-visible { transform: scale(1.12); }
.reseaux-pied svg { width: 1.2rem; height: 1.2rem; fill: url(#poli-icone); }
/* Les icônes en laiton poli, comme le monogramme, sans anneau (Simon, 15 oct.) : la zone
   tactile reste de 44 px, seul le dessin se voit. */
.reseaux-pied svg [stroke] { stroke: url(#poli-icone); }
.reseaux-pied a { border: 0; transition: transform .2s; }
.reseaux-pied svg { width: 1.6rem; height: 1.6rem; }
.defs-pied { position: absolute; width: 0; height: 0; overflow: hidden; }
.mentions-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; color: var(--discret); font-size: .85rem; }
.mentions-pied span { display: inline-flex; align-items: center; min-height: 44px; }
.mentions-pied a { color: var(--discret); }

.texte-legal h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.texte-legal p, .texte-legal ul { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  .ouverture > * { animation: none; }
  .ouverture .logo::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================ animations
   Toutes coupées par prefers-reduced-motion (plus bas). Ce qui apparaît au défilement
   n'est caché que par site.js, et seulement sous l'écran : sans script, tout est là. */

/* Le halo respire, très lentement. */
body::before {
  content: ''; position: fixed; inset: -20% -20% auto; height: 70rem; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 50% 30%, rgba(187,158,82,.10), transparent 70%);
  animation: respire 9s ease-in-out infinite alternate;
}
@keyframes respire { from { opacity: .4; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* En-tête collant, qui se détache du fond une fois qu'on a défilé. */
.entete { position: sticky; top: 0; z-index: 10; transition: background-color .3s, box-shadow .3s; }
.entete.decolle { background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--bord); }
.marque img { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.marque:hover img { transform: rotate(-12deg) scale(1.06); }

/* Apparition au défilement. */
.revele { opacity: 0; transform: translateY(22px); }
.visible { opacity: 1; transform: none; transition: opacity .8s ease-out, transform .8s cubic-bezier(.2, .7, .2, 1); }
.occasions.revele li { opacity: 0; transform: translateY(10px) scale(.92); }
.occasions.visible li { transition: opacity .45s ease-out, transform .45s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i, 0) * 70ms); }

/* Le filet sous chaque titre de section se trace quand la section arrive. */
.section h2::after { content: ''; display: block; width: 3.5rem; height: 2px; margin-top: .55rem; background: var(--poli);
  transform-origin: left; transition: transform 1s .25s cubic-bezier(.2, .7, .2, 1); }
.section.revele h2::after { transform: scaleX(0); }

/* Le reflet traverse le bouton principal au survol, et une fois au chargement dans l'ouverture. */
.bouton { position: relative; overflow: hidden; transition: background-color .2s, transform .2s, filter .2s; }
.bouton:active { transform: scale(.97); }
.bouton.principal::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,252,240,.75) 50%, transparent 70%);
  transform: translateX(-120%);
}
.bouton.principal:hover::after, .bouton.principal:focus-visible::after { transform: translateX(120%); transition: transform .8s ease; }
.ouverture .bouton.principal::after { animation: eclat 1.1s 1.6s ease both; }
@keyframes eclat { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Les cartes se soulèvent. */
.carte-actu { transition: border-color .25s, transform .25s, box-shadow .25s; }
.carte-actu:hover, .carte-actu:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px -12px rgba(187,158,82,.35); }
.carte-actu img { transition: transform .5s ease; }
.carte-actu:hover img { transform: scale(1.04) rotate(-1.5deg); }

/* Le faire-part arrive un peu de travers, comme posé sur la table. */
.article figure.revele img, .article figure.visible img { transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.article figure.revele img { transform: rotate(-4deg) scale(.94); }
.article figure.visible img { transform: rotate(0); }
.article figure.galerie.revele img { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .bouton.principal::after { display: none; }
  .carte-actu, .carte-actu img, .marque img { transition: none; }
}
body { isolation: isolate; }

/* ================================================================ le thème bleu
   Pendant les étapes (ETAPES dans src/index.js), le Worker pose `theme-bleu`
   sur <html> : le bleu roi de l'affiche, creusé en bleu nuit derrière le logo, et le laiton
   poli éclairci, sans quoi le doré s'éteint sur le bleu. Mêmes valeurs que
   le kit com (BLEU, POLI) : si l'affiche change, ce bloc suit. */
html.theme-bleu {
  --poli: linear-gradient(163deg, #B8994F 0%, #E2C98A 20%, #FBF0CC 40%, #D9BD78 58%, #B39448 80%, #EAD7A0 100%);
  --laiton: #D9BD78;
  --laiton-clair: #EAD7A0;
  --discret: rgba(255,255,255,.8);
  --carte: rgba(6,20,52,.45);
  --bord: rgba(255,255,255,.18);
  background: #1D4C98;
}
html.theme-bleu body {
  background: radial-gradient(120% 52rem at 50% 14rem, #0B1F45 0%, #102D63 38%, #1D4C98 78%) no-repeat, #1D4C98;
}
html.theme-bleu body::before { background: radial-gradient(34% 26% at 50% 24%, rgba(226,201,138,.16), transparent 70%); }
/* Une ombre courte détache le laiton du bleu, un halo doré l'entoure (comme sur l'affiche). */
html.theme-bleu .ouverture .logo img { filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) drop-shadow(0 0 22px rgba(226,201,138,.22)); }
html.theme-bleu .entete.decolle { background: rgba(11,31,69,.86); }
html.theme-bleu input, html.theme-bleu textarea, html.theme-bleu select { background-color: rgba(4,14,38,.6); border-color: rgba(255,255,255,.22); }
html.theme-bleu .pied { background: radial-gradient(60% 70% at 50% 0, rgba(226,201,138,.12), transparent 70%); }
html.theme-bleu .occasions a { border-color: rgba(255,255,255,.25); }

/* Les blocs d'étape, juste sous l'ouverture. */
.etape { padding-block: .5rem 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.std-titre { font-size: clamp(1.4rem, 6vw, 1.9rem); font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.std-date { font-size: clamp(2.6rem, 13vw, 4.2rem); line-height: 1.05; }
.std-suite { color: var(--discret); margin-top: .4rem; }
.etape.annonce { display: grid; gap: 1.5rem; justify-items: center; }
.affiche { display: block; width: min(100%, 22rem); }
.affiche img { width: 100%; border-radius: .9rem; box-shadow: 0 18px 40px -14px rgba(0,0,0,.55); }
.infos-annonce { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.infos-annonce h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
.infos-annonce .quand { font-weight: 600; font-size: 1.15rem; }
.infos-annonce .boutons { margin-top: .6rem; justify-content: center; }
@media (min-width: 52rem) {
  .etape.annonce { grid-template-columns: 22rem 1fr; align-items: center; text-align: left; justify-items: start; gap: 2.5rem; }
  .infos-annonce { align-items: flex-start; }
  .infos-annonce .boutons { justify-content: flex-start; }
}
html.theme-bleu .marque img, html.theme-bleu .signature-pied img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* Sous un article : les liens vers la même annonce sur Facebook et Instagram. */
.relais { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bord); }
.relais p { color: var(--discret); margin-bottom: .9rem; }
.relais .bouton svg { width: 1.15rem; height: 1.15rem; fill: var(--laiton); flex: none; }
.relais .bouton svg [stroke] { stroke: var(--laiton); }
@media (max-width: 30rem) { .relais .boutons { flex-direction: column; } .relais .bouton { justify-content: center; } }
