/* =========================================================
   Ateban — site une page
   Nuit chaude #0E0B0A · brun violet #2B2321 · orange brûlé #C4643A
   or #E8A25A · crème #F3E9DA · Syne (titres) · Inter (texte)
   ========================================================= */

:root {
  --nuit: #0E0B0A;
  --prune: #2B2321;
  --braise: #C4643A;
  --or: #E8A25A;
  --creme: #F3E9DA;
  --creme-70: rgba(243, 233, 218, .7);
  --creme-50: rgba(243, 233, 218, .64);   /* .64 : contraste ≥ 4,5 sur les décors */
  --ligne: rgba(243, 233, 218, .1);
  --verre: linear-gradient(155deg, rgba(243, 233, 218, .075), rgba(243, 233, 218, .02) 60%);
  --sunset: linear-gradient(120deg, #E8A25A 0%, #C4643A 55%, #8E4A3A 100%);
  --f-titre: "Syne", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --f-texte: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: min(1180px, calc(100vw - 48px));
}

/* ---------- Base (l'intro reste en fond, fixe) ---------- */
html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--nuit);
}
html.is-locked, html.is-locked body { overflow: hidden; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-texte); color: var(--creme); }
.intro { z-index: 0; background: #07070A; }
.intro-off .intro { visibility: hidden; }
[hidden] { display: none !important; }

/* Assombrissement du ciel au défilement */
.night {
  position: absolute;
  inset: 0;
  background: var(--nuit);
  opacity: 0;
  pointer-events: none;
}
.parallax {
  position: absolute;
  inset: 0;
  transform-origin: 52% 60%;
  will-change: transform;
}

/* Lance vectorielle : accompagne le logo quand il quitte la photo */
.logo__spear { opacity: 0; }

/* Indication de défilement seule (le bouton « Entrer » n'existe plus) */
.cta .scroll-hint__track { height: 44px; }
.cta { transition: opacity .3s ease; }

/* Grain de film léger sur tout le site */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .93  0 0 0 0 .85  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 76px;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 11, 10, .82), rgba(14, 11, 10, 0));
  opacity: var(--nav-bg, 0);
  pointer-events: none;
}
.nav__logo {
  position: relative;
  display: block;
  width: 116px;
  color: var(--creme);
  opacity: 0;
  pointer-events: none;
}
.nav__logo svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 6px rgba(232, 162, 90, .35)); }
.nav.is-docked .nav__logo { pointer-events: auto; }
.nav__links {
  position: relative;
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
}
.nav.is-docked .nav__links { opacity: 1; translate: 0 0; pointer-events: auto; }
.nav__links a, .nav__menu {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--creme-70);
  text-decoration: none;
  transition: color .3s;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--creme); }
