/* ==========================================================
   Effets « waouh » : ouverture de rideau, curseur doré,
   démonstration des expertises pendant le défilement
   ========================================================== */

/* ---------- Ouverture de rideau ---------- */
/* Durée totale ≈ 10,6 s : traits 0–2 s · logo 1,3–3,5 s · signature 3,8–6,5 s · lecture 3 s · rideau 9,5–10,6 s (voir main.js) */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, #15161a, #08090b 70%);
  clip-path: inset(0 0 0 0); animation: introOut 1.1s cubic-bezier(.76, 0, .24, 1) 9.5s forwards;
}
.intro.is-skipped { animation: introOut .6s cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Papier millimétré d'architecte, à peine visible */
.intro__grid { position: absolute; inset: 0; opacity: 0; animation: fadeIn 2s ease forwards;
  background-image: linear-gradient(rgba(198, 164, 103, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 164, 103, .05) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000, transparent); }
@keyframes fadeIn { to { opacity: 1; } }

.intro__stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro__plan { position: relative; width: min(680px, 84vw); aspect-ratio: 1100 / 484; }

/* Traits de construction : ils traversent l'écran, puis s'effacent derrière le logo */
.cl { position: absolute; display: block; background: linear-gradient(90deg, transparent, var(--gold-soft) 20%, #fff6dc 50%, var(--gold-soft) 80%, transparent); box-shadow: 0 0 10px rgba(226, 204, 159, .55); }
.cl--h { top: var(--y); left: 50%; width: 140vw; height: 1px; margin-left: -70vw; transform: scaleX(0); animation: clH 1.6s cubic-bezier(.7, 0, .2, 1) calc(var(--d) * 1.6) forwards, clOut 1.2s ease 3.6s forwards; }
.cl--v { left: var(--x); top: 50%; height: 140vh; width: 1px; margin-top: -70vh; background: linear-gradient(180deg, transparent, var(--gold-soft) 20%, #fff6dc 50%, var(--gold-soft) 80%, transparent); transform: scaleY(0); animation: clV 1.6s cubic-bezier(.7, 0, .2, 1) calc(var(--d) * 1.6) forwards, clOut 1.2s ease 3.6s forwards; }
.cl--h:nth-child(odd) { transform-origin: left; } .cl--h:nth-child(even) { transform-origin: right; }
.cl--v:nth-child(odd) { transform-origin: top; } .cl--v:nth-child(even) { transform-origin: bottom; }
.cl--faint { opacity: .35; box-shadow: none; }
@keyframes clH { to { transform: scaleX(1); } }
@keyframes clV { to { transform: scaleY(1); } }
@keyframes clOut { to { opacity: 0; } }

/* Le logo se dessine de gauche à droite, net et lumineux */
.intro__logo { position: relative; display: block; width: 100%; height: auto; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 0 14px rgba(242, 217, 170, .7)) blur(1.5px);
  animation: logoDraw 2.2s cubic-bezier(.65, 0, .25, 1) 1.3s forwards, logoSet 1.2s ease 3.2s forwards; }
@keyframes logoDraw { to { clip-path: inset(0 0 0 0); } }
@keyframes logoSet { to { filter: drop-shadow(0 0 0 rgba(242, 217, 170, 0)) blur(0); } }

/* Signature : apparaît ligne après ligne */
.intro__name, .intro__tag, .intro__services { opacity: 0; transform: translateY(10px); animation: lineIn 1.1s cubic-bezier(.2, .8, .2, 1) forwards; color: var(--gold-soft); }
.intro__name { display: flex; align-items: center; gap: 26px; margin-top: min(26px, 3vh); font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .5em; padding-left: .5em; animation-delay: 3.8s; }
.intro__name span { display: block; width: min(150px, 18vw); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); transform: scaleX(0); animation: clH 1.3s cubic-bezier(.7, 0, .2, 1) 4.1s forwards; }
.intro__name span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.intro__name span:first-child { transform-origin: right; } .intro__name span:last-child { transform-origin: left; }
.intro__tag { margin-top: 12px; font-size: clamp(11px, 1.35vw, 16px); letter-spacing: .3em; text-transform: uppercase; animation-delay: 4.6s; }
.intro__services { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: clamp(9px, 1vw, 12px); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); animation-delay: 5.4s; }
.intro__services span + span::before { content: "|"; margin: 0 18px; opacity: .6; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
/* Les animations de l'accueil attendent la fin du rideau */
.intro-playing .hero *, .intro-playing .hero { animation-play-state: paused !important; }

/* ---------- Curseur doré ---------- */
.cursor-dot, .cursor-ring { display: none; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 250; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--gold); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid rgba(198, 164, 103, .6);
  transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s, opacity .3s;
  place-items: center;
}
.has-cursor .cursor-ring { display: grid; }
.cursor-ring span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bg); font-weight: 500; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor-ring.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(198, 164, 103, .12); border-color: var(--gold); }
.cursor-ring.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-label span { opacity: 1; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.has-cursor:not(.has-cursor-ready) .cursor-ring, .has-cursor:not(.has-cursor-ready) .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }

