/* ==========================================================================
   CA Conciergerie — accueil : « la côte, la nuit » (refonte-design)
   Chargée par l'accueil seul, après site.css. Toutes les règles portent sur body.accueil ou sur des classes az-*,
   qui n'existent que là : aucune autre page n'est touchée.
   Par défaut (sans JavaScript), tout est visible, à la suite. Les mises en scène s'ajoutent par classes sur <html> :
   az-js (accueil.js a démarré), az-3d (la scène WebGL prend la place de l'image fixe), az-statique (image fixe seule),
   az-calme (mouvement réduit : fondus seulement).
   ========================================================================== */
@property --az-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.accueil {
  --az-night: #03060F; --az-navy: #071226; --az-ivory: #F3EBDD;
  --az-text: rgba(243, 235, 221, .86); --az-mute: rgba(243, 235, 221, .68);
  --az-azur: #5CE1FF; --az-amber: #FFC98A;
  --az-hair: rgba(92, 225, 255, .22); --az-hair-soft: rgba(243, 235, 221, .14);
  --az-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--az-night);
}
.accueil .footer { position: relative; z-index: 1; }            /* au-dessus de la scène fixe */
/* l'en-tête commun, habillé ici seulement : un dégradé garde le menu lisible sur la scène, même sans script */
.accueil .header--over:not(.is-scrolled) { background: linear-gradient(180deg, rgba(3, 6, 15, .72), rgba(3, 6, 15, 0)); }
.accueil .header.is-scrolled { background: rgba(3, 6, 15, .78); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Le fond : image fixe, puis la scène ---------- */
.az-main {
  position: relative; z-index: 0; color: var(--az-text);
  /* les composants partagés (liens, étiquettes, film) lisent ces variables : même inversion que .main--night */
  --ink: #F7F1E6; --ink-soft: rgba(247, 241, 230, .76); --ink-faint: rgba(247, 241, 230, .52);
  --navy: #F3EBDD; --navy-deep: #FFFFFF; --ivory: #0C1430; --paper: #070B1C;
  --sand: rgba(255, 240, 214, .26); --sand-faint: rgba(24, 36, 82, .42); --hair: 1px solid var(--sand);
  --amber: #FFC98A; --night-ink: #F7F1E6;
}
.az-main .film { --navy: #0B1F33; --navy-deep: #081627; --ivory: #F3EBDD; --paper: #F6F1E8; }
.az-main :focus-visible { outline: 2px solid var(--az-azur); outline-offset: 4px; }
.az-stage { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; background: var(--az-night); }
.az-stage__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.az-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.5s ease; }
.az-stage.is-live .az-stage__canvas { opacity: 1; }
.az-stage.is-live .az-stage__poster { visibility: hidden; transition: visibility 0s 1.6s; }
.az-stage__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 15, .62) 0, rgba(3, 6, 15, 0) 17%),
    linear-gradient(90deg, rgba(3, 6, 15, .78) 0, rgba(3, 6, 15, .46) 30%, rgba(3, 6, 15, 0) 60%),
    linear-gradient(0deg, rgba(3, 6, 15, .74) 0, rgba(3, 6, 15, 0) 36%);
}
[data-az-heure="jour"] .az-stage__veil { background-color: rgba(3, 6, 15, .26); }      /* ciel clair : le texte garde son contraste */
[data-az-heure="aube"] .az-stage__veil { background-color: rgba(3, 6, 15, .2); }
[data-az-heure="soir"] .az-stage__veil { background-color: rgba(3, 6, 15, .1); }
/* Avec JavaScript et mouvement : l'image attend, en veilleuse, que la scène s'allume par-dessus. Sans script, ou si la
   scène ne vient pas (az-statique, az-attente), elle reste en pleine lumière. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .az-stage__poster img { filter: brightness(.4) saturate(.65); transition: filter 1.8s ease; }
  .az-statique .az-stage__poster img, .az-attente .az-stage__poster img { filter: none; }
}

/* ---------- Typographie ---------- */
.az-eyebrow { display: block; margin-bottom: 1.1rem; color: var(--az-azur); }
.az-h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: .98; letter-spacing: .012em;
  color: var(--az-ivory); text-wrap: balance;
}
.az-h2--s { font-size: clamp(1.55rem, 2.9vw, 2.6rem); line-height: 1.02; }
.az-h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: .02em; color: var(--az-ivory); }
.az-text { margin-top: 1.4rem; max-width: 58ch; font-weight: 300; font-size: 1.04rem; line-height: 1.65; }
.az-small { margin-top: 1rem; max-width: 62ch; font-size: .86rem; line-height: 1.55; color: var(--az-mute); }
.az-more { margin-top: 2rem; }
.az-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; }
.az-prose { margin-top: 1.6rem; max-width: 60ch; font-weight: 300; font-size: 1.04rem; line-height: 1.68; }
.az-prose p + p { margin-top: 1em; }
.az-main .link { color: var(--az-ivory); position: relative; border-bottom-color: var(--az-hair-soft); }
.az-main .link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--az-azur);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--az-ease);
}
.az-main .link:hover::before, .az-main .link:focus-visible::before { transform: scaleX(1); }
.az-main .link--inline { border-bottom-color: rgba(92, 225, 255, .45); transition: border-color .3s, color .3s; }
.az-main .link--inline:hover { border-bottom-color: var(--az-azur); color: #fff; }

/* ---------- Panneau de verre : le texte reste lisible sur la scène ---------- */
.az-panel {
  position: relative; z-index: 2;
  padding: clamp(24px, 3.4vw, 52px);
  /* --az-glass : opacité du verre, réglée par accueil.js selon l'heure (plus dense quand la scène est claire) */
  background: linear-gradient(155deg, rgba(8, 20, 42, var(--az-glass, .82)), rgba(3, 8, 20, calc(var(--az-glass, .82) - .08)));
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--az-hair-soft); border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.az-panel::before, .az-panel::after {            /* repères d'angle */
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 1px solid var(--az-azur); opacity: .8;
}
.az-panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.az-panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.az-sec { position: relative; padding: clamp(84px, 15vh, 190px) 0; }

/* ---------- Boutons ---------- */
.az-btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 58px; padding: 0 30px; border-radius: 2px;
  font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; text-align: center; overflow: hidden;
  transition: color .45s var(--az-ease), background-color .45s var(--az-ease), border-color .45s var(--az-ease), box-shadow .45s var(--az-ease);
}
.az-btn::after {                                   /* la marée monte dans le bouton */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--az-ease);
}
.az-btn:hover::after, .az-btn:focus-visible::after { transform: none; }
.az-btn:active { transform: scale(.985); }
.az-btn--main { background: var(--az-ivory); color: #050D1C; overflow: visible; box-shadow: 0 0 0 1px rgba(243, 235, 221, .25), 0 14px 50px rgba(92, 225, 255, .2); }
.az-btn--main::after { background: var(--az-azur); border-radius: 2px; }
.az-btn--main:hover { box-shadow: 0 0 0 1px var(--az-azur), 0 14px 60px rgba(92, 225, 255, .45); }
.az-btn--main::before {                            /* le filet de lumière qui fait le tour */
  content: ""; position: absolute; inset: -3px; border-radius: 4px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--az-a), rgba(92, 225, 255, 0) 0 70%, var(--az-azur) 88%, #fff 94%, rgba(92, 225, 255, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: az-orbit 6s linear infinite;
}
@keyframes az-orbit {
  0%, 52% { --az-a: 0deg; opacity: 0; }
  56% { opacity: 1; }
  96% { opacity: 1; }
  100% { --az-a: 360deg; opacity: 0; }
}
.az-btn__arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .45s var(--az-ease); }
.az-btn__arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.az-btn:hover .az-btn__arrow { width: 34px; }
.az-btn--ghost { color: var(--az-ivory); border: 1px solid rgba(243, 235, 221, .42); background: rgba(3, 8, 20, .35); }
.az-btn--ghost::after { background: var(--az-ivory); }
.az-btn--ghost:hover, .az-btn--ghost:focus-visible { color: #050D1C; border-color: var(--az-ivory); }
.az-cta { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }

/* ---------- Hero ---------- */
/* Comme une affiche : le titre dans le ciel, la côte au milieu, l'action sur la mer */
.az-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; padding: calc(var(--header-h) + clamp(10px, 3.4vh, 40px)) 0 clamp(64px, 9vh, 104px); }
.az-hero__in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34vh; }
.accueil .az-hero .hero__eyebrow { color: var(--az-azur); text-shadow: 0 1px 12px rgba(3, 6, 15, .9); }
.accueil .az-title {
  margin-top: 1.1rem; max-width: 11.6em; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.1vw, 6rem); line-height: .9; letter-spacing: .004em;
  color: var(--az-ivory); text-shadow: 0 0 44px rgba(92, 225, 255, .22), 0 2px 30px rgba(3, 6, 15, .7); text-wrap: balance;
}
/* ciel clair (jour, aube, crépuscule) : une ombre douce derrière le titre lui garde un contraste d'au moins 3 pour 1 */
.accueil .az-title { position: relative; isolation: isolate; }
.accueil .az-title::before { content: ""; position: absolute; inset: -6px -18px; z-index: -1; border-radius: 12px; background: rgba(3, 6, 15, .44); box-shadow: 0 0 46px 34px rgba(3, 6, 15, .44); opacity: 0; transition: opacity 1.2s ease; }
[data-az-heure="jour"] .az-title::before, [data-az-heure="aube"] .az-title::before, [data-az-heure="soir"] .az-title::before { opacity: 1; }
.az-hero__lede { max-width: 46ch; font-weight: 300; font-size: clamp(1.02rem, 1.25vw, 1.22rem); line-height: 1.55; color: var(--az-ivory); text-shadow: 0 1px 14px rgba(3, 6, 15, .95); }
.az-hero .az-cta { margin-top: clamp(1.8rem, 3.4vh, 2.8rem); }
/* le H1 s'allume lettre après lettre, comme les lumières d'une ville (accueil.js pose az-l ; sans script, tout est allumé) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .az-title:not(.is-split) { opacity: .4; animation: az-secours .8s 3.5s forwards; }   /* filet de sécurité si le script ne vient pas */
}
@keyframes az-secours { to { opacity: 1; } }
.az-w { display: inline-block; white-space: nowrap; }
.az-l { display: inline-block; opacity: .4; }
.az-l.is-lit { animation: az-allume 1s var(--az-ease) forwards; }
@keyframes az-allume {
  0% { opacity: .4; text-shadow: none; }
  16% { opacity: 1; text-shadow: 0 0 22px var(--az-azur), 0 0 3px #fff; color: #fff; }
  30% { opacity: .7; }
  46% { opacity: 1; text-shadow: 0 0 16px rgba(92, 225, 255, .8); }
  100% { opacity: 1; }
}
.az-hud {
  position: absolute; right: var(--gutter); bottom: clamp(64px, 9vh, 104px); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--az-text); padding: 12px 14px;
  background: rgba(3, 6, 15, .55); border-right: 1px solid var(--az-azur); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.az-hud[hidden] { display: none; }
.az-hud span:last-child { color: var(--az-azur); }
.az-hud span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--az-azur); box-shadow: 0 0 10px var(--az-azur); animation: az-pulse 2.4s ease-in-out infinite; }
@keyframes az-pulse { 50% { opacity: .25; } }
.az-scroll { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 54px; margin-left: -22px; display: flex; justify-content: center; }
.az-scroll__line { width: 1px; height: 100%; background: linear-gradient(180deg, rgba(243, 235, 221, 0), var(--az-ivory)); transform-origin: top; animation: az-coule 2.6s var(--az-ease) infinite; }
@keyframes az-coule { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- En bref, chiffres clés ---------- */
.az-brief__panel { max-width: 1040px; }
.az-brief__text { margin-top: 1.5rem; max-width: 62ch; font-weight: 300; font-size: 1.06rem; line-height: 1.6; }
.az-figs { margin: clamp(2rem, 4vw, 3.2rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--az-hair-soft); }
.az-fig { padding: 1.5rem 1.4rem 0 0; }
.az-fig + .az-fig { padding-left: 1.4rem; border-left: 1px solid var(--az-hair-soft); }
.az-fig__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 5.6vw, 5.2rem); line-height: .9; color: var(--az-ivory); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; text-shadow: 0 0 34px rgba(92, 225, 255, .28); }
.az-fig__n small { font-family: var(--font-body); font-weight: 300; font-size: .26em; letter-spacing: .08em; text-transform: uppercase; color: var(--az-azur); }
.az-fig dd { margin: .9rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--az-mute); }
.az-brief__list { margin-top: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.4rem; font-size: .95rem; line-height: 1.5; }
.az-brief__list li { display: flex; flex-direction: column; gap: .35rem; padding-top: 1rem; border-top: 1px solid var(--az-hair-soft); }
.az-key { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--az-amber); }