.nav__menu {
  display: none;
  position: relative;
  background: none;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.nav.is-docked .nav__menu { opacity: 1; pointer-events: auto; }

@media (max-width: 760px) {
  .nav { height: 64px; padding: 0 16px; }
  .nav__logo { width: 96px; }
  .nav__menu { display: block; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(24, 19, 17, .92);
    border: 1px solid var(--ligne);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    visibility: hidden;
  }
  .nav.is-docked .nav__links { opacity: 0; pointer-events: none; }
  .nav.is-open .nav__links { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; }
  .nav__links a { display: block; padding: 14px 16px; font-size: 16px; }
}

/* ---------- Contenu ---------- */
.site {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.site > * { pointer-events: auto; }
.site > .site__spacer { pointer-events: none; height: 100vh; height: 100svh; }

.section {
  position: relative;
  padding: clamp(96px, 16vh, 180px) 0;
}
.wrap { width: var(--wrap); margin: 0 auto; position: relative; }
.depth { will-change: transform, opacity, filter; transform-origin: 50% 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--or);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  rotate: 45deg;
}
.title {
  margin: 0 0 clamp(40px, 7vh, 72px);
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.sunset-text {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Halos chauds (lumière) */
.halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.halo--ember { background: radial-gradient(closest-side, rgba(196, 100, 58, .32), rgba(196, 100, 58, 0)); }
.halo--gold  { background: radial-gradient(closest-side, rgba(232, 162, 90, .22), rgba(232, 162, 90, 0)); }
.halo--plum  { background: radial-gradient(closest-side, rgba(84, 58, 70, .45), rgba(43, 35, 33, 0)); }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: 500 15px/1 var(--f-texte);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s, border-color .4s;
}
.btn--sun {
  color: #1A0F0A;
  background: var(--sunset);
  border: 0;
  box-shadow: 0 10px 40px -12px rgba(232, 162, 90, .6);
}
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(232, 162, 90, .8); }
.btn--glass {
  color: var(--creme);
  background: rgba(243, 233, 218, .04);
  border: 1px solid rgba(243, 233, 218, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { border-color: rgba(243, 233, 218, .45); background: rgba(243, 233, 218, .08); }
.btn:focus-visible, .bubble:focus-visible, .nav a:focus-visible, .nav__menu:focus-visible, .field input:focus-visible,
.field select:focus-visible, .field textarea:focus-visible, .nav__logo:focus-visible, .foot a:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Mention « à compléter » (emplacements réservés, visibles) */
.todo {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border: 1px dashed rgba(232, 162, 90, .7);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
}

/* ---------- 1. Accroche ---------- */
.hook { padding-top: clamp(40px, 10vh, 120px); min-height: 92vh; min-height: 92svh; display: flex; align-items: center; }
.hook__title {
  margin: 0 0 44px;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: clamp(36px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 15ch;
}
.hook__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Verre dépoli ---------- */
.glass {
  position: relative;
  border-radius: 24px;
  background: var(--verre);
  border: 1px solid var(--ligne);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(243, 233, 218, .08), 0 30px 80px -40px rgba(0, 0, 0, .8);
}

/* ---------- 2. Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.card { padding: 18px 18px 26px; isolation: isolate; }
.card::before {
  /* halo chaud derrière la carte */
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 100, 58, .35), rgba(232, 162, 90, .08) 60%, transparent);
  filter: blur(30px);
  opacity: .8;
  transition: opacity .6s var(--ease);
}
.card:hover::before { opacity: 1; }
.card__demo {
  position: relative;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 11, 10, .55);
  border: 1px solid rgba(243, 233, 218, .07);
}
.card__name {
  margin: 22px 6px 6px;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
}
.card__line { margin: 0 6px; font-size: 15px; line-height: 1.5; color: var(--creme-70); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; }
}

