/* Couleurs de l'identité et des trois usages : inscription, entraide, agenda. */
:root {
  --ink: #2e5c40;
  --papier: #fffaf2;
  --abricot: #ffb486;
  --soleil: #ffda88;
  --feuille: #256655;
  --menthe: #def1df;
  --brique: #9a432c;
  --invitation: linear-gradient(110deg, #ffdb9f, #ffb486 70%, #ffa88a);
  --hc-bleu: linear-gradient(110deg, #2e5c40, #396f4e 60%, #3b6e4e);
}
::selection { background: var(--soleil); color: var(--ink); }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid #3b7852;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}
.hero { gap: clamp(24px, 4vw, 68px); }
.hero h1 { letter-spacing: -.062em; }
.hero .hero-words { letter-spacing: -.045em; }
.hero .hero-words em { color: var(--brique); }
.hero .hero-words em:nth-child(even) { color: var(--feuille); }
.hero-copy .intro { max-width: 37ch; color: #415c4b; }
.hero-note .clock {
  color: var(--feuille); background: var(--menthe); border-color: #a4cdb7;
  font-weight: 600;
}
.hero-visual { padding: 0 8px 0 0; }
.hero-visual .photo-frame {
  border-radius: clamp(36px, 5.5vw, 80px) 12px 12px 12px;
  box-shadow: 7px 7px 0 var(--abricot);
}
.hero-visual .photo-frame::after { background: none; }
.hero-visual .round-stamp {
  background: var(--soleil); color: #2e4c39;
  border: 4px solid var(--papier); top: -22px; right: -7px;
}
.hero-visual .round-stamp svg { stroke: var(--brique); fill: #fcb08a; }
.hero-visual .image-label {
  position: static; margin: 19px 0 0;
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 3px 12px; padding: 0 2px; border: 0; border-radius: 0;
  color: #455e4f; background: transparent; box-shadow: none; transform: none;
}
.hero-visual .image-label::after { content: none; }
.image-label .caption-place { font-size: 13px; line-height: 1.6; }
.hero-visual .image-label .caption-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink);
  font-size: 13px; font-weight: 650;
}
.caption-link::after { content: '↗'; }
.image-label:is(:hover,:focus-visible) .caption-link { text-decoration: underline; text-underline-offset: 4px; }
.action-strip { background: #fff0c7; color: var(--ink); border-color: #e9d8a9; }
.action-strip .agenda-dot { background: #94512b; box-shadow: 0 0 0 4px #f6d994; }
.action-strip .action-schedule { color: #694321; }
.action-strip .action-detail { color: #4f6256; }
#jouer .game-title h2 em { color: var(--soleil); }
#jouer.game-section { padding-top: clamp(58px, 7vw, 100px); }
.join-section h2 em { color: #bde6cc; }
#esprit h2 em, .instagram-section h2 em { color: var(--feuille); }
#esprit .gestures {
  border: 0; padding: 0; margin-top: clamp(30px, 4vw, 56px);
  gap: clamp(10px, 1.4vw, 22px);
}
.gestures > div {
  border: 0; border-radius: 5px 28px 5px 5px;
  padding: clamp(19px, 2.5vw, 34px); background: #ffdfca;
}
.gestures > div:nth-child(2) { background: #ffedc0; }
.gestures > div:nth-child(3) { background: var(--menthe); }
.gestures h3 { font-size: clamp(20px, 2vw, 29px); letter-spacing: -.04em; line-height: 1.14; }
.gestures p { color: #425c4c; font-size: 15px; line-height: 1.6; }
.news-section h2 em { color: var(--brique); }
.news-grid .news-card {
  display: flex; flex-direction: column; padding: 0 0 20px; overflow: hidden;
  border-radius: 17px; background: white; border-color: #deded5;
}
.news-card .news-photo { border-radius: 0; margin: 0; }
.news-card :is(h3,.news-meta,.text-link) { margin-inline: clamp(16px, 1.8vw, 25px); }
.news-card .news-meta { color: #68503d; }
.news-card .text-link { margin-top: auto; }
.films h2 em { color: var(--soleil); }
.film-poster span { background: var(--abricot); }
.film-arrows button:enabled { color: var(--ink); background: #ffdfad; border-color: transparent; }
.media-section { background: #f4f6ee; }
.media-section h2 em { color: var(--feuille); }
.media-card[data-format="audio"] .media-cover:not(.photo) { background: #d6eddd; color: #245440; }
.media-card[data-format="article"] .media-cover:not(.photo) { background: #ffe5bf; color: #673d2a; }
.media-card[data-format="video"] .media-cover:not(.photo) { background: #ebf2e4; color: #2d5c3f; }
.instagram-section { background: #e5f0e7; }
.instagram-links .instagram-card {
  border-color: #b7cfbe; border-radius: 18px; color: var(--ink); background: #fcfdf9;
}
.instagram-card > svg { color: var(--feuille); }
.site-footer .footer-links :is(a,button) { min-height: 44px; }
.legal-page { background: var(--papier); color: var(--ink); }
.legal-header { background: var(--ink); }
.legal-header .brand img { filter: brightness(0) invert(1); }
.legal-page .legal-nav { background: #ecf5ee; border-color: #ccded1; }
.legal-nav a:is(:hover,:focus-visible) { background: #d6e9db; color: #193e32; }
.legal-page .legal-facts > div { border-color: #d4ded7; background: #f5faf4; }
.legal-page .legal-table th { background: #dceee2; color: #204737; }
.legal-page .legal-article section:target h2 { color: var(--feuille); }
@media (hover:hover) and (pointer:fine) {
  .film-arrows button:enabled:hover, .film-card:hover .film-poster span { background: #ffbb93; }
  .instagram-card:hover .social-action, .news-card:hover .text-link { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width:760px) {
  body:is(.hero-action-visible, .registration-visible) .mobile-join {
    visibility: hidden; opacity: 0; pointer-events: none;
  }
  .hero { gap: 32px; padding-bottom: 29px; }
  .hero-visual { padding-right: 5px; }
  .hero-visual .photo-frame { box-shadow: 5px 5px 0 var(--abricot); }
  .hero-visual .round-stamp { top: -12px; right: -2px; }
  .hero-visual .image-label { margin-top: 14px; }
  .gestures > div { border-radius: 5px 21px 5px 5px; padding: 21px; }
  .news-section .news-card h3 { font-size: 21px; }
  .legal-page .legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion:reduce) {
  .news-card:is(:hover,:focus-visible), .news-card:hover img,
  .instagram-card:hover, .film-card:hover .film-poster img { transform: none; }
}

/* Une entrée par section ; la photo conserve son déplacement indépendant. */
@keyframes quartier-title-in {
  from { clip-path: inset(0 0 85% 0); translate: 0 .24em; }
  to { clip-path: inset(-.15em); translate: 0 0; }
}
@keyframes quartier-photo-in {
  from { clip-path: inset(0 9% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes quartier-card-in {
  from { opacity: .62; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  h2.section-entered { animation: quartier-title-in .58s cubic-bezier(.2,.75,.22,1); }
  .portrait-stage.section-entered { animation: quartier-photo-in .72s cubic-bezier(.2,.75,.22,1); }
  :is(.news-grid,.gestures).section-entered { animation: none; }
  :is(.news-grid,.gestures).section-entered > * { animation: quartier-card-in .44s ease-out backwards; }
  @media (min-width:761px) {
    :is(.news-grid,.gestures).section-entered > :nth-child(2) { animation-delay: 65ms; }
    :is(.news-grid,.gestures).section-entered > :nth-child(3) { animation-delay: 130ms; }
  }
}
/* Deux faces au survol, avec une couleur de texte commune aux deux états. */
body:is(#top,.legal-page) :is(.button,.action-read,.social-action,.mobile-join b,.legal-back,.game-register,.menu,.film-arrows button,.game-controls button,#act,.privacy-modal-actions button,.video-consent-actions button,.avatar-options button,.filters button,#back-to-top) {
  
  border-radius:4px; border:1px solid transparent;
  background:linear-gradient(var(--survol,#d3ddcb),var(--survol,#d3ddcb)) left bottom / 100% 0% no-repeat,var(--surface,#eef2ea) !important;
  color:var(--texte,#2e5c40) !important; box-shadow:none; transform:none;
}
body:is(#top,.legal-page) :is(.button.primary,.button.light,.mobile-join b,.action-read,.game-register) {
  --surface:var(--pistache,#ffb486); --survol:#ffda88;
}
body:is(#top,.legal-page) :is(.menu,.filters button.active,.avatar-options button[aria-pressed=true],#act,.privacy-modal-actions .primary,.video-consent-actions .primary) {
  --surface:#2e5c40; --survol:#3a6c4d; --texte:white;
}
#top .film-arrows { gap:1px; }
#top .film-arrows button { width:52px; height:46px; --surface:#fff2da; --survol:#ffb486; }
#top .film-arrows button:disabled { opacity:.45; }
body:is(#top,.legal-page) .button::before { content:none; }
body:is(#top,.legal-page) .button::after {
  position:static; flex:0 0 23px; width:23px; height:20px;
  margin:0; background:currentColor; transform:none; opacity:1;
}
#top .hero-actions .button { justify-content:space-between; padding-inline:20px; min-width:190px; }
#top .hero-actions .text-link, #top .section-heading>.text-link {
  border:0; border-bottom:2px solid currentColor; border-radius:0;
  background:transparent!important; color:var(--ink)!important; padding:8px 2px;
  min-height:44px; align-self:center; box-shadow:none;
}
#top .filters { gap:4px; }
#top .filters button { min-height:44px; border-bottom:2px solid #a2b5a4; }
#top .filters button.active { border-bottom-color:#ffb486; }
@media (hover:hover) {
  body:is(#top,.legal-page) :is(.button,.menu,.filters button,.avatar-options button,.film-arrows button,.game-controls button,#act,.game-register,.privacy-modal-actions button,.video-consent-actions button,.legal-back,#back-to-top):hover:not(:disabled),
  #top .instagram-card:hover .social-action, #top .next-action:hover .action-read { background-size:100% 100%!important; box-shadow:none; transform:none; }
}
@media (prefers-reduced-motion:no-preference) {
  body:is(#top,.legal-page) :is(.button,.filters button,.film-arrows button,.menu,.avatar-options button,.game-controls button,#act,.game-register,.privacy-modal-actions button,.video-consent-actions button,.legal-back,#back-to-top,.action-read,.social-action) { transition:background-size .24s cubic-bezier(.22,.68,.25,1); }
  #top .button:hover::after { transform:translateX(3px); }
  .hero .hero-copy { animation:quartier-title-in .74s cubic-bezier(.16,.8,.24,1); }
}
@media (min-width:761px) {
  #top .hero {
    position:relative; isolation:isolate; display:flex; align-items:flex-end;
    width:100%; max-width:none; min-height:clamp(600px,80svh,900px);
    margin-top:12px; padding:64px clamp(32px,5vw,96px); overflow:hidden; background:#20412d;
  }
  #top .hero-visual { position:absolute; inset:0; padding:0; z-index:-1; }
  #top .hero-visual .photo-frame { height:100%; border:0; border-radius:0; box-shadow:none; }
  #top .hero-visual .photo-frame img { object-position:50% 46%; }
  #top .hero-visual .photo-frame::after {
    inset:0; background:linear-gradient(90deg,#152a1dee 0%,#1a3625dd 27%,#1a362597 52%,transparent 82%),linear-gradient(0deg,#18312299,transparent 35%);
  }
  #top .hero-visual .round-stamp { display:none; }
  #top .hero-visual .image-label { position:absolute; inset:auto 4% 32px auto; max-width:26%; color:white; }
  #top .image-label .caption-link { color:#ffda88; }
  #top .hero-copy { max-width:64%; }
  #top .hero h1 { font-size:clamp(58px,6.6vw,118px); color:white; }
  #top .hero .hero-words em { color:#ffda88; }
  #top .hero .hero-words em:nth-child(even) { color:#c2efd7; }
  #top .hero-copy .intro, #top .hero-note, #top .hero-note b { color:#fff; }
  #top .hero-actions .text-link { color:white!important; }
}
@media(max-width:760px) {
  #top .hero-actions .button { min-width:0; }
  #top .hero-actions .text-link { justify-self:start; }
}
/* Navigation et composition éditoriale */
#top .site-header {
  inset-block-start:0; width:100%; max-width:none; margin:0; height:72px;
  grid-template-columns:minmax(100px,1fr) auto auto; gap:18px;
  padding-inline:clamp(16px,4vw,72px); border:0; border-radius:0;
  background:#2e5c40; box-shadow:none; z-index:40;
}
#top .site-header>.button { grid-column:2; grid-row:1; }
#top .site-header .menu {
  grid-column:3; grid-row:1; display:flex; width:auto; flex-direction:row;
  gap:10px; padding-inline:10px; border:0; font-size:14px; font-weight:600;
}
#top .menu i { display:grid; align-content:center; gap:6px; height:24px; }
#top .menu b { font-weight:inherit; }
#top #main-nav {
  position:absolute; inset:100% 0 auto; width:100%; max-width:none;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 5vw;
  padding:clamp(16px,3vw,42px) clamp(18px,5vw,90px);
  border:0; border-radius:0; background:#fffaf2; overflow:auto;
  max-height:calc(100dvh - 72px); box-shadow:0 20px 38px #152c1e22;
  visibility:hidden; opacity:0; pointer-events:none; transform:translateY(-8px);
}
#top #main-nav.open { visibility:visible; opacity:1; pointer-events:auto; transform:none; }
#top #main-nav a {
  display:flex; align-items:center; justify-content:space-between; color:#2e5c40;
  font-size:clamp(22px,2.6vw,44px); font-weight:500; letter-spacing:-.05em;
  line-height:1.18; border:0; border-bottom:1px solid #c5cac1; background:transparent;
  border-radius:0; padding:15px 0; min-height:48px; box-shadow:none;
}
#top #main-nav a:after { content:''; position:static; width:10px; height:10px; border:solid currentColor; border-width:1.5px 1.5px 0 0;
  background:none; transform:rotate(45deg); opacity:1; margin-right:4px; }
#top #main-nav a:is(:hover,:focus-visible,.current) { color:#256655; background:#edf3e8; }
#top.menu-is-open { overflow:hidden; }
#top .hero { margin-top:0; }
#top :is(.news-grid .news-card,.instagram-links .instagram-card,.media-card) {
  border-radius:0; border:0; box-shadow:none; background:transparent;
}
#top .news-card .news-photo, #top .film-poster, #top .media-cover { border-radius:0; }
#top .news-card :is(h3,.news-meta,.text-link) { margin-inline:0; }
#top .news-card h3 { font-size:clamp(21px,2vw,33px); letter-spacing:-.045em; max-width:32ch; }
#top .news-grid { gap:clamp(18px,3vw,54px); }
#top .news-meta { font-weight:600; letter-spacing:.06em; }
#top .gestures { gap:0; }
#top .gestures>div { border-radius:0; }
#top .media-section { background:#fffaf2; }
#top .media-card { border-top:1px solid #aebfb0; padding-block-start:14px; }
#top .instagram-section { background:#dcebdc; }
#top .instagram-links .instagram-card { border-bottom:1px solid #99b1a0; padding-inline:0; }
#top .site-footer { background:#2e5c40; color:white; width:100%; max-width:none;
  padding-inline:clamp(18px,5vw,90px); }
#top .site-footer :is(a,button,p,.site-credit) { color:#f5f8f2; }
#top .site-footer .footer-brand img { filter:brightness(0) invert(1); }
#top .site-footer .footer-bottom { border-color:#85a988; }
.legal-page .legal-header { border-radius:0; box-shadow:none; }
.legal-page .legal-nav { border:0; border-radius:0; }
.legal-page .legal-article h2 { font-weight:550; letter-spacing:-.04em; }
@media(min-width:761px){
 #top .news-grid { grid-template-columns:1.45fr 1fr 1fr; align-items:start; }
 #top .site-header .menu b { display:inline; }
 #top .hero-copy h1 { font-size:clamp(60px,7.1vw,114px); }
 #top .films-head h2, #top .section-heading h2 { letter-spacing:-.065em; }
}
@media(max-width:760px){
 #top .site-header { height:60px; gap:5px; padding-inline:10px; }
 #top .site-header .menu { gap:6px; padding-inline:5px; font-size:12px; }
 #top #main-nav { grid-template-columns:1fr; max-height:calc(100dvh - 60px); }
 #top #main-nav a { font-size:24px; padding:11px 4px; }
 #top .hero { padding-top:28px; }
 #top .hero-visual .photo-frame { border-radius:0; box-shadow:none; }
 #top .hero-visual .round-stamp { display:none; }
 #top .hero-visual { padding:0; }
}
@media(prefers-reduced-motion:no-preference){
 #top #main-nav {transition:transform .22s ease-out,opacity .2s,visibility .2s;}
 #top #main-nav.open a {animation:quartier-card-in .3s ease-out backwards;}
 #top #main-nav.open a:nth-child(n+3){animation-delay:.055s;}
}

body#top .site-header>.button.light,body#top .hero-actions>.button.primary { --surface:var(--pistache,#ffb486); --survol:#ffda88; }
#top .films { background:#162421; color:#f7f5e9; padding-block:clamp(50px,7.5vw,120px); }
#top .films-head { display:flex; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:30px; }
#top .films-head p { font-size:13px; color:#d1dfd2; letter-spacing:0; }
#top .films-head h2 { font-weight:500; font-size:clamp(48px,6vw,96px); letter-spacing:-.075em; line-height:.98; }
#top .films-head h2 em { color:#d7edaa; }
.cinema { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(235px,1fr); align-items:stretch; gap:clamp(18px,3vw,46px); }
.projection { display:block; position:relative; isolation:isolate; overflow:hidden; min-height:300px; aspect-ratio:1.6; background:#111c1a; color:white; }
.projection img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; opacity:0; }
.projection img.show { opacity:1; }
.projection::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#081311f5,transparent 75%); }
.projection-caption { position:absolute; left:5%; right:5%; bottom:7%; display:grid; grid-template-columns:1fr auto; align-items:end; gap:4px 16px; }
.projection-caption small { grid-column:1; color:#e1edca; font-size:13px; }
.projection-caption strong { font-size:clamp(22px,2.6vw,46px); font-weight:500; line-height:1.05; letter-spacing:-.045em; }
.projection-play { grid-column:2; grid-row:1/3; align-self:center; display:grid; place-items:center; width:54px; height:54px; background:#d7edaa; color:#142a21; border-radius:50%; }
.projection-play::after,.programme a::after { content:''; width:0; height:0; border-block:6px solid transparent; border-left:9px solid currentColor; }
.programme { display:flex; flex-direction:column; justify-content:center; margin:0; padding:0; list-style:none; }
.programme a { position:relative; display:grid; grid-template-columns:58px minmax(0,1fr) 14px; gap:4px 14px; align-items:center; padding:clamp(13px,1.65vw,25px) 8px; border-top:1px solid #61716a; color:#f9fbf5; }
.programme li:last-child a { border-bottom:1px solid #61716a; }
.programme a.selected { color:#d7edaa; background:#21332c; }
.programme img { grid-column:1; grid-row:1/3; width:58px; height:50px; object-fit:cover; }
.programme small { grid-column:2; color:#cbd5cb; font-size:12px; }
.programme strong { grid-column:2; font-size:clamp(16px,1.65vw,25px); line-height:1.15; font-weight:500; letter-spacing:-.03em; }
.programme a::after { grid-column:3; grid-row:1/3; }
#top .site-header { border-bottom:1px solid #ffffff28; }
#top .site-header::after { content:''; pointer-events:none; position:absolute; bottom:0; left:0; right:0; height:2px; background:#ffbb86; transform-origin:left; transform:scaleX(0); }
@supports (animation-timeline:scroll()) {
  @media(prefers-reduced-motion:no-preference) {
    #top .site-header::after { animation:lecture linear both; animation-timeline:scroll(root); }
    @keyframes lecture { to { transform:scaleX(1); } }
    #top .human-story .human-photo { animation:ouverte linear both; animation-timeline:view(); animation-range:entry 0% entry 92%; }
    @keyframes ouverte { from { clip-path:inset(0 7% round 18px); } to { clip-path:inset(0); } }
  }
}
@media(prefers-reduced-motion:no-preference) {
  .projection img { transform:scale(1.045); transition:opacity .32s ease,transform .68s cubic-bezier(.2,.75,.2,1); }
  .projection img.show { transform:scale(1); }
  .projection-play,.programme a { transition:background-color .2s,color .2s,scale .2s; }
  .projection:hover .projection-play { scale:1.08; }
  #top .cinema.section-entered { animation:projection-in .67s cubic-bezier(.2,.8,.25,1); }
  @keyframes projection-in { from { clip-path:inset(0 0 22%); translate:0 16px; } to { clip-path:inset(-5px); translate:0; } }
  #video-dialog[open] { animation:salle .25s ease-out; }
  @keyframes salle { from { opacity:0; translate:0 14px; } to { opacity:1; translate:0; } }
}
@media(max-width:760px) {
  .cinema { grid-template-columns:1fr; gap:14px; }
  .projection { min-height:0; aspect-ratio:1.58; }
  #top .films-head { display:block; }
  #top .films-head h2 em { display:inline; }
  #top .films-head p { margin:10px 0 0; }
  .programme a { grid-template-columns:56px minmax(0,1fr) 14px; padding:13px 6px; }
  .projection-play { width:43px; height:43px; }
}
.nav-photo { display:none; }
@media(min-width:761px) {
  #top #main-nav { grid-template-columns:1.1fr 1fr; column-gap:6vw; grid-auto-flow:row; }
  #top #main-nav a { grid-column:1; }
  #top #main-nav .nav-photo { display:block; position:relative; isolation:isolate; margin:0; grid-column:2; grid-row:1/6; align-self:stretch; overflow:hidden; background:#264a34; }
  .nav-photo img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
  .nav-photo span { position:absolute; inset:auto 0 0; padding:30px 24px 17px; color:white; font-size:22px; background:linear-gradient(transparent,#1a3022cf); }
}
@media(max-width:760px) {
  #top.cinema-visible :is(.mobile-join,#back-to-top) { visibility:hidden; pointer-events:none; }
}
/* L'ouverture se lit comme une affiche, puis comme une planche-contact. */
#top { --encre:#192922; --pistache:#dcf58d; --ivoire:#f6f3e9; background:var(--ivoire); }
#top .site-header { background:var(--encre); border-bottom:0; }
#top .site-header .menu { --surface:var(--encre); --survol:#394737; }
#top .site-header>.button.light, #top .edition .hero-actions .button.primary { --surface:var(--pistache); --survol:#f4ffc9; --texte:var(--encre); }
#top .hero.edition {
  width:100%; max-width:none; min-height:0; height:auto; position:relative; display:block;
  padding:clamp(32px,4.5vw,80px) clamp(18px,4.1vw,80px) clamp(28px,3vw,60px);
  overflow:visible; background:var(--ivoire); color:var(--encre); margin:0;
}
.edition-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,28%); align-items:end; gap:5%; margin-bottom:clamp(26px,3.4vw,62px); }
#top .edition h1 {
  white-space:normal; font-family:inherit; font-weight:550; font-size:clamp(70px,8.7vw,155px);
  line-height:.88; letter-spacing:-.087em; color:var(--encre); margin:0;
}
#top .edition h1 em { display:block; font:italic 1.06em/.92 Georgia,serif; letter-spacing:-.082em; color:#354a36; }
.edition-intro p { font-size:clamp(15px,1.22vw,20px); line-height:1.48; margin:0; max-width:36ch; color:var(--encre); }
#top .edition-intro .hero-actions { display:flex; margin-top:18px; }
#top .edition-intro .button { flex:none; width:auto; border-radius:0; min-height:46px; }
.street-index { --panels: 2.6fr 1fr 1fr; display:grid; grid-template-columns:var(--panels); gap:clamp(5px,.65vw,12px); }
.street-index:has(.street-card:nth-child(2).is-wide) { --panels:1fr 2.6fr 1fr; }
.street-index:has(.street-card:nth-child(3).is-wide) { --panels:1fr 1fr 2.6fr; }
.street-card { position:relative; min-width:0; height:clamp(245px,29vw,485px); display:block; isolation:isolate; background:#21342a; overflow:hidden; color:white; }
.street-image,.street-image img { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }
.street-card:nth-child(2) img { image-rendering:pixelated; }
.street-card::after { pointer-events:none; content:''; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,#101914d9); }
.street-label { position:absolute; z-index:1; inset:auto 14px 14px; display:flex; justify-content:space-between; align-items:center; color:white; font-size:clamp(16px,2vw,32px); font-weight:550; line-height:1.05; letter-spacing:-.045em; }
.street-label::after { content:''; flex:none; width:11px; height:11px; border-top:2px solid; border-right:2px solid; }
.street-card:focus-visible { outline:3px solid var(--encre); outline-offset:3px; }
#top .action-strip { background:#e2edb8; border-color:#cbd9aa; }
#top #jouer.game-section { background:#192922; padding-top:0; }
.game-panorama { position:relative; width:100%; aspect-ratio:4.7; overflow:hidden; background:#536950; }
.game-panorama img { width:100%; height:100%; object-fit:cover; object-position:50% 57%; display:block; }
.game-panorama .curtain { position:absolute; inset:0; background:#192922; pointer-events:none; display:none; }
#top #jouer .game-title { padding-top:clamp(32px,4vw,72px); }
#top #jouer .game-title h2 em { color:var(--pistache); }
#top .films { background:#192922; }
@media(min-width:761px) and (prefers-reduced-motion:no-preference) {
  .street-index { transition:grid-template-columns .72s cubic-bezier(.18,.8,.2,1); }
  .street-card img { transition:scale .85s cubic-bezier(.18,.8,.2,1); scale:1.07; }
  .street-card.is-wide img { scale:1; }
}
@media(prefers-reduced-motion:no-preference) {
  .edition-heading h1 { animation:headline-ink .8s cubic-bezier(.16,.8,.18,1) both; }
  @keyframes headline-ink { from {clip-path:inset(0 0 85% 0);translate:0 .16em} to {clip-path:inset(-.15em);translate:0 0} }
  ::view-transition-group(civic-frame) { animation-duration:.65s; animation-timing-function:cubic-bezier(.22,.78,.18,1); }
  ::view-transition-group(root) { animation-duration:.25s; }
  @supports (animation-timeline:view()) {
    .game-panorama .curtain { display:block; animation:pixel-curtain linear both; animation-timeline:view(); animation-range:entry 0% entry 100%; }
    @keyframes pixel-curtain {
      from {clip-path:polygon(0 0,100% 0,100% 100%,75% 100%,75% 100%,50% 100%,50% 100%,25% 100%,25% 100%,0 100%);}
      55% {clip-path:polygon(0 0,100% 0,100% 25%,75% 25%,75% 42%,50% 42%,50% 57%,25% 57%,25% 72%,0 72%);}
      to {clip-path:polygon(0 0,100% 0,100% 0,75% 0,75% 0,50% 0,50% 0,25% 0,25% 0,0 0);}
    }
  }
}
@media(max-width:760px) {
  .edition-heading { display:block; }
  #top .edition h1 { font-size:clamp(60px,13.5vw,96px); }
  #top .edition h1 em { display:inline; }
  .edition-intro { margin-top:20px; }
  .street-index { grid-template-columns:1fr 1fr!important; }
  .street-card { height:clamp(110px,28vw,170px); }
  .street-card:first-child { grid-column:1/-1; height:clamp(180px,48vw,300px); }
  .street-label { inset:auto 10px 10px; }
  .game-panorama { aspect-ratio:2.5; }
}
#top #esprit.atelier { display:grid; grid-template-columns:1fr 1.08fr; gap:clamp(30px,6vw,98px); align-items:center; padding-block:clamp(48px,8vw,140px); color:var(--encre); }
#top .atelier-copy h2 { font-size:clamp(46px,5.7vw,100px); letter-spacing:-.075em; line-height:.96; margin:0 0 32px; color:inherit; }
#top .atelier-copy h2 em { display:block; color:#48623c; }
.atelier-choix { border-top:1px solid #9caf9b; margin-bottom:24px; }
.atelier-choix details { border-bottom:1px solid #9caf9b; }
.atelier-choix summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 0; min-height:50px; font-size:clamp(18px,1.8vw,29px); font-weight:550; letter-spacing:-.04em; }
.atelier-choix summary::-webkit-details-marker { display:none; }
.atelier-choix summary::after { content:'+'; font:normal 24px/1 sans-serif; }
.atelier-choix details[open] summary::after { content:'−'; }
.atelier-choix details p { max-width:40ch; margin:0 0 20px; line-height:1.55; }
.atelier-photo { position:relative; aspect-ratio:1.1; overflow:hidden; background:#dfebd6; }
.atelier-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.atelier-photo img:not(:first-child) { clip-path:inset(100% 0 0); }
.atelier:has(details:nth-child(2)[open]) .atelier-photo img:nth-child(2),
.atelier:has(details:nth-child(3)[open]) .atelier-photo img:nth-child(3) { clip-path:inset(0); }
@media(prefers-reduced-motion:no-preference) {
  .atelier-photo img { transition:clip-path .65s cubic-bezier(.2,.8,.22,1); }
  .atelier-choix details[open] p { animation:quartier-card-in .3s ease-out; }
}
@media(max-width:760px) {
  #top #esprit.atelier { grid-template-columns:1fr; gap:22px; }
  .atelier-photo { aspect-ratio:1.9; }
}

body#top .site-header button.menu { background:#273c2e!important; }
#top .site-footer, .legal-page .legal-header { background:#192922; }
#top #rejoindre { background:linear-gradient(112deg,#243b31,#1e3936); }
#top #rejoindre h2 em { color:var(--pistache); }
.atelier-photo img:nth-child(2) { object-fit:contain; background:#e2eadb; }
@media(prefers-reduced-motion:reduce){ html { scroll-behavior:auto!important; } }
#game-shell .game-hud { height:auto; min-height:54px; grid-template-columns:auto minmax(0,1fr) auto; }
#route-open { border:1px solid #b1c4a0; background:#263c2e; color:#f3f5dd; min-height:40px; padding:7px 12px; cursor:pointer; font:inherit; font-size:13px; font-weight:600; }
#route-open:hover, #route-open:focus-visible { background:#425f46; }
#route-book { position:fixed; inset:0; margin:auto; width:min(550px,calc(100% - 24px)); max-height:85dvh;
  padding:clamp(20px,4vw,38px); color:#192922; background:#faf8ec; border:0; box-shadow:0 28px 95px #17251f60; overflow:auto; }
#route-book::backdrop { background:#101f18bb; backdrop-filter:blur(4px); }
.route-book-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }
#route-book h2 { margin:0; font-size:clamp(29px,5vw,43px); line-height:1.03; font-weight:500; letter-spacing:-.055em; }
.route-close { border:0; min-width:44px; min-height:44px; color:#183223; background:#e4e9d7; cursor:pointer; }
.route-objective { margin:12px 0 18px; color:#3e5745; font-size:15px; line-height:1.5; }
#route-book ol { padding:0; margin:0; list-style:none; counter-reset:route; }
#route-book li { counter-increment:route; display:grid; grid-template-columns:24px 1fr auto; gap:9px; align-items:center; min-height:44px; padding:7px; border-top:1px solid #cdd5c3; font-size:14px; }
#route-book li::before { content:counter(route); font:12px monospace; }
#route-book li[data-state=current] { background:#dfedbc; font-weight:700; }
#route-book li[data-state=done]::before { content:'✓'; }
#route-book li small { font-size:11px; color:#405540; }
#route-book .route-go { border:0; background:#223b2c; color:white; padding:12px 17px; min-height:44px; margin-top:16px; cursor:pointer; }
#game-shell #game-bottom #walk { min-height:44px; background:#d9ed9b!important; color:#213522!important; }
#game-shell .game-progress i { background:#c5e978; }
@media(max-width:760px){
 #game-shell .game-hud .street-sign { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
 #route-open { font-size:12px; padding:6px 9px; }
 #route-book { max-height:89dvh; }
}
@media(prefers-reduced-motion:no-preference){#route-book[open]{animation:salle .22s ease-out;}}

#game-shell:has(#game-intro:not([hidden])) :is(#route-checkpoints,#care-status) { display:none; }
#jouer .game-footnote { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.guided-choice { display:flex; align-items:center; min-height:44px; gap:10px; cursor:pointer; color:#f1f5e7; font-weight:600; }
.guided-choice input { accent-color:#d9ee9e; width:18px; height:18px; }
.film-suite:not([hidden]) { display:grid; grid-template-columns:auto 1fr auto; gap:7px; align-items:center; padding:14px; text-align:center; background:#f4f4e9; color:#263e2f; }
.film-suite span { font-size:12px; }
.film-suite button { min-height:44px; padding:6px 12px; border:1px solid #94a890; background:#e3ecd6; color:#243a2b; font-size:13px; cursor:pointer; }
.film-suite button:disabled { opacity:.48; cursor:default; }

/* Affiches illustrées de la promenade. */
.game-panorama img, .street-card[href="#jouer"] img { filter: sepia(.72) saturate(.78) hue-rotate(18deg); }