/* ---------- Bandeau défilant ---------- */
.az-marquee { position: relative; z-index: 2; padding: clamp(18px, 3vw, 40px) 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.az-marquee__row { display: flex; white-space: nowrap; }
.az-marquee__track { display: flex; flex: none; align-items: baseline; }
.az-marquee__track span { font-weight: 200; font-size: clamp(2.2rem, 6.4vw, 5.6rem); line-height: 1.12; letter-spacing: .06em; text-transform: uppercase; color: rgba(243, 235, 221, .9); padding: 0 .1em; }
.az-marquee__track span::after { content: ""; display: inline-block; width: .16em; height: .16em; margin: 0 .5em; vertical-align: middle; border-radius: 50%; background: var(--az-azur); box-shadow: 0 0 14px var(--az-azur); }
.az-marquee__row--back .az-marquee__track span { font-size: clamp(1.1rem, 2.6vw, 2.2rem); color: var(--az-amber); letter-spacing: .2em; font-weight: 300; }
.az-marquee__row--back .az-marquee__track span::after { background: var(--az-amber); box-shadow: none; opacity: .6; }
.az-js .az-marquee__row { animation: az-defile 70s linear infinite; }
.az-js .az-marquee__row--back { animation-duration: 54s; animation-direction: reverse; margin-top: .6rem; }
@keyframes az-defile { to { transform: translateX(-50%); } }

/* ---------- La maison ---------- */
/* Un seul panneau : le texte, et la photo en porte-fenêtre découpée dans la nuit. Sa lumière du matin éclaire le panneau ;
   à l'arrivée du bloc, les persiennes s'ouvrent (« les volets qu'on a ouverts avant l'arrivée »). */
.az-house__panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  background-image: radial-gradient(ellipse 46% 70% at 80% 50%, rgba(255, 201, 138, .11), rgba(255, 201, 138, 0) 70%), linear-gradient(155deg, rgba(8, 20, 42, var(--az-glass, .82)), rgba(3, 8, 20, calc(var(--az-glass, .82) - .08)));
}
.az-photo { position: relative; z-index: 2; margin: 0; overflow: hidden; }
.az-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.az-house__photo {
  justify-self: center; width: min(100%, 400px); aspect-ratio: 5 / 7; border-radius: 999px 999px 3px 3px;
  box-shadow: 0 0 0 1px rgba(255, 233, 199, .5), 0 0 0 11px rgba(8, 20, 42, .9), 0 0 0 12px var(--az-hair), 0 0 90px 10px rgba(255, 201, 138, .2), 0 40px 90px rgba(0, 0, 0, .5);
}
.az-house__photo picture { display: block; width: 100%; height: 100%; }
.az-shutters { position: absolute; inset: 0; display: none; pointer-events: none; }
.az-shutters::before, .az-shutters::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: repeating-linear-gradient(180deg, #0B1930 0 9px, #071226 9px 11px);
  transition: transform 1.7s var(--az-ease) .25s;
}
.az-shutters::before { left: 0; }
.az-shutters::after { right: 0; }
.az-js .az-shutters { display: block; }
.az-js .az-house__photo[data-az-in] { transform: none; }
.az-js .is-in > .az-shutters::before { transform: translateX(-101%); }
.az-js .is-in > .az-shutters::after { transform: translateX(101%); }

/* ---------- Méthode : quatre temps le long du trait de côte ---------- */
.az-method { position: relative; padding: clamp(60px, 10vh, 120px) 0; }
.az-method__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px) clamp(24px, 4vw, 64px); align-items: center; }
.az-method__map { position: relative; aspect-ratio: 1000 / 420; }
.az-method__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.az-method__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.az-method__base { stroke: rgba(243, 235, 221, .2); stroke-width: 1; }
.az-method__lit { stroke: var(--az-azur); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(92, 225, 255, .9)); stroke-dasharray: 1; stroke-dashoffset: 0; }
.az-method__from, .az-method__to { position: absolute; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--az-mute); }
.az-method__from { left: 0; bottom: -6px; }
.az-method__to { right: 0; top: -22px; }
.az-node { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; }
.az-node i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--az-night); border: 1px solid var(--az-azur); transition: background .5s, box-shadow .5s, transform .5s var(--az-ease); }
.az-node b { position: absolute; left: 12px; top: -30px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.25rem; color: var(--az-mute); transition: color .5s; }
.az-node.is-on i { background: #fff; box-shadow: 0 0 0 5px rgba(92, 225, 255, .22), 0 0 22px var(--az-azur); transform: scale(1.15); }
.az-node.is-on b { color: var(--az-amber); }
.az-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 36px); counter-reset: none; }
.az-step { position: relative; padding-top: 1.3rem; border-top: 1px solid var(--az-hair-soft); font-size: .93rem; line-height: 1.55; }
.az-step::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--az-azur); box-shadow: 0 0 10px var(--az-azur); transform-origin: left; }
.az-step__num { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--az-amber); }
.az-step__h { margin: .3rem 0 .7rem; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: .03em; color: var(--az-ivory); }
.az-step p { font-weight: 300; }
/* avec le script : les temps attendent en veilleuse, puis s'allument un à un au défilement */
.az-js .az-node { display: block; }
.az-js .az-method.is-armed .az-step { opacity: .72; transition: opacity .8s var(--az-ease); }
.az-js .az-method.is-armed .az-step::before { transform: scaleX(0); transition: transform 1s var(--az-ease); }
.az-js .az-method.is-armed .az-step.is-on, .az-js .az-method.is-armed .az-step:focus-within { opacity: 1; }
.az-js .az-method.is-armed .az-step.is-on::before { transform: scaleX(1); }

