/* France Urbaine — page blanche, les six couleurs de l'entrelacement en fil conducteur */
body.fu { --paper:#fff; --fu-red:#e3111b; --fu-orange:#fab200; --fu-green:#c1d103; --fu-cyan:#00a8e3; --fu-blue:#005ca6; --fu-purple:#9f4091; overflow-x:clip; }
.fu ::selection { background:var(--fu-blue); color:#fff; }

/* Ouverture : le titre et le texte d'abord, puis le logotype animé seul en scène, pour que les deux ne se concurrencent pas */
.fu .project-page { padding-top:60px; }
.fu .fu-hero { display:block; margin-bottom:clamp(80px,14vh,150px); }
.fu-hero-title { align-items:end; display:grid; gap:20px; grid-template-columns:repeat(12,1fr); }
.fu-hero-title .project-title { grid-column:1 / span 7; }
.fu .project-info { color:var(--soft); grid-column:9 / span 4; }
.fu-symbol { margin:clamp(80px,14vh,150px) auto 0; max-width:620px; }
.fu-symbol img { display:block; height:auto; width:100%; }
.fu-intro { display:grid; gap:20px; grid-template-columns:repeat(12,1fr); margin-top:clamp(40px,7vh,80px); }
.fu-intro > p { color:#4a4947; font-size:15px; grid-column:1 / span 5; line-height:1.7; }
.fu .project-meta { grid-column:7 / span 6; }
.fu .project-meta > div:nth-child(1) dt { color:var(--fu-red); }
.fu .project-meta > div:nth-child(2) dt { color:var(--fu-blue); }
.fu .project-meta > div:nth-child(3) dt { color:var(--fu-purple); }

/* Chapitres : numéro, titre, visuel d'appui */
.fu-chapter { align-items:end; border-top:1px solid var(--line); display:grid; gap:20px; grid-template-columns:repeat(12,1fr); padding-top:15px; width:100%; }
.fu-chapter .eyebrow { align-self:start; grid-column:1 / span 2; margin:0; }
.fu-chapter-copy { align-self:start; grid-column:3 / span 4; }
.fu-chapter h2,.fu-style-copy h3 { font-size:clamp(28px,3.4vw,50px); font-weight:400; letter-spacing:-.05em; line-height:1; }
.fu-chapter-copy p,.fu-style-copy > p:last-child { color:#4a4947; font-size:15px; line-height:1.7; margin-top:22px; max-width:34ch; }
.fu-chapter figure { grid-column:8 / span 5; margin:0; }

/* Les deux styles graphiques de la Conférence des villes : chacun entre en scène avec son propre geste */
.fu-style { display:flex; flex-direction:column; gap:110px; width:100%; }
.fu-style figure { margin:0; }
.fu-style-head { align-items:center; display:grid; gap:20px; grid-template-columns:repeat(12,1fr); }
.fu-style-copy .eyebrow { margin-bottom:22px; }
.fu-style-copy sup { font-size:.7em; line-height:0; text-transform:none; }
.fu-style--trame .fu-style-copy { grid-column:1 / span 4; }
.fu-style--trame .fu-style-head figure { grid-column:5 / span 8; }
.fu-style--filets .fu-style-head figure { grid-column:1 / span 7; }
.fu-style--filets .fu-style-copy { grid-column:9 / span 4; }

/* Style 1 — la trame : une rangée d'îlots se lève puis se rabat, les visuels montent comme des volumes */
.fu-blocks { align-items:flex-end; display:flex; gap:10px; height:64px; margin:0 calc(50% - 50vw); padding:0 28px; }
.fu-blocks i { background:var(--c); display:block; flex:var(--w) 1 0; height:var(--h); transform:scaleY(0); transform-origin:bottom; }
.fu-blocks i:nth-child(4n+1) { --c:var(--fu-cyan); }
.fu-blocks i:nth-child(4n+2) { --c:var(--fu-orange); }
.fu-blocks i:nth-child(4n+3) { --c:var(--fu-purple); }
.fu-blocks i:nth-child(4n) { --c:var(--fu-green); }
.fu-blocks i:nth-child(1) { --w:3; --h:38%; --i:0; } .fu-blocks i:nth-child(2) { --w:1; --h:72%; --i:3; }
.fu-blocks i:nth-child(3) { --w:5; --h:26%; --i:1; } .fu-blocks i:nth-child(4) { --w:2; --h:100%; --i:6; }
.fu-blocks i:nth-child(5) { --w:1; --h:44%; --i:2; } .fu-blocks i:nth-child(6) { --w:6; --h:60%; --i:8; }
.fu-blocks i:nth-child(7) { --w:2; --h:30%; --i:4; } .fu-blocks i:nth-child(8) { --w:1; --h:86%; --i:10; }
.fu-blocks i:nth-child(9) { --w:4; --h:50%; --i:5; } .fu-blocks i:nth-child(10) { --w:2; --h:22%; --i:9; }
.fu-blocks i:nth-child(11) { --w:1; --h:66%; --i:7; } .fu-blocks i:nth-child(12) { --w:3; --h:40%; --i:11; }
@keyframes fu-rise {
  0% { transform:scaleY(0); animation-timing-function:cubic-bezier(.22,.9,.24,1); }
  34%,62% { transform:none; animation-timing-function:cubic-bezier(.6,0,.7,.2); }
  100% { transform:scaleY(0); }
}

/* Style 2 — l'entrelacement : huit filets traversent la page, puis chaque visuel se trace derrière le sien */
.fu-ribbon { display:flex; flex-direction:column; gap:5px; margin:0 calc(50% - 50vw); overflow:hidden; }
.fu-ribbon i { background:var(--c); display:block; height:5px; transform:translateX(-101%); }
.fu-ribbon i:nth-child(1),.fu-ribbon i:nth-child(3) { --c:var(--fu-red); }
.fu-ribbon i:nth-child(2),.fu-ribbon i:nth-child(4) { --c:var(--fu-blue); }
.fu-ribbon i:nth-child(5) { --c:var(--fu-cyan); }
.fu-ribbon i:nth-child(6) { --c:var(--fu-purple); }
.fu-ribbon i:nth-child(7) { --c:var(--fu-orange); }
.fu-ribbon i:nth-child(8) { --c:var(--fu-green); }
.fu-ribbon i:nth-child(1) { --i:0; } .fu-ribbon i:nth-child(2) { --i:1; } .fu-ribbon i:nth-child(3) { --i:2; } .fu-ribbon i:nth-child(4) { --i:3; }
.fu-ribbon i:nth-child(5) { --i:4; } .fu-ribbon i:nth-child(6) { --i:5; } .fu-ribbon i:nth-child(7) { --i:6; } .fu-ribbon i:nth-child(8) { --i:7; }
.fu-style--filets figure { overflow:hidden; position:relative; }
.fu-style--filets figure::after { background:var(--c,var(--fu-blue)); bottom:0; content:''; height:5px; left:0; position:absolute; transform:translateX(-101%); width:100%; }
.fu-style--filets .fu-style-head figure { --c:var(--fu-red); }
.fu-style--filets .duo:nth-of-type(3) figure:first-child { --c:var(--fu-cyan); }
.fu-style--filets .duo:nth-of-type(3) figure:last-child { --c:var(--fu-purple); }
.fu-style--filets .duo:nth-of-type(4) figure:first-child { --c:var(--fu-orange); }
.fu-style--filets .duo:nth-of-type(4) figure:last-child { --c:var(--fu-green); }
@keyframes fu-pass {
  0% { transform:translateX(-101%); }
  46%,54% { transform:none; }
  100% { transform:translateX(101%); }
}

/* Les ornements ne suivent pas la révélation générique du site */
html.js-anim .fu-blocks.reveal,html.js-anim .fu-ribbon.reveal { clip-path:none; opacity:1; transform:none; }
/* Trame : montée depuis le sol */
html.js-anim .fu-style--trame figure.reveal,html.js-anim .fu-style--trame .fu-style-copy.reveal { clip-path:inset(100% 0 0 0); transform:translateY(60px); transition:clip-path 1.1s cubic-bezier(.22,.9,.24,1),transform 1.1s cubic-bezier(.22,.9,.24,1),opacity .5s ease; }
html.js-anim .fu-style--trame figure.reveal.is-in,html.js-anim .fu-style--trame .fu-style-copy.reveal.is-in { clip-path:inset(0); transform:none; }
html.js-anim .fu-style--trame .push.reveal { transition-delay:.18s; }
/* Entrelacement : tracé de gauche à droite, sans déplacement */
html.js-anim .fu-style--filets figure.reveal,html.js-anim .fu-style--filets .fu-style-copy.reveal { clip-path:none; opacity:1; transform:none; }
html.js-anim .fu-style--filets figure.reveal img,html.js-anim .fu-style--filets .fu-style-copy.reveal { clip-path:inset(0 100% 0 0); transition:clip-path 1.2s cubic-bezier(.65,0,.35,1) .25s; }
html.js-anim .fu-style--filets figure.reveal.is-in img,html.js-anim .fu-style--filets .fu-style-copy.reveal.is-in { clip-path:inset(0); }
html.js-anim .fu-style--filets .push.reveal img { transition-delay:.45s; }
@media (prefers-reduced-motion:no-preference) {
  html.js-anim .fu-blocks.is-in i { animation:fu-rise 2.6s linear calc(var(--i) * .07s) both; }
  html.js-anim .fu-ribbon.is-in i { animation:fu-pass 1.9s cubic-bezier(.65,0,.35,1) calc(var(--i) * .08s) both; }
  html.js-anim .fu-style--filets figure.is-in::after { animation:fu-pass 1.7s cubic-bezier(.65,0,.35,1) both; }
  html.js-anim .fu-style--filets .push.is-in::after { animation-delay:.2s; }
}

/* Projet suivant : bandeau bleu */
.fu .next-project { background:var(--fu-blue); border-top:0; color:#fff; }
.fu .next-project .eyebrow { color:rgba(255,255,255,.75); }
.fu .next-project:hover { opacity:1; }
.fu .next-project h2 { transition:transform .5s cubic-bezier(.16,1,.3,1); }
.fu .next-project:hover h2 { transform:translateX(14px); }

@media (max-width:760px) {
  .fu .project-page { padding-top:40px; }
  .fu .fu-hero { margin-bottom:50px; }
  .fu-hero-title,.fu-intro,.fu-chapter,.fu-style-head { display:block; }
  .fu .project-info { margin-top:22px; }
  .fu-symbol { margin-top:56px; }
  .fu .project-meta { margin-top:36px; }
  .fu-chapter .eyebrow { margin-bottom:18px; }
  .fu-chapter figure,.fu-style-head figure { margin-top:30px; }
  .fu-style--filets .fu-style-copy { margin-top:30px; }
  .fu-style { gap:50px; }
  .fu-style .duo { gap:35px; }
  .fu-blocks { gap:6px; height:44px; margin-inline:-16px; padding:0 16px; }
  .fu-ribbon { margin-inline:-16px; }
}
