/* ============================================================
   COERVER® TUNISIE — Premium layer (Apple-style)
   Loaded after style.css. Additive: motion, polish, app section.
   ============================================================ */
:root {
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --app-yellow: #f3e63a;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--green); color: #000; }

/* ── Scroll progress bar ───────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--green-gradient);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 1100; pointer-events: none;
}

/* ── Navbar ────────────────────────────────────── */
#navbar { transition: background .5s var(--ease-apple), box-shadow .5s var(--ease-apple), transform .5s var(--ease-apple); }
#navbar.nav-hidden { transform: translateY(-100%); }
.nav-link-app {
  color: var(--black) !important;
  background: var(--green-gradient);
  border-radius: 20px;
  padding: 6px 14px !important;
  margin-left: 8px;
  font-size: 0.74rem !important;
}
.nav-link-app::after { display: none; }
.nav-link-app:hover { transform: translateY(-1px); box-shadow: var(--green-glow); }

/* ── Reveal system ─────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translate3d(-60px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js [data-reveal="zoom"]  { transform: scale(.92); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Words rise one by one on big titles */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 70ms);
}
.in .split-line > span, .split-line.in > span { transform: none; }

/* ── Hero: slow cinematic zoom + text ──────────── */
.slide { transition: opacity 1.4s var(--ease-apple); }
.slide.active .slide-title { animation: heroRise 1.2s var(--ease-out) both; }
.slide.active .btn-green   { animation: heroRise 1.2s var(--ease-out) .25s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(40px); filter: blur(6px);} to { opacity: 1; transform: none; filter: blur(0);} }
.slide-title { letter-spacing: -0.01em; }
.hero .scroll-hint {
  position: absolute; left: 50%; bottom: 84px; z-index: 10; transform: translateX(-50%);
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero .scroll-hint::after {
  content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%{opacity:0; transform:translateY(0);} 30%{opacity:1;} 100%{opacity:0; transform:translateY(14px);} }

/* ── Titles & sections ─────────────────────────── */
.section-title { letter-spacing: -0.015em; line-height: 1.02; }
.section-tag { letter-spacing: .22em; }

/* ── Buttons ───────────────────────────────────── */
.btn-green, .btn-voir-tous, .btn-inscription, .btn-cta-black, .btn-cta-outline-dark, .pq-btn {
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background .3s ease, color .3s ease;
}
.btn-green:hover, .btn-inscription:hover, .btn-cta-black:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 40px rgba(76,175,80,.45); }
[data-magnetic] { will-change: transform; }

