/* PlaneGuesser — site public. Palette « Peach Skyline » du jeu, ciel « heure dorée » de l'accueil. */
:root {
  --night: #141c2b; --bg: #18222d; --bg2: #1d2937; --surface: rgba(255,255,255,.045); --surface2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09); --text: #dbe6f1; --muted: #93abc3; --white: #fff;
  --peach: #ffdbbb; --peach2: #ffb98a; --sky: #baddff; --mint: #bafff5; --dusk: #496580;
  --ok: #34d399; --ko: #fb7185;
  --r: 20px; --ease: cubic-bezier(.22,1,.36,1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--white); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(20,28,43,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.brand span { font-weight: 900; font-style: italic; font-size: 21px; letter-spacing: -.03em; background: linear-gradient(90deg, var(--peach), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; font-weight: 600; }
.nav .links > a:not(.btn) { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav .links > a:not(.btn):hover { color: var(--white); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.lang a { font: 700 11.5px/1 ui-monospace, monospace; letter-spacing: .06em; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 99px; }
.lang a.on { background: var(--peach); color: var(--night); }
@media (max-width: 720px) { .nav .links .hide-sm { display: none; } .nav .links { gap: 12px; } .nav .wrap { gap: 12px; } .brand span { font-size: 18px; } }

/* ---------- Boutons ---------- */
.btn { --c: var(--peach); --c2: #e9a77a; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--night); text-decoration: none; background: linear-gradient(180deg, #fff1e4, var(--c)); border-radius: 16px; padding: 15px 28px; box-shadow: 0 5px 0 var(--c2), 0 14px 30px -8px rgba(255,190,140,.5); transition: transform .15s var(--ease), box-shadow .15s var(--ease); overflow: hidden; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--c2), 0 18px 34px -8px rgba(255,190,140,.6); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--c2), 0 6px 14px -6px rgba(255,190,140,.5); }
.btn.sm { font-size: 14px; padding: 9px 16px; border-radius: 12px; box-shadow: 0 3px 0 var(--c2); }
.btn.sm:hover { box-shadow: 0 4px 0 var(--c2); } .btn.sm:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c2); }
.btn.ghost { background: var(--surface2); color: var(--white); box-shadow: inset 0 0 0 1px var(--border); }
.btn.ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 13px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); color: var(--white); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.store:hover { background: rgba(0,0,0,.55); transform: translateY(-2px); }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 10.5px; opacity: .75; line-height: 1.1; }
.store b { display: block; font-size: 15px; line-height: 1.2; }

/* ---------- Ciel ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 35% at 50% 62%, rgba(255,190,140,.34) 0%, rgba(255,190,140,0) 70%),
    radial-gradient(ellipse 55% 20% at 50% 66%, rgba(255,226,196,.22) 0%, rgba(255,226,196,0) 70%),
    linear-gradient(180deg, #141c2e 0%, #1e2a44 22%, #34385a 42%, #5c4e6c 56%, #7c5d6e 64%, #4a5068 80%, var(--bg) 100%); }
.star { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 5.5s ease-in-out infinite; opacity: .3; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
.cloud { position: absolute; left: 0; border-radius: 50%; filter: blur(8px); animation: drift linear infinite; will-change: transform; }
@keyframes drift { from { transform: translateX(-100%); } to { transform: translateX(160vw); } }
.flight { position: absolute; left: 0; display: flex; align-items: center; will-change: transform; }
.flight .trail { display: block; height: 2px; width: 220px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,240,228,.5)); }
.flight svg { width: 46px; height: 16px; }
.flight.rtl { flex-direction: row-reverse; } .flight.rtl .trail { background: linear-gradient(270deg, rgba(255,255,255,0), rgba(255,240,228,.5)); } .flight.rtl svg { transform: scaleX(-1); }
.beacon { animation: beacon 1.2s steps(1,end) infinite; }
@keyframes beacon { 0%, 70% { opacity: .15; } 71%, 100% { opacity: 1; } }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(24,34,45,0), var(--bg)); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 900; margin: 18px 0 20px; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--peach), #ffc8a8 40%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero p.sub { font-size: clamp(16px, 2vw, 19px); color: #c3d2e2; max-width: 540px; margin: 0 0 30px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.hero .daily-cta { margin: -10px 0 24px; font-size: 15px; }
.hero .daily-cta a { color: var(--peach); font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(255,219,187,.55); padding-bottom: 2px; }
.hero .daily-cta a:hover { border-bottom-style: solid; }
/* Suggestion de langue (site.js) : en bas, discrète, fermable. */
.lang-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 10px 8px 10px 16px; border-radius: 14px; background: rgba(20,28,43,.97); border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 14px; line-height: 1.3; }
.lang-hint a { color: var(--peach); font-weight: 700; white-space: nowrap; }
.lang-hint button { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.stats b { display: block; font-size: 30px; font-weight: 900; color: var(--white); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

/* Téléphone */
.stage { position: relative; height: 620px; display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.phone { position: relative; width: 290px; aspect-ratio: 1170/2532; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #3a4556, #121821); box-shadow: 0 0 0 1.5px rgba(255,255,255,.12) inset, 0 40px 80px -20px rgba(0,0,0,.65), 0 0 120px -20px rgba(255,190,140,.35); transform: rotateY(-14deg) rotateX(4deg) rotateZ(1.5deg); transition: transform .6s var(--ease); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.float { position: absolute; border-radius: 16px; box-shadow: 0 24px 50px -14px rgba(0,0,0,.6); animation: bob 6s ease-in-out infinite; }
.float.card { width: 150px; right: -6px; top: 40px; transform: rotate(8deg); animation-delay: -2s; border-radius: 12px; }
.float.pill { left: -40px; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(20,28,43,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); font-size: 13.5px; color: var(--white); font-weight: 700; }
.float.pill i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(52,211,153,.18); color: var(--ok); }
.float.pill small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.3); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--peach); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero .ctas, .stores, .stats { justify-content: center; }
  .hero .daily-cta { text-align: center; }
  .lang-hint span { display: none; }
  .kicker::before { display: none; }
  .stage { height: 520px; }
  .phone { width: 240px; transform: none; }
  .float.card { width: 118px; right: calc(50% - 200px); }
  .float.pill { left: calc(50% - 200px); bottom: 24px; }
  .scroll-hint { display: none; }
}
@media (max-width: 440px) { .float.card { right: 0; width: 100px; } .float.pill { left: 0; } .stats { gap: 20px; } .stats b { font-size: 25px; } }

/* ---------- Sections ---------- */
section.block { position: relative; padding: 110px 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.head h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; margin: 14px 0 14px; }
.head p { color: var(--muted); font-size: 17px; margin: 0; }
.glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; z-index: -1; }