/* ---------- Territoire ---------- */
.az-terr { position: relative; padding: clamp(60px, 10vh, 120px) 0; }
.az-terr__panel { max-width: 560px; }
.az-chapters { margin-top: 1.8rem; display: grid; gap: 1.3rem; }
.az-chapter { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 1.2rem; border-top: 1px solid var(--az-hair-soft); font-size: .92rem; line-height: 1.5; transition: opacity .8s var(--az-ease), grid-template-columns .8s var(--az-ease); }
.az-chapter__img { margin: 0; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--az-hair-soft); }
.az-chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.az-chapter__h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.22rem; letter-spacing: .03em; color: var(--az-ivory); margin-bottom: .35rem; }
.az-chapter p { font-weight: 300; }
.az-chapter__links { margin-top: .5rem; font-size: .86rem; }
.az-terr__hint { display: none; margin-top: 1.4rem; padding-left: 16px; border-left: 1px solid var(--az-azur); font-size: .82rem; letter-spacing: .04em; color: var(--az-mute); }
.az-terr__list { padding-top: clamp(40px, 7vh, 90px); }
.az-terr__listhead { position: relative; z-index: 2; max-width: 640px; }

/* les communes : une liste de cartes sans la scène ; des noms posés sur la côte avec elle */
.az-towns { position: relative; z-index: 2; margin-top: 1.8rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.az-town__link { display: block; height: 100%; padding: 18px 20px; background: rgba(6, 16, 34, .78); border: 1px solid var(--az-hair-soft); border-radius: 2px; transition: border-color .35s, background .35s; }
.az-town__link:hover, .az-town__link:focus-visible { border-color: var(--az-azur); background: rgba(8, 22, 46, .92); }
.az-town__name { display: none; }
.az-town__card { display: grid; gap: .3rem; font-size: .84rem; line-height: 1.4; color: var(--az-mute); }
.az-town__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.12rem; letter-spacing: .04em; color: var(--az-ivory); margin-bottom: .2rem; }
.az-town__fig b { font-weight: 500; color: var(--az-amber); }
.az-town__more { margin-top: .4rem; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--az-azur); }
.az-town__more::after { content: " →"; }

