/* ==========================================================================
   OZAMAL — Section « Instagram » (accueil, entre L'esprit Ôzamal et la FAQ)
   --------------------------------------------------------------------------
   Pas de fil Instagram branché (ni cookie, ni script tiers) : une vraie capture du
   profil dans un iPhone dessiné en CSS, qui flotte sur un fond crème uni (léger dégradé,
   ombres douces), fondu dans la bande crème.
   À l'arrivée l'iPhone entre en tourbillon ; puis, en boucle (12 s) : une main appuie sur
   « Suivre », puis sur la photo de profil (anneau de story Instagram) ; la story s'ouvre
   (« Ce soir, 20 h » : un code pour les abonnés), puis se referme.
   Mouvements coupés si l'appareil demande moins d'animations.
   Comportement (entrée à l'écran, inclinaison à la souris) : instagram.js.
   ========================================================================== */

.insta {
  /* couleurs « bloc clair », comme les sections click & collect et avis (telephone.css, section 5) */
  --ink: #10271e; --ink-2: #2f4038; --muted: #625e52;
  --line: rgba(16, 39, 30, 0.13); --line-2: rgba(16, 39, 30, 0.22);
  --gold: #8a6535; --bg: #f2eadb;
  --boucle: 12s; --depart: 2s; /* durée de la séquence main / story, et attente après l'arrivée du téléphone */
  position: relative; color: var(--ink);
  background: #f2eadb; box-shadow: 0 0 0 100vmax #f2eadb; clip-path: inset(0 -100vmax);
  padding-top: 36px; padding-bottom: 32px;
  overflow-x: clip; /* la main (au repos, invisible) ne fait jamais défiler la page de côté */
}
.insta::before { content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; translate: -50% 0; background: rgba(226, 185, 138, 0.6); }
.insta::after { content: ""; position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; translate: -50% 0; rotate: 45deg; background: #f2eadb; box-shadow: inset 0 0 0 1px #9a7340; }
.insta .kicker { color: #7d5a2e; margin-bottom: 6px; }
.insta .sec-title { font-size: clamp(1.7rem, 7.3vw, 3.4rem); }
.insta .sec-title span, .insta .sec-title em { display: inline; }
.insta .sec-title em { color: #8a6535; }

.insta__inner { display: grid; justify-items: center; text-align: center; grid-template-areas: "texte" "scene" "action"; }
.insta__texte { grid-area: texte; position: relative; z-index: 2; }
.insta__texte .sec-lead { margin-top: 6px; }
.insta__action { grid-area: action; position: relative; z-index: 2; display: grid; justify-items: center; }

/* ---------- le bouton vers le compte : pilule vert profond, texte or ---------- */
.insta__cta {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 9px 0 20px; border-radius: 999px; isolation: isolate; overflow: hidden;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: #f1d3a8;
  background: linear-gradient(180deg, #17372b 0%, #0f271e 100%);
  box-shadow: inset 0 1px 0 rgba(241, 211, 168, 0.18), 0 0 0 1px rgba(16, 39, 30, 0.9), 0 14px 26px -14px rgba(16, 39, 30, 0.65);
  transition: transform 180ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.insta__cta::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, rgba(241, 211, 168, 0) 0%, rgba(241, 211, 168, 0.22) 50%, rgba(241, 211, 168, 0) 100%); transform: skewX(-18deg); }
.insta.is-live .insta__cta::after { animation: instaReflet 6s var(--ease-in-out) 1.5s infinite; }
@keyframes instaReflet { 0%, 64% { left: -40%; } 100% { left: 125%; } }
.insta__cta:active { transform: scale(0.97); transition-duration: 80ms; }
@media (hover: hover) { .insta__cta:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(241, 211, 168, 0.22), 0 0 0 1px rgba(16, 39, 30, 0.9), 0 18px 30px -14px rgba(16, 39, 30, 0.75); } }
.insta__glyphe { width: 21px; height: 21px; flex: none; }
.insta__fleche { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #f1d3a8, #c9a06a); color: #10271e; flex: none; }
.insta__fleche svg { width: 15px; height: 15px; transition: transform 420ms var(--ease-out); }
@media (hover: hover) { .insta__cta:hover .insta__fleche svg { transform: translate(2px, -2px); } }

/* ---------- la scène : fond uni en léger dégradé, l'iPhone qui flotte, son ombre, la main ----------
   --w : largeur du téléphone ; l'ombre et la marge du bas en découlent. */
.insta__scene {
  --w: clamp(150px, 42vw, 180px);
  grid-area: scene; position: relative; z-index: 1; display: grid; justify-items: center; align-items: start;
  width: 100%; margin: 4px auto 6px; padding: 22px 0 calc(var(--w) * 0.2);
  perspective: 1400px; -webkit-tap-highlight-color: transparent;
}
/* le fond derrière le téléphone : uni, un léger dégradé crème plus clair au centre (comme un éclairage de studio),
   sans aucun bord : il se fond dans la bande crème de la section */
.insta__decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 44% 40% at 50% 46%, rgba(255, 252, 245, 0.95) 0%, rgba(255, 252, 245, 0.55) 45%, rgba(255, 252, 245, 0) 100%),
    radial-gradient(ellipse 36% 12% at 50% 86%, rgba(190, 160, 110, 0.16) 0%, rgba(190, 160, 110, 0) 100%);
  opacity: 0; transition: opacity 1200ms var(--ease-out);
}
.insta.is-in .insta__decor { opacity: 1; }
/* l'ombre du téléphone, au sol (elle se resserre quand il monte) */
.insta__ombre { position: absolute; z-index: 2; left: 50%; bottom: calc(var(--w) * 0.05); width: calc(var(--w) * 0.9); height: calc(var(--w) * 0.1); translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 38, 18, 0.42), rgba(52, 38, 18, 0)); filter: blur(2px); }
.insta.is-live .insta__ombre { animation: instaOmbre 6s var(--ease-in-out) 1.8s infinite alternate; }
@keyframes instaOmbre { from { opacity: 0.9; scale: 1; } to { opacity: 0.6; scale: 0.88; } }

