/* Art Nouveau, art rêvé… : une seule image, parcourue des toits jusqu'à la mer.
   Feuille partagée par la page FR et la page EN (public/en/image-video-creation/art-nouveau-art-reve/). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Palette relevée dans l'image : vert profond des ferronneries, crème de la pierre, tuile, céramique sauge */
:root {
  --fond: #1d2622;
  --creme: #f3ecdd;
  --creme-doux: rgba(243, 236, 221, .8);
  --trait: rgba(243, 236, 221, .2);
  --terre: #d0623f;
  --sauge: #a3bfae;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marge: clamp(20px, 4vw, 64px);
  /* Colonne de texte, à gauche de la fenêtre (grand écran) */
  --colonne: calc(40vw - var(--marge) - 3vw);
  --unites: 14.6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--fond); }
body { color: var(--creme); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--terre); color: var(--creme); }
:focus-visible { outline: 1px solid var(--terre); outline-offset: 4px; }

/* ---------- Scène ---------- */
.voyage { position: relative; }
.scene { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--fond); }
.js .voyage { height: calc(var(--unites) * 100vh); height: calc(var(--unites) * 100svh); }
.js .scene { position: sticky; top: 0; height: 100vh; height: 100svh; }
#toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html:not(.js) #toile { display: none; }
.sansjs { display: block; width: min(100%, 720px); height: auto; margin: 0 auto; }

/* Surtitre : filet et petites capitales */
.sur { display: flex; align-items: center; gap: 16px; font: 500 11px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--terre); }
.sur i { flex: none; width: 40px; height: 1px; background: currentColor; }

