/* AK UGC — charte reprise de la page 1000 Marques UGC France */
:root {
  --creme: #EFE8DF;
  --creme-2: #E6DCCF;
  --encre: #161412;
  --encre-2: #3a342e;
  --or: #A68336;
  --or-clair: #C9A45C;
  --caramel: #B8895A;
  --blanc: #FBF8F4;
  --rayon: 22px;
  --ombre: 0 30px 60px -30px rgba(22, 20, 18, .35);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 500 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); max-width: 18ch; }
h3 { font-size: 1.3rem; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
.gold { color: var(--or); }
section[id] { scroll-margin-top: 80px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--encre); color: var(--creme); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--encre); color: var(--creme);
  font-weight: 800; text-decoration: none; letter-spacing: -.01em;
  padding: 1em 1.6em; border-radius: 999px; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit;
  box-shadow: 0 14px 30px -14px rgba(22,20,18,.6);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -16px rgba(22,20,18,.7); }
.btn-caramel { background: var(--caramel); color: var(--blanc); }
.btn-small { padding: .65em 1.15em; font-size: .9rem; }
.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--or); padding-bottom: 2px; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--or); margin-bottom: 14px; }

/* Navigation */
.nav {
  position: fixed; inset: 14px 16px auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 10px 12px 10px 20px;
  background: rgba(239,232,223,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(22,20,18,.08); border-radius: 999px;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 12px 30px -18px rgba(22,20,18,.45); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.35rem; }
.brand-mark { background: var(--encre); color: var(--creme); padding: 2px 8px; border-radius: 8px; }
.brand-word { color: var(--or); }
.nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav ul a:not(.btn):hover { color: var(--or); }
.nav-toggle { display: none; }

/* Hero 3D */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 16px 80px; overflow: hidden;
  background: radial-gradient(1200px 700px at 78% 45%, #f6efe6 0%, var(--creme) 60%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; pointer-events: none; }
.hero-inner > * { max-width: 640px; }
.hero-inner a { pointer-events: auto; }
.hero.empile .hero-inner > * { max-width: 680px; }
.lead { font-size: 1.2rem; color: var(--encre-2); max-width: 520px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--encre); border-radius: 20px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--or); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Chiffres */
.stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: var(--max); margin: -40px auto 0; padding: 0 16px;
}
.stat { background: var(--encre); color: var(--creme); border-radius: var(--rayon); padding: 26px 22px; box-shadow: var(--ombre); }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.05em; color: var(--or-clair); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .95rem; color: #d9cfc2; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 16px; }
.section.dark {
  max-width: none; background: var(--encre); color: var(--creme);
  padding-left: max(16px, calc((100vw - var(--max)) / 2 + 16px));
  padding-right: max(16px, calc((100vw - var(--max)) / 2 + 16px));
}
.section.dark h2 { color: var(--creme); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; perspective: 1000px; }
.card { background: var(--blanc); border-radius: var(--rayon); padding: 34px 28px; box-shadow: var(--ombre); border: 1px solid rgba(22,20,18,.06); }
.card-num { display: inline-block; font-weight: 900; color: var(--or); font-size: .9rem; letter-spacing: .1em; margin-bottom: 40px; }
.card p { color: var(--encre-2); margin: 0; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; border: 1px solid rgba(239,232,223,.16); border-radius: var(--rayon); padding: 28px 24px; background: linear-gradient(160deg, rgba(166,131,54,.14), rgba(239,232,223,.02)); }
.step > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--or); color: var(--encre); font-weight: 900; font-size: 1.2rem; margin-bottom: 26px; }
.step p { color: #cfc5b8; margin: 0; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--encre-2); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: 900px; }
.kpis li { background: var(--blanc); border-radius: 18px; padding: 22px; box-shadow: var(--ombre); }
.kpis b { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; color: var(--or); margin-bottom: 6px; }
.kpis span { font-size: .93rem; color: var(--encre-2); }

.faq { margin-top: 40px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--blanc); border-radius: 18px; padding: 4px 24px; border: 1px solid rgba(22,20,18,.06); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--or); font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-2); padding-bottom: 12px; }