/* ---------- l'iPhone (dessiné en CSS : aucune image d'appareil) ---------- */
.iphone__flotte { position: relative; z-index: 3; display: block; }
.insta.is-live .iphone__flotte { animation: instaFlotte 6s var(--ease-in-out) 1.8s infinite alternate; }
@keyframes instaFlotte { from { transform: translateY(0); } to { transform: translateY(-9px); } }
/* l'arrivée en tourbillon */
.iphone__entree { display: block; opacity: 0; transform: scale(0.3) rotate(-320deg); }
.insta.is-in .iphone__entree { animation: instaArrivee 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes instaArrivee { 0% { opacity: 0; transform: scale(0.3) rotate(-320deg); } 25% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }
.iphone, .iphone__corps, .iphone__ecran { display: block; }
.iphone {
  position: relative; z-index: 3; width: var(--w); aspect-ratio: 1 / 2.062;
  padding: calc(var(--w) * 0.012); border-radius: calc(var(--w) * 0.178);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 3%, rgba(255, 255, 255, 0) 97%, rgba(255, 255, 255, 0.4) 100%),
    linear-gradient(160deg, #f0dcbf 0%, #b99a74 22%, #7d6549 48%, #c7a982 74%, #efe0c8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 0 2px rgba(60, 45, 28, 0.5), 0 40px 60px -30px rgba(52, 38, 18, 0.5), 0 18px 28px -18px rgba(52, 38, 18, 0.35), 24px 30px 50px -30px rgba(52, 38, 18, 0.3);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 900ms var(--ease-out);
}
.iphone__bouton { position: absolute; width: calc(var(--w) * 0.013); border-radius: 2px; background: linear-gradient(90deg, #7d6549, #e8d3b2 60%, #a88d6a); }
.iphone__bouton--action { left: calc(var(--w) * -0.009); top: 17%; height: 4.4%; }
.iphone__bouton--plus { left: calc(var(--w) * -0.009); top: 24.5%; height: 7.6%; }
.iphone__bouton--moins { left: calc(var(--w) * -0.009); top: 33.5%; height: 7.6%; }
.iphone__bouton--marche { right: calc(var(--w) * -0.009); top: 27%; height: 11.5%; }
.iphone__bouton--photo { right: calc(var(--w) * -0.007); top: 56%; height: 6.5%; width: calc(var(--w) * 0.009); }
.iphone__corps { position: relative; height: 100%; padding: calc(var(--w) * 0.033); border-radius: calc(var(--w) * 0.166); background: #050506; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.iphone__ecran { position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: calc(var(--w) * 0.134); background: #0b0e14; container-type: inline-size; }
.iphone__capture { position: absolute; left: 0; top: 5.9%; width: 100%; height: 94.1%; object-fit: cover; object-position: top; }
.iphone__statut { position: absolute; inset: 0 0 auto; z-index: 8; height: 5.9%; display: flex; align-items: center; justify-content: space-between; padding: 0 8.5% 0 11%; background: #0b0e14; color: #fff; font: 600 5.6cqw/1 -apple-system, "SF Pro Text", var(--sans); }
.iphone__icones { display: flex; align-items: center; gap: 1.6cqw; }
.iphone__icones svg { height: 3.3cqw; width: auto; fill: currentColor; }
.iphone__ile { position: absolute; z-index: 9; left: 50%; top: 2.4cqw; translate: -50% 0; width: 31cqw; height: 9cqw; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 0.4cqw rgba(255, 255, 255, 0.04); }

/* l'anneau de story, relevé sur un vrai profil Instagram : dégradé en diagonale, du jaune (bas gauche) au violet
   (haut droite), aussi épais que l'espace sombre qui le sépare de la photo ; gris une fois la story vue */
.iphone__anneau {
  position: absolute; z-index: 2; left: 13.65%; top: 17.85%; width: 23cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: linear-gradient(45deg, #ffc800 12%, #ff9f00 26%, #ff5700 40%, #ff0160 56%, #f803a3 72%, #e000cc 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - max(0.8cqw, 1.7px)), #000 calc(100% - max(0.72cqw, 1.6px)));
          mask: radial-gradient(farthest-side, transparent calc(100% - max(0.8cqw, 1.7px)), #000 calc(100% - max(0.72cqw, 1.6px)));
}
.insta.is-live .iphone__anneau { animation: instaAnneau var(--boucle) linear var(--depart) infinite; }
@keyframes instaAnneau { 0%, 84% { filter: none; } 85%, 97% { filter: grayscale(1) brightness(0.5); } 100% { filter: none; } }

/* « Suivre » posé sur le bouton du profil : bleu, puis « Suivi(e) » gris quand la main a appuyé */
.iphone__suivre { position: absolute; z-index: 2; left: 3.68%; top: 39.15%; width: 30.1%; height: 3.45%; display: grid; place-items: center; border-radius: 1.8cqw; overflow: hidden; font: 700 3.6cqw/1 -apple-system, "SF Pro Text", var(--sans); color: #fff; background: #4150f7; }
.iphone__suivre span { grid-area: 1 / 1; }
.iphone__suivre .iphone__suivi { opacity: 0; color: #f5f5f5; }
.insta.is-live .iphone__suivre { animation: instaSuivreFond var(--boucle) linear var(--depart) infinite; }
.insta.is-live .iphone__suivre .iphone__pas-suivi { animation: instaTexteA var(--boucle) linear var(--depart) infinite; }
.insta.is-live .iphone__suivre .iphone__suivi { animation: instaTexteB var(--boucle) linear var(--depart) infinite; }
@keyframes instaSuivreFond { 0%, 16.4% { background: #4150f7; } 17%, 95% { background: #2a2f37; } 98%, 100% { background: #4150f7; } }
@keyframes instaTexteA { 0%, 16.4% { opacity: 1; } 17%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes instaTexteB { 0%, 16.4% { opacity: 0; } 17%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
.iphone__appui { position: absolute; z-index: 3; left: 18.7%; top: 40.9%; width: 14cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 0.7cqw solid rgba(255, 255, 255, 0.7); opacity: 0; scale: 0.4; pointer-events: none; }
.iphone__appui--story { left: 13.65%; top: 17.85%; }
.insta.is-live .iphone__appui { animation: instaAppui1 var(--boucle) var(--ease-out) var(--depart) infinite; }
.insta.is-live .iphone__appui--story { animation-name: instaAppui2; }
@keyframes instaAppui1 { 0%, 15.6% { opacity: 0; scale: 0.4; } 16.6% { opacity: 0.9; scale: 0.6; } 21%, 100% { opacity: 0; scale: 1.5; } }
@keyframes instaAppui2 { 0%, 31.6% { opacity: 0; scale: 0.4; } 32.6% { opacity: 0.9; scale: 0.6; } 37%, 100% { opacity: 0; scale: 1.5; } }

/* ---------- la story : un événement de marque ----------
   La vallée au coucher du soleil (assombrie, qui avance lentement), un halo doré et des paillettes qui montent ;
   « Ce soir, 20 h · Un code réservé à nos abonnés » ; trois produits (photos du carrousel de l'accueil, détourées
   pour le fond sombre) qui arrivent l'un après l'autre puis lévitent ; la carte « Votre code », caractères floutés
   sous un cadenas (aucun vrai code n'est montré) ; l'autocollant lien. S'ouvre depuis la photo de profil, sous la
   barre d'état ; mesures en cqw (largeur de l'écran). */
.story {
  position: absolute; z-index: 5; left: 0; right: 0; top: 5.9%; bottom: 0; overflow: hidden; display: block;
  color: #fff; background: #07150f; opacity: 0; transform: scale(0.12); transform-origin: 13.65% 12.7%;
}
.insta.is-live .story { animation: instaStory var(--boucle) var(--ease-out) var(--depart) infinite; }
@keyframes instaStory { 0%, 32.8% { opacity: 0; transform: scale(0.12); } 36.5% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 84%, 100% { opacity: 0; transform: scale(0.12); } }
.story__decor { position: absolute; inset: -4%; background: #07150f url("../img/paysage-video.jpg?v=4") 50% 30% / cover no-repeat; filter: brightness(0.62) saturate(0.9); }
.insta.is-live .story__decor { animation: instaZoom var(--boucle) linear var(--depart) infinite; }
@keyframes instaZoom { 0%, 33% { transform: scale(1.14); } 84%, 100% { transform: scale(1); } }
.story__voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 9, 0.6) 0%, rgba(4, 12, 9, 0.1) 18%, rgba(4, 12, 9, 0.25) 48%, rgba(4, 12, 9, 0.88) 72%, #040c09 100%); }
.story__halo { position: absolute; left: 50%; top: 47%; width: 110cqw; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(226, 185, 138, 0.42), rgba(226, 185, 138, 0.1) 55%, rgba(226, 185, 138, 0) 72%); }
.insta.is-live .story__halo { animation: instaSouffle 3s var(--ease-in-out) infinite alternate; }
@keyframes instaSouffle { from { opacity: 0.7; scale: 0.94; } to { opacity: 1; scale: 1.04; } }
/* paillettes dorées qui montent */
.story__paillettes i { position: absolute; bottom: 20%; width: 0.9cqw; aspect-ratio: 1; border-radius: 50%; background: #f1d3a8; box-shadow: 0 0 1.6cqw 0.4cqw rgba(241, 211, 168, 0.55); opacity: 0; }
.story__paillettes i:nth-child(1) { left: 14%; } .story__paillettes i:nth-child(2) { left: 27%; bottom: 30%; } .story__paillettes i:nth-child(3) { left: 41%; bottom: 24%; }
.story__paillettes i:nth-child(4) { left: 57%; bottom: 34%; } .story__paillettes i:nth-child(5) { left: 69%; bottom: 22%; } .story__paillettes i:nth-child(6) { left: 82%; bottom: 28%; }
.story__paillettes i:nth-child(7) { left: 34%; bottom: 40%; width: 0.6cqw; } .story__paillettes i:nth-child(8) { left: 76%; bottom: 44%; width: 0.6cqw; }
.insta.is-live .story__paillettes i { animation: instaPaillette 3.2s ease-out infinite; }
.insta.is-live .story__paillettes i:nth-child(2n) { animation-duration: 4s; animation-delay: -1.3s; }
.insta.is-live .story__paillettes i:nth-child(3n) { animation-duration: 3.6s; animation-delay: -2.2s; }
@keyframes instaPaillette { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34cqw); } }
.story__barre { position: absolute; z-index: 3; left: 3%; right: 3%; top: 1.4%; height: 0.55cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story__barre i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.insta.is-live .story__barre i { animation: instaBarre var(--boucle) linear var(--depart) infinite; }
@keyframes instaBarre { 0%, 36.5% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.story__tete { position: absolute; z-index: 3; left: 3.5%; right: 3.5%; top: 3.6%; display: flex; align-items: center; gap: 2cqw; color: #fff; font: 600 3.5cqw/1 -apple-system, "SF Pro Text", var(--sans); }
.story__tete img { width: 7.5cqw; height: 7.5cqw; border-radius: 50%; }
.story__tete i { font-style: normal; font-weight: 400; opacity: 0.65; }
.story__tete .story__x { margin-left: auto; font-size: 6cqw; font-weight: 300; }
/* le haut : la marque, l'heure, la promesse */
.story__haut { position: absolute; z-index: 3; left: 5%; right: 5%; top: 10.5%; display: grid; justify-items: center; gap: 1.2cqw; text-align: center; }
.story__marque { font: 500 3.4cqw/1 var(--caps); letter-spacing: 0.5em; margin-right: -0.5em; color: #e2b98a; }
.story__marque::before, .story__marque::after { content: ""; display: inline-block; width: 6cqw; height: 0.25cqw; margin: 0 2cqw 0.9cqw; vertical-align: middle; background: linear-gradient(90deg, rgba(226, 185, 138, 0), #e2b98a); }
.story__marque::after { transform: scaleX(-1); }
.story__soir { margin-top: 1cqw; font: 400 12.5cqw/1 var(--script); color: #ecc794; text-shadow: 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.5); }
.story__titre { font: 500 7.4cqw/1.05 var(--serif); color: #f6eee0; text-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.55); }
.story__titre em { display: block; font-style: italic; color: #e2b98a; }
/* les produits */
.story__produits { position: absolute; z-index: 2; left: 0; right: 0; top: 33%; height: 30%; }
.story__p { position: absolute; display: block; height: auto; filter: drop-shadow(0 3cqw 3cqw rgba(0, 0, 0, 0.65)); opacity: 0; }
.story__p--resine { left: 4%; top: 16%; width: 33cqw; rotate: -14deg; filter: drop-shadow(0 3cqw 3cqw rgba(0, 0, 0, 0.6)) brightness(0.9); }
.story__p--amnesia { right: 7%; top: 4%; width: 19cqw; rotate: 12deg; filter: drop-shadow(0 3cqw 3cqw rgba(0, 0, 0, 0.6)) brightness(0.9); }
.story__p--rainbow { left: 50%; top: 32%; width: 56cqw; translate: -50% 0; }
.story__lueur { position: absolute; left: 50%; bottom: -4%; width: 62cqw; height: 9cqw; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); }
.insta.is-live .story__p--resine { animation: instaP1 var(--boucle) var(--ease-out) var(--depart) infinite; }
.insta.is-live .story__p--amnesia { animation: instaP2 var(--boucle) var(--ease-out) var(--depart) infinite; }
.insta.is-live .story__p--rainbow { animation: instaP3 var(--boucle) var(--ease-out) var(--depart) infinite; }
@keyframes instaP1 { 0%, 39% { opacity: 0; transform: translate(-8cqw, 4cqw) scale(0.6); } 43% { opacity: 1; transform: none; } 61% { transform: translateY(-2cqw) rotate(-2deg); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes instaP2 { 0%, 40.5% { opacity: 0; transform: translate(8cqw, 4cqw) scale(0.6); } 44.5% { opacity: 1; transform: none; } 63% { transform: translateY(-2.5cqw) rotate(3deg); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes instaP3 { 0%, 41.5% { opacity: 0; transform: translateY(10cqw) scale(0.5); } 45% { opacity: 1; transform: translateY(-1cqw) scale(1.04); } 47% { transform: none; } 64% { transform: translateY(-3cqw); } 80%, 100% { opacity: 1; transform: none; } }
/* la carte « Votre code » : verre fumé, liseré or, caractères floutés sous un cadenas */
.story__code {
  position: absolute; z-index: 3; left: 50%; top: 66.5%; width: 74cqw; translate: -50% 0;
  display: grid; justify-items: center; gap: 1.6cqw; padding: 3.2cqw 3cqw 3.4cqw; border-radius: 4cqw; opacity: 0;
  background: linear-gradient(180deg, rgba(23, 55, 43, 0.82), rgba(8, 22, 17, 0.9)); -webkit-backdrop-filter: blur(1.5cqw); backdrop-filter: blur(1.5cqw);
  box-shadow: inset 0 0 0 0.3cqw rgba(226, 185, 138, 0.75), inset 0 0.4cqw 0 rgba(255, 255, 255, 0.08), 0 3cqw 6cqw rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.story__code::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, rgba(241, 211, 168, 0), rgba(241, 211, 168, 0.22), rgba(241, 211, 168, 0)); transform: skewX(-18deg); }
.insta.is-live .story__code::after { animation: instaReflet 2.4s var(--ease-in-out) 0.6s infinite; }
.story__code-titre { font: 600 2.7cqw/1 var(--caps); letter-spacing: 0.32em; color: #e2b98a; }
.story__code-valeur { display: flex; align-items: center; gap: 1.1cqw; }
.story__code-valeur b { display: grid; place-items: center; width: 8.4cqw; height: 10.4cqw; border-radius: 1.6cqw; background: rgba(246, 238, 224, 0.08); box-shadow: inset 0 0 0 0.25cqw rgba(226, 185, 138, 0.35); font: 700 6.4cqw/1 -apple-system, "SF Pro Display", var(--sans); color: #f6eee0; }
/* code caché : un point flou dans chaque case (aucun caractère, aucun vrai code), qui scintille */
.story__code-valeur b.flou::before { content: ""; width: 3cqw; aspect-ratio: 1; border-radius: 50%; background: #f1d3a8; box-shadow: 0 0 1.8cqw 0.8cqw rgba(241, 211, 168, 0.45); filter: blur(0.4cqw); }
.insta.is-live .story__code-valeur b.flou::before { animation: instaPoint 1.6s var(--ease-in-out) infinite alternate; }
.insta.is-live .story__code-valeur b.flou:nth-child(2n)::before { animation-delay: -0.8s; }
.insta.is-live .story__code-valeur b.flou:nth-child(3n)::before { animation-delay: -0.4s; }
@keyframes instaPoint { from { opacity: 0.45; scale: 0.8; } to { opacity: 1; scale: 1.1; } }
.story__code-valeur svg { width: 5.4cqw; height: 5.4cqw; margin-left: 1cqw; color: #e2b98a; }
.story__code-bas { font: 500 3cqw/1 -apple-system, "SF Pro Text", var(--sans); color: rgba(246, 238, 224, 0.75); letter-spacing: 0.02em; }
/* l'autocollant « lien » d'Instagram */
.story__lien { position: absolute; z-index: 3; left: 50%; bottom: 12%; translate: -50% 0; rotate: -2deg; display: inline-flex; align-items: center; gap: 1.3cqw; padding: 1.7cqw 3.4cqw; border-radius: 2.2cqw; background: #fff; color: #2f6fe4; font: 700 3.3cqw/1 -apple-system, "SF Pro Text", var(--sans); box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, 0.35); opacity: 0; }
.story__lien svg { width: 3.4cqw; height: 3.4cqw; }
.story__bas { position: absolute; z-index: 3; left: 3.5%; right: 3.5%; bottom: 2.4%; display: flex; align-items: center; gap: 2.4cqw; }
.story__message { flex: 1; padding: 2.3cqw 3.4cqw; border-radius: 99px; border: 0.3cqw solid rgba(255, 255, 255, 0.5); font: 400 3.1cqw/1 -apple-system, "SF Pro Text", var(--sans); color: rgba(255, 255, 255, 0.8); }
.story__bas svg { width: 6cqw; height: 6cqw; flex: none; }
/* l'ordre d'arrivée : le haut, les produits, la carte, le lien */
.story__haut > * { opacity: 0; }
.insta.is-live .story__haut > * { animation: instaStoryTexte var(--boucle) var(--ease-out) var(--depart) infinite; }
.insta.is-live .story__soir { animation-name: instaStorySoir; }
.insta.is-live .story__code { animation: instaStoryCode var(--boucle) cubic-bezier(0.34, 1.3, 0.64, 1) var(--depart) infinite; }
.insta.is-live .story__lien { animation: instaStoryLien var(--boucle) cubic-bezier(0.34, 1.4, 0.64, 1) var(--depart) infinite; }
@keyframes instaStoryTexte { 0%, 37% { opacity: 0; transform: translateY(3cqw); } 40.5%, 100% { opacity: 1; transform: none; } }
@keyframes instaStorySoir { 0%, 37.5% { opacity: 0; transform: scale(1.15); filter: blur(1cqw); } 41.5%, 100% { opacity: 1; transform: none; filter: none; } }
@keyframes instaStoryCode { 0%, 46.5% { opacity: 0; transform: translateY(5cqw) scale(0.9); } 50%, 100% { opacity: 1; transform: none; } }
@keyframes instaStoryLien { 0%, 50.5% { opacity: 0; transform: scale(0.6); } 53.5%, 100% { opacity: 1; transform: none; } }

/* le reflet du verre */
.iphone__verre { position: absolute; inset: 0; z-index: 10; pointer-events: none; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0) 42%); }
.iphone__verre::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-14deg); }
.insta.is-live .iphone__verre::after { animation: instaLueur 9s var(--ease-in-out) 3s infinite; }
@keyframes instaLueur { 0%, 70% { left: -60%; } 100% { left: 140%; } }

/* ---------- la main ----------
   Posée dans le téléphone (repère : sa largeur --w), le bout de l'index sur « Suivre » (0,2156 w ; 0,8515 w).
   Point d'appui (transform-origin) : le bout du doigt, 35,5 % / 2,7 % du dessin. Pour la story, elle glisse jusqu'à
   la photo de profil (−0,0464 w ; −0,4545 w). Invisible au repos (pas de bout de doigt qui dépasse), poignet fondu. */
.iphone__main {
  --mw: calc(var(--w) * 1.02); --sx: calc(var(--w) * -0.0464); --sy: calc(var(--w) * -0.4545);
  position: absolute; z-index: 6; width: var(--mw); aspect-ratio: 200 / 300; pointer-events: none;
  left: calc(var(--w) * 0.2156 - var(--mw) * 0.355); top: calc(var(--w) * 0.8515 - var(--mw) * 1.5 * 0.027);
  transform-origin: 35.5% 2.7%; transform: translate(0, 0) rotate(-24deg) translateY(70%) scale(1); opacity: 0;
  filter: drop-shadow(0 calc(var(--w) * 0.05) calc(var(--w) * 0.05) rgba(40, 24, 10, 0.32));
  -webkit-mask: linear-gradient(180deg, #000 74%, transparent 96%);
          mask: linear-gradient(180deg, #000 74%, transparent 96%);
}
.iphone__main svg { display: block; width: 100%; height: 100%; }
.insta.is-live .iphone__main { animation: instaMain var(--boucle) var(--ease-in-out) var(--depart) infinite; }
@keyframes instaMain {
  0% { transform: translate(0, 0) rotate(-24deg) translateY(70%) scale(1); opacity: 0; }
  6% { opacity: 0; }
  11% { transform: translate(0, 0) rotate(-24deg) translateY(10%) scale(1); opacity: 1; }
  15% { transform: translate(0, 0) rotate(-24deg) translateY(1.5%) scale(1); opacity: 1; }
  16.5% { transform: translate(0, 0) rotate(-24deg) translateY(0) scale(0.97); opacity: 1; }
  18.5% { transform: translate(0, 0) rotate(-24deg) translateY(2%) scale(1); opacity: 1; }
  21% { transform: translate(0, 0) rotate(-24deg) translateY(4%) scale(1); opacity: 1; }
  29% { transform: translate(var(--sx), var(--sy)) rotate(-24deg) translateY(4%) scale(1); opacity: 1; }
  31.5% { transform: translate(var(--sx), var(--sy)) rotate(-24deg) translateY(0.5%) scale(1); opacity: 1; }
  32.6% { transform: translate(var(--sx), var(--sy)) rotate(-24deg) translateY(0) scale(0.97); opacity: 1; }
  34.5% { transform: translate(var(--sx), var(--sy)) rotate(-24deg) translateY(3%) scale(1); opacity: 1; }
  41% { opacity: 0; }
  44%, 100% { transform: translate(var(--sx), var(--sy)) rotate(-24deg) translateY(70%) scale(1); opacity: 0; }
}

/* ---------- ordinateur : texte à gauche, téléphone à droite, sur un écran ---------- */
@media (min-width: 1000px) {
  .insta { padding-top: 40px; padding-bottom: 40px; }
  .insta__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 48px; align-items: center; justify-items: start; text-align: left; grid-template-areas: "texte scene" "action scene"; max-width: 1080px; margin: 0 auto; }
  .insta .sec-title span, .insta .sec-title em { display: block; }
  .insta__texte { align-self: end; }
  .insta__texte .sec-lead { margin-left: 0; font-size: 15.5px; }
  .insta__action { align-self: start; justify-items: start; margin-top: 26px; }
  .insta__scene { --w: 230px; justify-self: center; width: 560px; margin: 0; padding-top: 18px; }
}

/* ---------- moins d'animations : tout est posé, rien ne bouge (la main et la story restent cachées) ---------- */
@media (prefers-reduced-motion: reduce) {
  .iphone__entree, .insta.is-in .iphone__entree { opacity: 1; transform: none; animation: none; }
  .insta__decor { transition: none; }
  .insta [class*="insta__"], .insta [class*="iphone__"], .insta [class*="story"] { animation: none !important; }
}
