/* Kéké Frais — version téléphone, pensée à part (portrait).
   Principe : un écran = une idée, les listes se parcourent au doigt (carrousels), plus de longues scènes épinglées. */
.nav-menu, .menu-m, .m-tete, .m-points, .hero-m { display: none; }

@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  html { scroll-padding-top: 76px; }
  body { -webkit-tap-highlight-color: transparent; }

  /* ——— Barre : logo, franchise, menu */
  .nav { top: 10px; left: 10px; right: 10px; height: 56px; padding: 4px 4px 4px 12px; grid-template-columns: 1fr auto; border-radius: 10px; }
  .nav-logo img { height: 40px; }
  .nav .btn { padding: 0 14px; font-size: 13px; border-radius: 7px; }
  .nav-menu { display: grid; place-content: center; gap: 6px; width: 48px; background: var(--rose); border: 0; border-radius: 7px; cursor: pointer; }
  .nav-menu i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--noir); transition: transform .35s cubic-bezier(.5, 1.6, .4, 1); }
  .nav-menu[aria-expanded=true] i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-menu[aria-expanded=true] i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu-m { position: fixed; inset: 0; z-index: 45; background: var(--roi); color: var(--creme); padding: 92px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1); }
  .menu-m:not([hidden]) { display: flex; }
  .menu-m.ouvert { clip-path: inset(0 0 0 0); }
  .menu-m nav { display: grid; }
  .menu-m nav a { display: flex; align-items: baseline; gap: 14px; color: inherit; text-decoration: none; font-weight: 900; font-size: clamp(34px, 10.5vw, 48px); line-height: 1.12; text-transform: uppercase; letter-spacing: -.03em; padding: 6px 0; border-bottom: 2px solid rgba(249, 237, 224, .16); opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
  .menu-m nav a span { font-size: 13px; letter-spacing: .04em; color: var(--jaune); }
  .menu-m.ouvert nav a { opacity: 1; transform: none; }
  .menu-m.ouvert nav a:nth-child(2) { transition-delay: .04s; } .menu-m.ouvert nav a:nth-child(3) { transition-delay: .08s; }
  .menu-m.ouvert nav a:nth-child(4) { transition-delay: .12s; } .menu-m.ouvert nav a:nth-child(5) { transition-delay: .16s; } .menu-m.ouvert nav a:nth-child(6) { transition-delay: .2s; }
  .menu-ue { margin-top: 22px; align-self: flex-start; min-height: 52px; }
  .menu-perso { position: absolute; right: -14vw; bottom: -6svh; width: 62vw; transform: rotate(-12deg); pointer-events: none; }
  body.menu-ouvert { overflow: hidden; }

  /* ——— Héros : un seul écran */
  .hero { height: 100svh; }
  h1 { font-size: 15.6vw; top: 13.5svh; }
  .hero-perso { top: auto; bottom: calc(46px + 1.5svh); width: auto; height: min(40svh, 92vw); max-width: 82vw; filter: drop-shadow(0 18px 22px rgba(3, 53, 170, .18)); }
  .fil { top: auto; bottom: 0; height: 46px; background: var(--rose); }
  .hero-m { display: grid; justify-items: center; gap: 14px; position: absolute; left: 20px; right: 20px; top: calc(13.5svh + 34vw); z-index: 5; text-align: center; }
  .hero-m p { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--roi); max-width: 30ch; }
  .hero-m div { display: flex; gap: 8px; }
  .hero-m .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }
  .hero-m .btn-c { background: var(--creme); color: var(--roi); }

  /* ——— Produits : carrousel plein écran au doigt */
  .show { margin-top: 0; background: var(--roi); }
  .m-tete { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 84px 20px 14px; color: var(--creme); }
  .m-tete h2 { font-size: 34px; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
  .m-tete p { font-weight: 800; font-size: 13px; text-transform: uppercase; white-space: nowrap; opacity: .85; }
  .m-tete p b { color: var(--jaune); font-size: 22px; letter-spacing: -.02em; }
  .show-pin { height: auto; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; background: none; padding: 0 0 4px; gap: 0; }
  .show-pin::-webkit-scrollbar { display: none; }
  .scene { position: relative; inset: auto; flex: 0 0 100vw; height: min(76svh, 640px); scroll-snap-align: center; scroll-snap-stop: always; transform: none !important; display: block; }
  .scene .mot { position: absolute; top: 4.5%; left: 0; right: 0; text-align: center; transform: none !important; }
  .scene .stk { left: 18px; top: 27%; font-size: 12px; padding: 8px 14px; }
  .scene .tampon { right: 16px; top: 24.5%; bottom: auto; width: 74px; font-size: 12px; }
  .scene .pk { top: 61%; height: 56%; max-width: 84vw; transform: rotate(-6deg) scale(.86) !important; opacity: .4; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1), opacity .4s; }
  .scene.vu .pk { transform: none !important; opacity: 1; }
  .scene .leg { left: 22px; right: 22px; bottom: 5%; font-size: 13px; line-height: 1.35; }
  .m-points { display: flex; justify-content: center; gap: 7px; padding: 16px 20px 26px; }
  .m-points button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(249, 237, 224, .35); transition: width .35s cubic-bezier(.2, 1.4, .4, 1), background .3s; cursor: pointer; }
  .m-points button[aria-current=true] { width: 28px; background: var(--jaune); }
  .m-points.sombre button { background: rgba(3, 53, 170, .25); }
  .m-points.sombre button[aria-current=true] { background: var(--roi); }

  /* ——— Ingrédients : cartes au doigt */
  .dedans { background: var(--rose); }
  .d-pin { height: auto; padding: 84px 0 0; overflow: visible; display: block; }
  .d-g { position: static; translate: none; width: auto; padding: 0 20px; color: var(--roi); }
  .d-g h2 { font-size: 40px; line-height: .95; }
  .d-g p { font-size: 15px; line-height: 1.45; margin-top: 12px; }
  .d-pk { display: none; }
  .d-clip { position: static; overflow: visible; margin: 22px 0 0; }
  .d-rail { display: flex; gap: 12px; width: auto; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 20px 6px; scroll-padding: 0 20px; transform: none !important; }
  .d-rail::-webkit-scrollbar { display: none; }
  .d-rail article { flex: 0 0 76vw; height: auto; min-height: 270px; padding: 24px 22px; border-radius: 22px; scroll-snap-align: start; }
  .d-rail img { width: 72px; }
  .dedans .m-points { padding-bottom: 22px; }
  .note { font-size: 12px; padding: 12px 18px; }

  /* ——— La carte */
  .sig-t { padding-top: 84px; }
  .slider { gap: 12px; padding: 6px 20px 18px; scroll-padding: 20px; }
  .slider article { flex-basis: 76vw; border-radius: 22px; }
  .slider div { height: 62vw; }

  /* ——— La Kéké Family : même empilement, affiche plus large */
  .fam-t { top: 84px; left: 20px; right: 20px; }
  .fam-pile { width: min(76vw, 52svh * .8); }
  .fam-mot { font-size: 26vw; top: 46%; }
  .fam-leg { bottom: calc(14px + env(safe-area-inset-bottom)); padding: 0 20px; font-size: 12px; }

  /* ——— Compose : le gobelet reste visible pendant qu'on choisit */
  .compose { padding: 76px 16px 40px; min-height: 0; }
  .c-mot { font-size: 17.5vw; padding-top: 0; }
  .compose-grille { margin-top: -5vw; gap: 18px; }
  .gob-img { max-height: 30svh; }
  .choix-col h3 { font-size: 19px; margin-bottom: 10px; }
  .choix-col i { width: 30px; height: 30px; }
  .pills { gap: 8px; }
  .pills button { font-size: 14px; min-height: 44px; padding: 8px 16px; }
  .resultat { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 3; margin: 22px auto 0; max-width: 520px; background: var(--roi); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: 15px; box-shadow: 0 10px 24px rgba(3, 53, 170, .3); }

  /* ——— Histoire */
  .histoire { padding: 84px 16px 60px; }
  .histoire h2 { font-size: 40px; line-height: .95; }
  .histoire > p { font-size: 15px; margin: 14px auto 26px; }
  .galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin: 0 -16px; padding: 4px 16px 10px; }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie img { flex: 0 0 72vw; height: 90vw; aspect-ratio: auto; scroll-snap-align: center; }
  .galerie img:first-child { flex-basis: 88vw; height: 90vw; }
  .galerie img:nth-child(even) { transform: rotate(1.4deg); }

  /* ——— Franchise : trois cartes au doigt puis le formulaire */
  .f-pin { height: auto; overflow: visible; padding: 84px 0 0; }
  .f-pin h2 { font-size: 40px; line-height: .95; padding: 0 20px; }
  .f-cartes { position: static; translate: none; width: auto; height: auto; margin: 26px 0 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 20px 8px; scroll-padding: 0 20px; }
  .f-cartes::-webkit-scrollbar { display: none; }
  .f-cartes article { position: relative; inset: auto; flex: 0 0 78vw; min-height: 230px; scroll-snap-align: start; transform: none !important; rotate: 0deg; padding: 24px 22px; }
  .f-cartes h3 { font-size: 26px; }
  .franchise .m-points { padding-bottom: 30px; background: var(--rose); }
  .fr-form { padding: 34px 16px 40px; }
  .form { padding: 22px 18px; border-radius: 20px; }
  .form h3 { font-size: 24px; }

  /* ——— Pied */
  .pied-in { padding: 40px 16px 22px; }
  .pied-in p { font-size: 15vw; }
  .pied-in nav a { padding: 8px 12px; }
}

