/* NADIS — design directions (mockups). Shared reset and mechanics; each direction styles the rest. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block: 90px 15vh; }
/* Bleeds written with 100vw never add a sideways scroll (classic scrollbars on Windows). */
main { overflow-x: clip; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* Focus ring: each direction sets --focus (and --focus-halo) per light or dark area; the outline alone
   must read, because components may replace the halo with their own box-shadow. */
:focus-visible { outline: 2px solid var(--focus, #1F1B18); outline-offset: 3px; box-shadow: 0 0 0 5px var(--focus-halo, #FFFFFF); }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #000; color: #fff; text-decoration: none; }
.evitement:focus { top: 12px; }

/* Logo: inlined SVG, coloured per direction. */
[data-logo] { display: block; line-height: 0; }
[data-logo] svg { width: 100%; height: auto; }

/* Photos fill their frame. */
.cadre { position: relative; overflow: hidden; }
.cadre > img, .cadre > picture > img { width: 100%; height: 100%; object-fit: cover; }

/* Carousel track: native scroll, snap, no visible scrollbar. */
.piste { display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.piste::-webkit-scrollbar { display: none; }
.piste > * { scroll-snap-align: start; }
.piste.glisse { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.piste.glisse * { pointer-events: none; }
.progression { position: relative; height: 1px; overflow: hidden; }
.progression span { position: absolute; inset: 0 auto 0 0; width: 30%; transition: transform .25s ease-out; }

/* Hero slideshow: stacked views, crossfade; the slow zoom lives on the image. */
[data-diaporama] { position: relative; }
[data-diaporama] .vue { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); }
[data-diaporama] .vue.active { opacity: 1; z-index: 1; }
[data-diaporama] .vue.sortie { z-index: 0; }
[data-diaporama] .vue img { width: 100%; height: 100%; object-fit: cover; }
.anime [data-diaporama] .vue img { transform: scale(1.02); transition: transform 9s cubic-bezier(.2, .6, .2, 1); }
.anime [data-diaporama] .vue.active img { transform: scale(1.1); }

/* Price change feedback on duration chips. */
@keyframes pulse-prix { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.anime .pulse { animation: pulse-prix .5s cubic-bezier(.16, 1, .3, 1); }

/* Gallery main photo swap. */
.principale img { transition: opacity .26s ease; }
.principale img.change { opacity: 0; }

.cache { display: none !important; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Pause button for what moves on its own: slideshows, review rotations, endless decoration (WCAG 2.2.2). */
.pause-anim { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: rgba(20, 15, 12, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pause-anim svg { width: 14px; height: 14px; fill: currentColor; }
.pause-anim .i-lecture, .pause-anim[aria-pressed="true"] .i-pause { display: none; }
.pause-anim[aria-pressed="true"] .i-lecture { display: inline; }
[data-diaporama] > .pause-anim, [data-pause-animations] > .pause-anim { position: absolute; right: 16px; bottom: 16px; z-index: 6; }
.points .pause-anim { width: 32px; height: 24px; margin-left: 6px; color: inherit; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.en-pause .vue img { transition: none !important; }
.anims-pause *, .anims-pause *::before, .anims-pause *::after { animation-play-state: paused !important; }

/* Anything that takes keyboard focus is shown even if its reveal never ran. */
.anime [data-reveal]:focus-within { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* Print shows everything: no pending reveal, no lamp mask. */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .lueur img { -webkit-mask-image: none !important; mask-image: none !important; }
  [data-flottant], .avis-ui, .resa-panneau, .resa-voile, .pause-anim { display: none !important; }
}
