/* Dream Maker
   Les couleurs viennent des photos : le bleu pétrole et le rose des tirages deux tons,
   le vermillon des roses du bouquet, le menthe du mur peint, le vert des bambous. */

@property --fond { syntax: "<color>"; inherits: true; initial-value: #0b171b; }
@property --encre { syntax: "<color>"; inherits: true; initial-value: #e5d1c8; }

:root {
  --nuit: #0b171b; --petrole: #17272d; --ardoise: #5c6568; --rose: #e5d1c8; --rose-clair: #f0e3dc;
  --vermillon: #c4452a; --menthe: #a6dcc0; --bambou: #dbe0c2; --foret: #14211d; --braise: #1c110e;
  --sans: "Montserrat", "Century Gothic", "Avenir Next", sans-serif;
  --serif: "Bellefair", "Cormorant Garamond", "Times New Roman", serif;
  --plume: "Pinyon Script", "Snell Roundhand", "Edwardian Script ITC", cursive;
  --doux: cubic-bezier(.22, .8, .2, 1);
  --marge: clamp(1.125rem, 4.2vw, 4.5rem);
  --fond: #0b171b; --encre: #e5d1c8;
  font-size: max(15.5px, .92vw); /* tout grandit avec l'écran, même navigateur dézoomé */
  transition: --fond 1.3s ease, --encre 1.3s ease;
}
html[data-scene="eau"], html[data-scene="silence"] { --fond: var(--nuit); --encre: var(--rose); }
html[data-scene="matin"], html[data-scene="escalier"] { --fond: var(--rose); --encre: var(--petrole); }
html[data-scene="bambous"] { --fond: var(--bambou); --encre: #1d2a1c; }
html[data-scene="cascade"] { --fond: var(--foret); --encre: var(--rose); }
html[data-scene="ville"] { --fond: var(--menthe); --encre: #0d2026; }
html[data-scene="proches"] { --fond: var(--rose-clair); --encre: var(--petrole); }
html[data-scene="soir"] { --fond: var(--braise); --encre: #f0d9c4; }

* { box-sizing: border-box; margin: 0; font-synthesis: none; }
html { background: var(--fond); color: var(--encre); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 400 1.06rem/1.65 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.ferme { overflow: hidden; height: 100svh; }
img, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--vermillon); outline-offset: 4px; }
.plume { font-family: var(--plume); font-weight: 400; font-style: normal; line-height: 1.02; text-wrap: balance; }
.petit { font-size: 1.1rem; font-weight: 400; letter-spacing: .04em; }
.titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4vw, 4.6rem); line-height: .95; text-align: center; }
.art { display: block; font-family: var(--plume); font-size: .82em; line-height: 1; margin-bottom: -.12em; }
.cap { text-transform: uppercase; letter-spacing: -.028em; }
.filet { display: block; width: 1px; height: 5rem; background: currentColor; opacity: .4; margin: 0 auto; }
.lien-fin { font-size: .95rem; letter-spacing: .05em; padding-bottom: .35em; border-bottom: 1px solid; transition: letter-spacing .7s var(--doux); }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.doigt { display: none; }
@media (hover: none) { .souris { display: none; } .doigt { display: inline; } }

.bouton { display: inline-flex; align-items: center; gap: .9em; min-height: 3.25rem; padding: .8em 2em; border: 1px solid currentColor; font-size: .95rem; letter-spacing: .05em; font-weight: 400; transition: background .4s, color .4s, border-color .4s; }
.bouton.plein { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.bouton:hover { background: var(--vermillon); border-color: var(--vermillon); color: #fff; }

/* ondes sonores */
.ondes { display: inline-flex; gap: 3px; align-items: center; height: 1.125rem; }
.ondes i { width: .12rem; height: 100%; background: currentColor; transform: scaleY(.3); transition: transform .4s; }
.actif .ondes i, .bouton .ondes i { animation: onde 1.1s ease-in-out infinite alternate; }
.ondes i:nth-child(2) { animation-delay: -.5s !important; } .ondes i:nth-child(3) { animation-delay: -.85s !important; } .ondes i:nth-child(4) { animation-delay: -.25s !important; }
@keyframes onde { from { transform: scaleY(.2); } to { transform: scaleY(1); } }

/* ─── seuil ─── */
.seuil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #04090b; color: var(--rose); padding: 1.5rem; --r: 0%; }
.seuil.part { -webkit-mask: radial-gradient(circle at 50% 46%, transparent calc(var(--r) - 10%), #000a calc(var(--r) - 6%), #0006 calc(var(--r) - 4%), #000 var(--r)); mask: radial-gradient(circle at 50% 46%, transparent calc(var(--r) - 10%), #000a calc(var(--r) - 6%), #0006 calc(var(--r) - 4%), #000 var(--r)); pointer-events: none; }
.seuil-centre { display: grid; justify-items: center; gap: clamp(2.25rem, 7vh, 4.75rem); text-align: center; transition: opacity .6s; }
.seuil.part .seuil-centre { opacity: 0; }
.marque-titre { position: relative; font-weight: 400; letter-spacing: .24em; font-size: clamp(1.3rem, 3.4vw, 2.9rem); margin-right: -.24em; white-space: nowrap; }
.marque-titre .plume { display: block; letter-spacing: 0; font-size: 1.55em; margin: -.06em .24em 0 0; color: #cdb9af; }
.lettres b { font-weight: inherit; opacity: 0; animation: naitre 1.6s var(--doux) forwards; animation-delay: calc(.25s + var(--i) * 90ms); }
.seuil .plume { clip-path: inset(-30% 100% -40% -10%); animation: ecrire 1.8s 1.5s var(--doux) forwards; }
@keyframes naitre { from { opacity: 0; filter: blur(0.625rem); } to { opacity: 1; filter: none; } }
@keyframes ecrire { to { clip-path: inset(-30% -20% -40% -10%); } }
.seuil-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; --encre: var(--rose); --fond: #04090b; animation: naitre 1.2s 2.3s both; }
.seuil-note { font-size: 1rem; opacity: 0; color: #a99a93; animation: naitre 1.2s 2.7s both; }

/* ─── en-tête, pied fixe ─── */
.tete, .pied-fixe { position: fixed; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 1.375rem var(--marge); pointer-events: none; }
.tete { top: 0; transition: transform .6s var(--doux); }
.tete::before { content: ""; position: absolute; inset: 0 0 -1.5rem; z-index: -1; background: linear-gradient(var(--fond), color-mix(in srgb, var(--fond) 94%, transparent) 62%, transparent); transition: opacity .6s; }
.tete.haut::before { opacity: .55; } .tete.cache-toi:not(:focus-within) { transform: translateY(-110%); } .pied-fixe { bottom: 0; padding-block: 1.25rem; }
.tete > *, .pied-fixe > button { pointer-events: auto; }
.marque { display: flex; align-items: center; gap: .55em; font-weight: 500; letter-spacing: .26em; font-size: 1rem; white-space: nowrap; }
.marque .plume { font-size: 1.75em; letter-spacing: 0; line-height: 1; margin-top: -.12em; }
.liens { display: flex; gap: clamp(1.125rem, 2.6vw, 2.75rem); font-size: 1rem; font-weight: 400; letter-spacing: .02em; }
.liens > * { position: relative; padding: 0.375rem 0; }
.liens > *::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--doux); }
.liens > *:focus-visible { outline: none; }
.liens > *:is(:hover, :focus-visible)::after { transform: none; transform-origin: left; }
.menu-bouton { display: none; min-height: 2.75rem; }
.son, .repere { border-radius: 99px; padding: 0 1.2em; background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: blur(0.625rem); -webkit-backdrop-filter: blur(0.625rem); }
.son { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-size: .95rem; font-weight: 400; margin-left: -1.2em; }
/* passé l'accueil, le bouton se réduit à ses ondes ; le mot revient au survol */
.son-texte { display: inline-block; max-width: 10em; overflow: hidden; white-space: nowrap; transition: max-width .7s var(--doux), opacity .5s; }
.discret .son { gap: 0; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); min-width: 3.1rem; justify-content: center; margin-left: 0; padding: 0 .9rem; } .discret .son:not(:hover, :focus-visible) .son-texte { max-width: 0; opacity: 0; } .discret .son:is(:hover, :focus-visible) { gap: .75rem; }
.repere { font-size: .95rem; font-weight: 400; line-height: 2.75rem; margin-right: -1.2em; } .repere:empty { display: none; }

/* ─── eau ─── */
.eau { position: absolute; inset: 0; overflow: hidden; background: var(--petrole); touch-action: pan-y; }
.eau canvas, .eau video, .eau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eau canvas { opacity: 0; transition: opacity 1s; }
.eau.eau-prete canvas { opacity: 1; }
.eau.sans-eau canvas { display: none; }
.eau :is(video, img) { filter: grayscale(1) brightness(.7); transition: filter 1.4s; }
.eau.eau-prete:not(.sans-eau) :is(video, img) { opacity: 0; transition: opacity 0s 1.3s; }
.eau.sans-eau:hover :is(video, img) { filter: none; }
.eau.sans-eau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, #0b171bcc); pointer-events: none; }

/* ─── accueil ─── */
.accueil { position: relative; height: 100svh; min-height: 35rem; color: var(--rose); overflow: hidden; }
.accueil-texte { position: absolute; inset: auto 0 0; padding: 0 var(--marge) clamp(5.8rem, 13vh, 9rem); pointer-events: none; }
.accueil-texte a { pointer-events: auto; }
.accueil h1 { font: inherit; margin-right: auto; }
.accueil-bas { display: flex; align-items: baseline; font-size: 1rem; font-weight: 400; letter-spacing: .03em; justify-content: space-between; gap: 1.5rem; margin-top: clamp(1.125rem, 3vh, 2.125rem); }
.accueil-bas { gap: 4vw !important; }
.descendre { border-bottom: 1px solid; }
.indice { animation: pouls 3.4s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .45; } }

/* ─── manifeste ─── */
.manifeste { min-height: 112svh; display: grid; place-items: center; padding: 12vh var(--marge); }
.message { width: min(100%, 37rem); aspect-ratio: 1; display: grid; align-content: center; gap: 2.2rem; text-align: center; padding: 3.5rem; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); }
.mots { font-family: var(--serif); font-size: 1.95rem; line-height: 1.36; letter-spacing: -.012em; text-wrap: balance; }
.mots.fin { font-family: var(--plume); font-size: 2.9rem; line-height: 1.15; }
.mot { opacity: 0; filter: blur(5px); transition: opacity 1.1s, filter 1.1s; }
.mot.vu { opacity: 1; filter: none; }

/* ─── ouverture ─── */
.ouverture { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 5vh; padding: 12vh var(--marge); text-align: center; }
.noms { font-family: var(--plume); font-weight: 400; font-size: clamp(5rem, 19vw, 22rem); line-height: .8; display: grid; justify-items: center; }
.noms span:first-child { margin-right: 1.3em; } .noms span:last-child { margin-left: 1.1em; }
.noms i { font: 200 .15em/1 var(--sans); margin: -.2em 0; color: var(--vermillon); }
@media (max-width: 700px) { .noms { font-size: 27vw; } .noms span:first-child { margin-right: .5em; } .noms span:last-child { margin-left: .4em; } .noms i { margin: .6em 0; } }

/* ─── photos et boucles ─── */
.photo, .boucle { position: relative; will-change: transform; }
.photo button { position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; cursor: pointer; }
.photo button { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--doux); } .photo.vue-ici button { clip-path: inset(0); }
.photo img { width: 100%; height: auto; transform: scale(1.14); transition: transform 2s var(--doux), filter 1.8s .5s ease; }
/* endormie : deux tons pétrole / rose ; éveillée : couleur */
.photo:not(.brute) img { filter: grayscale(1) contrast(1.08); }
.photo:not(.brute) button::before, .photo:not(.brute) button::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1.8s .5s ease; }
.photo:not(.brute) button::before { background: var(--rose); mix-blend-mode: multiply; }
.photo:not(.brute) button::after { background: #1a2d35; mix-blend-mode: screen; }
.photo.vue-ici img { transform: none; }
.photo.reveil img { filter: none; }
.photo.reveil button::before, .photo.reveil button::after { opacity: 0; }
.photo.somme.vue-ici button::before, .photo.somme.vue-ici button::after, .photo.somme img { transition-delay: 0s; transition-duration: .9s; }
.photo button:hover img { transform: scale(1.035); transition: transform 1.4s var(--doux), filter .9s; }
.boucle { overflow: hidden; }
.boucle video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--doux); }
.boucle.vue-ici video { clip-path: inset(0); }