/* ---------- Première page ---------- */
.hero { position: absolute; inset: 0; width: 64vw; display: flex; flex-direction: column; justify-content: center; padding: 8vh var(--marge) 0; z-index: 3; }
html:not(.js) .hero { position: relative; width: auto; min-height: 100vh; }
.hero h1 { font: 300 clamp(52px, min(11.1vw, 21vh), 190px)/1.05 var(--serif); font-variation-settings: 'opsz' 144; letter-spacing: -.022em; }
.hero h1 em { display: block; font-style: italic; color: var(--terre); }
.hero .chapo { margin-top: clamp(16px, 3.2vh, 34px); max-width: 31em; font: 300 clamp(17px, min(1.6vw, 3vh), 26px)/1.5 var(--serif); color: var(--creme-doux); }
.go { margin-top: clamp(22px, 4.4vh, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(18px, 2.2vw, 32px); }
.btn { display: inline-block; font: 500 15px/1 var(--sans); color: var(--creme); text-decoration: none; border: 1px solid var(--creme); border-radius: 999px; padding: 19px 34px;
  transition: background .35s, color .35s; }
.btn:hover { background: var(--creme); color: var(--fond); }
.indice { display: inline-flex; align-items: center; gap: 14px; font: 400 14px/1.2 var(--sans); color: var(--sauge); }
.indice svg { flex: none; width: 13px; height: 22px; }
.js .indice svg { animation: glisse 2.6s ease-in-out infinite; }
@keyframes glisse { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ---------- Légende du détail ----------
   Posée sur l'image assombrie, à côté du cercle : voyage.js règle left, top, width et data-pos. */
.legende { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; visibility: hidden; will-change: opacity, transform;
  transform: translateY(calc(-50% + var(--dy, 0px))); }
.legende[data-pos="gauche"] { text-align: right; }
.legende[data-pos="gauche"] .sur { flex-direction: row-reverse; }
.legende[data-pos="gauche"] .texte { margin-left: auto; }
.legende[data-pos="dessous"] { transform: translateY(var(--dy, 0px)); }
.legende[data-pos="dessus"] { transform: translateY(calc(-100% + var(--dy, 0px))); }
.legende .sur { color: var(--creme); }
.legende .titre { margin-top: clamp(12px, 2vh, 20px); font: 300 clamp(34px, min(4.2vw, 8.4vh), 68px)/1.04 var(--serif); font-variation-settings: 'opsz' 144; letter-spacing: -.02em; }
.legende .texte { margin-top: clamp(12px, 2.2vh, 22px); max-width: 21em; font: 300 clamp(18px, min(1.6vw, 3.2vh), 25px)/1.5 var(--serif); color: var(--creme); }

/* ---------- L'image entière ---------- */
.fin { position: absolute; left: var(--marge); top: 0; bottom: 0; width: var(--colonne); display: flex; flex-direction: column; justify-content: center;
  z-index: 3; opacity: 0; visibility: hidden; transform: translateY(var(--dy, 0px)); will-change: opacity, transform; }

.fin h2 { margin-top: clamp(14px, 2.4vh, 24px); font: 300 clamp(34px, min(4.4vw, 9vh), 76px)/1.05 var(--serif); font-variation-settings: 'opsz' 144; letter-spacing: -.02em; }
.fin h2 em { display: block; font-style: italic; color: var(--terre); }
.fin .texte { margin-top: clamp(14px, 2.6vh, 26px); max-width: 26em; font: 300 clamp(16px, min(1.35vw, 2.9vh), 21px)/1.55 var(--serif); color: var(--creme-doux); }
.fin .btn { padding: 15px 28px; }
.lien { font: 400 14px/1.2 var(--sans); color: var(--sauge); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: color .3s, border-color .3s; }
.lien:hover { color: var(--creme); border-color: var(--trait); }

/* ---------- Barre du haut et fil du parcours ---------- */
/* Posés sur l'image en plein écran : chaque élément porte son propre fond, pour rester lisible sur le ciel clair. */
.haut { position: absolute; left: var(--marge); right: var(--marge); top: 0; height: clamp(56px, 10vh, 96px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 4; opacity: 0; visibility: hidden; }
.pastille { font: 500 11px/1 var(--sans); text-transform: uppercase; color: var(--creme); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--trait); border-radius: 999px; padding: 9px 14px; background: rgba(20, 27, 24, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s, color .3s, border-color .3s; }
.pastille { letter-spacing: .16em; }
/* La petite maison : retour à la page d'accueil */
.maison { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; }
.maison svg { display: block; width: 15px; height: 15px; }
.pastille:hover { border-color: var(--creme-doux); background: rgba(20, 27, 24, .8); }
.haut .droite { display: flex; align-items: center; gap: 8px; }
.pastille[aria-pressed="true"] { background: var(--creme); color: var(--fond); border-color: var(--creme); }
/* Le choix de la musique, en haut à gauche : A, B, ou couper */
.son { display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border: 1px solid var(--trait); border-radius: 999px;
  background: rgba(20, 27, 24, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.son .note { margin-right: 6px; font: 400 13px/1 var(--serif); color: var(--sauge); }
.son button { min-width: 28px; height: 26px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .08em; color: var(--creme-doux); transition: background .3s, color .3s; }
.son button:hover { color: var(--creme); background: rgba(243, 236, 221, .12); }
.son button[aria-pressed="true"] { background: var(--creme); color: var(--fond); }

.cours { position: absolute; left: 50%; bottom: clamp(22px, 4.6vh, 44px); width: min(280px, 52vw); height: 30px; margin-left: calc(min(280px, 52vw) / -2); z-index: 4; opacity: 0; visibility: hidden; }
.cours::before { content: ''; position: absolute; inset: -9px -26px -9px; z-index: -1; border-radius: 999px; background: rgba(20, 27, 24, .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cours .ligne, .cours .fait { position: absolute; left: 0; bottom: 4px; height: 1px; }
.cours .ligne { right: 0; background: var(--trait); }
.cours .fait { width: 0; background: var(--sauge); }
.cours button { position: absolute; bottom: 0; transform: translateX(-50%); padding: 0 5px 12px; font: italic 400 13px/1 var(--serif); color: rgba(163, 191, 174, .62); transition: color .3s; }
.cours button::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--fond); box-shadow: 0 0 0 1px var(--sauge); transition: background .3s, box-shadow .3s; }
.cours button:hover { color: var(--creme); }
.cours button.passe::after { background: var(--sauge); }
.cours button.on { color: var(--terre); }
.cours button.on::after { background: var(--terre); box-shadow: 0 0 0 1px var(--terre), 0 0 0 5px rgba(208, 98, 63, .22); }

/* ---------- Après le parcours ---------- */
.apres { position: relative; z-index: 2; background: var(--fond); border-top: 1px solid var(--trait); padding: clamp(72px, 10vw, 140px) 0 34px; }
/* Avant le pied de page : un bandeau de la largeur du texte, sur les personnages au bord de l'eau.
   Le fichier est déjà recadré (1158 × 308 px, sans le réverbère) : il s'affiche à peu près à 100 %
   sur grand écran. Sur téléphone, il garde 170 px de haut et se recadre par la droite : on voit le
   groupe des trois personnages de gauche. */
.rivage { margin-top: clamp(48px, 6vw, 88px); overflow: hidden; background: #c9d3d6; }
.rivage img { display: block; width: 100%; height: auto; min-height: 170px; object-fit: cover; object-position: left center; }
.cadre { max-width: calc(1180px + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
/* Les textes des étapes : affichés ici, et lus par le script pour le parcours. */
.recit { margin-bottom: clamp(64px, 9vw, 120px); }
.apres h2 { margin: 18px 0 clamp(40px, 6vw, 76px); font: 300 clamp(38px, 5.6vw, 86px)/1.02 var(--serif); font-variation-settings: 'opsz' 144; letter-spacing: -.02em; }
.apres h2 em { font-style: italic; color: var(--terre); }
.parcours { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px 56px; }
.parcours li { border-top: 1px solid var(--trait); padding-top: 18px; }
.parcours .no { font: italic 400 15px/1 var(--serif); color: var(--terre); }
.parcours h3 { margin-top: 10px; font: 300 27px/1.15 var(--serif); font-variation-settings: 'opsz' 100; }
.parcours p { margin-top: 10px; font: 300 17px/1.5 var(--serif); color: var(--creme-doux); }
.aussi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px clamp(24px, 5vw, 72px); align-items: start; }
.aussi .note { font: 300 clamp(18px, 1.7vw, 24px)/1.5 var(--serif); color: var(--creme-doux); max-width: 30em; }
.aussi ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.aussi a { font: 300 clamp(20px, 2vw, 28px)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--trait); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.aussi a:hover { color: var(--terre); border-color: var(--terre); }
.pied { width: calc(100% - 2 * var(--marge)); max-width: 1180px; margin: clamp(36px, 4vw, 52px) auto 0; padding-top: 16px; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font: 500 11px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sauge); }
.pied a { text-decoration: none; border-bottom: 1px solid var(--trait); transition: color .3s, border-color .3s; }
.pied a:hover { color: var(--creme); border-color: var(--creme-doux); }

/* ---------- Écrans étroits ou en hauteur : la fenêtre en haut, le texte dessous ---------- */
@media (orientation: portrait), (max-width: 639.98px) {
  .hero { width: 100%; justify-content: flex-end; padding: 0 var(--marge) max(5vh, 28px); }
  .hero h1 { font-size: clamp(38px, min(13.5vw, 8.4vh), 96px); }
  .hero .chapo { margin-top: 14px; font-size: clamp(15px, min(4.3vw, 2.3vh), 22px); line-height: 1.45; }
  .btn { padding: 16px 28px; white-space: nowrap; }
  /* « Entrer » et « Faites défiler » restent côte à côte : c'est le texte de l'indice qui se replie s'il le faut */
  .go { flex-wrap: nowrap; gap: 14px; }
  .go .btn { flex: none; }
  .indice { min-width: 0; gap: 10px; font-size: 13px; }
  .fin { right: var(--marge); width: auto; bottom: auto; justify-content: flex-start; top: calc(var(--entiere-bas, 58vh) + 2.4vh); }
  .legende .titre { margin-top: 10px; font-size: clamp(30px, min(9.4vw, 5.6vh), 60px); }
  .legende .texte { margin-top: 10px; font-size: clamp(16px, min(4.5vw, 2.5vh), 22px); line-height: 1.42; }
  .fin h2 { margin-top: 10px; font-size: clamp(28px, min(8.4vw, 4.8vh), 54px); }
  .fin h2 em { display: inline; }
  .fin .texte { margin-top: 10px; font-size: clamp(15px, min(4.1vw, 2.2vh), 20px); line-height: 1.45; }
  .fin .go { margin-top: 16px; }
  .fin .btn { padding: 13px 24px; }
  .haut { left: 12px; right: 12px; }
  .pastille { letter-spacing: .1em; padding: 9px 12px; }
  .aussi { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js .indice svg { animation: none; }
}