/* Créateurs */
.creators-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #f7f1e8, var(--creme-2));
  border: 1px solid rgba(166,131,54,.35); border-radius: 32px; padding: 56px; box-shadow: var(--ombre);
}
.creators-card p { color: var(--encre-2); }
.book { perspective: 900px; display: grid; place-items: center; }
.book-cover {
  width: 210px; aspect-ratio: 3/4; border-radius: 6px 16px 16px 6px;
  background: linear-gradient(150deg, var(--encre) 0%, #2b2520 100%); color: var(--creme);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  transform: rotateY(-24deg) rotateX(6deg); transform-style: preserve-3d;
  box-shadow: 22px 26px 40px -16px rgba(22,20,18,.55), inset 6px 0 0 rgba(255,255,255,.08);
  animation: flotte 6s ease-in-out infinite;
}
.book-cover span { font-size: 4rem; font-weight: 900; letter-spacing: -.06em; color: var(--or-clair); line-height: .9; }
.book-cover small { font-weight: 800; font-size: 1rem; line-height: 1.2; margin-top: 6px; }
@keyframes flotte { 50% { transform: rotateY(-16deg) rotateX(2deg) translateY(-10px); } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-text p { color: var(--encre-2); }
.form { background: var(--blanc); border-radius: 26px; padding: 34px; box-shadow: var(--ombre); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 500; color: var(--encre); background: var(--creme);
  border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--or); background: #fff; }
.form .hp { position: absolute; left: -9999px; }
.rgpd { font-size: .8rem; color: #7a7066; margin: 0; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: 12px; font-weight: 700; background: #e8f1e4; color: #2f5a22; }
.form-status.erreur { background: #f6e1dc; color: #8a2d1d; }

/* Pied de page */
.footer { background: var(--encre); color: var(--creme); padding: 56px 16px 40px; text-align: center; }
.footer p { color: #bfb4a6; margin: 14px 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.footer ul a { text-decoration: none; font-weight: 700; color: var(--or-clair); }
.footer .copy { font-size: .85rem; margin-top: 28px; }
.footer .brand-mark { background: var(--creme); color: var(--encre); }

/* Effets 3D au survol + apparition */
.tilt { transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; will-change: transform; }
.reveal { opacity: 0; transform: translateY(40px) rotateX(10deg); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .about, .contact, .creators-card { grid-template-columns: 1fr; }
  .creators-card { padding: 36px 24px; }
}
@media (max-width: 760px) {
  .nav { padding: 8px 8px 8px 16px; }
  .nav-toggle { display: inline-block; background: var(--encre); color: var(--creme); border: 0; border-radius: 999px; padding: 10px 18px; font: 800 .9rem Inter, sans-serif; }
  .nav ul { position: absolute; top: calc(100% + 10px); right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; background: var(--creme); border-radius: 22px; box-shadow: var(--ombre); display: none; }
  .nav ul.open { display: flex; }
  .nav ul a:not(.btn) { display: block; padding: 10px 12px; }
  .hero { padding-bottom: 110px; }
  .lead { font-size: 1.05rem; }
  .cards, .steps, .kpis { grid-template-columns: 1fr; }
  .section { padding: 84px 16px; }
  .book-cover { width: 160px; }
  .form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .book-cover, .scroll-hint span { animation: none; }
  .tilt { transition: none; }
}


/* =====================================================================
   Accueil « scroll story » (tendance sites 2026) : la section reste fixée
   pendant qu'on fait défiler, et la scène 3D raconte une vidéo UGC.
   ===================================================================== */
.hero { display: block; min-height: 0; height: 420vh; padding: 0; overflow: visible; }
.hero-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; padding: 110px 16px 80px;
  background: radial-gradient(1100px 700px at 74% 50%, #f7f1e8 0%, var(--creme) 62%);
}
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.1rem); max-width: 13em; }
.hero:not(.empile) .hero-inner > * { max-width: min(560px, 46vw); }

.hero-inner, .story li { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hero:not([data-etape="0"]) .hero-inner { opacity: 0; transform: translateY(-40px); pointer-events: none; }
.hero:not([data-etape="0"]) .hero-inner a { pointer-events: none; }

.story { position: absolute; z-index: 2; left: max(16px, calc((100vw - var(--max)) / 2 + 16px)); top: 50%; translate: 0 -50%; width: min(500px, 44vw); pointer-events: none; }
.story > .eyebrow { opacity: 0; transition: opacity .5s; }
.hero:not([data-etape="0"]) .story > .eyebrow { opacity: 1; }
.story ol { list-style: none; margin: 0; padding: 0; display: grid; }
.story li { grid-area: 1 / 1; opacity: 0; transform: translateY(50px); }
.story-num { display: block; font-weight: 900; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--or); margin-bottom: 18px; }
.story-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: none; }
.story li p { font-size: 1.15rem; color: var(--encre-2); max-width: 430px; }
.story li .btn { margin-top: 10px; }
.hero[data-etape="1"] li[data-etape="1"], .hero[data-etape="2"] li[data-etape="2"],
.hero[data-etape="3"] li[data-etape="3"], .hero[data-etape="4"] li[data-etape="4"] { opacity: 1; transform: none; pointer-events: auto; }

.story-bar { position: absolute; z-index: 2; right: max(16px, calc((100vw - var(--max)) / 2 + 16px)); top: 50%; translate: 0 -50%; width: 3px; height: 160px; background: rgba(22,20,18,.12); border-radius: 3px; overflow: hidden; }
.story-bar span { display: block; width: 100%; height: calc(var(--p, 0) * 100%); background: var(--or); }
.hero:not([data-etape="0"]) .scroll-hint { opacity: 0; }
.scroll-hint { transition: opacity .4s; }

/* pile (tablette / mobile) : la 3D en haut, le texte en bas */
.hero.empile .hero-sticky { align-items: flex-end; padding-top: 46vh; padding-bottom: 90px; }
.hero.empile .hero-inner > * { max-width: 680px; }
.hero.empile .story { top: auto; bottom: 70px; translate: none; width: auto; right: 16px; }
.hero.empile .story-num { font-size: 3.4rem; margin-bottom: 8px; }
.hero.empile .story-title { font-size: 2rem; }
.hero.empile .story li p { font-size: 1rem; }
.hero.empile .story-bar { top: 90px; translate: none; height: 110px; }

.stats { margin-top: 40px; }

/* Bandeau défilant (encre + or) */
.marquee { overflow: hidden; margin-top: 70px; background: var(--encre); transform: rotate(-1.5deg); }
.marquee-track { display: flex; width: max-content; gap: 28px; padding: 16px 0; animation: defile 32s linear infinite; }
.marquee span { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.2rem, 2.6vw, 2rem); white-space: nowrap; color: var(--creme); }
.marquee i { font-style: normal; color: var(--or-clair); align-self: center; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Vidéos : téléphones en coverflow */
.videos { max-width: none; padding-left: 0; padding-right: 0; overflow: hidden; }
.videos-head { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.videos-note { max-width: 360px; color: var(--encre-2); }
.reels { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 50px max(16px, calc((100vw - var(--max)) / 2 + 16px)) 40px; perspective: 1400px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel {
  flex: 0 0 auto; margin: 0; scroll-snap-align: center; padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #2b2622, var(--encre)); box-shadow: 0 40px 60px -30px rgba(22,20,18,.6), inset 0 0 0 2px var(--or);
  transition: transform .5s cubic-bezier(.2,.8,.2,1); transform: rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
}
.reel-screen { width: 330px; height: 600px; border-radius: 36px; overflow: hidden; background: #fff; }
.reel iframe { width: 100%; height: 760px; border: 0; display: block; }
.reels-nav { display: flex; justify-content: center; gap: 12px; }
.reels-btn { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--encre); background: transparent; font: 800 1.2rem Inter, sans-serif; cursor: pointer; color: var(--encre); transition: background .2s, color .2s; }
.reels-btn:hover { background: var(--encre); color: var(--creme); }

@media (max-width: 760px) {
  .reel-screen { width: 300px; height: 560px; }
  .reels { gap: 18px; }
  .marquee { margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reel { transform: none; }
}

html, body { overflow-x: clip; }
@media (max-width: 760px) {
  .hero.empile .hero-sticky { padding-top: 50vh; padding-bottom: 70px; }
  .hero.empile h1 { font-size: 2.05rem; }
  .hero.empile .lead { font-size: .98rem; margin-bottom: 0; }
  .hero.empile .cta-row { margin-top: 18px; }
  .hero.empile .story { bottom: 56px; }
  .hero.empile .story > .eyebrow { font-size: .7rem; }
}
@media (max-width: 760px) {
  .hero.empile .hero-inner .link-arrow { display: none; }
  .hero.empile .hero-inner .eyebrow { margin-bottom: 8px; }
}
@media (max-width: 999px) {
  /* voile crème sous le texte pour qu'il reste lisible au-dessus de la 3D */
  .hero.empile .hero-sticky::after { content: ""; position: absolute; inset: 44% 0 0; background: linear-gradient(to bottom, rgba(239,232,223,0), var(--creme) 22%); z-index: 1; pointer-events: none; }
}

/* =====================================================================
   Un seul téléphone 3D (CSS) avec la vidéo de Kamila
   ===================================================================== */
.phone-stage {
  --ph: min(74vh, 620px);
  position: absolute; z-index: 1; top: 50%; translate: 0 -46%;
  right: max(16px, calc((100vw - var(--max)) / 2 + 60px));
  width: calc(var(--ph) * .5); height: var(--ph);
  perspective: 1400px;
  opacity: 0; transition: opacity .8s ease;
}
.phone-stage.pret { opacity: 1; }
.phone3d {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
  animation: flotteTel 6s ease-in-out infinite;
}
@keyframes flotteTel { 50% { translate: 0 -12px; } }
/* coque : face avant noire, tranche dorée, dos en profondeur */
.phone3d::before, .phone3d::after {
  content: ""; position: absolute; inset: 0; border-radius: calc(var(--ph) * .085);
}
.phone3d::before { background: linear-gradient(145deg, #2b2622, var(--encre)); box-shadow: inset 0 0 0 3px var(--or), inset 0 0 0 5px #000; }
.phone3d::after { background: linear-gradient(145deg, var(--or-clair), var(--or) 60%, #7d6127); transform: translateZ(-16px); }
.phone-screen {
  position: absolute; inset: calc(var(--ph) * .022); z-index: 1;
  border-radius: calc(var(--ph) * .068); overflow: hidden; background: #fff;
  transform: translateZ(1px);
}
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 340px; border: 0; transform-origin: 0 0; }
.phone-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -46px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22,20,18,.35), transparent);
  animation: ombreTel 6s ease-in-out infinite;
}
@keyframes ombreTel { 50% { transform: scaleX(.85); opacity: .7; } }

/* pile (tablette / mobile) : téléphone en haut, texte en bas */
.hero.empile .phone-stage { --ph: min(40vh, 520px); right: auto; left: 50%; top: 92px; translate: -50% 0; }
.hero.empile .hero-sticky::after { inset: calc(92px + min(40vh, 520px) - 10px) 0 0; }

@media (prefers-reduced-motion: reduce) {
  .phone3d, .phone-shadow { animation: none; }
  .phone3d { transition: none; }
}
.hero.empile .hero-sticky { padding-top: calc(92px + min(40vh, 520px) + 40px); }
@media (max-width: 760px) {
  .hero.empile .hero-sticky { padding-top: calc(92px + min(40vh, 520px) + 40px); }
  .hero.empile .lead { display: none; }
}

/* Plateau de tournage UGC animé derrière le téléphone */
.phone-stage { --ph: min(66vh, 560px); translate: 0 -50%; }
.phone-shadow { display: none; }
.plateau {
  position: absolute; z-index: -1; pointer-events: none; overflow: visible;
  width: calc(var(--ph) * 1.3); height: calc(var(--ph) * 1.3);
  left: 50%; top: calc(var(--ph) * -.1); translate: -50% 0;
}
.pl-halo { transform-origin: 500px 460px; animation: plHalo 5s ease-in-out infinite; }
@keyframes plHalo { 50% { transform: scale(1.08); opacity: .7; } }
.pl-faisceau { animation: plFaisceau 3.2s ease-in-out infinite; }
@keyframes plFaisceau { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.pl-diffuseur { animation: plFaisceau 3.2s ease-in-out infinite; }
@keyframes plMicro { 50% { transform: rotate(2.5deg); } }
@keyframes plRec { 50% { opacity: 0; } }
.pl-clap { animation: plClapFlotte 5s ease-in-out infinite; }
@keyframes plClapFlotte { 50% { translate: 0 -10px; } }
.pl-clap-haut { transform-origin: 4px 40px; animation: plClap 3s ease-in-out infinite; }
@keyframes plClap { 0%, 55%, 100% { transform: rotate(0); } 70% { transform: rotate(-24deg); } 80% { transform: rotate(0); } }

.kpi-large { grid-column: 1 / -1; }

.hero.empile .phone-stage { --ph: min(38vh, 480px); top: 96px; translate: -50% 0; }
.hero.empile .hero-sticky { padding-top: calc(96px + min(38vh, 480px) + 56px); }
.hero.empile .hero-sticky::after { inset: calc(96px + min(38vh, 480px) + 30px) 0 0; }
@media (max-width: 760px) {
  .hero.empile .hero-sticky { padding-top: calc(96px + min(38vh, 480px) + 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .plateau * { animation: none !important; }
}
.hero:not(.empile) .phone-stage { right: max(150px, calc((100vw - var(--max)) / 2 + 170px)); }

/* Mur de marques : deux rangées qui défilent en sens inverse */
.marques { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 40px; }
.marques-head { max-width: var(--max); margin: 0 auto 40px; padding: 0 16px; }
.marques-rail {
  display: flex; overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marques-track { display: flex; align-items: center; gap: 56px; padding-right: 56px; margin: 0; list-style: none; flex: 0 0 auto; animation: marquesDefile 70s linear infinite; }
.marques-rail.droite .marques-track { animation-direction: reverse; animation-duration: 80s; }
.marques-rail:hover .marques-track { animation-play-state: paused; }
@keyframes marquesDefile { to { transform: translateX(-100%); } }
.marques li { white-space: nowrap; color: var(--encre); opacity: .82; transition: opacity .2s, color .2s; }
.marques li:hover { opacity: 1; color: var(--or); }
.m-sans { font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.m-luxe { font-family: Didot, "Bodoni 72", "Playfair Display", Georgia, serif; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.1rem, 1.9vw, 1.55rem); }
@media (prefers-reduced-motion: reduce) {
  .marques-rail { overflow-x: auto; }
  .marques-track { animation: none; }
  .marques-track[aria-hidden] { display: none; }
}

/* Plateau réaliste et plus large (remplace la version illustrée) */
.phone3d { animation: none; }
.hero:not(.empile) .phone-stage { --ph: min(60vh, 520px); right: auto; left: calc(73% - var(--ph) * .25); }
.plateau { width: calc(var(--ph) * 1.5); height: calc(var(--ph) * 1.3); top: calc(var(--ph) * -.1); }
.pl-key .pl-faisceau, .pl-fill .pl-faisceau { animation: plFaisceau 4s ease-in-out infinite; }
.pl-fill .pl-faisceau { animation-delay: -2s; }
.pl-diffus-halo { animation: plHaloDiff 4s ease-in-out infinite; }
@keyframes plHaloDiff { 50% { opacity: .55; } }
@keyframes plMicro { 50% { transform: rotate(1.2deg); } }
.pl-clap { animation: none; }
.pl-clap-haut { transform-origin: 0 20px; animation: plClap 6s ease-in-out infinite; }
@keyframes plClap { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-22deg); } 93% { transform: rotate(0); } }
.hero.empile .phone-stage { --ph: min(36vh, 460px); }
.hero.empile .hero-sticky { padding-top: calc(96px + min(36vh, 460px) + 60px); }
.hero.empile .hero-sticky::after { inset: calc(96px + min(36vh, 460px) + 36px) 0 0; }
@media (max-width: 760px) {
  .hero.empile .hero-sticky { padding-top: calc(96px + min(36vh, 460px) + 60px); }
}
.hero.empile .phone-stage { top: 116px; }
.hero.empile .hero-sticky { padding-top: calc(116px + min(36vh, 460px) + 60px); }
.hero.empile .hero-sticky::after { inset: calc(116px + min(36vh, 460px) + 36px) 0 0; }
@media (max-width: 760px) {
  .hero.empile .hero-sticky { padding-top: calc(116px + min(36vh, 460px) + 60px); }
}

/* Numéros de l'histoire : chiffres pleins dorés (le contour faisait apparaître des traits croisés dans le « 4 ») */
.story-num {
  -webkit-text-stroke: 0;
  background: linear-gradient(160deg, var(--or-clair) 0%, var(--or) 55%, #7d6127 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Réseaux sociaux */
.reseaux { display: flex; flex-wrap: wrap; gap: 12px; }
.reseaux a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--encre); text-decoration: none; font-weight: 800; font-size: .95rem; transition: background .2s, color .2s, transform .2s; }
.reseaux a:hover { background: var(--encre); color: var(--creme); transform: translateY(-2px); }
.reseaux svg { width: 20px; height: 20px; }
.reseaux-titre { font-weight: 800; margin: 26px 0 12px; }
.footer .reseaux { justify-content: center; margin: 22px 0 6px; }
.footer .reseaux a { border-color: rgba(239,232,223,.35); color: var(--creme); }
.footer .reseaux a:hover { background: var(--or); border-color: var(--or); color: var(--encre); }

/* Titre d'accueil un peu plus bas */
.hero:not(.empile) .hero-inner { top: 56px; }
.hero.empile .hero-inner { margin-top: 24px; }

/* Photo du coin tournage en fondu derrière le téléphone (remplace le décor dessiné) */
.decor-photo {
  position: absolute; z-index: -1; pointer-events: none;
  height: calc(var(--ph) * 1.32); width: auto; max-width: none;
  left: 50%; top: 50%; translate: -50% -50%;
  object-fit: cover; border-radius: 28px; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
}
.hero:not(.empile) .phone-stage { --ph: min(62vh, 540px); }
.decor-photo {
  height: calc(var(--ph) * 1.6); opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.hero.empile .decor-photo { height: calc(var(--ph) * 1.45); }

/* Photo du coin tournage sur tout le haut de page */
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 45%; z-index: 0; pointer-events: none;
}
/* voile crème uniquement côté texte, pour garder le titre lisible */
.hero-voile {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(239,232,223,.94) 0%, rgba(239,232,223,.82) 34%, rgba(239,232,223,.25) 56%, rgba(239,232,223,0) 70%);
}
.hero.empile .hero-voile { background: linear-gradient(to bottom, rgba(239,232,223,0) 0%, rgba(239,232,223,0) 42%, rgba(239,232,223,.9) 58%, #EFE8DF 70%); }
.hero.empile .hero-sticky::after { display: none; }
.hero-inner, .story, .story-bar, .scroll-hint { z-index: 2; }
.hero-photo { object-position: 50% 58%; }
.hero.empile .hero-photo { object-position: 55% 52%; }
.hero-photo { object-position: 0% 55%; }
.hero.empile .hero-photo { object-position: 40% 50%; }
/* ordinateur : photo élargie et poussée à droite pour que l'appareil photo sorte de derrière le titre */
.hero:not(.empile) .hero-photo { inset: 0 auto 0 0; width: 120%; object-position: 50% 55%; }
/* ordinateur : l'appareil photo de la photo est placé pile derrière le téléphone (centre du tél = 73 % de la largeur) */
.hero:not(.empile) .hero-photo { inset: auto; left: 0; top: calc(50% - 106.5vw); width: 148vw; height: auto; object-fit: fill; }
.hero:not(.empile) .phone-stage { --ph: min(68vh, 600px); }
/* la photo suit la taille du téléphone : l'appareil photo reste caché derrière à toutes les tailles d'écran */
.hero:not(.empile) .hero-sticky { --ph: min(72vh, 760px); --W: max(148vw, calc(var(--ph) * 3.85)); }
.hero:not(.empile) .phone-stage { --ph: min(72vh, 760px); }
.hero:not(.empile) .hero-photo { width: var(--W); left: calc(73vw - var(--W) * .495); top: calc(50% - var(--W) * .72); }

/* Photo « coin cosy » : cadrage simple sur tout le haut, légèrement transparente */
.hero-photo { opacity: .82; }
.hero:not(.empile) .hero-photo { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero.empile .hero-photo { object-position: 45% 55%; }
.hero:not(.empile) .hero-photo { object-position: 50% 36%; }
.hero-photo { opacity: .68; }

/* Icônes Instagram / LinkedIn dans le menu */
.nav ul { gap: 22px; }
.nav-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background .2s, color .2s; }
.nav-social a:hover { background: var(--encre); color: var(--creme) !important; }
.nav-social svg { width: 19px; height: 19px; }
.nav-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
  .nav-social { display: inline-block; }
  .nav ul.open { flex-direction: column; }
  .nav-social a { width: auto; height: auto; display: flex; gap: 10px; justify-content: flex-start; padding: 10px 12px; border-radius: 12px; }
  .nav-social span { position: static; width: auto; height: auto; clip: auto; font-weight: 700; }
}