/* Carte Sites : mini-maquette qui se construit */
.mock { position: absolute; inset: 16px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #171210; border: 1px solid rgba(243, 233, 218, .08); }
.mock__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: rgba(243, 233, 218, .05); }
.mock__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 233, 218, .22); }
.mock__bar span { margin-left: 10px; height: 8px; width: 42%; border-radius: 4px; background: rgba(243, 233, 218, .08); }
.mock__body { position: relative; flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.mock__nav { display: flex; align-items: center; gap: 8px; }
.mock__nav b { width: 34px; height: 8px; border-radius: 2px; background: var(--creme); opacity: .85; }
.mock__nav span { margin-left: auto; width: 18px; height: 5px; border-radius: 3px; background: rgba(243, 233, 218, .3); }
.mock__nav span + span { margin-left: 0; }
.mock__hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: center; }
.mock__text { display: flex; flex-direction: column; gap: 6px; }
.mock__h { height: 10px; border-radius: 3px; background: var(--creme); }
.mock__h--b { width: 70%; }
.mock__p { height: 5px; width: 85%; border-radius: 3px; background: rgba(243, 233, 218, .25); }
.mock__btn { margin-top: 4px; width: 54px; height: 14px; border-radius: 7px; background: var(--sunset); }
.mock__img { height: 64px; border-radius: 6px; background: linear-gradient(160deg, #E8A25A, #C4643A 50%, #2B2321); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__grid i { height: 34px; border-radius: 5px; background: rgba(243, 233, 218, .07); border: 1px solid rgba(243, 233, 218, .06); }
.mock__cursor {
  position: absolute;
  width: 10px; height: 10px;
  left: 70%; top: 70%;
  border-left: 2px solid var(--creme);
  border-top: 2px solid var(--creme);
  rotate: -12deg;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
  animation: cursor 7s var(--ease) infinite;
}
.build { animation: build 7s var(--ease) infinite; animation-delay: calc(var(--i) * .32s); }
@keyframes build {
  0%   { opacity: 0; transform: translateY(6px) scale(.96); }
  7%   { opacity: 1; transform: none; }
  78%  { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes cursor {
  0%   { translate: 0 0; opacity: 0; }
  10%  { opacity: 1; }
  35%  { translate: -120px -90px; }
  40%  { translate: -120px -90px; scale: .85; }
  44%  { scale: 1; }
  70%  { translate: -40px -10px; }
  85%  { opacity: 1; }
  100% { translate: 0 0; opacity: 0; }
}

/* Carte Montage : mini-timeline qui défile */
.vt { position: absolute; inset: 16px; display: flex; flex-direction: column; gap: 10px; }
.vt__screen {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(130deg, #2B2321, #C4643A, #E8A25A, #2B2321);
  background-size: 400% 400%;
  animation: frames 8s linear infinite;
}
.vt__screen::after {
  content: "";
  position: absolute;
  left: 50%; top: 58%;
  width: 46%; height: 30%;
  translate: -50% 0;
  border-radius: 50% 50% 0 0;
  background: rgba(14, 11, 10, .75);
}
.vt__time {
  position: absolute;
  left: 8px; bottom: 6px;
  z-index: 1;
  font: 500 9px/1 var(--f-texte);
  letter-spacing: .08em;
  color: var(--creme);
}
@keyframes frames {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.vt__tracks {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(243, 233, 218, .03);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.vt__strip { position: absolute; left: 0; top: 6px; display: flex; flex-direction: column; gap: 6px; width: 200%; animation: roll 8s linear infinite; }
.vt__row { display: flex; gap: 4px; height: 18px; }
.vt__row i { flex: none; border-radius: 3px; }
.vt__row--v i { background: linear-gradient(180deg, rgba(232, 162, 90, .85), rgba(196, 100, 58, .85)); }
.vt__row--v i:nth-child(3n) { background: linear-gradient(180deg, rgba(243, 233, 218, .55), rgba(243, 233, 218, .35)); }
.vt__row--a { height: 26px; align-items: center; gap: 2px; }
.vt__row--a i { width: 3px; background: rgba(243, 233, 218, .35); }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.vt__head { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--creme); box-shadow: 0 0 8px var(--or); }
.vt__head::before { content: ""; position: absolute; top: 0; left: -4px; border: 4px solid transparent; border-top-color: var(--creme); }

/* Carte Retouche : avant / après */
.ba { position: absolute; inset: 0; --x: 50%; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__before img { filter: grayscale(.6) contrast(.72) brightness(1.18) saturate(.7) blur(.4px); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--creme); box-shadow: 0 0 10px rgba(232, 162, 90, .8); pointer-events: none; }
.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 38px; height: 38px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(243, 233, 218, .7);
  background: rgba(14, 11, 10, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba__knob::before, .ba__knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border-left: 1.5px solid var(--creme);
  border-bottom: 1.5px solid var(--creme);
}
.ba__knob::before { left: 9px; translate: 0 -50%; rotate: 45deg; }
.ba__knob::after { right: 9px; translate: 0 -50%; rotate: -135deg; }
.ba__tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(14, 11, 10, .55);
  pointer-events: none;
}
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; }
.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba input:focus-visible ~ .ba__knob { outline: 2px solid var(--or); outline-offset: 3px; }

/* Visionneuse */
.viewer {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--ligne);
  border-radius: 24px;
  color: var(--creme);
  background: rgba(22, 17, 15, .92);
  overflow: hidden;
}
.viewer::backdrop { background: rgba(8, 6, 5, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.viewer[open] { animation: viewer-in .7s var(--ease) both; }
@keyframes viewer-in {
  from { opacity: 0; transform: scale(.9); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.viewer__media { position: relative; aspect-ratio: 16 / 9.1; background: #1a1412; overflow: hidden; }
.viewer__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.viewer__media .bubble__concept { --size: 520px; border-radius: 0; }
.viewer__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 26px; }
.viewer__title { margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: 26px; }
.viewer__line { margin: 6px 0 0; font-size: 14px; color: var(--creme-70); }
.viewer__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(243, 233, 218, .25);
  background: rgba(14, 11, 10, .6);
  color: var(--creme);
  font-size: 20px;
  cursor: pointer;
}

/* ---------- 4. Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.price { padding: 30px 28px 28px; display: flex; flex-direction: column; }
.price--mid { background: linear-gradient(160deg, rgba(232, 162, 90, .14), rgba(196, 100, 58, .05) 55%, rgba(243, 233, 218, .02)); border-color: rgba(232, 162, 90, .28); }
.price__name { margin: 0; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--creme-70); }
.price__amount { margin: 18px 0 24px; font-family: var(--f-titre); font-weight: 600; font-size: clamp(42px, 4.6vw, 60px); letter-spacing: -.03em; line-height: 1; }
.price__amount small { font-family: var(--f-texte); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--creme-70); margin-right: 6px; }
.price ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--creme-70); }
.price li { display: flex; gap: 12px; align-items: baseline; }
.price li::before { content: ""; flex: none; width: 5px; height: 5px; rotate: 45deg; background: var(--or); translate: 0 -2px; }
.price .btn { margin-top: auto; align-self: flex-start; }
.extras { margin-top: clamp(20px, 3vh, 32px); display: grid; gap: 10px; }
.extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid var(--ligne);
  background: rgba(243, 233, 218, .02);
  font-size: 15px;
}
.extra__name { font-weight: 500; color: var(--creme); min-width: 150px; }
.extra span:not(.extra__name) { color: var(--creme-70); }
.extra b { font-weight: 500; color: var(--or); }
.note { margin: 22px 0 0; font-size: 13px; color: var(--creme-50); }

@media (max-width: 900px) {
  .prices { grid-template-columns: 1fr; max-width: 520px; }
}

/* ---------- 5. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.option { padding: 30px 28px; display: flex; flex-direction: column; }
.option__icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--or); }
.option__name { margin: 0 0 8px; font-family: var(--f-titre); font-weight: 600; font-size: 22px; }
.option__line { margin: 0 0 24px; font-size: 15px; color: var(--creme-70); }
.option .btn { align-self: flex-start; margin-top: auto; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--creme-50); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(243, 233, 218, .14);
  background: rgba(14, 11, 10, .5);
  color: var(--creme);
  font: 400 15px/1.4 var(--f-texte);
  transition: border-color .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select option { background: #1a1412; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 233, 218, .3); }
.form .btn { justify-self: start; margin-top: 4px; }
.form__done {
  display: none;
  padding: 26px 4px;
  font-size: 16px;
  line-height: 1.6;
}
.form__done strong { display: block; font-family: var(--f-titre); font-size: 24px; margin-bottom: 6px; color: var(--creme); }
.option.is-sent .form { display: none; }
.option.is-sent .form__done { display: block; }

@media (max-width: 980px) {
  .contact { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- 6. Pied de page ---------- */
.foot {
  position: relative;
  padding: 44px 0 calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ligne);
}
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__logo { width: 96px; color: var(--creme); }
.foot__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot p { margin: 0; font-size: 13px; color: var(--creme-50); }
.foot a { color: var(--creme-70); text-decoration: none; }
.foot a:hover { color: var(--creme); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .build, .mock__cursor, .vt__screen, .vt__strip, .bubble__float { animation: none !important; }
  .build { opacity: 1; transform: none; }
  .mock__cursor { opacity: 0; }
  .viewer[open] { animation: none; }
}

/* Ciel prolongé au-dessus de la photo : quand elle descend, aucun bord n'apparaît */
#parBack::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 99.5%;
  height: 120%;
  background: linear-gradient(to top, #524338, #2a211c 55%, #0E0B0A);
}
.cta .scroll-hint { opacity: var(--hint, 1); }
.todo { align-self: flex-start; }
.nav::before { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); background: linear-gradient(to bottom, rgba(14, 11, 10, .86), rgba(14, 11, 10, .55)); }

/* =========================================================
   Série 1 : accroche, logo dessiné, réalisations, tarifs, scènes
   ========================================================= */

/* Accroche */
.hook__title { margin-bottom: 24px; max-width: 14ch; }
.hook__line { margin: 0 0 40px; max-width: 34em; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5; color: var(--creme-70); }

/* Titres avec ligne de sous-titre */
.title--with-line { margin-bottom: 14px; }
.title-line { margin: 0 0 clamp(40px, 7vh, 72px); font-size: 17px; color: var(--creme-70); }

/* Logo dessiné : lance numide, reflet au survol (0,6 s) */
.logo-mark { overflow: visible; }
.spear-glint { transform: translateY(60px); }
.nav__logo:hover .spear-glint, .nav__logo:focus-visible .spear-glint,
.foot__logo:hover .spear-glint, .foot__logo:focus-visible .spear-glint {
  animation: spear-glint .6s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes spear-glint {
  from { transform: translateY(60px); }
  to   { transform: translateY(-86px); }
}

/* ---------- Réalisations : 3 bulles nettes, même taille ---------- */
.bubbles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 10px 0 40px;
}
.bubble {
  --size: clamp(210px, 22vw, 290px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-bottom: 78px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--creme);
  font: inherit;
  cursor: pointer;
}
.bubble:nth-child(2) { margin-top: 70px; }
.bubble__float { position: absolute; inset: 0; animation: float var(--fd, 13s) ease-in-out infinite alternate; }
@keyframes float {
  0%   { translate: 0 0; }
  50%  { translate: -8px 12px; }
  100% { translate: 8px -8px; }
}
.bubble__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(243, 233, 218, .12), rgba(243, 233, 218, .02) 55%), #17110F;
  box-shadow:
    inset 0 0 0 1px rgba(243, 233, 218, .22),
    inset 0 -18px 40px rgba(196, 100, 58, .28),
    inset 0 12px 30px rgba(243, 233, 218, .1),
    0 30px 70px -30px rgba(196, 100, 58, .55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bubble__glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 38% 22% at 32% 18%, rgba(255, 250, 240, .35), rgba(255, 250, 240, 0) 70%),
    radial-gradient(circle at 50% 50%, rgba(14, 11, 10, 0) 60%, rgba(14, 11, 10, .4) 100%);
  pointer-events: none;
}
.bubble__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 30%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.bubble__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.bubble__logo img { width: 64%; height: auto; }
.bubble__logo--td img { width: 40%; }
.bubble:hover .bubble__glass, .bubble:focus-visible .bubble__glass, .bubble.is-peek .bubble__glass {
  transform: scale(1.04);
  box-shadow: inset 0 0 0 1px rgba(243, 233, 218, .35), 0 40px 90px -30px rgba(232, 162, 90, .6);
}
.bubble:hover .bubble__shot, .bubble:focus-visible .bubble__shot, .bubble.is-peek .bubble__shot { opacity: 1; transform: scale(1); }
.bubble:hover .bubble__logo, .bubble:focus-visible .bubble__logo, .bubble.is-peek .bubble__logo { opacity: 0; transform: scale(.92); }
.bubble__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  translate: -50% 0;
  white-space: nowrap;
  text-align: center;
  font: 600 18px/1.2 var(--f-titre);
}
.bubble__label small {
  display: block;
  margin-top: 6px;
  font: 500 11px/1 var(--f-texte);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--creme-50);
}
.bubble__label .is-concept {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(232, 162, 90, .55);
  border-radius: 999px;
  color: var(--or);
}
@media (max-width: 760px) {
  .bubbles { grid-template-columns: 1fr; gap: 0; }
  .bubble { --size: 230px; margin-bottom: 96px; }
  .bubble:nth-child(2) { margin-top: 0; }
}