.az-places .az-terr__listhead { display: none; }
.az-places .az-terr__hint { display: block; }
.az-places .az-terr__list { padding: 0; }
.az-places .az-towns { position: fixed; inset: 0; z-index: 1; margin: 0; display: block; pointer-events: none; }
/* Les fondus n'arrivent qu'une fois les noms posés (az-pret) : au passage de la liste aux noms, rien ne doit se voir. */
.az-places .az-town { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.az-pret .az-town { transition: opacity .6s ease; }
.az-places .az-town__link {
  position: absolute; left: 0; top: 0; height: auto; transform: translate(-50%, -100%); padding: 6px 4px; pointer-events: auto;
  background: none; border: 0; white-space: nowrap;
}
.az-places .az-town.is-off .az-town__link { pointer-events: none; }
.az-places .az-town__name {
  display: block; padding: 4px 8px 4px 9px; font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--az-ivory);
  background: rgba(3, 6, 15, .58); border-radius: 2px; transition: color .3s, letter-spacing .5s var(--az-ease), background-color .3s;
}
.az-places .az-town--base .az-town__name { font-size: .74rem; color: #fff; }
.az-places .az-town--base .az-town__name::after { content: ""; display: block; height: 1px; margin-top: 5px; background: linear-gradient(90deg, transparent, var(--az-azur), transparent); }
.az-places .az-town__link:hover .az-town__name, .az-places .az-town__link:focus-visible .az-town__name { color: var(--az-azur); letter-spacing: .28em; background: rgba(3, 6, 15, .85); }
.az-places .az-town__card {
  position: absolute; left: 50%; bottom: calc(100% + 4px); width: max-content; max-width: 270px; white-space: normal; padding: 16px 18px;
  background: linear-gradient(155deg, rgba(8, 22, 46, .96), rgba(3, 8, 20, .94)); border: 1px solid var(--az-hair); border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 30px rgba(92, 225, 255, .12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
}
.az-pret .az-town__card { transition: opacity .35s ease, transform .5s var(--az-ease), visibility 0s .35s; }
.az-places .az-town.is-flip .az-town__card { bottom: auto; top: calc(100% + 4px); }
.az-places .az-town__link:hover .az-town__card, .az-places .az-town__link:focus-visible .az-town__card { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.az-places .az-town:hover, .az-places .az-town:focus-within { z-index: 5; }
.az-places .az-town:focus-within { opacity: 1 !important; }
.az-places .az-town__link:focus-visible { outline-offset: 2px; }
.az-statique .az-towns { opacity: 0; }
.az-statique.az-pret .az-towns { transition: opacity .6s ease; }
.az-statique .az-towns.is-on { opacity: 1; }
.az-statique .az-town { opacity: 1; }

/* ---------- Espace propriétaire ---------- */
/* Un seul panneau, comme une pièce la nuit : le texte à gauche ; à droite, l'ordinateur où passe la vidéo et, devant lui, le
   téléphone avec le vrai tableau de bord, posés sur une table dont on voit le reflet. Leur lumière éclaire le panneau. */
.az-space__panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  background-image: radial-gradient(ellipse 46% 62% at 74% 50%, rgba(92, 225, 255, .12), rgba(92, 225, 255, 0) 70%), radial-gradient(ellipse 15% 34% at 93% 56%, rgba(255, 233, 199, .12), rgba(255, 233, 199, 0) 70%), linear-gradient(155deg, rgba(8, 20, 42, var(--az-glass, .82)), rgba(3, 8, 20, calc(var(--az-glass, .82) - .08)));
}
.az-space__copy .az-h2 { font-size: clamp(1.5rem, 2.25vw, 2.1rem); line-height: 1.04; }
.az-space__show { min-width: 0; }
.az-space__stage { position: relative; padding: 0 13% 0 6%; }
.az-laptop { position: relative; }
.az-laptop__screen {
  position: relative; padding: 2.2% 2.2% 2.8%; border-radius: 16px 16px 3px 3px;
  background: linear-gradient(180deg, #131E33, #070D1A);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .17), 0 0 90px rgba(92, 225, 255, .2), 0 -10px 60px rgba(92, 225, 255, .08);
}
.az-laptop__screen .film { border: 0; border-radius: 3px; }
.az-laptop__screen .film--tall { max-width: none; }
.az-laptop__base {
  display: block; position: relative; height: 15px; margin: 0 -7.5%; border-radius: 2px 2px 18px 18px / 2px 2px 13px 13px;
  background: linear-gradient(180deg, #3A4866 0, #1B2640 24%, #0A111F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 34px rgba(0, 0, 0, .55);
}
.az-laptop__base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 8px 8px; background: #060B16; }
/* la table : un filet de lumière, et le reflet des écrans dessous */
.az-space__stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(92, 225, 255, 0), rgba(92, 225, 255, .55) 30%, rgba(92, 225, 255, .55) 70%, rgba(92, 225, 255, 0));
}
.az-space__stage::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: 64px; pointer-events: none;
  background: radial-gradient(ellipse 46% 100% at 46% 0, rgba(92, 225, 255, .24), rgba(92, 225, 255, 0) 72%), radial-gradient(ellipse 13% 80% at 89% 0, rgba(255, 233, 199, .26), rgba(255, 233, 199, 0) 72%);
}
.az-phone {
  position: absolute; right: 0; bottom: 0; z-index: 2; width: 22.5%; margin: 0; padding: 1.1%; border-radius: 13% / 6.2%;
  background: #0B1220; transform: rotate(2.5deg); transform-origin: bottom center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .24), 0 26px 50px rgba(0, 0, 0, .6), 0 0 70px rgba(255, 233, 199, .22);
}
.az-phone picture { display: block; aspect-ratio: 9 / 18.6; overflow: hidden; border-radius: 11% / 5.3%; }
.az-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.az-space__notes { margin-top: 78px; padding-left: 6%; }
.az-space__notes .film__caption { margin-top: 0; }
.az-space__notes .film__caption, .az-space__notes .film__text { color: var(--az-mute); }
/* à l'arrivée du bloc, l'écran s'allume, puis le téléphone se pose */
.az-js .az-laptop__screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #050A14; opacity: 1; pointer-events: none; transition: opacity 1.3s ease .35s; }
.az-js .is-in .az-laptop__screen::after { opacity: 0; }
.az-js .az-phone { opacity: 0; transform: translateY(26px) rotate(2.5deg); transition: opacity .9s ease .8s, transform 1.2s var(--az-ease) .8s; }
.az-js .is-in > .az-phone { opacity: 1; transform: rotate(2.5deg); }

/* ---------- Bande profonde : services, partenaires, deux entrées ; ses bords sont des vagues ---------- */
.az-deep { position: relative; z-index: 2; margin-top: 120px; background: rgba(3, 8, 20, .9); }
.az-wave { position: absolute; left: 0; right: 0; height: clamp(60px, 9vw, 120px); overflow: hidden; pointer-events: none; }
.az-wave--top { bottom: calc(100% - 1px); }
.az-wave--bottom { top: calc(100% - 1px); }
.az-wave svg { position: absolute; left: 0; top: 0; width: 200%; height: 100%; max-width: none; }
.az-wave path { fill: rgba(3, 8, 20, .9); }
.az-wave__back { fill: rgba(3, 8, 20, .45) !important; }
.az-js .az-wave svg { animation: az-houle 26s linear infinite; }
.az-js .az-wave--bottom svg { animation-duration: 34s; animation-direction: reverse; }
@keyframes az-houle { to { transform: translateX(-50%); } }
.az-services__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.az-lines { border-top: 1px solid var(--az-hair-soft); }
.az-line { position: relative; display: grid; grid-template-columns: 3.2em minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--az-hair-soft); transition: padding .5s var(--az-ease), background .5s; }
.az-line::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--az-azur); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--az-ease); }
.az-line:hover { padding-left: 14px; }
.az-line:hover::after { transform: scaleX(1); }
.az-line__num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--az-amber); }
.az-line__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.2rem, 1.9vw, 1.7rem); letter-spacing: .03em; color: var(--az-ivory); }
.az-line__note { font-size: .86rem; color: var(--az-mute); text-align: right; }
/* ---------- Les deux entrées : posées sur la scène, sans carte ni photo, chacune sous son point de lumière ---------- */
.az-doors { display: flex; align-items: flex-end; padding: clamp(220px, 40vh, 440px) 0 clamp(72px, 12vh, 130px); }
/* le rideau : une bande sombre derrière le texte, fondue en haut comme en bas (--az-rideau suit l'heure de la scène) */
.az-doors::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: min(100%, clamp(440px, 76vh, 680px)); pointer-events: none; background: linear-gradient(0deg, rgba(3, 6, 15, 0) 0, rgba(3, 6, 15, calc(var(--az-rideau, .88) * .84)) 20%, rgba(3, 6, 15, calc(var(--az-rideau, .88) * .62)) 58%, rgba(3, 6, 15, 0) 100%); }
.az-doors__in { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* colonne : étiquette et titre en haut, lien au bas ; les deux liens tombent donc sur la même ligne */
.az-door { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 clamp(16px, 3vw, 48px) 0 clamp(18px, 2.4vw, 34px); border-left: 1px solid rgba(243, 235, 221, .3); color: #F3EBDD; text-shadow: 0 2px 20px rgba(3, 6, 15, 1), 0 0 44px rgba(3, 6, 15, .9); --az-mat: clamp(70px, 12vh, 150px); }
.az-door::before { content: ""; position: absolute; left: -1px; bottom: 100%; width: 1px; height: var(--az-mat); background: linear-gradient(0deg, rgba(243, 235, 221, .3), rgba(255, 201, 138, .9)); }
.az-door::after { content: ""; position: absolute; left: -5.5px; bottom: calc(100% + var(--az-mat)); width: 10px; height: 10px; border-radius: 50%; background: #FFE9C7; box-shadow: 0 0 0 5px rgba(255, 201, 138, .16), 0 0 26px 6px rgba(255, 201, 138, .5); transition: box-shadow .6s var(--az-ease); }
.az-door:hover::after, .az-door:focus-visible::after { box-shadow: 0 0 0 9px rgba(255, 201, 138, .2), 0 0 44px 14px rgba(255, 201, 138, .6); }
.az-door .label { color: var(--az-azur); }
.az-door__title { margin-top: .85rem; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.02; letter-spacing: .015em; max-width: 18ch; text-wrap: balance; }
.az-door__line { margin: .85rem 0 1.6rem; max-width: 40ch; font-weight: 300; font-size: .98rem; line-height: 1.55; color: rgba(243, 235, 221, .9); }
.az-door .link { color: #F3EBDD; margin-top: auto; }
.az-main .az-door:hover .link::before, .az-main .az-door:focus-visible .link::before { transform: scaleX(1); }

/* ---------- Note de maison ---------- */
.az-note { text-align: center; padding-top: clamp(150px, 24vh, 260px); }
.az-note .wrap { position: relative; z-index: 2; isolation: isolate; }
.az-note .wrap::before { content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px; width: min(92%, 760px); transform: translateX(-50%); z-index: -1; border-radius: 40px; background: rgba(3, 6, 15, .4); box-shadow: 0 0 70px 50px rgba(3, 6, 15, .4); }
.az-note .label { color: var(--az-azur); }
.az-note__text { margin: 1.4rem auto 0; max-width: 24ch; font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.16; color: var(--az-ivory); text-shadow: 0 2px 30px rgba(3, 6, 15, 1), 0 0 60px rgba(3, 6, 15, .9); text-wrap: balance; }
.az-note__meta { margin-inline: auto; text-shadow: 0 1px 10px rgba(3, 6, 15, 1); }

/* ---------- Qui nous sommes : le portrait entier dans une fenêtre en arche, comme sur la page Atelier (a pris la place de la clé dessinée) ---------- */
.az-sign { text-align: left; }
.az-sign__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: center; max-width: 1180px; }
.az-sign .wrap::before { width: 100%; border-radius: 60px; background: rgba(3, 6, 15, .5); box-shadow: 0 0 70px 50px rgba(3, 6, 15, .5); }
.az-arche { position: relative; margin: 12px; width: clamp(220px, 28vw, 330px); aspect-ratio: 3 / 4; }
.az-arche picture { display: block; height: 100%; }
.az-arche img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 4px 4px; background: var(--az-navy); filter: saturate(.9) contrast(1.03); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.az-arche::before, .az-arche::after { content: ""; position: absolute; pointer-events: none; }
.az-arche::before { inset: -12px; border: 1px solid rgba(92, 225, 255, .75); border-radius: 999px 999px 8px 8px; filter: drop-shadow(0 0 10px rgba(92, 225, 255, .4)); }
.az-arche::after { inset: 0; border: 1px solid rgba(243, 235, 221, .45); border-radius: 999px 999px 4px 4px; }
.az-sign .az-h2 { margin-top: 1rem; }
.az-sign__lede { margin-top: 1.2rem; max-width: 48ch; font-weight: 300; font-size: 1.04rem; line-height: 1.62; color: var(--az-text); text-shadow: 0 1px 12px rgba(3, 6, 15, 1); }
.az-sign__noms { margin-top: 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.75rem; line-height: 1; color: #FFDFB6; text-shadow: 0 1px 14px rgba(3, 6, 15, 1); }
.az-sign .az-more { margin-top: 1.3rem; }
@media (max-width: 640px) {
  .az-sign { text-align: center; }
  .az-sign__in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .az-arche { width: min(66vw, 260px); }
  .az-sign__lede { margin-inline: auto; }
}

/* ---------- L'estimation dans la scène : une commune choisie, sa fourchette s'affiche, la caméra y descend ----------
   Boutons et estimation partagent une grille de deux colonnes : le champ a la largeur des deux boutons et leur hauteur,
   chaque chiffre se range sous le sien. Le libellé tient dans le champ, pour que tout reste dans le premier écran. */
.az-hero__in:has(.az-quick:not([hidden])) { gap: 26vh; }
.az-hero__act { display: inline-grid; grid-template-columns: auto auto; column-gap: 18px; max-width: 100%; }
.az-hero__act .az-cta { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.az-quick { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 12px; margin-top: 16px; text-shadow: 0 1px 14px rgba(3, 6, 15, .95); }
.az-quick[hidden] { display: none; }
.az-quick__field { grid-column: 1 / -1; position: relative; width: 0; min-width: 100%; }
.az-quick__label { position: absolute; left: 23px; top: 11px; z-index: 1; pointer-events: none; font-size: .58rem; font-weight: 500; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: var(--az-azur); }
.az-quick__select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 58px; padding: 19px 46px 0 22px; border-radius: 2px;
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; text-overflow: ellipsis; color: var(--az-ivory); cursor: pointer;
  border: 1px solid rgba(243, 235, 221, .42); background-color: rgba(3, 8, 20, .45);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 27px) 52%, calc(100% - 22px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .3s;
}
.az-quick__select:hover, .az-quick__select:focus-visible { border-color: var(--az-azur); }
.az-quick__select[hidden] { display: none; }
.az-quick__select option { font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: #050D1C; background: #F3EBDD; }
/* À la souris : un bouton et une liste dessinée, qui s'ouvre vers le haut sur deux colonnes (accueil.js) */
.az-quick__btn {
  display: block; width: 100%; height: 58px; padding: 19px 46px 0 22px; border-radius: 2px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; color: var(--az-ivory); cursor: pointer;
  border: 1px solid rgba(243, 235, 221, .42); background-color: rgba(3, 8, 20, .45);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 27px) 52%, calc(100% - 22px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .3s, background-color .3s;
}
.az-quick__btn:hover, .az-quick__btn:focus-visible, .az-quick__btn[aria-expanded="true"] { border-color: var(--az-azur); background-color: rgba(3, 8, 20, .7); }
.az-quick__list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 6; margin: 0; padding: 12px 10px; list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(8, auto); grid-auto-flow: column; column-gap: 10px;
  background: linear-gradient(155deg, rgba(8, 20, 42, .96), rgba(3, 8, 20, .95)); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--az-hair-soft); border-radius: 3px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-shadow: none; animation: az-quick-in .35s var(--az-ease);
}
.az-quick__list[hidden] { display: none; }
.az-quick__list:focus { outline: none; }
.az-quick__list::before, .az-quick__list::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border: 1px solid var(--az-azur); opacity: .8; }
.az-quick__list::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.az-quick__list::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.az-quick__list li { position: relative; padding: 8px 12px 8px 30px; border-radius: 2px; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--az-text); cursor: pointer; transition: color .2s, background-color .2s; }
.az-quick__list li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 1px; background: currentColor; opacity: .45; transition: width .35s var(--az-ease), opacity .2s, background-color .2s; }
.az-quick__list li.is-active { color: #fff; background: rgba(92, 225, 255, .1); }
.az-quick__list li.is-active::before { width: 13px; background: var(--az-azur); opacity: 1; box-shadow: 0 0 8px var(--az-azur); }
.az-quick__list li[aria-selected="true"] { font-style: italic; color: #FFDFB6; }
@keyframes az-quick-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .az-quick__list { animation: none; } }
.az-quick__out { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 7px; margin: 2px 0 0; }
.az-quick__k { grid-column: 1 / -1; font-size: .6rem; font-weight: 500; line-height: 1; letter-spacing: .22em; text-transform: uppercase; color: var(--az-amber); }
.az-quick__say { grid-column: 1 / -1; width: 0; min-width: 100%; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 1.75vw, 1.6rem); line-height: 1.14; color: var(--az-ivory); text-wrap: balance; }
.az-quick__more { grid-column: 1 / -1; justify-self: start; margin-top: 5px; }
@media (max-width: 640px) {
  .az-hero__act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .az-hero__act .az-cta { row-gap: 16px; }
  .az-hero__act .az-btn { grid-column: 1 / -1; }
}