/* ---------- Démo jouable ---------- */
.demo { max-width: 680px; margin: 0 auto; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--border); border-radius: 28px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.demo-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 14px; font: 700 12px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 26px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); transition: background .3s; }
.dots i.ok { background: var(--ok); } .dots i.ko { background: var(--ko); } .dots i.cur { background: var(--peach); }
.frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #0e141c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.frame img { position: absolute; max-width: none; object-fit: cover; transition: all .9s var(--ease); }
.frame .zone { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 11px; border-radius: 99px; background: rgba(10,14,20,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--peach); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.frame .loader { position: absolute; inset: 0; display: grid; place-items: center; background: #0e141c; z-index: 1; transition: opacity .3s; }
.frame .loader::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--peach); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.frame.flash-ok { box-shadow: inset 0 0 0 3px var(--ok); } .frame.flash-ko { box-shadow: inset 0 0 0 3px var(--ko); }
.reveal-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 14px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75)); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .5s .4s, transform .5s .4s var(--ease); }
.reveal-cap.on { opacity: 1; transform: none; }
.reveal-cap b { font-size: 18px; } .reveal-cap span { color: var(--peach); font-weight: 600; } .reveal-cap small { display: block; opacity: .7; font-size: 11.5px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.choice { font: 700 16px var(--font); color: var(--white); background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .3s; }
.choice:hover:not(:disabled) { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.choice:disabled { cursor: default; }
.choice.ok { background: rgba(52,211,153,.18); border-color: var(--ok); color: #b9f5dc; }
.choice.ko { background: rgba(251,113,133,.16); border-color: var(--ko); color: #ffc7d0; animation: shake .4s; }
.choice.dim { opacity: .4; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.feedback { min-height: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.feedback.on { grid-template-rows: 1fr; }
.feedback > div { overflow: hidden; }
.feedback .inner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 6px 4px; }
.feedback p { margin: 0; font-size: 14.5px; color: var(--text); flex: 1 1 300px; }
.feedback p strong { display: block; font-size: 17px; color: var(--white); margin-bottom: 2px; }
.end { text-align: center; padding: 30px 10px 14px; }
.end .big { font-size: 64px; font-weight: 900; color: var(--white); letter-spacing: -.04em; line-height: 1; }
.end p { color: var(--muted); max-width: 440px; margin: 12px auto 22px; }
.end .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 520px) { .choice { font-size: 14.5px; padding: 14px 8px; } .demo { padding: 12px; border-radius: 22px; } }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: center; }
.mode-list { display: grid; gap: 12px; }
.mode { display: flex; gap: 16px; text-align: left; align-items: flex-start; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); color: inherit; font: inherit; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.mode:hover { background: var(--surface2); }
.mode.on { background: linear-gradient(135deg, rgba(255,219,187,.12), rgba(186,221,255,.06)); border-color: rgba(255,219,187,.35); transform: translateX(6px); }
.mode .ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; background: rgba(255,255,255,.07); }
.mode h3 { font-size: 19px; margin: 2px 0 6px; } .mode p { margin: 0; font-size: 14.5px; color: var(--muted); }
.mode-phone { position: relative; justify-self: center; }
.mode-phone .phone { width: 300px; transform: none; }
.mode-phone .phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s var(--ease); }
.mode-phone .phone img.on { opacity: 1; transform: none; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } .mode-phone { order: -1; } .mode-phone .phone { width: 230px; } .mode.on { transform: none; } }