/* ---------- Tarifs : maintenance détaillée et options ---------- */
.extra--detail { display: grid; grid-template-columns: 220px 1fr; gap: 8px 22px; align-items: start; margin: 0; }
.extra__name b { color: var(--or); font-weight: 500; }
.extra__text { color: var(--creme-70); line-height: 1.6; }
@media (max-width: 760px) { .extra--detail { grid-template-columns: 1fr; } }

/* ---------- Scènes : on « entre » dans le bouton ---------- */
html.scene-open, html.scene-open body { overflow: hidden; }
.portal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  pointer-events: none;
}
.portal.is-on { display: block; }
.scene {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: var(--nuit);
  color: var(--creme);
}
.scene[hidden] { display: none; }
.scene__scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 92px max(20px, 4vw) 60px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.scene__close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(243, 233, 218, .25);
  border-radius: 999px;
  background: rgba(14, 11, 10, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--creme);
  font: 500 14px/1 var(--f-texte);
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.scene__close span { font-size: 20px; line-height: 1; }
.scene__close:hover { border-color: rgba(243, 233, 218, .55); }
.scene__close:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* Panneaux en verre dépoli */
.panel {
  position: relative;
  width: min(640px, 100%);
  margin: auto 0;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(155deg, rgba(243, 233, 218, .11), rgba(243, 233, 218, .03) 60%), rgba(14, 11, 10, .3);
}
.panel--small { width: min(520px, 100%); }
.panel__title { margin: 0 0 26px; font: 600 clamp(28px, 3.6vw, 40px)/1.05 var(--f-titre); letter-spacing: -.02em; }
.panel__text { margin: 0; font-size: 17px; color: var(--creme-70); }
.panel__note { margin: 22px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--creme-50); }
.panel__done { display: none; padding: 6px 0; font-size: 16px; line-height: 1.6; }
.panel__done strong { display: block; margin-bottom: 6px; font: 600 26px/1.1 var(--f-titre); }
.panel.is-sent .form { display: none; }
.panel.is-sent .panel__done { display: block; }
.panel .todo { display: block; width: max-content; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input[type="date"] { color-scheme: dark; min-height: 49px; }
.slots { margin: 0; padding: 0; border: 0; min-width: 0; }
.slots legend { padding: 0; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--creme-50); }
.slots__list { display: flex; gap: 6px; }
.slots__list label { position: relative; flex: 1; }
.slots__list input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.slots__list span {
  display: flex; align-items: center; justify-content: center;
  height: 49px; padding: 0 6px;
  border: 1px solid rgba(243, 233, 218, .14); border-radius: 12px;
  background: rgba(14, 11, 10, .5);
  font-size: 14px; color: var(--creme-70); text-align: center;
  transition: border-color .3s, background-color .3s, color .3s;
}
.slots__list input:checked + span { border-color: var(--or); background: rgba(232, 162, 90, .14); color: var(--creme); }
.slots__list input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* Scène rendez-vous : le cavalier, cadré plus près, flou et assombri */
.scene__rider {
  position: absolute;
  inset: -4%;
  background: url("../assets/cavalier-desktop.jpg") 52% 45% / cover no-repeat;
  transform: scale(1.7);
  transform-origin: 51% 40%;
  filter: blur(7px) brightness(.5) saturate(1.05);
}
@media (orientation: portrait) {
  .scene__rider { background-image: url("../assets/cavalier-mobile.jpg"); transform: scale(1.35); transform-origin: 45% 38%; }
}
.scene--rdv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, rgba(14, 11, 10, .1), rgba(14, 11, 10, .65));
}