/* ---------- Fin : l'aube sur la Baie des Anges ---------- */
.az-closing { position: relative; min-height: 120vh; display: flex; align-items: center; padding: clamp(100px, 18vh, 220px) 0; }
.az-closing .wrap { width: 100%; }
.az-closing__panel { max-width: 700px; --az-glass: .88; }
.az-closing .az-cta { margin-top: 2.2rem; }
.az-closing__contact { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .92rem; }
.az-closing__contact a { border-bottom: 1px solid var(--az-hair-soft); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.az-closing__contact a:hover { border-color: var(--az-azur); color: #fff; }
.az-credit { position: relative; z-index: 2; margin: 0; padding: 14px var(--gutter); font-size: .68rem; line-height: 1.5; color: rgba(243, 235, 221, .7); background: rgba(3, 6, 15, .82); text-align: center; }

/* ---------- Barre « Estimer mes revenus » (téléphone) ---------- */
.az-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(0deg, rgba(3, 6, 15, .96), rgba(3, 6, 15, .82)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--az-hair-soft); transform: translateY(110%); visibility: hidden; transition: transform .6s var(--az-ease), visibility 0s .6s; }
.az-bar[hidden] { display: none; }
.az-bar .az-btn { width: 100%; min-height: 52px; }
.az-bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
body:has(.cookie.is-visible) .az-bar, body.menu-open .az-bar { transform: translateY(110%); visibility: hidden; }   /* jamais sur la bannière cookies ni sur le menu */
@media (min-width: 768px) { .az-bar { display: none; } }

/* ---------- Curseur (souris seulement : posé par accueil.js si le pointeur est fin) ---------- */
.az-cursor, .az-cursor__ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.az-cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 12px var(--az-azur); }
.az-cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(92, 225, 255, .7); box-shadow: 0 0 24px rgba(92, 225, 255, .25), inset 0 0 14px rgba(92, 225, 255, .12); transition: opacity .3s, width .45s var(--az-ease), height .45s var(--az-ease), margin .45s var(--az-ease), background-color .3s, border-color .3s; }
.az-souris .az-cursor, .az-souris .az-cursor__ring { opacity: 1; }
.az-souris.az-cursor-link .az-cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(92, 225, 255, .1); border-color: var(--az-azur); }
.az-souris.az-cursor-hide .az-cursor, .az-souris.az-cursor-hide .az-cursor__ring { opacity: 0; }
.az-souris, .az-souris a, .az-souris button, .az-souris summary, .az-souris label { cursor: none; }
.az-souris video, .az-souris .cookie, .az-souris .cookie * { cursor: auto; }

/* ---------- Apparitions (accueil.js pose is-in quand l'élément entre à l'écran) ---------- */
.az-js [data-az-in] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--az-ease), transform 1.2s var(--az-ease); transition-delay: var(--az-d, 0s); }
.az-js [data-az-in].is-in { opacity: 1; transform: none; }
.az-js .az-word { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .16em; margin-top: -.16em; }
.az-js .az-word > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--az-ease); transition-delay: calc(var(--az-l, 0) * 95ms); }
.az-js .is-in > .az-word > span { transform: none; }