/* ── Cards: lift + tilt ────────────────────────── */
.pq-card, .prog-photo-card {
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  transform-style: preserve-3d;
}
.pq-card:hover, .prog-photo-card:hover { box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.prog-photo-card .prog-photo-bg { transition: transform 1.2s var(--ease-out); }
.prog-photo-card:hover .prog-photo-bg { transform: scale(1.07); }
.pq-card-img { transition: transform 1.2s var(--ease-out); }
.pq-card:hover .pq-card-img { transform: scale(1.05); }

/* ── Parallax images ───────────────────────────── */
[data-parallax] { will-change: transform; }
.pourquoi-image, .girls-image { overflow: hidden; }
.pourquoi-image img, .girls-image img { transform: scale(1.12); }

/* ── Marquee (partners) ────────────────────────── */
.partners-logos.marquee { display: flex; gap: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-logos.marquee .marquee-track { display: flex; gap: 56px; padding-right: 56px; flex-shrink: 0; animation: marquee 28s linear infinite; }
.partners-logos.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── Footer ────────────────────────────────────── */
.footer-col a { transition: transform .3s var(--ease-out), color .3s ease; display: block; }
.footer-col a:hover { transform: translateX(4px); }

/* ── Store badges ──────────────────────────────── */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; min-width: 190px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 14px;
  transition: transform .4s var(--ease-out), border-color .3s ease, box-shadow .4s var(--ease-out);
}
.store-badge:hover { transform: translateY(-3px); border-color: #fff; box-shadow: 0 14px 40px rgba(255,255,255,.12); }
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge small { display: block; font: 500 .68rem/1 var(--font-body); letter-spacing: .03em; opacity: .85; margin-bottom: 3px; }
.store-badge strong { display: block; font: 600 1.25rem/1 var(--font-body); letter-spacing: -.01em; }
.store-badge.is-soon { opacity: .55; cursor: default; pointer-events: none; }

/* ── Phone mockup (pure CSS) ───────────────────── */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.2;
  border-radius: calc(var(--pw) * .15);
  padding: calc(var(--pw) * .028);
  background: linear-gradient(145deg, #6b5a46 0%, #2a2118 25%, #8a7456 50%, #2a2118 75%, #5d4d3a 100%);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.08) inset,
    0 50px 120px rgba(0,0,0,.65),
    0 0 100px rgba(243,230,58,.07);
}
.phone::before { /* side buttons */
  content: ''; position: absolute; left: -3px; top: 20%; width: 3px; height: 9%;
  background: #4a3d2e; border-radius: 2px 0 0 2px; box-shadow: 0 calc(var(--pw) * .2) 0 #4a3d2e;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .125);
  background: #07080b; color: #fff; font-family: var(--font-body);
}
.phone-notch {
  position: absolute; z-index: 5; top: 2.2%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.4%; background: #000; border-radius: 20px;
}
.phone-glare {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 35%);
}
.screen {
  position: absolute; inset: 0; padding: 11% 5% 5%;
  opacity: 0; transform: scale(1.04) translateY(10px);
  transition: opacity .7s var(--ease-apple), transform .9s var(--ease-out);
  font-size: calc(var(--pw) * .034);
}
.screen.on { opacity: 1; transform: none; }
.screen .s-top { display: flex; justify-content: space-between; align-items: center; margin: 7% 0 5%; }
.screen .s-top b { color: var(--app-yellow); font: 700 1.25em/1 var(--font-body); }
.screen .s-top img { height: 1.6em; width: auto; }
.s-card { background: #11131a; border: 1px solid rgba(255,255,255,.06); border-radius: 1.1em; padding: .9em 1em; margin-bottom: .7em; }
.s-card h6 { font: 700 1em/1.2 var(--font-body); margin-bottom: .4em; color: #fff; }
.s-meta { font-size: .85em; color: rgba(255,255,255,.65); }
.s-tag { display: inline-block; font: 700 .7em/1 var(--font-body); letter-spacing: .06em; color: var(--app-yellow); background: rgba(243,230,58,.12); padding: .4em .7em; border-radius: .5em; margin-bottom: .5em; }
.pill { display: inline-block; font: 600 .82em/1 var(--font-body); padding: .45em .9em; border-radius: 2em; border: 1.5px solid; margin-top: .5em; }
.pill.ok  { color: #5be26b; border-color: #3aa14a; }
.pill.ko  { color: #ff5a4d; border-color: #c43a30; }
.pill.wait{ color: #ffb13b; border-color: #c4801f; }
.s-alert { background: rgba(255,177,59,.1); border: 1px solid rgba(255,177,59,.35); color: #ffb13b; border-radius: 1em; padding: .8em 1em; margin-bottom: .7em; font-weight: 600; font-size: .9em; }
.s-card.accent { border-left: 3px solid var(--app-yellow); }
.s-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.s-stat { text-align: center; background: #11131a; border-radius: .9em; padding: .8em .3em; }
.s-stat small { display: block; font-size: .62em; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.s-stat b { font: 700 1.5em/1.1 var(--font-body); }
.s-stat em { display: block; font-style: normal; font-size: .75em; color: #5be26b; }
.s-tabs { display: flex; gap: .4em; margin-bottom: .8em; }
.s-tabs span { font-size: .72em; padding: .6em .8em; border-radius: .7em; background: #11131a; color: rgba(255,255,255,.7); }
.s-tabs span.on { background: var(--app-yellow); color: #000; font-weight: 700; }
.radar { display: block; width: 78%; margin: .3em auto 0; overflow: visible; }
.radar .grid { fill: none; stroke: rgba(255,255,255,.1); }
.radar .shape { fill: rgba(243,230,58,.28); stroke: var(--app-yellow); stroke-width: 1.5; transform-origin: 50% 50%; transform: scale(0); transition: transform 1.2s var(--ease-out) .3s; }
.screen.on .radar .shape { transform: scale(1); }
.s-login { text-align: center; padding-top: 8%; }
.s-login img { height: 2.2em; margin: 8% auto 6%; }
.s-login h5 { color: var(--app-yellow); font: 800 1.6em/1.1 var(--font-body); font-style: italic; }
.s-login p { font-size: .8em; color: rgba(255,255,255,.65); margin: .3em 0 1.4em; }
.s-field { text-align: left; font-size: .7em; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-bottom: .3em; }
.s-input { text-align: left; background: #11131a; border: 1px solid rgba(255,255,255,.08); border-radius: .9em; padding: .9em 1em; font-size: .85em; color: rgba(255,255,255,.8); margin-bottom: 1em; }
.s-btn { background: var(--app-yellow); color: #000; font-weight: 800; border-radius: .9em; padding: 1em; font-size: .95em; margin: .6em 0 1em; }
.s-link { font-size: .8em; color: rgba(255,255,255,.6); margin-bottom: .8em; }
.s-ghost { border: 1px solid rgba(243,230,58,.35); color: var(--app-yellow); border-radius: .9em; padding: .8em; font-size: .78em; }
.roll-row { display: flex; justify-content: space-between; align-items: center; padding: .65em 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9em; }
.roll-row:last-child { border: 0; }

/* ── Home: App storytelling (sticky) ───────────── */
.app-story { position: relative; background: #000; height: 420vh; }
.app-story-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
}
.app-story::before { /* ambient glow */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(243,230,58,.10), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(76,175,80,.12), transparent 70%);
}
.app-copy { position: relative; z-index: 2; }
.app-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.app-eyebrow i { width: 34px; height: 1px; background: var(--green); display: block; }
.app-copy h2 { font: 900 clamp(2.6rem, 5.4vw, 5rem)/.98 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.app-copy h2 em { font-style: normal; color: var(--app-yellow); }
.app-steps { position: relative; margin-top: 34px; min-height: 190px; }
.app-step { position: absolute; inset: 0 auto auto 0; max-width: 460px; opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-apple), transform .8s var(--ease-out); pointer-events: none; }
.app-step.on { opacity: 1; transform: none; pointer-events: auto; }
.app-step h3 { font: 800 1.7rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
.app-step p { font: 400 1.1rem/1.6 var(--font-body); color: rgba(255,255,255,.72); }
.app-step .who { display: inline-block; margin-top: 14px; font: 700 .72rem/1 var(--font-display); letter-spacing: .2em; color: var(--app-yellow); text-transform: uppercase; }
.app-dots { display: flex; gap: 8px; margin: 30px 0 34px; }
.app-dots i { width: 28px; height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; position: relative; transition: width .5s var(--ease-out); }
.app-dots i.on { background: var(--green); width: 56px; }
.app-device { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.app-device .phone { --pw: min(310px, 30vh * 1.6); transform: rotateY(-14deg) rotateX(5deg) rotateZ(2deg); transition: transform 1.2s var(--ease-out); }
.app-story[data-step="1"] .app-device .phone { transform: rotateY(-6deg) rotateX(2deg) rotateZ(0deg); }
.app-story[data-step="2"] .app-device .phone { transform: rotateY(8deg) rotateX(3deg) rotateZ(-1.5deg); }
.app-story[data-step="3"] .app-device .phone { transform: rotateY(-10deg) rotateX(2deg) rotateZ(1.5deg); }
.app-device::after { /* floor reflection glow */
  content: ''; position: absolute; bottom: 4%; left: 50%; width: 60%; height: 40px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(243,230,58,.25), transparent); filter: blur(18px);
}
.chip-float { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 14px; background: rgba(20,22,28,.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); font: 600 .8rem/1.2 var(--font-body); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: floaty 6s ease-in-out infinite; }
.chip-float b { color: var(--app-yellow); }
.chip-float.c1 { top: 16%; left: 2%; }
.chip-float.c2 { bottom: 20%; right: 0; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── Home: audience trio ───────────────────────── */
.app-trio { background: #000; padding: 120px 0; border-top: 1px solid #111; }
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.trio-card {
  position: relative; padding: 40px 32px 44px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #101114, #08090b); border: 1px solid rgba(255,255,255,.07);
  transition: transform .6s var(--ease-out), border-color .4s ease;
}
.trio-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(243,230,58,.10), transparent 70%); opacity: 0; transition: opacity .6s ease; }
.trio-card:hover { transform: translateY(-8px); border-color: rgba(243,230,58,.3); }
.trio-card:hover::before { opacity: 1; }
.trio-card .ico { width: 54px; height: 54px; color: var(--app-yellow); margin-bottom: 26px; }
.trio-card h3 { font: 800 1.9rem/1 var(--font-display); text-transform: uppercase; margin-bottom: 14px; }
.trio-card ul { list-style: none; display: grid; gap: 10px; }
.trio-card li { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.5; padding-left: 22px; position: relative; }
.trio-card li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--green); }
.app-cta { margin-top: 64px; text-align: center; }
.app-cta h3 { font: 900 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 26px; }
.app-cta .store-badges { justify-content: center; }
.app-cta p.note { margin-top: 18px; color: rgba(255,255,255,.45); font-size: .85rem; }

/* ── Nav-app page hero ─────────────────────────── */
.app-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; background: #000; overflow: hidden; }
.app-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(50% 50% at 72% 50%, rgba(243,230,58,.12), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(76,175,80,.14), transparent 70%); }
.app-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4vw; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%; }
.app-hero h1 { font: 900 clamp(3rem, 7vw, 6.4rem)/.94 var(--font-display); letter-spacing: -.025em; text-transform: uppercase; margin: 14px 0 26px; }
.app-hero h1 em { font-style: normal; color: var(--app-yellow); }
.app-hero .lead { font-size: 1.25rem; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 36px; }
.app-hero .phone { --pw: min(330px, 40vh); margin: 0 auto; animation: floaty 7s ease-in-out infinite; transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg); }
.app-hero .phone-wrap { perspective: 1400px; position: relative; }

.feature-band { background: #fff; color: #000; padding: 140px 0; }
.feature-band .section-title { color: #000; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.feat { background: #f5f5f7; border-radius: 28px; padding: 40px 34px; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.feat:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0,0,0,.12); }
.feat .ico { width: 44px; height: 44px; color: var(--green-dark); margin-bottom: 22px; }
.feat h3 { font: 800 1.5rem/1.1 var(--font-display); text-transform: uppercase; margin-bottom: 10px; }
.feat p { color: #555; line-height: 1.6; }
.feat.wide { grid-column: span 2; background: #000; color: #fff; }
.feat.wide p { color: rgba(255,255,255,.7); }
.feat.wide .ico { color: var(--app-yellow); }

.steps-band { background: #000; padding: 140px 0; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; counter-reset: s; }
.step-n { counter-increment: s; position: relative; padding-top: 70px; }
.step-n::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 900 4.4rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.25); }
.step-n h3 { font: 800 1.5rem/1.1 var(--font-display); text-transform: uppercase; margin-bottom: 10px; }
.step-n p { color: rgba(255,255,255,.7); line-height: 1.6; }

.faq-band { background: #0a0a0a; padding: 120px 0; }
.faq-list { max-width: 820px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-item summary { cursor: pointer; list-style: none; padding: 26px 0; font: 700 1.25rem/1.3 var(--font-body); display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green); font-size: 1.6rem; line-height: 1; transition: transform .4s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 26px; color: rgba(255,255,255,.7); line-height: 1.7; max-width: 700px; }
.center { text-align: center; }
.center .section-title { text-align: center; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .app-story { height: auto; }
  .app-story-stage { position: relative; height: auto; grid-template-columns: 1fr; padding: 90px 24px 70px; gap: 40px; }
  .app-device { order: -1; }
  .app-device .phone { --pw: 250px; transform: rotateY(-8deg) rotateX(3deg); }
  .app-steps { min-height: 0; display: grid; gap: 28px; }
  .app-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .app-dots { display: none; }
  .chip-float { display: none; }
  .screen { opacity: 0; }
  .screen.on { opacity: 1; }
  .trio-grid, .feat-grid, .steps-row { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; }
  .app-hero-inner { grid-template-columns: 1fr; padding: 0 24px; text-align: center; }
  .app-hero .lead { margin-left: auto; margin-right: auto; }
  .app-hero .store-badges { justify-content: center; }
  .app-hero .phone { --pw: 240px; }
  .nav-link-app { display: none; }
  .feature-band, .steps-band, .faq-band, .app-trio { padding: 80px 0; }
}

/* ── Respect reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; }
  .partners-logos.marquee .marquee-track { animation: none; }
}
.feature-band .section-tag { color: #2e7d32 !important; }