/* Scènes de message (formulaire, WhatsApp) */
.scene--msg {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(196, 100, 58, .28), transparent),
    radial-gradient(50% 50% at 75% 75%, rgba(232, 162, 90, .16), transparent),
    var(--nuit);
}

@media (max-width: 760px) {
  .scene__scroll { padding: 80px 16px 40px; }
}

/* Mouvement réduit : fondus simples, pas de zoom */
@media (prefers-reduced-motion: reduce) {
  .bubble__float, .spear-glint { animation: none !important; }
  .bubble:hover .bubble__glass, .bubble:focus-visible .bubble__glass, .bubble.is-peek .bubble__glass { transform: none; }
  .bubble__shot, .bubble__logo { transform: none !important; }
  .bubble__glass { transition: border-color .3s, box-shadow .3s; }
}

/* La visionneuse s'ouvre depuis la bulle (animation en JS) */
.viewer[open] { animation: none; }
.field .slots__list label { font-size: 14px; letter-spacing: 0; text-transform: none; color: inherit; }
.slots__list span { white-space: nowrap; }
.bubble__label .is-concept { display: table; margin: 8px auto 0; }

/* =========================================================
   Tarifs : aperçus des produits
   ========================================================= */

/* Cartes : zoom léger et aperçu du vrai produit au survol (au toucher sur téléphone) */
.price {
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.price ul { min-height: 150px; align-content: start; }
.price:hover, .price:focus-within, .price.is-active {
  transform: scale(1.04);
  z-index: 2;
  border-color: rgba(232, 162, 90, .35);
  box-shadow: inset 0 1px 0 rgba(243, 233, 218, .1), 0 40px 90px -40px rgba(196, 100, 58, .7);
}
.price__peek {
  position: absolute;
  left: 20px;
  right: 20px;
  top: var(--peek-top, 150px);
  bottom: 96px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(243, 233, 218, .14);
  background: #120D0B;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: scale(.97);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.price__peek img {
  position: absolute;
  inset: 18px 0 0;
  width: 100%;
  height: calc(100% - 18px);
  object-fit: cover;
  object-position: 50% 0;
}
.price__peek-bar { position: absolute; inset: 0 0 auto; height: 18px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: rgba(28, 22, 19, .96); }
.price__peek-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(243, 233, 218, .3); }
.price:hover .price__peek, .price:focus-within .price__peek, .price.is-active .price__peek {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.price__peek:hover, .price__peek:focus-visible { border-color: rgba(232, 162, 90, .6); }
.price__peek:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* =========================================================
   Navigation en profondeur (menu et « Voir les tarifs ») :
   l'écran actuel recule et se floute, la partie visée arrive de l'arrière-plan
   ========================================================= */
.nav { view-transition-name: nav; }
@keyframes dive-out { to { transform: scale(.92); filter: blur(8px); opacity: 0; } }
@keyframes dive-in { from { transform: scale(1.08); filter: blur(8px); opacity: 0; } }
@keyframes dive-fade-out { to { opacity: 0; } }
@keyframes dive-fade-in { from { opacity: 0; } }
html.dive::view-transition-old(root) { animation: dive-out .45s cubic-bezier(.4, 0, .2, 1) both; }
html.dive::view-transition-new(root) { animation: dive-in .45s cubic-bezier(.4, 0, .2, 1) both; }
html.dive-fade::view-transition-old(root) { animation: dive-fade-out .3s ease both; }
html.dive-fade::view-transition-new(root) { animation: dive-fade-in .3s ease both; }
html.dive::view-transition-group(nav), html.dive-fade::view-transition-group(nav) { animation-duration: .3s; }

@media (prefers-reduced-motion: reduce) {
  .price:hover, .price:focus-within, .price.is-active { transform: none; }
  .price__peek { transform: none; }
  .price { transition: border-color .3s, box-shadow .3s; }
}

/* =========================================================
   Décors du voyage : route → cité → mausolée → souk → mer
   Couche fixe entre l'intro (z 0) et le contenu (z 2). Chaque décor est flouté (profondeur de champ)
   et assombri (--b) ; le passage de l'un à l'autre est un fondu enchaîné lié au défilement (js/site.js).
   ========================================================= */
.voyage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: var(--nuit);
}
.voyage__layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  bottom: -90px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.voyage__layer i {
  position: absolute;
  inset: -16px;
  background: center / cover no-repeat;
  filter: blur(var(--blur, 5.5px)) brightness(var(--b, .5));
}
.voyage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, rgba(7, 7, 10, 0) 40%, rgba(7, 7, 10, .6) 100%),
    linear-gradient(to bottom, rgba(14, 11, 10, .3), rgba(14, 11, 10, 0) 22%, rgba(14, 11, 10, 0) 70%, rgba(14, 11, 10, .4));
}

/* =========================================================
   Accessibilité : lien d'évitement, contour de focus par défaut
   ========================================================= */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--nuit);
  font: 500 14px/1 var(--f-texte);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; outline: 2px solid var(--or); outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