/* ─── tableaux ─── */
.tableau { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(0.75rem, 1.6vw, 1.75rem); padding: 12vh var(--marge) 20vh; align-items: start; }
.t-titre { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .7em; margin-bottom: 7vh; }
.t-titre h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4.2vw, 4.8rem); line-height: .95; }
.portail .t-titre h3, .cascade .t-titre h3 { text-shadow: 0 0 2rem #0b171b55; }
.t-titre > span { font-size: 1.05rem; letter-spacing: .08em; color: var(--vermillon); min-width: 1.6em; }
html[data-scene="cascade"] .t-titre > span, html[data-scene="soir"] .t-titre > span { color: #e88a6c; }

.matin .m-a { grid-column: 1 / 9; } .matin .m-b { grid-column: 9 / 13; margin-top: 16vh; }
.matin .m-t { grid-column: 1 / 6; font-size: clamp(2.3rem, 3.7vw, 4.2rem); align-self: center; }
.matin .m-c { grid-column: 6 / 10; margin-top: 8vh; } .matin .m-d { grid-column: 2 / 9; margin-top: 10vh; }

.mairie { padding-top: 20vh; row-gap: 14vh; }
.mairie .n-a { grid-column: 1 / 6; } .mairie .n-b { grid-column: 6 / 13; margin-top: 22vh; margin-right: calc(var(--marge) * -1); }
.mairie .n-c { grid-column: 7 / 11; grid-row: 2; } .mairie .n-d { grid-column: 2 / 6; grid-row: 2; margin-top: 18vh; }

/* portail */
.portail { height: 240vh; } .colle { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.portail .t-titre { position: absolute; z-index: 2; left: var(--marge); top: 13vh; color: color-mix(in srgb, #fff calc(var(--p, 0) * 140%), var(--petrole)); margin: 0; }
.portail .t-titre > span { color: inherit !important; }
.portail-cadre { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p)) * 22%) calc((1 - var(--p)) * 33%)); }
.portail-cadre video { transform: scale(calc(1.25 - var(--p) * .25)); filter: grayscale(calc(1 - var(--p))); clip-path: none !important; }

/* regard */
.regard { height: 430vh; }
.regard .colle { background: #17272d; }
.regard-fond { position: absolute; inset: 0; }
.regard .f1 { background: linear-gradient(90deg, #1b2b32 0 30%, #e5d1c8 62%); }
.regard .f2 { background: linear-gradient(90deg, #3f494d 0, #8d8785 27%, #e5d1c8 60%); opacity: var(--q2, 0); }
.regard .f3 { background: linear-gradient(90deg, #414c53 0, #7d858b 27%, #efe9e2 60%); opacity: var(--q3, 0); }
.regard-cadre { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: 2/3; transform: translateX(-50%); -webkit-mask: linear-gradient(90deg, transparent, #000 9% 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9% 91%, transparent); }
.regard-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.regard-cadre .r2, .regard-cadre .r3, .appel-photo .dessus { --r: 0; -webkit-mask: radial-gradient(circle at 60% 52%, #000 calc(var(--r) * 1% - 16%), #0007 calc(var(--r) * 1% - 12%), #000 calc(var(--r) * 1% - 9%), #0005 calc(var(--r) * 1% - 5%), #000c calc(var(--r) * 1% - 3%), transparent calc(var(--r) * 1%)); mask: radial-gradient(circle at 60% 52%, #000 calc(var(--r) * 1% - 16%), #0007 calc(var(--r) * 1% - 12%), #000 calc(var(--r) * 1% - 9%), #0005 calc(var(--r) * 1% - 5%), #000c calc(var(--r) * 1% - 3%), transparent calc(var(--r) * 1%)); }
.dit { position: absolute; font-size: clamp(2.4rem, 4.3vw, 5rem); max-width: 4.2em; opacity: var(--o, 0); transition: opacity .3s; }
.d1 { left: var(--marge); bottom: 22vh; color: var(--rose); }
.d2, .d3 { right: var(--marge); color: var(--petrole); text-align: right; }
.d2 { top: 24vh; } .d3 { bottom: 24vh; color: var(--vermillon); }

/* bambous */
.bambous { height: 480vh; }
.file { display: flex; align-items: center; gap: clamp(1.375rem, 4.6vw, 5.25rem); height: 100%; padding: 0 var(--marge); width: max-content; will-change: transform; }
.file .t-titre { margin: 0 6vw 0 0; white-space: nowrap; }
.file .photo { flex: none; } .file .photo img { height: 100%; object-fit: cover; aspect-ratio: 2/3; width: auto; }
.file .photo button { height: var(--h); width: calc(var(--h) / 1.5); }
.file .b-haut { --h: 100svh; } .file .b-moyen { --h: 66svh; } .file .b-petit { --h: 46svh; align-self: flex-start; margin-top: 15svh; }
.file .bas { align-self: flex-end; margin: 0 0 13svh; }
.file .b-t { font-size: clamp(2.4rem, 4.2vw, 4.8rem); white-space: nowrap; margin: 0 3vw; }

/* cascade */
.cascade { position: relative; height: 125vh; min-height: 40rem; color: var(--rose); }
.cascade .eau::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--fond), transparent 14% 82%, var(--fond)); }
.cascade-texte { position: absolute; inset: 0; padding: 16vh var(--marge) max(22vh, 9.375rem); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.cascade blockquote { max-width: 27rem; }
.cascade blockquote .plume { font-size: clamp(2.6rem, 4.6vw, 5.2rem); text-shadow: 0 2px 2.5rem #0b171b; }
.cascade cite { display: block; font-family: var(--serif); font-size: 1.3rem; font-style: normal; margin-top: 2.4em; }
.rocher { row-gap: 12vh; }
.rocher .c-a { grid-column: 1 / 8; } .rocher .c-b { grid-column: 9 / 13; margin-top: 30vh; } .rocher .c-c { grid-column: 2 / 6; } .rocher .c-d { grid-column: 7 / 12; margin-top: 10vh; }

/* appel */
.appel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw; padding: 12vh var(--marge) 22vh; }
.appel-texte { justify-self: end; text-align: right; }
.appel-texte p { font-size: 1.15rem; }
.appel-texte .plume { white-space: nowrap; font-size: clamp(2.5rem, 4vw, 4.6rem); margin-bottom: .3em; }
.appel-photo { position: relative; height: min(88svh, 58rem); aspect-ratio: 2/3; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: grab; }
.appel-photo:active { cursor: grabbing; }
.appel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.appel-photo svg { position: absolute; right: 1.375rem; bottom: 1.375rem; width: 3.625rem; transform: rotate(-90deg); fill: none; stroke: #fff5; stroke-width: 3; transition: opacity .6s; }
.appel-photo .jauge { stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--j, 0)); }
.appel-photo[aria-pressed="true"] svg { opacity: 0; }

/* ville */
.ville { row-gap: 10vh; }
.ville .t-titre { margin-bottom: 0; }


.ville .v-a { grid-column: 4 / 10; z-index: 1; } .ville .v-b { grid-column: 1 / 5; grid-row: 3; } .ville .v-t { grid-column: 5 / 9; grid-row: 3; font-size: clamp(2.3rem, 3.5vw, 4rem); margin-top: 6vh; }
.ville .v-c { grid-column: 8 / 13; grid-row: 3; margin-top: 46vh; }

/* proches */
.proches { padding: 14vh 0 16vh; }
.proches-tete { padding: 0 var(--marge); display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; margin-bottom: 6vh; }
.proches h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 3.6vw, 4.2rem); line-height: .95; }
.rang { display: flex; gap: clamp(0.5rem, 1vw, 1rem); padding: 0 var(--marge); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rang::-webkit-scrollbar { display: none; }
.rang .photo { flex: 1 0 clamp(13.125rem, 17vw, 20.625rem); scroll-snap-align: center; transition: flex-grow .9s var(--doux); }
.rang img { height: clamp(23.75rem, 74vh, 47.5rem); object-fit: cover; }
@media (hover: hover) and (min-width: 1000px) { .rang { overflow: hidden; } .rang .photo { flex: 1 1 0; min-width: 0; } .rang .photo:hover, .rang .photo:focus-within { flex-grow: 3.4; } }

/* soir */
.soir { padding-bottom: 14vh; row-gap: 8vh; }
.soir .s-a { grid-column: 1 / 8; } .soir .s-b { grid-column: 6 / 13; margin-top: -16vh; z-index: 1; margin-right: calc(var(--marge) * -1); }
.soir .s-t { grid-column: 1 / 8; font-size: clamp(2.4rem, 4vw, 4.6rem); }

/* films */
.films { padding: 18vh var(--marge) 20vh; display: grid; gap: 7vh; justify-items: center; }
.affiche { position: relative; display: block; overflow: hidden; width: min(100%, 68rem); }
.affiche:nth-of-type(even) { width: min(84%, 50rem); justify-self: end; margin-right: 4vw; }
.affiche img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 22%; filter: brightness(.86); transition: transform 1.8s var(--doux), filter 1s; }
.affiche:hover img, .affiche:focus-visible img { transform: scale(1.04); filter: brightness(1); }
.affiche-texte { position: absolute; inset: auto 0 0; padding: clamp(1rem, 3vw, 2.75rem); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: #fff; background: linear-gradient(transparent, #04090bb3); }
.affiche-nom { font-family: var(--serif); font-size: clamp(1.7rem, 2.5vw, 2.8rem); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.affiche-duree { white-space: nowrap; }

.film-groupe { width: 100%; display: grid; gap: 7vh; justify-items: center; } .film-groupe[hidden] { display: none; }
.film-groupe + .film-groupe { margin-top: 10vh; }
.film-couple { display: grid; gap: .9rem; justify-items: center; text-align: center; } .film-couple .plume { font-size: clamp(2.6rem, 4.4vw, 5rem); } .film-couple .petit { font-size: 1rem; opacity: .8; }
.selecteur { display: inline-flex; align-items: center; gap: .9rem; min-height: 2.75rem; font-family: var(--serif); font-size: 1.4rem !important; line-height: 1; border-bottom: 1px solid currentColor; padding: .3rem .1rem; opacity: 1 !important; white-space: nowrap; }
.selecteur svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; transition: transform .5s var(--doux); } .selecteur:hover svg { transform: translateY(.2rem); }
.selecteur span { overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* répertoire des mariages */
.repertoire { overflow-y: auto; } .repertoire .fermer { position: fixed; right: var(--marge); top: 1rem; z-index: 2; }
.rep-corps { max-width: 92rem; margin: 0 auto; padding: 12vh var(--marge) 10vh; }
.rep-liste { margin-top: 8vh; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4.5rem); }
.rep-liste button { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1.2rem; align-content: center; min-height: 6.2rem; padding: .8rem 0; border-bottom: 1px solid #e5d1c833; opacity: .78; transition: opacity .4s; }
.rep-liste button:hover, .rep-liste [aria-current="true"] { opacity: 1; }
.rep-liste img { grid-row: 1 / 3; width: 3.4rem; height: 4.3rem; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); transition: filter .6s; } .rep-liste button:hover img { filter: none; }
.rep-nom { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; align-self: end; } .rep-date { font-size: .92rem; color: #bfaea6; } .rep-nom:first-child { grid-column: 1 / -1; align-self: center; }
.rep-liste [aria-current="true"] .rep-nom { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35rem; }

/* les mariages suivants, en liste */
.index-mariages { width: min(100%, 68rem); margin: 4vh auto 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.index-mariages a { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding: 1.7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); transition: padding .6s var(--doux); }
.index-mariages a:hover { padding-left: 1.6rem; } .im-nom { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.index-mariages img { position: absolute; right: 16rem; top: 50%; width: 11rem; height: 14rem; object-fit: cover; object-position: 50% 25%; transform: translateY(-50%) scale(.94); opacity: 0; pointer-events: none; z-index: 2; transition: opacity .5s, transform .7s var(--doux); }
@media (hover: hover) { .index-mariages a:is(:hover, :focus-visible) img { opacity: 1; transform: translateY(-50%); } }

/* invitation galerie */
.invite { position: relative; overflow: hidden; min-height: 110svh; display: grid; place-items: center; }
.invite-mur { position: absolute; inset: -14% -6%; display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(0.5rem, 1vw, 1rem); transform: rotate(-7deg); opacity: .9; }
.invite-mur div { display: grid; gap: inherit; align-content: start; will-change: transform; }
.invite-mur img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; }
.invite::after { content: ""; position: absolute; inset: 0; background: radial-gradient(58vmax 46vmin at 50% 50%, var(--fond) 34%, color-mix(in srgb, var(--fond) 70%, transparent) 60%, transparent), linear-gradient(var(--fond), transparent 22% 78%, var(--fond)); }
.invite-texte { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 1.75rem; padding: 1.5rem; max-width: 34rem; }
.invite-texte p { max-width: 24rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.invite-texte .plume { white-space: nowrap; font-size: clamp(3.6rem, 6.4vw, 7rem); }

/* offre */
.offre { padding: 18vh var(--marge) 20vh; }
.offre ul { list-style: none; padding: 0; margin: 9vh auto 0; max-width: 80rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.offre li { text-align: center; padding: 2.5rem 2.6rem; } .offre li + li { border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.offre h3 { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: .95; margin-bottom: 1.5rem; }

.offre p { max-width: 24em; margin: 0 auto; font-family: var(--serif); font-size: 1.32rem; line-height: 1.4; }

/* contact : la lettre */
.contact { padding: 18vh var(--marge) 20vh; display: grid; justify-items: center; gap: 3rem; }
.contact h2 { font-size: clamp(2.8rem, 4.6vw, 5.2rem); text-align: center; line-height: 1.1; }
.papier { width: min(100%, 45rem); padding: 4.2rem 4.6rem; background: #f7efea; box-shadow: 0 2.5rem 5rem -2.5rem #17272d55; color: var(--petrole); }
.lettre { font-family: var(--serif); font-size: 1.65rem; letter-spacing: -.01em; line-height: 1.4; display: grid; gap: 1.15rem; margin-bottom: 2.8rem; }
.ligne { display: flex; align-items: baseline; gap: .5em; } .ligne > span { white-space: nowrap; }
.ligne :is(input, select, textarea) { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid #17272d66; border-radius: 0; background: none; padding: .1em .1em .15em; font: inherit; color: inherit; }
.ligne.haute { flex-direction: column; align-items: stretch; gap: .3em; } .ligne textarea { resize: vertical; min-height: 4.6em; }
.ligne option { font: 1rem var(--sans); } .ligne ::placeholder { color: #17272da6; opacity: 1; }
.ligne :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--vermillon); box-shadow: 0 1px 0 var(--vermillon); }
.papier .bouton { --encre: var(--petrole); --fond: #f7efea; width: 100%; justify-content: center; }

/* contact : me joindre */
.joindre { background: var(--petrole); color: var(--rose); padding: 14vh var(--marge); }
.joindre-grille { max-width: 64rem; margin: 6vh auto 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font-style: normal; }
.joindre-grille a { display: grid; gap: .7rem; justify-items: center; padding: 2rem 1.5rem; text-align: center; transition: color .4s; } .joindre-grille a + a { border-left: 1px solid #e5d1c840; } .joindre-grille a:hover { color: #fff; }
.joindre-grille .etq { font-size: .95rem; letter-spacing: .05em; color: #bfaea6; } .joindre-grille .val { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(1.4rem, 1.9vw, 2.1rem); white-space: nowrap; }

/* présentation */
.portrait { display: grid; grid-template-columns: 5fr 6fr; gap: 8vw; align-items: center; max-width: 92rem; margin: 0 auto; padding: 18vh var(--marge) 14vh; }
.portrait figure { position: relative; } .portrait img { width: 100%; height: auto; }
.portrait figure::after { content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); z-index: -1; }
.portrait-texte { max-width: 35rem; display: grid; gap: 1.35rem; }
.portrait-texte .petit { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.portrait-texte p { font-family: var(--serif); font-size: 1.42rem; line-height: 1.45; letter-spacing: -.005em; }
.portrait-texte h2 { text-align: left; margin-bottom: 1rem; }
.portrait-texte .exergue { font-size: 1.95rem; line-height: 1.25; padding: .5rem 0 .5rem 1.6rem; border-left: 1px solid currentColor; }
.portrait-texte .plume { font-family: var(--plume); font-size: 3.6rem; line-height: 1; margin-top: .6rem; }
.etat { margin-top: 1.4em; min-height: 1.6em; }
.coord { font-style: normal; display: grid; gap: .6em; justify-items: end; } .coord .etq { display: none; }
.coord a { border-bottom: 1px solid transparent; transition: border-color .3s; } .coord a:hover { border-color: currentColor; }

.pied { background: var(--nuit); color: var(--rose); padding: 12vh var(--marge) 6.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.pied > p:last-child { flex-basis: 100%; font-size: 1rem; color: #b5a69f; }
.marque-titre.petite { font-size: 1.3rem; }

/* ─── les mariages (accueil) ─── */
.deja .seuil { display: none; } .deja body.ferme { overflow: visible; height: auto; }
.mariages { padding: 16vh var(--marge) 16vh; display: grid; gap: 9vh; }
.projets { display: grid; gap: 18vh; }
.projet { display: grid; justify-items: center; gap: 4.5vh; color: inherit; text-align: center; }
.projet .noms { font-size: clamp(4.2rem, 11.5vw, 14rem); margin-bottom: 3vh; transition: transform 1.6s var(--doux); }
.projet .fond { position: relative; display: block; width: min(100%, 68rem); aspect-ratio: 16/9; overflow: hidden; isolation: isolate; }
.projet .fond :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; clip-path: none !important; filter: grayscale(1) contrast(1.06); transition: filter 1.6s, transform 2.4s var(--doux); }
.projet .fond::before, .projet .fond::after { content: ""; position: absolute; inset: 0; z-index: 1; transition: opacity 1.6s; }
.projet .fond::before { background: var(--rose); mix-blend-mode: multiply; } .projet .fond::after { background: #1a2d35; mix-blend-mode: screen; }
.projet:is(:hover, :focus-visible, .reveil) .fond :is(img, video) { filter: none; } .projet:is(:hover, :focus-visible) .fond :is(img, video) { transform: scale(1.025); }
.projet:is(:hover, :focus-visible, .reveil) .fond::before, .projet:is(:hover, :focus-visible, .reveil) .fond::after { opacity: 0; }
.projet .noms i { font-size: .2em; }
.projet:hover .lien-fin { letter-spacing: .1em; }

/* ─── page d'un mariage ─── */
.retour { border-bottom: 1px solid; font-size: 1.12rem; font-weight: 500; }
.suite { padding: 16vh var(--marge) 20vh; display: grid; justify-items: center; gap: 2.4rem; text-align: center; }
.suite .plume { font-size: clamp(2.8rem, 5vw, 5.6rem); } .suite-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.auto { row-gap: 12vh; }
.auto .a0 { grid-column: 1 / 6; } .auto .a1 { grid-column: 7 / 12; margin-top: 24vh; } .auto .a2 { grid-column: 2 / 6; } .auto .a3 { grid-column: 7 / 13; } .auto .a4 { grid-column: 4 / 9; } .auto .large { grid-column: 1 / -1; }
@media (max-width: 800px) { .projets { grid-template-columns: 1fr; } .projet .fond { width: 100%; aspect-ratio: 4/5; } .projet .fond video { object-position: 31% 50%; } .auto .a0, .auto .a4 { grid-column: 1 / -1; } .auto .a1, .auto .a3 { grid-column: 4 / 13; } .auto .a2 { grid-column: 1 / 10; } .marque { font-size: .95rem; letter-spacing: .2em; } }

/* ─── dialogues ─── */
dialog { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; inset: 0; background: var(--nuit); color: var(--rose); overflow: hidden; overscroll-behavior: contain; }
dialog[open] { animation: ouvre .7s var(--doux); } dialog::backdrop { background: #04090b; }
@keyframes ouvre { from { opacity: 0; } }
.fermer { min-height: 2.75rem; border-bottom: 1px solid transparent; } .fermer:hover { border-color: currentColor; }
.vue .fermer, .cine .fermer, .menu .fermer { position: absolute; right: var(--marge); top: 1rem; z-index: 3; }
.menu nav { height: 100%; display: grid; align-content: center; gap: 2vh; padding: 0 var(--marge); }
.menu nav > * { font-weight: 200; font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1.15; }

.g-barre { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.875rem var(--marge); background: #0b171be0; backdrop-filter: blur(0.875rem); -webkit-backdrop-filter: blur(0.875rem); }
.g-choix { min-width: 0; display: flex; align-items: center; gap: .2rem 2.6rem; flex-wrap: wrap; } .g-types { font-size: .95rem; } .g-types:empty { display: none; }
.g-filtres { flex-wrap: wrap; }
.g-filtres, .g-actions { display: flex; gap: clamp(0.875rem, 1.8vw, 1.875rem); }
.g-filtres button, .g-actions button { min-height: 2.75rem; white-space: nowrap; font-size: 1rem; }
.g-filtres button { opacity: .62; transition: opacity .3s; } .g-filtres button:hover { opacity: 1; }
.g-filtres [aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.438rem; text-decoration-color: #e88a6c; text-decoration-thickness: 2px; }
.mur { position: absolute; inset: 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; perspective: 75rem; }
.mur.tient { cursor: grabbing; }
.mur .case { position: absolute; left: 0; top: 0; overflow: hidden; will-change: transform; background: var(--petrole); }
.mur img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: filter .9s, transform 1.4s var(--doux); -webkit-user-drag: none; }
@media (hover: hover) { .mur:not(.tient) .case:hover img { transform: scale(1.05); } .mur:has(.case:hover):not(.tient) .case:not(:hover) img { filter: brightness(.55) saturate(.5); } }
.g-indice { position: absolute; left: 50%; bottom: 1.625rem; transform: translateX(-50%); padding: .55em 1.3em; border-radius: 99px; background: #0b171bd9; white-space: nowrap; pointer-events: none; transition: opacity 1s; }
.g-indice.parti { opacity: 0; }
.grille { position: absolute; inset: 0; overflow-y: auto; padding: 5.75rem var(--marge) 3.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr)); gap: 0.75rem; align-content: start; grid-auto-rows: max-content; }
.grille h2 { grid-column: 1 / -1; font-size: 3rem; padding: 1.6rem 0 .6rem; }
.grille[hidden] { display: none; }
.grille button { display: block; aspect-ratio: 2/3; overflow: hidden; background: var(--petrole); }
.grille img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; transition: transform 1.2s var(--doux); } .grille button:hover img { transform: scale(1.04); }

.vue { background: #04090b; } .vue-fond { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(3.75rem) brightness(.42) saturate(1.2); transition: opacity .6s; }
.vue-img { position: absolute; inset: 0; margin: auto; max-width: min(100vw, 100%); max-height: 100dvh; width: auto; height: 100dvh; object-fit: contain; transition: opacity .45s, filter .6s; }
.vue.change .vue-img { opacity: 0; filter: blur(0.75rem); }
.vue-texte { position: absolute; left: var(--marge); bottom: 1.5rem; z-index: 2; max-width: min(24em, 70vw); text-shadow: 0 1px 0.75rem #000; }
.vue-nav { position: absolute; top: 50%; width: 3.75rem; height: 3.75rem; margin-top: -1.875rem; display: grid; place-items: center; z-index: 2; } .vue-nav svg { width: 1.875rem; fill: none; stroke: #fff; stroke-width: 1.3; filter: drop-shadow(0 0 0.375rem #000); }
.prec { left: 0.625rem; } .suiv { right: 0.625rem; }

.cine { background: #000; } .cine video { width: 100%; height: 100%; object-fit: contain; }
.cine-barre { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); padding: 2.5rem var(--marge) 1.25rem; background: linear-gradient(transparent, #000c); color: #fff; transition: opacity .5s; font-size: 1rem; }
.cine-barre button { min-height: 2.75rem; white-space: nowrap; } #c-joue svg { width: 1.625rem; fill: #fff; display: block; }
.cine .i-pause { display: none; } .cine.joue .i-pause { display: block; } .cine.joue .i-joue { display: none; }
#c-temps { flex: 1; min-width: 3.75rem; accent-color: #e5d1c8; height: 1.875rem; } #c-duree { font-variant-numeric: tabular-nums; }
.cine.calme .cine-barre, .cine.calme .fermer { opacity: 0; } .cine.calme { cursor: none; } .cine .fermer { transition: opacity .5s; color: #fff; }

/* curseur : un mot qui suit la souris */
.curseur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .3s; }
.curseur span { display: block; transform: translate(1rem, 0.875rem); padding: .35em .95em; border-radius: 99px; background: var(--rose); color: var(--petrole); font-size: 1rem; font-weight: 500; white-space: nowrap; }
.curseur.la { opacity: 1; } @media (hover: none) { .curseur { display: none; } }

/* ─── téléphone ─── */
@media (max-width: 800px) {
  .liens { display: none; } .menu-bouton { display: block; }
  .tete { padding-block: 0.75rem; } .pied-fixe { padding-block: 0.625rem; }
  .accueil-texte { padding-bottom: 5.5rem; }
  .accueil-bas { flex-direction: column; align-items: start; gap: .8rem !important; } .descendre { display: none; }
  .tableau { padding-block: 9vh 14vh; row-gap: 7vh !important; }
  .t-titre { margin-bottom: 1vh; }
  .tableau figure { margin-top: 0 !important; }
  .matin .m-a, .mairie .n-b, .soir .s-a, .matin .m-d { grid-column: 1 / -1; margin-inline: calc(var(--marge) * -1) !important; }
  .matin .m-b { grid-column: 1 / 10; } .matin .m-t { grid-column: 1 / -1; } .matin .m-c { grid-column: 4 / 13; }
  .mairie .n-a { grid-column: 1 / -1; } .mairie .n-c { grid-column: 4 / 13; grid-row: auto; } .mairie .n-d { grid-column: 1 / 10; grid-row: auto; }
  .portail { height: 190vh; } .portail-cadre { clip-path: inset(calc((1 - var(--p)) * 32%) calc((1 - var(--p)) * 14%)); }
  .regard-cadre { left: 0; right: 0; transform: none; aspect-ratio: auto; -webkit-mask: none; mask: none; }
  .regard-cadre img { object-position: 62% 50%; }
  .dit { font-size: 13vw; } .d1 { bottom: 13vh; max-width: 3.4em; } .d2 { top: 12vh; } .d3 { top: 12vh; bottom: auto; }
  .bambous { height: 420vh; } .file .b-haut { --h: 78svh; } .file .b-moyen { --h: 56svh; } .file .b-petit { --h: 42svh; } .file .b-t { font-size: 15vw; }
  .cascade { height: 112svh; } .cascade blockquote .plume { font-size: 14vw; }
  .rocher .c-a { grid-column: 1 / -1; } .rocher .c-b { grid-column: 4 / 13; } .rocher .c-c { grid-column: 1 / 10; } .rocher .c-d { grid-column: 1 / -1; }
  .appel { grid-template-columns: 1fr; gap: 4vh; padding-block: 6vh 16vh; } .appel-texte { justify-self: start; text-align: left; } .appel-photo { height: auto; width: 100%; }
  
  .ville .v-a { grid-column: 1 / -1; margin-inline: calc(var(--marge) * -1); } .ville .v-b { grid-column: 1 / 10; grid-row: auto; } .ville .v-t { grid-column: 1 / -1; grid-row: auto; margin: 0; } .ville .v-c { grid-column: 4 / 13; grid-row: auto; }
  .rang .photo { flex-basis: 66vw; }
  .soir .s-b { grid-column: 2 / -1; } .soir .s-t { grid-column: 1 / -1; }
  .films .affiche { justify-self: stretch; margin-inline: calc(var(--marge) * -1); width: auto; }
  .invite-mur { grid-template-columns: repeat(4, 1fr); inset: -8% -20%; } .invite-mur div:nth-child(n+5) { display: none; }
  .offre ul { grid-template-columns: 1fr; } .offre li + li { border-left: 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
  .papier { padding: 12vw 7vw; } .ligne { flex-wrap: wrap; } .ligne input, .ligne select { flex-basis: 100%; }
  .joindre-grille { grid-auto-flow: row; grid-auto-columns: auto; } .ligne > span { white-space: normal; } .lettre { font-size: 1.4rem; } .contact { grid-template-columns: minmax(0, 1fr); } .projet .noms { font-size: 21vw; } .joindre-grille a + a { border-left: 0; border-top: 1px solid #e5d1c840; }
  .portrait { grid-template-columns: 1fr; gap: 7vh; } .portrait figure { margin-right: 12vw; } .message { aspect-ratio: auto; padding: 14vw 8vw; }
  .g-choix { flex-wrap: nowrap; flex-direction: column; align-items: stretch; } .index-mariages a { flex-direction: column; gap: .2rem; } .rep-liste { grid-template-columns: 1fr; }
  .g-barre { flex-direction: column-reverse; align-items: stretch; gap: 0; padding-block: 0.375rem 1rem; }
  .g-actions { justify-content: space-between; } .g-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--marge) * -1); padding-inline: var(--marge); }
  .grille { grid-template-columns: 1fr 1fr; padding-top: 10.6rem; gap: 0.5rem; }
  .vue-img { height: auto; width: 100vw; max-height: 86dvh; } .vue-nav { top: auto; bottom: 0.625rem; margin: 0; } .prec { left: auto; right: 4.375rem; } .vue-texte { max-width: 56vw; }
  #c-plein { display: none; } .cine-barre { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; } .photo button, .boucle video { clip-path: none !important; } .photo img { transform: none !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .7s; }