/* ——— Codes des stories (téléphone) : stories.js */
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  /* les produits : une carte story, les scènes empilées, une seule visible */
  .st-mode .m-tete { padding-bottom: 10px; }
  .st-mode .show-pin { position: relative; display: block; overflow: hidden; margin: 0 12px; height: min(74svh, 620px); border-radius: 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5); }
  .st-mode .scene { position: absolute; inset: 0; flex: none; width: auto; height: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .st-mode .scene.vu { opacity: 1; visibility: visible; transition: opacity .25s; }
  .st-mode .scene .mot { top: 12%; }
  .st-mode .scene .stk { top: 31%; }
  .st-mode .scene .tampon { top: 28.5%; }
  .st-mode .scene .pk { top: 63%; height: 52%; }
  .st-mode .scene img { pointer-events: none; -webkit-user-drag: none; }

  /* voile sombre en haut pour lire les barres et le nom, quelle que soit la couleur de la scène */
  .st-mode .show-pin::after, .vs-carte::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; z-index: 7; background: linear-gradient(rgba(0, 0, 0, .34), transparent); pointer-events: none; }
  .st-mode .show-pin { outline: 2px solid rgba(249, 237, 224, .16); outline-offset: -2px; }
  .st-barres { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 8; display: flex; gap: 4px; pointer-events: none; }
  .st-barres i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .38); overflow: hidden; }
  .st-barres b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
  .st-entete { position: absolute; left: 12px; right: 12px; top: 22px; z-index: 8; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
  .st-entete b { font-weight: 800; letter-spacing: -.01em; }
  .st-quoi { opacity: .8; font-weight: 600; }
  .st-av { width: 32px; height: 32px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, #fff04e, #ff582c, #ff0040, #ff8cc5, #fff04e); flex: none; }
  .st-av img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--creme); border: 2px solid var(--creme); object-fit: contain; padding: 2px; }
  .tenu .st-barres, .tenu .st-entete, .tenu .vs-pied { opacity: 0; transition: opacity .2s; }

  .st-actions { display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 6px 4px; color: var(--creme); }
  .st-nb { font-weight: 800; font-size: 14px; flex: 1; }
  .st-coeur, .st-partage { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .st-coeur svg, .st-partage svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: transform .3s cubic-bezier(.2, 1.8, .4, 1); }
  .st-coeur[aria-pressed=true] svg { fill: #ff0040; stroke: #ff0040; transform: scale(1.12); }
  .st-coeur:active svg { transform: scale(.8); }
  .st-cmd { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 99px; background: var(--jaune); color: var(--roi); font-weight: 800; font-size: 14px; text-decoration: none; }
  .st-bulle { position: absolute; left: 50%; bottom: 60%; width: 18px; margin-left: -9px; pointer-events: none; animation: st-monte 1.3s ease-out forwards; }
  .st-bulle svg { width: 18px; height: 18px; fill: #ff0040; stroke: none; }
  @keyframes st-monte { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -110px) scale(1.1); } }
  .st-eclat { position: absolute; z-index: 20; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; animation: st-eclat .85s cubic-bezier(.2, 1.4, .4, 1) forwards; }
  .st-eclat svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
  @keyframes st-eclat { 0% { opacity: 0; transform: scale(.2) rotate(var(--r)); } 25% { opacity: 1; transform: scale(1.15) rotate(var(--r)); } 45% { transform: scale(.95) rotate(var(--r)); } 75% { opacity: 1; transform: scale(1) rotate(var(--r)) translateY(0); } 100% { opacity: 0; transform: scale(.9) rotate(var(--r)) translateY(-60px); } }
  .st-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; translate: -50% 20px; opacity: 0; background: var(--noir); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 99px; transition: opacity .3s, translate .3s; }
  .st-toast.on { opacity: 1; translate: -50% 0; }

  /* « À la une » : les ronds */
  .st-une { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 18px; }
  .st-une::-webkit-scrollbar { display: none; }
  .st-rond { flex: none; display: grid; justify-items: center; gap: 6px; width: 72px; padding: 0; border: 0; background: none; color: var(--creme); font: 700 12px Poppins, sans-serif; cursor: pointer; }
  .st-rond span { display: block; width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #fff04e, #ff582c, #ff0040, #ff8cc5, #fff04e); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
  .st-rond.lu span { background: rgba(249, 237, 224, .35); }
  .st-rond:active span { transform: scale(.92); }
  .st-rond img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--roi); }

  /* la visionneuse plein écran */
  body.vs-ouvert { overflow: hidden; }
  .vs { position: fixed; inset: 0; z-index: 70; background: #000; opacity: 0; transition: opacity .25s; perspective: 1200px; }
  .vs.on { opacity: 1; }
  .vs-carte { position: absolute; inset: env(safe-area-inset-top) 0 0; overflow: hidden; border-radius: 12px 12px 0 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; backface-visibility: hidden; }
  .vs-fond { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.2); transform: scale(1.1); }
  .vs-img { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
  .vs-img.photo { top: 0; translate: none; height: 100%; object-fit: cover; }
  .vs-barres { top: 12px; }
  .vs-tete { top: 24px; pointer-events: auto; }
  .vs-x { margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }
  .vs-pied { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 40px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .45)); color: #fff; }
  .vs-pied .st-cmd { flex: 1; justify-content: center; }

  /* le sondage */
  .st-sticker { position: absolute; z-index: 9; left: 50%; top: 58%; width: min(78vw, 300px); translate: -50% 0; rotate: -3deg; background: #fff; border-radius: 18px; padding: 14px 12px 12px; text-align: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
  .st-sticker p { font-weight: 900; font-size: 17px; color: var(--noir); margin-bottom: 10px; }
  .st-choix { display: grid; gap: 8px; }
  .st-choix button { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 16px; border: 2px solid #eee; border-radius: 12px; background: #fff; font: 800 15px Poppins, sans-serif; color: var(--roi); cursor: pointer; }
  .st-choix button::before { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #ff8cc5, #ff582c); opacity: .3; transition: width .7s cubic-bezier(.2, 1, .3, 1); }
  .st-choix span, .st-choix em { position: relative; font-style: normal; }
  .st-choix em { opacity: 0; transition: opacity .3s .3s; }
  .st-choix.vote button::before { width: var(--p); }
  .st-choix.vote em { opacity: 1; }
  .st-choix.vote button.moi { border-color: #ff582c; }
}

/* ——— Le reste du site en codes réseaux sociaux (téléphone) : social.js */
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) {
  /* éléments communs d'une publication */
  .po-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.2; }
  .po-tete b { display: block; font-weight: 800; }
  .po-tete small { display: block; font-size: 12px; font-weight: 500; opacity: .75; }
  .po-act { display: flex; align-items: center; gap: 2px; padding: 4px 6px 0; flex-wrap: wrap; }
  .po-act .po-signet { margin-left: auto; }
  .po-nb { flex-basis: 100%; padding: 0 8px 2px; font-weight: 800; font-size: 14px; }
  .po-signet { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .po-signet svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .po-signet[aria-pressed=true] svg { fill: currentColor; }
  .po-act .st-coeur svg, .po-act .st-partage svg { width: 26px; height: 26px; }

  /* Ingrédients : publication carrousel */
  .dedans .d-pin.po { display: flex; flex-direction: column; padding: 76px 0 0; color: var(--roi); }
  .d-pin.po > .po-tete { order: 1; padding: 6px 14px 10px; }
  .d-pin.po .d-clip { order: 2; position: relative; inset: auto; margin: 0; }
  .d-pin.po > .m-points { order: 3; padding: 12px 0 0; }
  .d-pin.po > .po-act { order: 4; }
  .d-pin.po .d-g { order: 5; padding: 0 14px; }
  .d-pin.po .d-g h2 { font-size: 26px; line-height: 1; margin-top: 4px; }
  .d-pin.po .d-g .stk2 { display: none; }
  .d-pin.po .d-g p { font-size: 14px; line-height: 1.45; margin-top: 6px; }
  .po-tags { color: var(--roi); font-weight: 700; opacity: .7; }
  .d-pin.po .d-rail { gap: 0; padding: 0; scroll-padding: 0; }
  .d-pin.po .d-rail article { flex: 0 0 100vw; aspect-ratio: 1; min-height: 0; border-radius: 0; scroll-snap-align: start; display: grid; align-content: center; justify-items: center; text-align: center; padding: 28px; }
  .d-pin.po .d-rail img { width: 38vw; margin-bottom: 6px; }
  .d-pin.po .d-rail h3 { font-size: 44px; }
  .d-pin.po .d-rail ul { justify-content: center; }
  .po-n { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(14, 14, 14, .62); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 99px; }

  /* La carte : fiches produit */
  .slider article { position: relative; padding-bottom: 64px; }
  .slider article > div { position: relative; }
  .po-coeur { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--noir); }
  .po-coeur svg { width: 24px; height: 24px; }
  .po-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--noir); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; }

  /* La Kéké Family : grille de profil */
  .famille .fam-pin { display: none; }
  .famille { background: var(--creme); }
  .pf { padding: 84px 0 8px; color: var(--noir); }
  .pf-haut { display: flex; align-items: center; gap: 22px; padding: 0 16px; }
  .pf-av { width: 86px; height: 86px; padding: 3px; }
  .pf-av img { padding: 8px; }
  .pf-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
  .pf-stats p { font-size: 12px; font-weight: 500; }
  .pf-stats b { display: block; font-size: 19px; font-weight: 900; }
  .pf-nom { padding: 12px 16px 0; font-weight: 900; font-size: 15px; }
  .pf-nom span { display: block; font-weight: 600; font-size: 12px; opacity: .6; }
  .pf-bio { padding: 4px 16px 0; font-size: 14px; line-height: 1.45; }
  .pf-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; }
  .pf-bt a { display: grid; place-items: center; min-height: 40px; border-radius: 10px; background: #ece2d6; color: var(--noir); font-weight: 800; font-size: 13px; text-decoration: none; }
  .pf-bt a:first-child { background: var(--roi); color: #fff; }
  .pf-onglet { display: grid; place-items: center; padding: 10px 0; border-top: 1px solid rgba(14, 14, 14, .12); }
  .pf-onglet svg { width: 22px; height: 22px; fill: none; stroke: var(--noir); stroke-width: 1.8; }
  .pf-onglet::after { content: ""; width: 34%; height: 1.5px; background: var(--noir); margin-top: 9px; }
  .pf-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .pf-case { display: block; padding: 0; border: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #ddd; cursor: pointer; }
  .pf-case img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
  .pf-case:active img { transform: scale(.94); }

  /* Compose : conversation */
  .compose.dm { padding: 76px 0 30px; }
  .dm .c-mot { font-size: 17.5vw; padding: 0 16px; }
  .dm-tete { display: flex; align-items: center; gap: 10px; margin: 6px 12px 0; padding: 10px 12px; background: #fff; border-radius: 16px 16px 0 0; border-bottom: 1px solid #eee; font-size: 14px; color: var(--noir); }
  .dm-tete b { display: block; font-weight: 800; }
  .dm-tete small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .7; }
  .dm-tete small i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
  .dm-fil { display: flex; flex-direction: column; gap: 8px; margin: 0 12px; padding: 14px 12px 16px; background: #fff; border-radius: 0 0 16px 16px; }
  .dm-m { align-self: flex-start; max-width: 86%; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: #efefef; color: var(--noir); font-size: 15px; line-height: 1.35; }
  .dm-m > span { display: block; font-weight: 800; margin-bottom: 8px; }
  .dm-m .pills { gap: 6px; }
  .dm-m .pills button { min-height: 40px; font-size: 14px; padding: 6px 14px; }
  .dm-m .pills button[aria-pressed=false] { background: #fff; }
  .dm-moi { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, var(--roi), #5965f0); color: #fff; font-weight: 700; }
  .dm-ecrit { display: flex; gap: 4px; padding: 14px 16px; }
  .dm-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: dm-pt 1s infinite; }
  .dm-ecrit i:nth-child(2) { animation-delay: .15s; } .dm-ecrit i:nth-child(3) { animation-delay: .3s; }
  @keyframes dm-pt { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  .dm-photo { padding: 8px; background: var(--rose); display: grid; gap: 8px; justify-items: center; }
  .dm-photo .gob { width: 100%; }
  .dm-photo .gob-img { max-height: 46svh; transform: none !important; }
  .dm-res { font-weight: 800; color: var(--roi); text-align: center; }

  /* Histoire : fil de publications */
  .histoire .galerie { gap: 12px; align-items: start; }
  .po-photo { flex: 0 0 84vw; scroll-snap-align: center; background: #fff; border-radius: 16px; overflow: hidden; color: var(--noir); text-align: left; }
  .po-photo .po-img { position: relative; }
  .galerie .po-photo .st-av img { flex: none; width: 100%; height: 100%; max-height: none; transform: none; border-radius: 50%; }
  .galerie .po-img img, .galerie .po-img img:first-child { display: block; width: 100%; height: 100vw; max-height: 100vw; flex: none; object-fit: cover; transform: none; border-radius: 0; }
  .po-leg { padding: 0 14px 14px; font-size: 14px; line-height: 1.4; }
  .po-leg b { font-weight: 800; }

  /* Franchise : posts puis message */
  .po-tete-txt { padding: 0 0 12px; }
  .po-tete-txt .st-av img { background: #fff; }
  .f-cartes article q { display: none; }
  .dm-tete-form { margin: -22px -18px 14px; border-radius: 20px 20px 0 0; }
  .form input { border-radius: 22px; }
  .form button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 99px; }
  .form button[type=submit] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

  /* barre d'onglets */
  .onglets { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 22px; background: rgba(249, 237, 224, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(3, 53, 170, .22); transition: transform .35s cubic-bezier(.2, 1, .3, 1); }
  .onglets.cache { transform: translateY(140%); }
  .onglets a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 16px; color: var(--noir); text-decoration: none; font-weight: 700; font-size: 10.5px; }
  .onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .onglets a[aria-current] { background: var(--roi); color: #fff; }
  body.a-onglets .pied-in { padding-bottom: 100px; }
  body.a-onglets .st-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.menu-ouvert .onglets, body.vs-ouvert .onglets { transform: translateY(140%); }
}
@media (max-width: 900px) and (orientation: portrait), (max-width: 900px) and (min-height: 541px) { .dm-fil [hidden] { display: none !important; } }