/* ---------- Mur de photos ---------- */
.wall { display: grid; gap: 14px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: marquee var(--d, 80s) linear infinite; }
.track.rev { animation-direction: reverse; }
.wall:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { position: relative; width: 240px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; flex: none; background: var(--bg2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }

/* ---------- A320 vs 737 ---------- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.vs-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.vs-card .ph { aspect-ratio: 16/10; overflow: hidden; } .vs-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.vs-card h3 { font-size: 24px; padding: 18px 22px 6px; }
.vs-card ul { list-style: none; margin: 0; padding: 4px 22px 22px; }
.vs-card li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--border); font-size: 15px; }
.vs-card li:first-child { border-top: 0; }
.vs-card li::before { content: '✓'; color: var(--peach); font-weight: 900; }
.vs-mid { display: grid; place-items: center; }
.vs-mid b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 20px; font-weight: 900; font-style: italic; color: var(--night); background: linear-gradient(135deg, var(--peach), var(--sky)); box-shadow: 0 0 0 8px rgba(255,219,187,.08), 0 0 40px rgba(255,219,187,.35); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } .vs-mid b { width: 52px; height: 52px; font-size: 16px; } }
.center { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: background .2s; }
.faq details[open] { background: var(--surface2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--white); position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 400; color: var(--peach); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA finale ---------- */
.final { position: relative; overflow: hidden; text-align: center; padding: 130px 0 120px; }
.final .sky { background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255,190,140,.35), rgba(255,190,140,0) 70%), linear-gradient(180deg, var(--bg) 0%, #2a3150 45%, #5c4e6c 85%, #7c5d6e 100%); }
.final h2 { position: relative; font-size: clamp(38px, 6vw, 64px); font-weight: 900; }
.final p { position: relative; color: #c3d2e2; font-size: 18px; margin: 14px 0 32px; }
.final .ctas { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- Pied de page ---------- */
footer.foot { border-top: 1px solid var(--border); padding: 34px 0 46px; font-size: 14px; color: var(--muted); background: var(--night); }
footer.foot .wrap { display: flex; gap: 20px 28px; flex-wrap: wrap; align-items: center; }
footer.foot a { color: var(--muted); text-decoration: none; } footer.foot a:hover { color: var(--white); }
footer.foot .social { display: flex; gap: 14px; margin-left: auto; }

/* ---------- Guide ---------- */
.page-top { position: relative; padding: 120px 0 50px; overflow: hidden; }
.page-top .sky { opacity: .75; }
.page-top .wrap { position: relative; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; } .crumb a { color: var(--muted); }
.page-top h1 { font-size: clamp(34px, 5.5vw, 58px); font-weight: 900; }
.page-top p.lead { max-width: 720px; font-size: 18px; color: #c3d2e2; margin: 16px 0 0; }
.fam { margin: 0 0 54px; } .fam h2 { font-size: 24px; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.fam h2::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mcard { display: block; text-decoration: none; color: inherit; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mcard:hover { transform: translateY(-4px); border-color: rgba(255,219,187,.35); box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); }
.mcard .ph { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); } .mcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mcard:hover .ph img { transform: scale(1.05); }
.mcard div.t { padding: 12px 16px 14px; } .mcard b { color: var(--white); font-size: 16.5px; } .mcard small { display: block; color: var(--muted); font-size: 13px; }
.fiche { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.fiche .hero-ph { border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.fiche .hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 26px; }
.panel h2 { font-size: 20px; margin: 0 0 14px; }
.tips { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tips li { position: relative; padding: 10px 0 10px 42px; border-top: 1px solid var(--border); counter-increment: t; }
.tips li:first-child { border-top: 0; }
.tips li b { display: block; color: #fff; }
.tips li span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.trap b { color: #fff; }
.hero-cap { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hero-cap b { color: #fff; }
.hero-fact { margin: 6px 0 0; line-height: 1.6; }
.tips li::before { content: counter(t); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255,219,187,.12); color: var(--peach); font-weight: 800; font-size: 14px; }
.trap { margin-top: 18px; border-left: 3px solid var(--peach); background: linear-gradient(90deg, rgba(255,219,187,.1), rgba(255,219,187,0)); border-radius: 0 16px 16px 0; padding: 16px 20px; }
.trap strong { display: block; color: var(--peach); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.sticky { position: sticky; top: 90px; display: grid; gap: 14px; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.gallery figure a { display: block; aspect-ratio: 16/9; overflow: hidden; } .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 16px 16px; font-size: 14px; }
.gallery figcaption b { color: var(--white); font-size: 15.5px; } .gallery figcaption small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 8px; }
.gallery figcaption p { margin: 0; color: var(--text); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 7px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; transition: background .2s, border-color .2s; }
.chips a:hover { background: var(--surface2); border-color: rgba(255,219,187,.35); }
@media (max-width: 900px) { .fiche { grid-template-columns: 1fr; } .sticky { position: static; } }

/* ---------- Apparitions au défilement ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--dl, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .flight { display: none; }
}

/* Téléphone : le nom laisse la place au sélecteur de langue ; sur une fiche, les repères passent
   juste sous la grande photo, avant la galerie (sinon il faudrait faire défiler 29 photos). */
@media (max-width: 440px) { .brand span { display: none; } }
@media (max-width: 900px) {
  .fiche > div:first-child { display: contents; }
  .fiche .hero-ph { order: 0; } .fiche aside { order: 1; } .fiche > div:first-child > h2, .fiche .gallery { order: 2; }
  .fiche > div:first-child > h2 { margin: 20px 0 0 !important; }
}

/* ---------- Premium, conditions, remboursements (site/seller.ts) ---------- */
.legal { padding-bottom: 80px; }
.legal > * { max-width: 780px; }
.legal section { margin: 30px 0 0; }
.legal h2 { font-size: 20px; margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--peach); }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal .updated { color: var(--muted); font: 13px ui-monospace, monospace; margin-top: 28px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0 10px; }
.prices .panel { text-align: center; }
.prices .panel small { display: block; font: 700 12px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prices .panel b { display: block; font-size: 34px; font-weight: 900; color: var(--white); margin: 8px 0 2px; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.perks li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; }
.perks li::before { content: '✓'; color: var(--mint); font-weight: 900; margin-right: 10px; }
.rates { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rates th, .rates td { border: 1px solid var(--border); padding: 8px 10px; text-align: center; }
.rates th { color: var(--muted); font-weight: 600; font-size: 14px; }
.rates td { color: var(--white); font-weight: 800; }