/* Boutons « aimantés » */
.btn { transition: background .3s, color .3s, border-color .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Démonstration des expertises ---------- */
.showcase { padding-bottom: 60px; }
.sc { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.sc > * { min-width: 0; }
.sc__stage { grid-column: 2; grid-row: 1; position: sticky; top: 13vh; align-self: start; height: 74vh; min-height: 480px; display: flex; flex-direction: column; }
.sc__steps { grid-column: 1; grid-row: 1; }
.sc__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .25; transition: opacity .6s; }
.sc__step.is-active { opacity: 1; }
.sc__step:first-child { min-height: 60vh; }
.sc__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 26px; }
.sc__step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.4vw, 84px); line-height: 1; margin: 14px 0 22px; }
.sc__step p { color: var(--muted); font-size: 18px; max-width: 440px; }
.sc__step ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.sc__step li { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 12px; color: var(--ink); opacity: .85; }
.sc__step .link-arrow { align-self: flex-start; }

.sc__screen {
  position: relative; flex: 1; border: 1px solid var(--line); background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(198, 164, 103, .1), transparent 70%), var(--bg2);
  overflow: hidden;
}
.sc__screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 40px 40px; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.96); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; }
.sc__progress { list-style: none; display: flex; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.sc__progress li { flex: 1; padding-top: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #5d5a54; position: relative; transition: color .4s; }
.sc__progress li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--gold); transition: width .6s; }
.sc__progress li.is-active { color: var(--gold); }
.sc__progress li.is-active::before, .sc__progress li.is-done::before { width: 100%; }
.sc__progress li.is-done { color: var(--muted); }