/* ---------- Mise en scène au défilement (écran large) ---------- */
@media (min-width: 960px) and (min-height: 640px) {
  .az-js:not(.az-calme) .az-method { height: 340vh; padding: 0; }
  .az-js:not(.az-calme) .az-method__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 66px; }
  .az-js:not(.az-calme) .az-method__pin > .wrap { width: 100%; }
  .az-3d .az-terr { height: 420vh; padding: 0; }
  .az-3d .az-terr__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 66px; }
  .az-3d .az-terr__pin > .wrap { width: 100%; }
  .az-3d .az-terr__panel { max-width: 500px; padding: clamp(22px, 2.6vw, 38px); }
  .az-3d .az-terr__panel .az-h2 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); }
  /* un seul chapitre déplié à la fois : celui que la caméra survole (ou celui qui reçoit le focus) */
  .az-3d .az-terr.is-armed .az-chapters { margin-top: 1.3rem; gap: .9rem; }
  .az-3d .az-terr.is-armed .az-chapter { grid-template-columns: 46px minmax(0, 1fr); align-items: center; padding-top: .9rem; opacity: .72; }
  .az-3d .az-terr.is-armed .az-chapter p { max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--az-ease), opacity .5s ease, margin .5s ease; }
  .az-3d .az-terr.is-armed .az-chapter__h { margin: 0; transition: margin .5s ease; }
  .az-3d .az-terr.is-armed .az-chapter.is-on, .az-3d .az-terr.is-armed .az-chapter:focus-within { grid-template-columns: 76px minmax(0, 1fr); align-items: start; opacity: 1; }
  .az-3d .az-terr.is-armed .az-chapter.is-on p, .az-3d .az-terr.is-armed .az-chapter:focus-within p { max-height: 9em; opacity: 1; }
  .az-3d .az-terr.is-armed .az-chapter.is-on .az-chapter__h, .az-3d .az-terr.is-armed .az-chapter:focus-within .az-chapter__h { margin-bottom: .35rem; }
  .az-3d .az-terr.is-armed .az-chapter.is-on .az-chapter__links, .az-3d .az-terr.is-armed .az-chapter:focus-within .az-chapter__links { margin-top: .5rem; }
  .az-3d .az-terr__panel .az-more { margin-top: 1.3rem; }
}
/* la scène reste cliquable entre les blocs : les sections laissent passer le pointeur, leurs contenus le reprennent */
.az-places .az-main > section, .az-places .az-main > section .wrap, .az-places .az-method__pin, .az-places .az-terr__pin { pointer-events: none; }
.az-places .az-main :is(.az-panel, .az-hero__in > *, .az-photo, .az-note .wrap > *, .az-scroll, .az-terr__listhead, .az-door) { pointer-events: auto; }
.az-places .az-deep, .az-places .az-deep * { pointer-events: auto; }
.az-places .az-wave { pointer-events: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .az-figs { grid-template-columns: 1fr 1fr; }
  .az-fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .az-fig:nth-child(n+3) { margin-top: 1.5rem; border-top: 1px solid var(--az-hair-soft); }
}
@media (max-width: 959px) {
  .az-method__panel { grid-template-columns: 1fr; }
  .az-steps { grid-template-columns: 1fr 1fr; }
  .az-services__in { grid-template-columns: 1fr; }
  .az-house__panel { grid-template-columns: 1fr; background-image: radial-gradient(ellipse 70% 40% at 50% 82%, rgba(255, 201, 138, .1), rgba(255, 201, 138, 0) 70%), linear-gradient(155deg, rgba(8, 20, 42, var(--az-glass, .82)), rgba(3, 8, 20, calc(var(--az-glass, .82) - .08))); }
  .az-house__photo { width: min(78%, 340px); margin: 6px auto 12px; }
  .az-space__panel { grid-template-columns: 1fr; background-image: radial-gradient(ellipse 80% 40% at 50% 68%, rgba(92, 225, 255, .1), rgba(92, 225, 255, 0) 70%), linear-gradient(155deg, rgba(8, 20, 42, var(--az-glass, .82)), rgba(3, 8, 20, calc(var(--az-glass, .82) - .08))); }
  .az-space__copy .az-h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
  .az-hud { display: none; }
  /* le territoire : trois cartes espacées, la côte visible entre elles */
  .az-3d .az-terr__panel { --az-wall: 0; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .az-3d .az-chapter { --az-wall: 1; }
  .az-3d .az-terr__panel::before, .az-3d .az-terr__panel::after { content: none; }
  .az-3d .az-terr__panel > .az-eyebrow, .az-3d .az-terr__panel > .az-h2 { text-shadow: 0 2px 20px rgba(3, 6, 15, 1), 0 0 50px rgba(3, 6, 15, 1); }
  .az-3d .az-chapters { gap: 0; }
  .az-3d .az-chapter { margin-bottom: 62vh; padding: 20px; background: linear-gradient(155deg, rgba(8, 20, 42, .86), rgba(3, 8, 20, .78)); border: 1px solid var(--az-hair-soft); border-radius: 3px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: auto; }
  .az-3d .az-chapter:last-child { margin-bottom: 30vh; }
  .az-3d .az-terr__hint, .az-3d .az-terr__panel > .az-more { background: rgba(3, 8, 20, .8); padding: 14px 16px; pointer-events: auto; }
}
/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  .accueil .az-title { font-size: clamp(2.3rem, 11.4vw, 3.6rem); line-height: .92; }
  .az-hero { padding-bottom: 84px; }
  .az-hero__in { gap: 30vh; }
  .az-stage__veil { background: linear-gradient(180deg, rgba(3, 6, 15, .62) 0, rgba(3, 6, 15, 0) 16%), linear-gradient(0deg, rgba(3, 6, 15, .88) 0, rgba(3, 6, 15, .55) 34%, rgba(3, 6, 15, 0) 62%); }
  .az-cta { flex-direction: column; align-items: stretch; }
  .az-btn { white-space: normal; padding: 12px 22px; }
  .az-figs { grid-template-columns: 1fr 1fr; }
  .az-fig { padding-right: .8rem; }
  .az-fig + .az-fig { padding-left: .9rem; }
  .az-fig:nth-child(3) { padding-left: 0; }
  .az-brief__list { grid-template-columns: 1fr; }
  .az-steps { grid-template-columns: 1fr; }
  .az-doors { padding-top: 46vh; }
  .az-doors__in { grid-template-columns: 1fr; gap: 104px; }
  .az-door { --az-mat: 52px; }
  .az-door__line { margin-bottom: 1.2rem; }
  .az-line { grid-template-columns: 2.4em minmax(0, 1fr); }
  .az-line__note { grid-column: 2; text-align: left; }
  .az-chapter { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .az-method__map { order: -1; }
  /* téléphone : la vidéo verticale passe dans un téléphone, seul */
  .az-space__stage { padding: 0; }
  .az-space__stage::before, .az-space__stage::after, .az-phone, .az-laptop__base { display: none; }
  .az-laptop { width: min(100%, 290px); margin-inline: auto; }
  .az-laptop__screen { padding: 7px; border-radius: 34px; }
  .az-laptop__screen .film { border-radius: 27px; }
  .az-space__notes { margin-top: 26px; padding-left: 0; }
  .az-closing { min-height: 105vh; }
  .az-credit { padding-bottom: 20px; }
}

/* ---------- Mouvement réduit : rien ne défile ni ne clignote, les fondus restent ---------- */
@media (prefers-reduced-motion: reduce) {
  .az-js .az-marquee__row, .az-js .az-wave svg, .az-btn--main::before, .az-scroll__line, .az-hud span:first-child::before { animation: none; }
  .az-btn--main::before { opacity: 0; }
  .az-js [data-az-in] { transform: none; transition: opacity .8s ease; }
  .az-js .az-word > span { transform: none; transition: none; }
  .az-js .az-shutters { display: none; }
  .az-js .az-laptop__screen::after { content: none; }
  .az-js .az-phone { opacity: 1; transform: rotate(2.5deg); transition: none; }
  .az-btn::after, .az-door::after, .az-line { transition: none; }
  .az-l { opacity: 1; animation: none; }
}
@media print {
  .az-stage, .az-marquee, .az-bar, .az-cursor, .az-cursor__ring, .az-scroll, .az-hud, .az-wave { display: none !important; }
  .az-main, .az-main * { color: #000 !important; background: none !important; text-shadow: none !important; opacity: 1 !important; transform: none !important; }
}

/* Titres en capitales : des chiffres de la hauteur des capitales (ceux de Cormorant sont en bas de casse par défaut : « 20 % » paraissait plus petit que le titre) */
.az-h2, .az-h3, .accueil .az-title, .az-step__h, .az-chapter__h, .az-town__title, .az-line__name, .az-door__title { font-variant-numeric: lining-nums; }

/* ---------- Écran d'entrée : le logo, le temps que la scène se prépare derrière ----------
   Sans script, il se lève seul au bout de deux secondes. Avec accueil.js (az-charge), il attend la scène, puis se lève
   (az-ouvert). Décor : aria-hidden, aucun élément à atteindre au clavier. */
.az-open {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; gap: clamp(22px, 3vh, 34px);
  background: radial-gradient(90% 70% at 50% 46%, #0A1A36, #03060F 72%);
  animation: az-ouvre 1s var(--az-ease, ease) 2s forwards;
}
.az-open__logo { width: clamp(150px, 17vw, 230px); height: auto; animation: az-logo 1.4s var(--az-ease, ease) both; }
.az-open__line { position: relative; width: clamp(120px, 14vw, 190px); height: 1px; overflow: hidden; background: rgba(243, 235, 221, .14); }
.az-open__line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(92, 225, 255, 0), #5CE1FF 40%, #fff 50%, #5CE1FF 60%, rgba(92, 225, 255, 0)); transform: translateX(-100%); animation: az-file 1.5s ease-in-out infinite; }
@keyframes az-ouvre { to { opacity: 0; visibility: hidden; } }
@keyframes az-logo { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes az-file { to { transform: translateX(100%); } }
.az-charge .az-open { animation: none; }
.az-ouvert .az-open { animation: none; opacity: 0; visibility: hidden; transition: opacity 1s var(--az-ease, ease), visibility 0s 1s; }
@media (prefers-reduced-motion: reduce) {
  .az-open { animation-delay: .9s; animation-duration: .01s; }
  .az-open__logo, .az-open__line::after { animation: none; }
  .az-ouvert .az-open { transition: none; }
}
@media print { .az-open { display: none !important; } }

/* ==========================================================================
   V50 — « le plan-séquence »
   À toutes les tailles : la fin des titres en italique (<em> dans la page), les deux portes en arche.
   Grand écran avec la scène vivante (.az-3d, 1100 px et plus) : plus de panneaux. Le texte se range d'un côté sur un
   rideau sombre (data-az-side sur <html>, posé par accueil.js d'après le data-side de la section), la scène garde
   l'autre côté et y décale son cadrage (accueil-scene.js). Rail des chapitres à droite, tableau de bord en bas : point
   visé, commune la plus proche, heure de la scène réglable.
   Sans la scène (image fixe, mouvement réduit, sans script) ou sous 1100 px : les panneaux d'avant, inchangés.
   ========================================================================== */

/* ---------- La fin des titres en italique ---------- */
.az-h2 em, .accueil .az-title em, .az-word--em > span, .az-w--em {
  font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.004em; color: #FFDFB6;
}
.az-h2 em, .accueil .az-title em, .az-word--em, .az-w--em { font-size: 1.1em; }
.az-js .az-word--em { padding: .16em .1em .26em .04em; margin: -.16em -.1em -.26em -.04em; }   /* les jambages et l'élan de l'italique ne sont pas rognés */


.az-instr, .az-rail { display: none; }

/* ---------- Repères : les lieux que l'on reconnaît, nommés dans la scène (posés par accueil-scene.js, décor) ---------- */
.az-marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.az-mark { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.az-mark b { position: absolute; left: 0; bottom: 54px; transform: translateX(-50%); padding: 5px 10px 6px; white-space: nowrap; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.04rem; line-height: 1; letter-spacing: .01em; color: var(--az-ivory); background: rgba(3, 6, 15, .62); border-radius: 2px; }
.az-mark::before { content: ""; position: absolute; left: 0; bottom: 8px; width: 1px; height: 46px; background: linear-gradient(0deg, #F3EBDD, rgba(243, 235, 221, .4)); box-shadow: 0 0 6px rgba(3, 6, 15, .9); }
.az-mark::after { content: ""; position: absolute; left: -3.5px; bottom: 0; width: 8px; height: 8px; transform: rotate(45deg); background: var(--az-ivory); box-shadow: 0 0 0 3px rgba(3, 6, 15, .45), 0 0 12px rgba(255, 255, 255, .7); }
.az-mark--eau b { bottom: 0; padding: 0; background: none; text-shadow: 0 0 2px rgba(3, 6, 15, 1), 0 1px 10px rgba(3, 6, 15, .95); font-family: var(--font-body); font-style: normal; font-weight: 300; font-size: .7rem; letter-spacing: .36em; text-transform: uppercase; color: rgba(170, 228, 255, .82); }
.az-mark--eau::before, .az-mark--eau::after { content: none; }

@media (min-width: 1100px) and (min-height: 640px) {
  /* ---------- Le rideau : sombre du côté du texte, la scène à découvert de l'autre ---------- */
  .az-3d { --az-rideau: .88; }
  .az-3d[data-az-heure="jour"] { --az-rideau: .97; }
  .az-3d[data-az-heure="aube"] { --az-rideau: .95; }
  .az-3d[data-az-heure="soir"] { --az-rideau: .93; }
  .az-3d .az-stage__veil { background: linear-gradient(180deg, rgba(3, 6, 15, .62) 0, rgba(3, 6, 15, 0) 17%), linear-gradient(0deg, rgba(3, 6, 15, .5) 0, rgba(3, 6, 15, 0) 26%); }
  .az-3d[data-az-heure="jour"] .az-stage__veil { background-color: rgba(3, 6, 15, .1); }
  .az-3d .az-stage__veil::before, .az-3d .az-stage__veil::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 74%; opacity: 0;
    transition: opacity 1.3s ease, transform 1.5s var(--az-ease);
  }
  .az-3d .az-stage__veil::before { left: 0; transform-origin: left; background: linear-gradient(90deg, rgba(3, 6, 15, var(--az-rideau)) 0, rgba(3, 6, 15, calc(var(--az-rideau) * .94)) 40%, rgba(3, 6, 15, calc(var(--az-rideau) * .52)) 64%, rgba(3, 6, 15, 0) 100%); }
  .az-3d .az-stage__veil::after { right: 0; transform-origin: right; background: linear-gradient(270deg, rgba(3, 6, 15, var(--az-rideau)) 0, rgba(3, 6, 15, calc(var(--az-rideau) * .94)) 40%, rgba(3, 6, 15, calc(var(--az-rideau) * .52)) 64%, rgba(3, 6, 15, 0) 100%); }
  .az-3d[data-az-side="l"] .az-stage__veil::before, .az-3d[data-az-side="L"] .az-stage__veil::before { opacity: 1; }
  .az-3d[data-az-side="L"] .az-stage__veil::before { transform: scaleX(1.32); }
  .az-3d[data-az-side="h"] .az-stage__veil::before { opacity: .74; }
  .az-3d[data-az-side="r"] .az-stage__veil::after, .az-3d[data-az-side="R"] .az-stage__veil::after { opacity: 1; }
  .az-3d[data-az-side="R"] .az-stage__veil::after { transform: scaleX(1.32); }

  /* ---------- Plus de panneaux : le texte tient sur le rideau ---------- */
  .az-3d .az-panel { --az-wall: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .az-3d .az-panel > * { --az-wall: 1; }
  .az-3d .az-panel::before, .az-3d .az-panel::after { content: none; }
  .az-3d .az-panel :is(p, li, dd) { text-shadow: 0 1px 14px rgba(3, 6, 15, .8); }
  .az-3d.az-places .az-main .az-panel { pointer-events: none; }        /* entre les textes, la scène reste à portée de souris */
  .az-3d.az-places .az-main .az-panel > * { pointer-events: auto; }
  .az-3d .az-sec, .az-3d .az-closing { min-height: 100vh; }
  .az-3d .az-deep .az-sec, .az-3d .az-note { min-height: 0; }

  /* ---------- En bref : le texte à gauche, les quatre chiffres en ligne au bas de l'écran ---------- */
  .az-3d .az-brief { display: flex; align-items: flex-end; padding: calc(var(--header-h) + 5vh) 0 clamp(96px, 13vh, 130px); }
  .az-3d .az-brief > .wrap { width: 100%; }
  .az-3d .az-brief::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(300px, 46vh, 430px); pointer-events: none; background: linear-gradient(0deg, rgba(3, 6, 15, var(--az-rideau)) 0, rgba(3, 6, 15, calc(var(--az-rideau) * .82)) 52%, rgba(3, 6, 15, 0) 100%); }
  .az-3d .az-brief__panel { max-width: none; display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); }
  .az-3d .az-brief__panel > * { grid-column: 1; }
  .az-3d .az-brief .az-h2 { font-size: clamp(2rem, 3.15vw, 2.95rem); }
  .az-3d .az-brief__list { margin-top: 1.7rem; }
  .az-3d .az-figs { order: 5; grid-column: 1 / -1; margin-top: clamp(2.2rem, 7vh, 4.6rem); border-top: 1px solid var(--az-hair); }
  .az-3d .az-fig { position: relative; padding-top: 1.3rem; }
  .az-3d .az-fig::before { content: ""; position: absolute; left: 0; top: -1px; width: 34px; height: 1px; background: var(--az-azur); box-shadow: 0 0 10px var(--az-azur); }
  .az-3d .az-fig + .az-fig::before { left: 1.4rem; }
  .az-3d .az-fig__n { font-size: clamp(4rem, 7.2vw, 7.4rem); }
  .az-3d .az-fig dd { max-width: 26ch; color: var(--az-text); }

  /* ---------- La maison : le texte à gauche, la porte-fenêtre debout dans le paysage, à droite ---------- */
  .az-3d .az-house, .az-3d .az-space { display: flex; align-items: center; }
  .az-3d .az-house > .wrap, .az-3d .az-space > .wrap { width: 100%; }
  .az-3d .az-house__panel { grid-template-columns: minmax(0, 520px) minmax(0, 1fr) clamp(220px, 21vw, 310px); align-items: end; }
  .az-3d .az-house .az-h2 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); }
  .az-3d .az-house__photo { grid-column: 3; width: 100%; }

  /* ---------- Méthode : à droite, un temps à la fois ; la scène descend vers la marina ---------- */
  .az-3d .az-method__panel { display: flex; flex-direction: column; width: min(100%, 520px); margin-left: auto; gap: 0; }
  .az-3d .az-method__head .az-h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); }
  .az-3d .az-method__head .az-more { margin-top: 1.1rem; }
  .az-3d .az-method.is-armed .az-steps { display: block; margin-top: 1.5rem; }
  .az-3d .az-method.is-armed .az-step { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); column-gap: 10px; align-items: center; padding: .8rem 0 .85rem; opacity: .6; }
  .az-3d .az-method.is-armed .az-step__num { grid-row: 1 / span 2; align-self: start; line-height: .9; transition: font-size .7s var(--az-ease), color .5s; }
  .az-3d .az-method.is-armed .az-step__h { margin: 0; }
  .az-3d .az-method.is-armed .az-step p { grid-column: 2; max-height: 0; margin: 0; opacity: 0; overflow: hidden; transition: max-height .9s var(--az-ease), opacity .5s ease, margin .5s ease; }
  .az-3d .az-method.is-armed .az-step.is-cur, .az-3d .az-method.is-armed .az-step:focus-within { opacity: 1; }
  .az-3d .az-method.is-armed .az-step.is-cur .az-step__num, .az-3d .az-method.is-armed .az-step:focus-within .az-step__num { font-size: 3.5rem; }
  .az-3d .az-method.is-armed .az-step.is-cur p, .az-3d .az-method.is-armed .az-step:focus-within p { max-height: 12em; margin-top: .55rem; opacity: 1; }
  .az-3d .az-method__map { order: 3; width: 64%; margin-top: 2.2rem; }

  /* ---------- Territoire : trois chapitres numérotés, la côte et ses noms à découvert ---------- */
  .az-3d .az-terr__panel { max-width: 480px; padding: 0; }
  .az-3d .az-terr.is-armed .az-chapters { counter-reset: az-chap; }
  .az-3d .az-terr.is-armed .az-chapter, .az-3d .az-terr.is-armed .az-chapter.is-on, .az-3d .az-terr.is-armed .az-chapter:focus-within { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 10px; counter-increment: az-chap; }
  .az-3d .az-terr.is-armed .az-chapter__img { display: none; }
  .az-3d .az-terr.is-armed .az-chapter::before { content: counter(az-chap, upper-roman); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--az-amber); transition: font-size .7s var(--az-ease); }
  .az-3d .az-terr.is-armed .az-chapter.is-on::before, .az-3d .az-terr.is-armed .az-chapter:focus-within::before { font-size: 3rem; }

  /* ---------- Espace propriétaire : le texte, puis l'ordinateur et le téléphone posés devant la mer ---------- */
  .az-3d .az-space__panel { grid-template-columns: minmax(0, 420px) minmax(0, 600px); justify-content: start; gap: clamp(32px, 4.4vw, 76px); }

  /* ---------- Fin ---------- */
  .az-3d .az-closing__panel { max-width: 640px; }
  .az-3d .az-closing .az-h2 { font-size: clamp(2.2rem, 3.5vw, 3.3rem); }

  /* ---------- Rail des chapitres ---------- */
  .az-3d .az-rail { display: block; position: fixed; right: 16px; top: 50%; z-index: 40; transform: translateY(-50%); transition: opacity .5s ease, visibility 0s; }
  .az-rail.is-off { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
  .az-rail ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .az-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; padding-left: 14px; color: rgba(243, 235, 221, .62); }
  .az-rail a::after { content: ""; flex: none; width: 12px; height: 1px; background: currentColor; transition: width .6s var(--az-ease), background-color .3s, box-shadow .3s; }
  .az-rail__t { padding: 4px 9px; font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: var(--az-ivory); background: rgba(3, 6, 15, .78); border-radius: 2px; opacity: 0; transform: translateX(8px); transition: opacity .35s ease, transform .5s var(--az-ease); pointer-events: none; }
  .az-rail__n { font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1; font-variant-numeric: lining-nums; opacity: 0; transition: opacity .4s ease; text-shadow: 0 1px 10px rgba(3, 6, 15, .9); }
  .az-rail:hover .az-rail__t, .az-rail:focus-within .az-rail__t { opacity: 1; transform: none; }
  .az-rail a:hover, .az-rail a:focus-visible { color: #fff; }
  .az-rail a:hover::after { width: 22px; }
  .az-rail a[aria-current] { color: var(--az-amber); }
  .az-rail a[aria-current] .az-rail__n { opacity: 1; }
  .az-rail a[aria-current]::after { width: 34px; background: var(--az-azur); box-shadow: 0 0 10px var(--az-azur); }

  /* ---------- Tableau de bord : le point visé, la commune, l'heure de la scène (réglable) ---------- */
  .az-3d .az-instr {
    --az-bord: clamp(20px, 3vw, 44px);
    display: grid; justify-items: end; gap: 9px; position: fixed; right: var(--az-bord); bottom: 20px; z-index: 40; padding: 11px 14px 12px;
    background: rgba(3, 6, 15, .56); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-right: 1px solid var(--az-azur);
    transition: transform 1.4s var(--az-ease), opacity .5s ease, visibility 0s;
  }
  .az-3d[data-az-side="r"] .az-instr, .az-3d[data-az-side="R"] .az-instr { transform: translateX(calc(-100vw + 100% + 2 * var(--az-bord) + 14px)); }   /* le texte passe à droite : le tableau de bord glisse à gauche */
  .az-instr.is-off, body:has(.cookie.is-visible) .az-instr { opacity: 0; visibility: hidden; transition: transform 1.4s var(--az-ease), opacity .5s ease, visibility 0s .5s; }
  .az-instr .az-hud { position: static; flex-direction: row; align-items: baseline; gap: 6px 16px; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; white-space: nowrap; }
  .az-hud__place { color: var(--az-amber); }
  .az-instr .az-hud span:last-child { color: var(--az-azur); }
  .az-dial { display: flex; align-items: center; gap: 10px; }
  .az-dial__ico { flex: none; width: 9px; height: 9px; border-radius: 50%; }
  .az-dial__ico--moon { box-shadow: inset -3px -1px 0 0 #DCE6FF; }
  .az-dial__ico--sun { background: var(--az-amber); box-shadow: 0 0 10px var(--az-amber); }
  .az-dial__range { -webkit-appearance: none; appearance: none; width: 214px; height: 20px; margin: 0; background: none; cursor: ew-resize; }
  .az-dial__range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--az-dial-bg, rgba(243, 235, 221, .3)); }
  .az-dial__range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--az-dial-bg, rgba(243, 235, 221, .3)); }
  .az-dial__range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(92, 225, 255, .24), 0 0 16px var(--az-azur); transition: box-shadow .3s; }
  .az-dial__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(92, 225, 255, .24), 0 0 16px var(--az-azur); }
  .az-dial__range:hover::-webkit-slider-thumb, .az-dial__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(92, 225, 255, .3), 0 0 22px var(--az-azur); }
  .az-dial__range:focus-visible { outline: 1px solid var(--az-azur); outline-offset: 5px; }
  .az-dial__label { font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--az-mute); white-space: nowrap; }
  .az-dial__now { padding: 3px 0; font: inherit; font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--az-azur); background: none; border: 0; border-bottom: 1px solid rgba(92, 225, 255, .5); }
  .az-dial__now[hidden] { display: none; }
  .az-dial__now:hover { color: #fff; border-color: #fff; }
}
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 779px) {
  .az-3d .az-method__map { display: none; }
  .az-3d .az-brief .az-h2 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
  .az-3d .az-fig__n { font-size: clamp(3.4rem, 5.6vw, 5.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .az-rail a::after, .az-rail__t, .az-instr { transition: none; }
}
@media print { .az-instr, .az-rail { display: none !important; } }

/* ---------- Téléphone et petits écrans, scène vivante : l'heure en pastille (le cadran s'ouvre au toucher), le rail en repère ---------- */
.az-instr__tog { display: none; }
@media (max-width: 1099px), (max-height: 639px) {
  .az-3d .az-hero { padding-top: calc(var(--header-h) + 50px); }   /* la pastille de l'heure tient entre l'en-tête et le titre */
  .az-3d .az-instr { display: grid; justify-items: end; gap: 8px; position: fixed; right: 12px; top: 78px; z-index: 40; pointer-events: auto; transition: opacity .5s ease, visibility 0s; }
  .az-instr.is-off, body:has(.cookie.is-visible) .az-instr, body.menu-open .az-instr { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
  .az-instr .az-hud { display: flex; position: static; flex-direction: row; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 13px; white-space: nowrap; background: rgba(3, 6, 15, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 0; border-right: 1px solid var(--az-azur); }
  .az-instr .az-hud span:first-child, .az-instr .az-hud__place { display: none; }
  .az-instr .az-hud span:last-child { color: var(--az-azur); }
  .az-instr__tog { display: block; position: absolute; right: 0; top: 0; width: 100%; height: 36px; padding: 0; background: none; border: 0; cursor: pointer; }
  .az-instr__tog:focus-visible { outline: 2px solid var(--az-azur); outline-offset: 3px; }
  .az-instr .az-dial { display: none; align-items: center; gap: 10px; padding: 6px 13px; background: rgba(3, 6, 15, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-right: 1px solid var(--az-azur); }
  .az-instr.is-open .az-dial { display: flex; }
  .az-dial__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .az-dial__ico { flex: none; width: 9px; height: 9px; border-radius: 50%; }
  .az-dial__ico--moon { box-shadow: inset -3px -1px 0 0 #DCE6FF; }
  .az-dial__ico--sun { background: var(--az-amber); box-shadow: 0 0 10px var(--az-amber); }
  .az-dial__range { -webkit-appearance: none; appearance: none; width: min(52vw, 240px); height: 36px; margin: 0; background: none; }
  .az-dial__range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--az-dial-bg, rgba(243, 235, 221, .3)); }
  .az-dial__range::-moz-range-track { height: 3px; border-radius: 2px; background: var(--az-dial-bg, rgba(243, 235, 221, .3)); }
  .az-dial__range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(92, 225, 255, .24), 0 0 16px var(--az-azur); }
  .az-dial__range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(92, 225, 255, .24), 0 0 16px var(--az-azur); }
  .az-dial__now { min-height: 36px; padding: 0 2px; font: inherit; font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--az-azur); background: none; border: 0; }
  .az-dial__now[hidden] { display: none; }

  .az-3d .az-rail { display: block; position: fixed; right: 5px; top: 50%; z-index: 39; transform: translateY(-50%); pointer-events: none; transition: opacity .5s ease, visibility 0s; }
  .az-rail.is-off, body.menu-open .az-rail { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
  .az-rail ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; justify-items: end; }
  .az-rail a { display: block; width: 8px; height: 2px; background: rgba(243, 235, 221, .42); transition: width .5s var(--az-ease), background-color .3s; }
  .az-rail a[aria-current] { width: 18px; background: var(--az-azur); box-shadow: 0 0 8px var(--az-azur); }
  .az-rail__t, .az-rail__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 779px) {
  .az-3d .az-brief { padding-top: calc(var(--header-h) + 1vh); padding-bottom: 92px; }
  .az-3d .az-figs { margin-top: 1.8rem; }
}
