/* Charte Canva « Memento 2027 », pages 5–6, 8–10, 12–14 et 17.
   Orange #f08821 · jaune #f4d354 · terre #a8442b · beige #fdf2e8 · noir.
   Fonds lumineux, accents ciblés, Bricolage / Montserrat / Caveat. */
:root {
  --creme:#fdf2e8; --creme2:#fdf2e8; --jaune:#f4d354;
  --orange:#f08821; --terra:#a8442b; --noir:#000;
  --body:'Montserrat',sans-serif;
  --texture-cross:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 9v6m-3-3h6' fill='none' stroke='%23a8442b' stroke-opacity='.09' stroke-width='.7'/%3E%3C/svg%3E");
}
body { background:#fff; font-size:16px; }
body::before { opacity:.025; }
.header.scrolled,.header-page { background:rgba(255,255,255,.96); }
/* Logo du header : « Memento Viv'Express » sur les 11 pages. Sur header blanc, le mot
   Viv'Express passe en noir sur un surligneur jaune (le geste signature de la charte :
   le jaune va derrière le texte, jamais dessus). Sur la photo du hero et dans le menu
   mobile ouvert, il reste crème + jaune. Plus aucun terracotta dans le header (Manon,
   16/09 : le rouge est une couleur secondaire). Le surligneur se déroule au scroll. */
.header-word em {
  width:fit-content; padding:0 .14em; margin-left:-.14em;
  background-image:linear-gradient(transparent 52%,var(--jaune) 52%,var(--jaune) 98%,transparent 98%);
  background-repeat:no-repeat; background-size:0 100%;
  transition:color .3s,background-size .35s cubic-bezier(.22,1,.36,1);
}
.header.scrolled .header-word em,.header-page .header-word em { color:var(--noir); background-size:100% 100%; }
.header.menu-open .header-word em { color:var(--jaune); background-size:0 100%; }
.lead { font-size:18px; line-height:1.75; }
p,blockquote,figcaption { overflow-wrap:break-word; }
.kicker { color:var(--terra); font-size:13px; }
.caveat { font-size:20px; }
.surligne,.souligne { background:linear-gradient(transparent 57%,var(--jaune) 57%,var(--jaune) 96%,transparent 96%); box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.btn { border-color:transparent; border-radius:10px; box-shadow:0 3px 0 rgba(168,68,43,.18); min-height:44px; line-height:1.35; max-width:100%; }
.btn:hover { box-shadow:0 5px 0 rgba(168,68,43,.18); }
.btn:active { box-shadow:0 1px 0 rgba(168,68,43,.18); }
.btn-ghost { border-color:currentColor; box-shadow:none; }
.tampon,.nav-next-tag { border:0; }
.tampon { padding:8px 14px; }
.header-cta { min-height:44px; display:inline-flex; align-items:center; }
.emb-card { background-color:var(--creme); border-color:transparent; }
/* Une trame de petites croix, reprise de la charte, sur quelques zones seulement. */
.page-hero,.asso-hero { background-image:var(--texture-cross); background-size:24px 24px; border-bottom:1px solid var(--ligne); }
.page-hero .wrap,.asso-hero .wrap { position:relative; }
.page-hero .lead { max-width:42rem; }
.carte-mv { background-color:#fff; background-image:var(--texture-cross); background-size:24px 24px; }
.ed-hero-mystere { background:var(--creme); background-image:var(--texture-cross); border-bottom:1px solid var(--ligne); }
.ed-hero-mystere :is(h1,.ed-hero-trajet,.ed-mystere-q,.ed-hero-km) { color:var(--noir); }
.ed-hero-mystere .ed-hero-dates { color:var(--terra); }
.ed-hero-mystere h1 .surligne { background:linear-gradient(transparent 57%,var(--jaune) 57%,var(--jaune) 96%,transparent 96%); }
.ed-hero-mystere .countdown { background:#fff; border:0; box-shadow:0 8px 30px rgba(168,68,43,.06); }
.ed-hero-mystere .cd-num { color:var(--noir); }
.ed-hero-mystere .cd-lab { color:var(--gris); }
.ed-hero-mystere :is(.cd-note,.cd-sep) { color:var(--terra); }
.ed-hero-mystere .btn-ghost { color:var(--noir); background:#fff; border-color:var(--ligne); }
body[data-edition="2027"] .header:not(.menu-open) :is(.header-word,.header-nav a,.nav-drop-btn) { color:var(--noir); }
body[data-edition="2027"] .header:not(.menu-open) .header-word em { color:var(--noir); background-size:100% 100%; }
body[data-edition="2027"] .header:not(.menu-open) .burger span { background:var(--noir); }
.section-dark2 { background:var(--creme); background-image:var(--texture-cross); color:var(--noir); }
.section-dark2 :is(.stat-num,.tl-txt) { color:var(--noir); }
.section-dark2 .stat-lab { color:var(--encre); }
.section-dark2 .blanc { color:var(--noir); }
.section-dark2 :is(.kicker-jaune,.tl-photos figcaption) { color:var(--terra); }
.section-dark2 .lead-dark { color:var(--encre); }
.section-dark2 .tl-date { color:var(--terra); }
.footer,.menu-mobile { background-color:#181512; background-image:var(--texture-cross); }
.header.menu-open { background:#181512; }
/* Mouvement mesuré : titres stables, photos et logos en cascade courte.
   Le translate est indépendant du transform qui conserve les rotations des photos. */
body:not([data-page="accueil"]) .reveal {
  transition:opacity .55s ease,translate .55s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--reveal-delay,0ms);
}
.js body:not([data-page="accueil"]) .reveal:not(.reveal-card) { translate:0 0; }
.js body:not([data-page="accueil"]) .reveal-card { translate:0 18px; }
.js body:not([data-page="accueil"]) .reveal.shown { translate:0 0; opacity:1; }
:where(.sponsor-top,.logo-mur>a,.blog-card,.porte,.membre-card) { transition:transform .22s ease,box-shadow .22s ease; }
:where(.sponsor-top,.logo-mur>a,.blog-card,.porte,.membre-card):focus-within { box-shadow:0 10px 28px rgba(168,68,43,.12); }
.logo-mur :is(a,span),.sponsor-top { border-color:rgba(168,68,43,.12); }
.logo-mur img { max-width:100%; object-fit:contain; }
.portes .porte,.soutien-card,.jus-card { border-color:var(--ligne); box-shadow:0 8px 28px rgba(0,0,0,.055); }
.porte { border-top:4px solid var(--jaune); }
.porte:nth-child(2) { border-top-color:var(--orange); }
.ed-nav { gap:14px; }
.ed-nav a { min-height:52px; display:flex; align-items:center; justify-content:center; text-align:center; }
.ed-carte { position:relative; }
.ed-carte .map-replay { display:block; margin:12px auto 0; }
.ed-carte .map-replay[hidden] { display:none; }
.edition-gallery-controls { display:flex; justify-content:flex-end; gap:10px; margin-block:18px; }
.gallery-arrow { border:1px solid var(--ligne); border-radius:50%; width:46px; height:46px; flex:none; background:var(--creme); font-size:24px; color:var(--noir); }
.gallery-arrow:hover:not(:disabled) { background:var(--jaune); }
.gallery-arrow:disabled { opacity:.3; cursor:default; }
.contact-form :is(input,textarea,select) { font-size:16px; }
:where(.portes,.soutien-grid,.team-grid,.blog-grid,.ed-benevoles,.contact-grid) > * { min-width:0; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .sponsor-top:hover,.porte:hover { transform:translateY(-3px); }
}
@media (max-width:1024px) {
  .header-cta { display:none; }
}
@media (max-width:760px) {
  .section { padding-block:64px; }
  .wrap { padding-inline:20px; }
  .h2 { font-size:34px; line-height:1.08; }
  .h3 { font-size:26px; line-height:1.15; }
  :is(.page-hero,.asso-hero,.article-hero) h1,.page-hero p.h2,.ed-hero h1,.hero-title { font-size:37px; line-height:1.06; }
  .carte-mv [data-mv-title] h2 { font-size:34px !important; }
  .page-hero,.asso-hero { padding-block:112px 40px; }
  .ed-hero { min-height:70svh; }
  .ed-hero-content { padding-block:124px 40px; }
  .ed-hero-mystere { min-height:0; }
  .ed-hero-mystere .ed-hero-content { padding-block:128px 48px; }
  .ed-hero-mystere .countdown { width:100%; padding:16px 12px; gap:8px; }
  .cd-cell { min-width:44px; }
  .cd-lab { font-size:11px; }
  .ed-carte { width:calc(100% + 16px); max-width:none; margin-inline:-8px; }
  .ed-itin-note { font-size:18px; }
  .ed-etapes p { gap:8px; line-height:1.75; }
  .ed-etapes .tampon { white-space:normal; }
  .sponsors-top { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .sponsor-top { padding:18px 12px; min-height:148px; }
  .sponsor-top img { max-height:120px; }
  .logo-mur { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .logo-mur>a,.logo-mur>span { width:100%; height:104px; padding:14px; }
  .logo-mur img { max-height:68px; }
  .team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .membre-card { padding:12px 10px 16px; }
  .membre-card h3 { font-size:17px; overflow-wrap:anywhere; }
  .membre-vrai { white-space:normal; }
  .podium-photos { grid-template-columns:minmax(0,1fr); }
  .porte,.soutien-card,.jus-card { padding:26px 20px; }
  .porte .btn,.soutien-card .btn,.contact-form .btn { align-self:stretch; }
  .lieu-grid { gap:30px; }
  .lieu-grid img { max-height:440px; }
  .article-body { font-size:16px; line-height:1.8; }
  .article-body blockquote { padding:20px; }
  .ed-nav a { padding:12px; }
  .ed-hero-mystere .btn { font-size:15px; }
  .gal-strip { max-height:65svh; }
  .galerie .gal-head .h2 { max-width:100%; }
}
@media (max-width:359px) {
  .team-grid { grid-template-columns:1fr; }
  .ed-hero-mystere .countdown { gap:5px; }
  .cd-cell { min-width:40px; }
  .cd-num { font-size:26px; }
}
@media (prefers-reduced-motion:reduce) {
  .js body:not([data-page="accueil"]) .reveal { opacity:1; translate:none; transition:none; }
  .ed-carte .map-replay { display:none; }
}