/* Étiquettes flottantes communes */
.sc-tag { position: absolute; font-size: 12px; background: var(--bg); border: 1px solid var(--gold); color: var(--gold-soft); padding: 7px 14px; opacity: 0; transform: translateY(10px); }
.is-active .sc-tag { animation: tagIn .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.is-active .sc-tag--a { animation-delay: 1.6s; }
.is-active .sc-tag--b { animation-delay: 2.2s; }
@keyframes tagIn { to { opacity: 1; transform: none; } }

/* Scène 1 : site haut de gamme « Maison Azur » (restaurant fictif) */
.az { position: relative; width: 86%; max-width: 600px; }
.az__browser { border-radius: 10px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06); }
.az__bar { display: flex; gap: 6px; align-items: center; background: #1d2026; padding: 9px 12px; }
.az__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3d45; }
.az__bar i:nth-child(1) { background: #ff5f57; } .az__bar i:nth-child(2) { background: #febc2e; } .az__bar i:nth-child(3) { background: #28c840; }
.az__bar span { margin: 0 auto; font-size: 10px; color: #9aa0a8; background: rgba(255, 255, 255, .06); padding: 3px 40px; border-radius: 5px; }
.az__site { background: #f7f3ec; }
.az__hero { position: relative; aspect-ratio: 16 / 8.6; background: url("../img/azur-ordi.jpg") center 62% / cover no-repeat; color: #fff; }
.az__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 22, 34, .82) 0%, rgba(8, 22, 34, .45) 45%, rgba(8, 22, 34, 0) 75%), linear-gradient(180deg, rgba(8, 22, 34, .55), transparent 30%); }
.az__nav { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 22px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.az__nav b { font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .02em; text-transform: none; margin-right: auto; }
.az__nav b em, .az__title em, .m-site em { font-style: italic; color: #e8d3a6; }
.az__nav span { opacity: .85; }
.az__book { font-style: normal; border: 1px solid rgba(232, 211, 166, .8); color: #e8d3a6; padding: 5px 11px; }
.az__copy { position: relative; padding: 4% 22px 0; max-width: 62%; }
.az__copy small { font-size: 8px; letter-spacing: .26em; text-transform: uppercase; color: #e8d3a6; }
.az__title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1; margin: 10px 0 16px; font-weight: 400; }
.az__btns { display: flex; gap: 8px; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.az__btns span { background: #e8d3a6; color: #10202e; padding: 8px 12px; }
.az__btns span + span { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); }
.az__strip { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 10px 16px; color: #10202e; }
.az__strip div { padding: 0 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.az__strip div + div { border-left: 1px solid #ddd3c2; }
.az__strip i { grid-row: span 2; font-family: var(--serif); font-style: italic; color: #b08a4f; font-size: 13px; }
.az__strip b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.az__strip span { font-size: 8.5px; color: #6c6a64; }

/* iPhone réaliste */
.iphone {
  position: absolute; right: -9%; bottom: -16%; width: 31%; aspect-ratio: 9 / 19.5; border-radius: 15% / 7%;
  padding: 2.4%; background: linear-gradient(145deg, #4a4c52, #1b1c1f 40%, #2c2d31 60%, #5a5c62);
  box-shadow: 0 0 0 1px #0b0b0c, inset 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 70px -20px rgba(0, 0, 0, .95);
}
.iphone__btn { position: absolute; width: 3px; background: #2a2b2f; border-radius: 2px; }
.iphone__btn--action { left: -3px; top: 17%; height: 4%; }
.iphone__btn--up { left: -3px; top: 25%; height: 8%; }
.iphone__btn--down { left: -3px; top: 35%; height: 8%; }
.iphone__btn--power { right: -3px; top: 27%; height: 12%; }
.iphone__screen { position: relative; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #f7f3ec; }
.iphone__status { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 7% 9% 0; color: #fff; font-size: 7px; font-weight: 600; }
.iphone__island { position: absolute; left: 50%; top: 2.2%; width: 34%; height: 13px; margin-left: -17%; background: #000; border-radius: 10px; }
.iphone__icons { display: flex; gap: 3px; align-items: center; }
.iphone__icons i { display: block; background: #fff; border-radius: 1px; }
.iphone__icons .sig { width: 9px; height: 5px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.iphone__icons .wifi { width: 8px; height: 6px; clip-path: polygon(50% 100%, 0 30%, 25% 0, 75% 0, 100% 30%); }
.iphone__icons .bat { width: 13px; height: 6px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.iphone__home { position: absolute; bottom: 1.6%; left: 50%; width: 36%; height: 3px; margin-left: -18%; background: #10202e; border-radius: 3px; opacity: .6; }
.m-site { height: 100%; display: flex; flex-direction: column; color: #10202e; }
.m-site__hero { position: relative; height: 62%; background: url("../img/azur-mobile.jpg") 40% 60% / cover no-repeat; color: #fff; }
.m-site__hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 34, .6) 0%, transparent 35%, transparent 50%, rgba(8, 22, 34, .85) 100%); }
.m-site__nav { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 22% 9% 0; }
.m-site__nav b { font-family: var(--serif); font-size: 11px; font-weight: 500; }
.m-site__burger { width: 11px; height: 6px; border-top: 1px solid #fff; border-bottom: 1px solid #fff; }
.m-site__copy { position: absolute; left: 9%; right: 9%; bottom: 7%; }
.m-site__copy small { font-size: 5px; letter-spacing: .24em; text-transform: uppercase; color: #e8d3a6; }
.m-site__copy p { font-family: var(--serif); font-size: 15px; line-height: 1; margin-top: 4px; }
.m-site__list { padding: 6% 9% 0; }
.m-site__list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #ddd3c2; }
.m-site__list b { font-family: var(--serif); font-weight: 500; font-size: 9px; }
.m-site__list span { color: #b08a4f; font-size: 9px; }
.m-site__cta { margin: auto 9% 14%; background: #10202e; color: #e8d3a6; text-align: center; font-size: 5.5px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; }

/* Apparition de la scène */
.scene--web.is-active .az__browser { animation: buildIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.scene--web.is-active .az__copy > * { animation: buildIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.scene--web.is-active .az__copy > :nth-child(1) { animation-delay: .35s; }
.scene--web.is-active .az__copy > :nth-child(2) { animation-delay: .5s; }
.scene--web.is-active .az__copy > :nth-child(3) { animation-delay: .7s; }
.scene--web.is-active .az__strip div { animation: buildIn .7s cubic-bezier(.2, .8, .2, 1) both; }
.scene--web.is-active .az__strip div:nth-child(1) { animation-delay: .85s; }
.scene--web.is-active .az__strip div:nth-child(2) { animation-delay: .95s; }
.scene--web.is-active .az__strip div:nth-child(3) { animation-delay: 1.05s; }
.scene--web.is-active .az__hero { animation: kenburns 9s ease-out both; }
.scene--web.is-active .iphone { animation: phoneIn 1s cubic-bezier(.2, .8, .2, 1) 1.1s both; }
@keyframes buildIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translate(30px, 40px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { background-size: 112%; } to { background-size: 100%; } }
.scene--web .sc-tag--a { top: -15%; left: -4%; }
.scene--web .sc-tag--b { bottom: -15%; left: 4%; }

/* Scène 2 : réseaux de Maison Azur (TikTok + Instagram) */
.dg { position: relative; width: 90%; max-width: 600px; display: flex; align-items: center; justify-content: center; gap: 4%; }
.iphone--tiktok { position: relative; right: auto; bottom: auto; width: 42%; flex-shrink: 0; z-index: 2; }
.tt { background: #000; color: #fff; font-size: 7px; }
.tt .iphone__status { z-index: 5; }
.tt__feed { position: absolute; inset: 0; }
.tt__clip { position: absolute; inset: 0; transform: translateY(100%); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.tt__clip.is-current { transform: none; }
.tt__clip.is-past { transform: translateY(-100%); }
.tt__clip video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.tt__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 58%, rgba(0,0,0,.75) 100%); }
.tt__caption { position: absolute; left: 6%; right: 24%; bottom: 17%; z-index: 2; font-size: 7px; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tt__caption b { display: block; font-size: 8px; margin-bottom: 2px; }
.tt__top { position: absolute; top: 12%; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 10px; font-size: 7.5px; color: rgba(255,255,255,.7); }
.tt__top b { color: #fff; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.tt__side { position: absolute; right: 5%; bottom: 20%; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.tt__avatar { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 10px; color: #10202e; background: linear-gradient(135deg, #f1e3c2, #c6a467); border: 1px solid #fff; }
.tt__avatar i { position: absolute; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fe2c55; color: #fff; font-style: normal; font-size: 8px; line-height: 10px; text-align: center; }
.tt__ico { font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tt__ico--heart { color: #fff; }
.scene--digital.is-active .tt__ico--heart { animation: heartBeat 2.5s ease-in-out infinite 1s; }
@keyframes heartBeat { 0%, 70%, 100% { transform: none; color: #fff; } 78% { transform: scale(1.35); color: #fe2c55; } 86% { transform: scale(1); color: #fe2c55; } }
.tt__disc { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#333, #111, #333, #111); border: 4px solid #222; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tt__music { position: absolute; left: 6%; bottom: 12.5%; z-index: 4; font-size: 6.5px; opacity: .9; }
.tt__tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: space-around; align-items: center; padding: 6px 4px 12px; background: #000; font-size: 5.5px; color: rgba(255,255,255,.75); }
.tt__tabs i { font-style: normal; background: #fff; color: #000; font-weight: 700; padding: 1px 7px; border-radius: 4px; box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }

.ig { position: relative; width: 50%; background: #fff; color: #111; border-radius: 14px; padding: 14px 12px 12px; box-shadow: 0 40px 70px -24px rgba(0,0,0,.9); font-size: 8px; }
.ig__head { display: flex; gap: 10px; align-items: center; }
.ig__avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; color: #10202e; background: linear-gradient(135deg, #f1e3c2, #c6a467); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d62976; }
.ig__head b { display: block; font-size: 10px; }
.ig__head small { display: block; font-size: 7.5px; color: #666; line-height: 1.4; }
.ig__high { display: flex; gap: 8px; margin: 12px 0 10px; }
.ig__high span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6.5px; color: #333; }
.ig__high i { width: 28px; height: 28px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #ddd; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig__grid i { position: relative; aspect-ratio: 1; background-size: cover; background-position: center; }
.ig__grid i.is-reel::after { content: "▶"; position: absolute; top: 4px; right: 5px; color: #fff; font-size: 7px; text-shadow: 0 1px 2px rgba(0,0,0,.6); font-style: normal; }
.scene--digital.is-active .ig { animation: buildIn .9s cubic-bezier(.2, .8, .2, 1) .5s both; }
.scene--digital.is-active .ig__grid i { animation: tilePop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.scene--digital.is-active .ig__grid i:nth-child(1) { animation-delay: .9s; } .scene--digital.is-active .ig__grid i:nth-child(2) { animation-delay: 1s; }
.scene--digital.is-active .ig__grid i:nth-child(3) { animation-delay: 1.1s; } .scene--digital.is-active .ig__grid i:nth-child(4) { animation-delay: 1.2s; }
.scene--digital.is-active .ig__grid i:nth-child(5) { animation-delay: 1.3s; } .scene--digital.is-active .ig__grid i:nth-child(6) { animation-delay: 1.4s; }
@keyframes tilePop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.scene--digital.is-active .iphone--tiktok { animation: buildIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.scene--digital .sc-tag--a { top: 3%; left: 50%; }
.scene--digital .sc-tag--b { bottom: 4%; right: 0; }

/* Scène 3 : vidéo */
.sm { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sm__frame { width: 230px; aspect-ratio: 9 / 16; border-radius: 16px; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 25%, #6b5530, #141210 75%); box-shadow: 0 40px 80px -30px #000; border: 1px solid rgba(198,164,103,.3); }
.sm__rec { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.5); padding: 4px 8px; color: #fff; }
.sm__words { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-size: 38px; line-height: 1; text-transform: uppercase; color: #fff; }
.sm__words > * { grid-area: 1 / 1; opacity: 0; }
.sm__words em { color: var(--gold-soft); text-transform: none; font-size: 34px; }
.scene--motion.is-active .sm__words > * { animation: word 5s infinite; }
.scene--motion.is-active .sm__words > :nth-child(2) { animation-delay: 1s; }
.scene--motion.is-active .sm__words > :nth-child(3) { animation-delay: 2s; }
.scene--motion.is-active .sm__words > :nth-child(4) { animation-delay: 3s; }
.scene--motion.is-active .sm__words > :nth-child(5) { animation-name: wordLast; animation-delay: 4s; }
@keyframes word { 0% { opacity: 0; transform: scale(1.4); filter: blur(6px); } 4% { opacity: 1; transform: none; filter: none; } 18% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes wordLast { 0% { opacity: 0; transform: translateY(14px); } 4%, 18% { opacity: 1; transform: none; } 20%, 100% { opacity: 0; } }
.sm__bar { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 2px; background: rgba(255,255,255,.2); }
.sm__bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.scene--motion.is-active .sm__bar span { animation: barRun 5s linear infinite; }
@keyframes barRun { to { width: 100%; } }
.sm__timeline { position: relative; width: 300px; height: 34px; border: 1px solid var(--line); background: var(--bg); display: flex; gap: 4px; padding: 6px; }
.sm__timeline i { flex: 1; background: linear-gradient(90deg, rgba(198,164,103,.5), rgba(198,164,103,.2)); }
.sm__timeline .t2 { flex: 1.6; background: rgba(159,183,216,.35); } .sm__timeline .t3 { flex: .8; }
.sm__timeline b { position: absolute; top: -4px; bottom: -4px; left: 6px; width: 2px; background: var(--gold-soft); }
.scene--motion.is-active .sm__timeline b { animation: playhead 5s linear infinite; }
@keyframes playhead { to { left: calc(100% - 8px); } }
.scene--motion .sc-tag--a { top: 14%; left: -46%; }
.scene--motion .sc-tag--b { top: 46%; right: -44%; }

/* Scène 4 : réservation en ligne chez Maison Azur + coulisses automatisées */
.bk { position: relative; width: 92%; max-width: 620px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: center; }
.bk > * { min-width: 0; }
.bk__browser { border-radius: 10px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06); }
.bk__page { position: relative; background: #f7f3ec; color: #10202e; }
.bk__banner { height: 62px; padding: 12px 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(90deg, rgba(8,22,34,.85), rgba(8,22,34,.2)), url("../img/azur-nuit.jpg") center 60% / cover; }
.bk__banner b { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.bk__banner b em { color: #e8d3a6; }
.bk__banner span { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: #e8d3a6; }
.bk__form { padding: 12px 16px 16px; font-size: 9px; }
.bk__label { font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: #8a8478; margin: 8px 0 5px; }
.bk__days, .bk__guests, .bk__times { display: flex; gap: 5px; }
.bk__days span, .bk__guests span, .bk__times span { flex: 1; text-align: center; border: 1px solid #ddd3c2; padding: 5px 0; background: #fff; transition: background .3s, color .3s, border-color .3s; }
.bk__days small { display: block; font-size: 6.5px; color: #8a8478; }
.bk__times .is-full { color: #c5bdae; text-decoration: line-through; }
.bk__form .is-on { background: #10202e; color: #e8d3a6; border-color: #10202e; }
.bk__form .is-on small { color: #e8d3a6; }
.bk__field { margin-top: 10px; border-bottom: 1px solid #c9bfae; padding: 6px 0; min-height: 22px; font-size: 10px; color: #10202e; }
.bk__field:empty::before { content: "Votre nom"; color: #b5ad9f; }
.bk__typed:empty::before { content: "Votre nom"; color: #b5ad9f; }
.bk__caret { display: inline-block; width: 1px; height: 11px; background: #10202e; vertical-align: -2px; opacity: 0; }
.bk__field.is-typing .bk__caret { opacity: 1; animation: caret .8s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bk__confirm { margin-top: 12px; width: 100%; border: 0; background: #10202e; color: #e8d3a6; font: inherit; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; padding: 9px; cursor: default; transition: transform .15s, background .3s; }
.bk__confirm.is-on { transform: scale(.97); background: #b08a4f; color: #fff; }
.bk__done { position: absolute; inset: 62px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f7f3ec; opacity: 0; pointer-events: none; transition: opacity .5s; }
.bk__done.is-on { opacity: 1; }
.bk__check { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #10202e; color: #e8d3a6; font-size: 18px; transform: scale(.4); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.bk__done.is-on .bk__check { transform: none; }
.bk__done b { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 10px 0 4px; }
.bk__done p { font-size: 9px; color: #6c6a64; line-height: 1.5; }

.bk__flow { background: var(--bg); border: 1px solid var(--line); padding: 14px; }
.bk__flow-title { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bk__flow-title .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf8b; box-shadow: 0 0 0 0 rgba(111,191,139,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(111,191,139,0); } 100% { box-shadow: 0 0 0 0 rgba(111,191,139,0); } }
.bk__flow ul { list-style: none; }
.bk__flow li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); opacity: .22; transform: translateX(8px); transition: opacity .5s, transform .5s; }
.bk__flow li.is-on { opacity: 1; transform: none; }
.bk__flow li span { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; color: var(--gold); border: 1px solid rgba(198,164,103,.45); transition: background .4s, color .4s; }
.bk__flow li.is-on span { background: var(--gold); color: var(--bg); }
.bk__flow b { display: block; font-weight: 500; font-size: 12px; }
.bk__flow small { color: var(--muted); font-size: 10px; }

/* Curseur de démonstration */
.bk__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 16px; height: 22px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'%3E%3Cpath d='M1 1v17l4.5-4 3 7 3-1.3-3-6.8H15z' fill='%23fff' stroke='%23111' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); transition: transform .8s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.bk__cursor.is-on { opacity: 1; }
.bk__cursor.is-click { animation: click .25s; }
@keyframes click { 50% { scale: .8; } }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 960px) {
  .sc { display: block; }
  .sc__stage { position: sticky; top: 84px; z-index: 2; height: 40vh; min-height: 280px; background: var(--bg); padding-bottom: 10px; }
  /* Le texte de chaque expertise s'affiche sous l'écran fixe */
  .sc__step { min-height: 95vh; justify-content: flex-end; padding: 0 0 7vh; }
  .sc__step:first-child { min-height: 95vh; }
  .sc__step h3 { font-size: 44px; margin: 8px 0 14px; }
  .sc__step p { font-size: 16px; }
  .sc__step ul { margin: 18px 0 20px; }
  .az { width: 88%; } .az__hero { aspect-ratio: 16 / 10.5; } .az__nav { padding: 9px 12px; font-size: 7px; } .az__nav b { font-size: 12px; } .az__nav span, .az__strip span, .az__btns span + span, .az__copy small { display: none; } .az__copy { padding: 4% 12px 0; max-width: 80%; } .az__title { font-size: 20px; margin: 0 0 10px; } .az__btns span { padding: 6px 9px; font-size: 6.5px; } .az__strip { padding: 9px 4px 10px; } .az__strip div { padding: 0 8px; } .az__strip b { font-size: 10px; } .az__strip i { font-size: 10px; } .az .iphone { display: none; }
  .dg { width: 92%; } .iphone--tiktok { width: 38%; } .ig { display: none; }
  .sm { gap: 10px; }
  .sm__frame { width: 118px; } .sm__words { font-size: 24px; } .sm__words em { font-size: 22px; } .sm__timeline { width: 200px; height: 26px; }
  .bk { grid-template-columns: 1fr; width: 100%; transform: scale(.7); transform-origin: top center; margin-top: 14px; } .scene--flow { place-items: start center; } .bk__flow { display: none; } .bk__banner { height: 46px; padding: 8px 12px; } .bk__form { padding: 8px 12px 12px; } .bk__done { inset: 46px 0 0; }
  .sc-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .has-intro .intro { display: none; }
  .scene { transition: none; }
  .sc__step { opacity: 1; }
}

/* Scène Motion : la pub vidéo de Maison Azur */
.sm__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.7)); }
.sm__rec, .sm__words, .sm__sub, .sm__bar { z-index: 2; }
.sm__words { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.sm__words > :first-child { font-size: 30px; letter-spacing: .12em; }
.sm__sub { position: absolute; left: 10%; right: 10%; bottom: 40px; text-align: center; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); padding: 4px 6px; }
.sm__timeline i { background-size: cover; background-position: center; opacity: .85; }
.sm__words { font-size: 28px; padding: 0 10px; }
.sm__words > :first-child { font-size: 22px; letter-spacing: .14em; }
.sm__words em { font-size: 26px; }
@media (max-width: 960px) { .sm__words { font-size: 16px; } .sm__words > :first-child { font-size: 13px; } .sm__words em { font-size: 15px; } .sm__sub { font-size: 6px; bottom: 26px; } }

/* Instagram vivant : la grille défile, les reels se jouent, les « j'aime » arrivent */
.ig__feed { position: relative; aspect-ratio: 3 / 2.35; overflow: hidden; border-radius: 2px; }
.ig__feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.ig__track { display: grid; grid-template-columns: repeat(3, 1fr); animation: igScroll 26s linear infinite; }
.scene--digital:not(.is-active) .ig__track { animation-play-state: paused; }
@keyframes igScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.ig__track i { position: relative; aspect-ratio: 1; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px #fff; overflow: hidden; }
.ig__track i video { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; }
.ig__track i.is-reel::after { content: "▶"; position: absolute; top: 4px; right: 5px; color: #fff; font-size: 7px; text-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 1; }
.ig__like { position: absolute; left: 50%; top: 50%; z-index: 2; font-size: 26px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.scene--digital.is-active .ig__like { animation: igLike 6s ease-out infinite; }
.scene--digital.is-active .ig__like--2 { animation-delay: 1.5s; }
.scene--digital.is-active .ig__like--3 { animation-delay: 3s; }
.scene--digital.is-active .ig__like--4 { animation-delay: 4.5s; }
@keyframes igLike { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 6% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 12% { transform: translate(-50%, -50%) scale(1); } 22% { opacity: 1; } 30%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ig__track { animation: none; } }
/* Sans flèche : chaque choix s'allume avec une petite pulsation */
.bk__days .is-on, .bk__guests .is-on, .bk__times .is-on { animation: pickPulse .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pickPulse { 0% { transform: scale(.88); } 100% { transform: none; } }

/* Accueil : les 4 encarts sont de petites vidéos */
.vcard { position: relative; isolation: isolate; overflow: hidden; border-radius: 12px; background: #0b0c0e; border: 1px solid rgba(198, 164, 103, .28);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s; }
.vcard video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Boucle en fondu enchaîné (main.js) : la vidéo de devant apparaît par-dessus celle qui se termine */
.vcard.is-looping video { opacity: 0; transition: opacity 1.2s ease; }
.vcard.is-looping video.is-front { opacity: 1; z-index: 2; }
.vcard.is-looping video.is-back { opacity: 1; z-index: 1; transition: none; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .45)); pointer-events: none; }
.vcard--land { width: 300px; aspect-ratio: 16 / 10; }
.vcard--port { width: 168px; aspect-ratio: 9 / 16; border-radius: 18px; }
.float:hover .vcard, .float:focus-visible .vcard { transform: translateY(-6px) scale(1.03); border-color: var(--gold); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 44px -6px rgba(198, 164, 103, .4); }

/* ==========================================================
   Accueil adapté à la hauteur de l'écran (écrans larges mais peu hauts)
   ========================================================== */
.hero { min-height: 100vh; min-height: 100svh; padding: 96px 0 64px; }
.hero h1 { font-size: clamp(40px, min(7.4vw, 12.5vh), 116px); }
.hero .ornament { margin-bottom: min(26px, 2.6vh); }
.hero__lead { margin: min(30px, 3.4vh) auto min(40px, 4.4vh); font-size: clamp(15px, min(1.3vw, 2.3vh), 18px); }
.hero .scroll { bottom: 16px; height: min(60px, 6vh); }

/* Les vidéos se dimensionnent selon la largeur ET la hauteur, et restent dans l'écran */
.float, .float--browser, .float--phone, .float--video, .float--flow { scale: 1; }
.vcard--land { width: min(300px, 19vw, 40vh); }
.vcard--port { width: min(168px, 11vw, 23vh); }
.float--browser { top: 13%; left: 2.5%; }
.float--phone { top: 11%; right: 2.5%; }
.float--video { top: auto; bottom: 9%; left: 6%; }
.float--flow { top: auto; bottom: 10%; right: 4%; }
.float__tag { font-size: 9px; padding: 4px 10px; bottom: -12px; }
@media (max-width: 1100px) { .float { opacity: .6; } }
/* Les vidéos du haut commencent toujours sous le menu */
.float--browser { top: max(13%, 96px); }
.float--phone { top: max(11%, 96px); }
