/* UGC Creator. Noir, blanc, un gris. Un grand titre fin, une phrase, un bouton en pilule, un
   téléphone qui montre. Pas de carte, pas d'ombre, pas de couleur hors du vert d'un « fait ». */

:root {
  --noir: #000;
  --blanc: #fff;
  --gris: #8e8e93;
  --gris-2: #636366;
  --trait: rgba(255, 255, 255, .1);
  --surface: #0f0f10;
  --surface-2: #1c1c1e;
  --vert: #30d158;
  --rouge: #ff453a;
  --bleu: #0a84ff;
  --bord: max(24px, calc((100% - 480px) / 2));
  --haut: env(safe-area-inset-top, 0px);
  --bas: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--noir); color: var(--blanc); }
body { font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; font-weight: 400; font-size: clamp(36px, 10.5vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: 13px; font-weight: 500; color: var(--gris); letter-spacing: .02em; text-transform: uppercase; }
.ic { display: inline-flex; width: 1em; height: 1em; }
.ic svg { width: 100%; height: 100%; }
.gris { color: var(--gris); }
.petit { font-size: 14px; }
.erreur { color: var(--rouge); font-size: 15px; }

.uc { min-height: 100dvh; padding: calc(var(--haut) + 12px) var(--bord) calc(var(--bas) + 32px); display: flex; flex-direction: column; gap: 28px; }
.uc-attente { flex: 1; display: grid; place-items: center; min-height: 80vh; }
.uc-attente i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait); border-top-color: var(--blanc); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* -- la barre du haut -------------------------------------------------------------------- */

.barre { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.marque { touch-action: manipulation; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marque img { width: 28px; height: 28px; object-fit: contain; }
.gain { display: inline-flex; align-items: baseline; gap: 6px; background: var(--blanc); color: var(--noir); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.gain small { font-weight: 500; color: #555; font-size: 13px; }

/* -- les boutons ------------------------------------------------------------------------- */

.pilule { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--blanc); color: var(--noir); font-size: 17px; font-weight: 500; transition: transform .15s, opacity .15s; }
.pilule:active { transform: scale(.98); }
.pilule.contour { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.pilule.petite { width: auto; min-height: 36px; padding: 0 16px; font-size: 15px; }
.pilule.inactif { opacity: .45; pointer-events: none; }
.texte { color: var(--gris); font-size: 16px; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.texte:active { opacity: .6; }

/* -- l'accueil : un écran, une chose -------------------------------------------------------- */

.ob { display: flex; flex-direction: column; gap: 0; min-height: calc(100dvh - var(--haut) - var(--bas) - 44px); animation: entre .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes entre { from { opacity: 0; transform: translateY(10px); } }
.progres { display: grid; grid-auto-flow: column; gap: 6px; margin: 10px 0 0; }
.progres i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; position: relative; }
.progres i.fait { background: var(--blanc); }
.progres i.ici::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--blanc); border-radius: 3px; }
.ob-corps { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 44px 0 36px; }
.ob-corps .retour { align-self: flex-start; margin: -30px 0 0 -6px; }
.ob-rang { font-size: 14px; color: var(--gris); letter-spacing: 0; }
.ob-texte { color: var(--gris); font-size: 18px; line-height: 1.55; max-width: 26em; }
.ob-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.ob-demo { display: flex; justify-content: center; padding-bottom: 8px; }
.ou { color: var(--gris-2); font-size: 14px; margin: 6px 0 2px; }
.petit-gris { color: var(--gris-2); font-size: 13px; margin-top: 6px; }
.petit-gris a { color: var(--gris); }
.formulaire { width: 100%; display: grid; gap: 10px; }
.formulaire input { width: 100%; min-height: 56px; border-radius: 999px; padding: 0 24px; background: var(--surface-2); border: 0; font-size: 17px; outline: none; }
.formulaire input::placeholder { color: var(--gris-2); }
.formulaire input:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.lien-vu { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--surface-2); color: var(--blanc); font-size: 16px; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.02em; transition: box-shadow .2s; }
.lien-vu .ic { color: var(--gris); }
.lien-vu.copie { box-shadow: inset 0 0 0 1px var(--vert); }
.lien-vu.copie .ic { color: var(--vert); }
.recap { list-style: none; padding: 0; margin: 4px 0 18px; width: 100%; display: grid; gap: 2px; text-align: left; }
.recap li { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--trait); color: var(--gris); }
.recap li .ic { width: 20px; height: 20px; }
.recap li.ok { color: var(--blanc); }
.recap li.ok .ic { color: var(--vert); }

/* -- le téléphone -------------------------------------------------------------------------- */

.tel { width: min(300px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 9px; background: #0b0b0c; box-shadow: inset 0 0 0 1.5px #2c2c2e, 0 0 0 1px #000, 0 40px 80px -30px rgba(255, 255, 255, .08); flex: none; }
.tel-ecran { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #000; isolation: isolate; }
.tel-statut { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 26px 0 30px; font-size: 13px; font-weight: 600; color: #fff; pointer-events: none; }
.tel-statut::before { content: ""; position: absolute; left: 50%; top: 10px; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.tel-icones { display: inline-flex; gap: 4px; align-items: flex-end; }
.tel-icones i { width: 4px; border-radius: 1px; background: #fff; }
.tel-icones i:nth-child(1) { height: 5px; } .tel-icones i:nth-child(2) { height: 8px; } .tel-icones i:nth-child(3) { width: 18px; height: 9px; border-radius: 3px; }
.tel-video .tel-ecran video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.tel-video { width: min(300px, 74vw); margin: 4px auto 0; }

/* ce qui apparaît dans les démos : invisible, puis « vu » */
[data-a] { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1); }
[data-a].vu { opacity: 1; transform: none; }

.avatar { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); flex: none; }
.avatar.grand { width: 64px; height: 64px; }
.avatar.tres-grand { width: 72px; height: 72px; margin: 6px auto 10px; display: block; }
.app { display: inline-block; width: 30px; height: 30px; border-radius: 8px; background: #fff url(/static/marque/noeud-noir.png) center / 70% no-repeat; flex: none; }

.d-plein { position: absolute; inset: 0; background-color: #111; background-size: auto 133.4%; background-position: center; }
.d-plein::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%, transparent 60%, rgba(0, 0, 0, .55)); z-index: 0; }
.d-plein > * { position: absolute; z-index: 1; }
.d-rec { top: 54px; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(0, 0, 0, .45); padding: 5px 10px; border-radius: 999px; }
.d-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.d-etiquette { top: 24%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.d-etiquette span { background: #fff; color: #000; font-weight: 800; font-size: 14.5px; line-height: 1.15; padding: 5px 11px; border-radius: 8px; letter-spacing: -.01em; }
.d-etiquette span + span { margin-top: -2px; }
.d-son { left: 14px; bottom: 76px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, .45); padding: 6px 10px; border-radius: 999px; }
.d-son .ic { width: 13px; height: 13px; }
.d-appel { left: 50%; top: 60%; translate: -50% 0; width: 76%; background: #fff; color: #000; border-radius: 16px; padding: 10px 12px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.d-appel b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.d-appel small { display: block; font-size: 11.5px; color: #555; font-weight: 600; }
.d-com { left: 12px; right: 12px; bottom: 20px; display: flex; align-items: center; gap: 8px; background: rgba(28, 28, 30, .92); padding: 9px 12px; border-radius: 16px; font-size: 13px; }
.d-com b { font-weight: 600; }
.d-notif { left: 8px; right: 8px; top: 46px; display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(40, 40, 44, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 10px 12px; border-radius: 18px; transform: translateY(-14px); z-index: 6 !important; }
.d-notif.bas { top: auto; bottom: 18px; transform: translateY(14px); }
.d-notif.vu { transform: none; }
.d-notif b { display: block; font-size: 13px; font-weight: 600; }
.d-notif small { display: block; font-size: 12px; color: #c7c7cc; }
.d-gain { right: 14px; top: 40%; text-align: right; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--vert); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.d-gain small { display: block; font-size: 11px; color: #fff; font-weight: 600; letter-spacing: 0; }
.d-actions-reel { right: 12px; bottom: 120px; display: flex; flex-direction: column; gap: 16px; }
.d-actions-reel .ic { width: 24px; height: 24px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.d-etape-montage { top: 54px; left: 50%; translate: -50% 0; background: #fff; color: #000; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

.d-profil { position: absolute; inset: 0; padding: 54px 0 0; background: #000; text-align: left; }
.d-profil-tete { display: flex; align-items: center; gap: 12px; padding: 0 16px 14px; }
.d-profil-tete b { display: block; font-size: 15px; }
.d-profil-tete small { display: block; color: var(--gris); font-size: 12px; }
.d-relie { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--vert); }
.d-relie .ic { width: 13px; height: 13px; }
.d-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.d-grille .tuile { aspect-ratio: 3 / 4; background-size: auto 133.4%; background-position: center; background-color: #1c1c1e; position: relative; }
.d-grille .tuile.neuve[data-a] { transform: scale(.6); }
.d-grille .tuile.neuve.vu { transform: none; box-shadow: inset 0 0 0 2px #fff; }
.d-grille .reel { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; }

.d-dm { position: absolute; inset: 0; background: #000; }
.d-dm-reel { position: absolute; inset: 0; background-size: auto 133.4%; background-position: center; }
.d-dm-reel .d-com { position: absolute; }
.d-fil { position: absolute; inset: 0; background: #000; padding: 52px 12px 12px; display: flex; flex-direction: column; gap: 10px; text-align: left; transform: translateX(100%); }
.d-fil.vu { transform: none; }
.d-fil-tete { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--trait); font-size: 14px; }
.d-fil-tete .ic { width: 18px; height: 18px; }
.d-bulle { align-self: flex-start; max-width: 84%; background: #262629; border-radius: 18px; padding: 10px 12px; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; gap: 8px; }
.d-bulle.carte b { font-size: 14px; }
.d-bulle.carte small { color: #c7c7cc; font-size: 12px; }
.d-bouton { display: block; text-align: center; background: #3a3a3c; border-radius: 10px; padding: 7px; font-weight: 600; font-size: 12.5px; }
.d-bouton.plein { background: #fff; color: #000; }
.d-legende { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 6; text-align: center; font-size: 12px; color: #fff; padding: 10px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }

.d-story .d-barres { top: 48px; left: 10px; right: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.d-barres i { height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); opacity: 1; transform: none; }
.d-barres i.vu { background: #fff; }
.d-story-qui { top: 58px; left: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.d-story-qui small { color: #ddd; }
.d-pastille { left: 50%; translate: -50% 0; background: #fbeee0; color: #1a1a1a; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.d-pastille.sombre { background: #1a1a1a; color: #fff; }
.d-pastille:nth-of-type(1) { top: 32%; } .d-pastille:nth-of-type(2) { top: 43%; } .d-pastille:nth-of-type(3) { top: 54%; }
.d-repondre { left: 12px; right: 12px; bottom: 18px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); display: flex; align-items: center; padding: 0 16px; font-size: 13px; }
.d-repondre > span { position: absolute; left: 16px; }
.d-place { color: #ddd; }
.d-saisie { font-weight: 600; }

.d-edit { position: absolute; inset: 0; background: #000; padding: 50px 16px 0; text-align: left; }
.d-edit-tete { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-bottom: 6px; }
.d-edit-tete .bleu { color: var(--bleu); font-weight: 600; }
.d-champ { padding: 10px 0; border-bottom: 1px solid var(--trait); display: grid; gap: 2px; font-size: 13px; }
.d-champ small { color: var(--gris); font-size: 11px; }
.d-champ .gris { color: var(--gris); }
.d-champ.lien.vu { background: rgba(10, 132, 255, .08); margin: 0 -16px; padding: 10px 16px; }
.d-colle { display: inline-flex; align-items: center; gap: 6px; color: var(--bleu); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.d-colle .ic { width: 13px; height: 13px; }

/* -- l'espace ------------------------------------------------------------------------------ */

.bandeau { color: var(--gris); font-size: 15px; text-align: center; padding: 0 8px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 28px 0 8px; animation: entre .45s cubic-bezier(.2, .8, .2, 1); }
.hero > .gris { font-size: 18px; max-width: 24em; }
.pile { width: 100%; display: grid; gap: 10px; margin-top: 10px; }
.barre-progres { width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 12px; }
.barre-progres i { display: block; height: 100%; width: 0; background: #fff; border-radius: 4px; transition: width .25s; }
.barre-progres.vivante i { width: 35%; animation: glisse 1.3s ease-in-out infinite; }
@keyframes glisse { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.pct { color: var(--gris); font-size: 14px; font-variant-numeric: tabular-nums; }
.cibles { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cible { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: var(--gris); font-size: 15px; }
.cible .ic { width: 15px; height: 15px; opacity: 0; transition: opacity .15s; }
.cible small { color: var(--gris-2); font-size: 13px; }
.cible.oui { background: var(--blanc); color: var(--noir); box-shadow: none; }
.cible.oui .ic { opacity: 1; }
.cible.oui small { color: #555; }
.plus-tard { width: 100%; display: flex; gap: 8px; align-items: center; }
.heure { flex: 1; min-width: 0; min-height: 40px; border-radius: 999px; padding: 0 16px; background: var(--surface-2); border: 0; color-scheme: dark; font-size: 15px; }
.rangee { width: 100%; display: flex; justify-content: space-between; }

.bloc { display: grid; gap: 10px; }
.liste { display: grid; }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--trait); text-align: left; width: 100%; }
.ligne > div { min-width: 0; flex: 1; }
.ligne b { display: block; font-weight: 500; font-size: 17px; }
.ligne small { display: block; color: var(--gris); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.ligne.lien small { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.copier { color: var(--gris); font-size: 15px; }
.ligne.video { align-items: flex-start; }
.ligne.video img, .ligne.video .vide { width: 48px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.ligne.video b { font-size: 16px; margin-bottom: 3px; }
.envoi.publie { color: var(--vert); }
.envoi.echec { color: var(--rouge); }
.envoi a { color: var(--blanc); text-decoration: none; }
.sur-titre { font-size: 13px; color: var(--gris-2); margin: 10px 0 0; text-align: left; }
.pied { display: flex; justify-content: center; align-items: center; gap: 22px; padding-top: 12px; }
.pied a, .pied .texte { color: var(--gris-2); font-size: 15px; text-decoration: none; padding: 8px 0; line-height: 1.2; }

.inter { width: 51px; height: 31px; border-radius: 999px; background: #39393d; position: relative; flex: none; transition: background .25s; }
.inter i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, .7, .3, 1); }
.inter.oui { background: var(--vert); }
.inter.oui i { transform: translateX(20px); }

/* -- la feuille ---------------------------------------------------------------------------- */

.voile { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .28s; }
.voile.vu { background: rgba(0, 0, 0, .6); }
.feuille { width: min(560px, 100%); max-height: 92dvh; overflow: auto; overscroll-behavior: contain; background: #111113; border-radius: 28px 28px 0 0; padding: 10px 22px calc(var(--bas) + 20px); display: grid; gap: 14px; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.voile.vu .feuille { transform: none; }
.poignee { justify-self: center; width: 36px; height: 5px; border-radius: 5px; background: #3a3a3c; margin-bottom: 6px; }
.feuille-tete { display: flex; align-items: baseline; justify-content: space-between; }
.feuille h2 { font-size: 28px; font-weight: 400; color: var(--blanc); text-transform: none; letter-spacing: -.03em; }
.feuille .gris { font-size: 15px; margin-top: -6px; }
.pas-ig { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--gris); }
.pas-ig b { color: var(--blanc); font-weight: 500; }
.accroches { display: grid; gap: 8px; }
.accroche { text-align: left; padding: 15px 18px; border-radius: 18px; background: var(--surface-2); font-size: 16px; font-weight: 500; transition: background .15s; }
.accroche.choisie { background: var(--blanc); color: var(--noir); }
.feuille textarea { width: 100%; resize: none; background: transparent; border: 0; border-bottom: 1px solid var(--trait); padding: 10px 2px; outline: none; font-size: 16px; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.style { min-height: 48px; border-radius: 14px; font-weight: 800; }
.style.etiquette { background: #fff; color: #000; }
.style.contour { background: var(--surface-2); color: #fff; text-shadow: 0 0 1px #000, 0 0 2px #000; }
.style.choisi { box-shadow: 0 0 0 2px var(--noir), 0 0 0 4px var(--blanc); }
.feuille .ligne b { font-size: 16px; }
.feuille .ligne small { font-size: 13px; }

.toast { position: fixed; z-index: 40; left: 50%; top: calc(var(--haut) + 14px); transform: translate(-50%, -20px); opacity: 0; transition: opacity .25s, transform .25s; background: var(--blanc); color: var(--noir); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; max-width: calc(100% - 40px); text-align: center; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); }
.toast.erreur { background: var(--rouge); color: #fff; }

/* -- la visite ----------------------------------------------------------------------------- */

.points { display: flex; justify-content: center; gap: 8px; padding: 18px 0 4px; }
.points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: width .3s, background .3s; }
.points i.ici { width: 20px; border-radius: 3px; background: var(--blanc); }

.d-app { position: absolute; inset: 0; background: #000; padding: 52px 14px 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.d-app-titre { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.d-total small, .d-chiffre small, .d-astuce small { display: block; color: var(--gris); font-size: 11px; }
.d-total b { font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.d-grille-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.d-chiffre { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.d-chiffre b { font-size: 17px; font-weight: 600; }
.d-barres-mois { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 4px; }
.d-barres-mois i { flex: 1; background: #fff; border-radius: 4px 4px 2px 2px; transform-origin: bottom; }
.d-barres-mois i[data-a] { transform: scaleY(.1); }
.d-barres-mois i.vu { transform: none; }
.d-app .d-notif { position: absolute; }
.d-astuce { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.d-article { display: flex; gap: 10px; align-items: center; }
.d-article i { width: 52px; height: 52px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }
.d-article b { display: block; font-size: 13px; font-weight: 600; }
.d-article small { color: var(--gris); font-size: 11px; }

/* -- le guide, dans Studio ---------------------------------------------------------------------- */

.guide { padding-top: 12px; display: grid; gap: 14px; animation: entre .45s cubic-bezier(.2, .8, .2, 1); }
.guide-tete { display: flex; align-items: baseline; justify-content: space-between; }
.guide-tete h2 { font-size: 26px; font-weight: 400; letter-spacing: -.03em; text-transform: none; color: var(--blanc); }
.guide-tete small { color: var(--gris); font-size: 14px; }
.etapes { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; }
.etapes li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; color: var(--gris-2); font-size: 16px; }
.etapes li > i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--trait); font-style: normal; font-size: 13px; font-weight: 600; }
.etapes li > i .ic { width: 15px; height: 15px; }
.etapes li > span { flex: 1; }
.etapes li > small { font-size: 12px; font-weight: 600; color: var(--noir); background: var(--blanc); border-radius: 999px; padding: 3px 10px; }
.etapes li.fait { color: var(--gris); }
.etapes li.fait > i { background: rgba(255, 255, 255, .14); border-color: transparent; color: var(--blanc); }
.etapes li.ici { background: var(--surface-2); color: var(--blanc); font-weight: 500; }
.etapes li.ici > i { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.ob-app .ob-corps { padding: 20px 0 28px; }
.onglets button { position: relative; }
.onglets .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* -- l'app : les onglets --------------------------------------------------------------------- */

.uc:has(.onglets) { padding-bottom: calc(var(--bas) + 96px); }
.onglets { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end;
  padding: 8px max(8px, calc((100% - 520px) / 2)) calc(var(--bas) + 8px); background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--trait); }
.onglets button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--gris-2); font-size: 11px; font-weight: 500; letter-spacing: 0; transition: color .2s; }
.onglets .ic { width: 24px; height: 24px; }
.onglets button.ici { color: var(--blanc); }
.onglets .onglet-studio { color: var(--blanc); }
.onglets .onglet-studio .ic { box-sizing: content-box; width: 26px; height: 26px; padding: 15px; margin-top: -26px; border-radius: 50%;
  background: var(--blanc); color: var(--noir); box-shadow: 0 0 0 6px var(--noir), 0 8px 28px rgba(255, 255, 255, .18); transition: transform .2s; }
.onglets .onglet-studio:active .ic { transform: scale(.94); }
.onglets .onglet-studio .badge { top: -30px; left: calc(50% + 14px); box-shadow: 0 0 0 2px var(--noir); }
.profil { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.profil .avatar { width: 48px; height: 48px; }
.profil b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.profil small { color: var(--gris); font-size: 14px; }
button.gain { cursor: pointer; }
.centre { text-align: center; }
.rouge { color: var(--rouge) !important; }
.ligne .fleche { width: 16px; height: 16px; color: var(--gris-2); transform: rotate(180deg); flex: none; }
a.ligne { text-decoration: none; }

.gains-hero { gap: 6px; }
.solde { display: grid; gap: 6px; padding-top: 6px; }
.solde-chiffre { font-size: 40px; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.solde-delta { font-size: 14px; color: var(--gris); }
.vert { color: var(--vert); }
.courbe { margin: 14px calc(-1 * var(--bord)) 0; height: 140px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.courbe svg { width: 100%; height: 100%; display: block; }
.chiffre { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; font-size: clamp(52px, 16vw, 72px); font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.entonnoir { display: grid; grid-template-columns: repeat(4, 1fr); }
.entonnoir div { text-align: center; padding: 4px 0; }
.entonnoir div + div { border-left: 1px solid var(--trait); }
.entonnoir b { display: block; font-size: 20px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.entonnoir small { color: var(--gris); font-size: 12px; }
.barres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 140px; align-items: end; }
.barre-mois { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.barre-mois i { width: 100%; background: var(--blanc); border-radius: 6px 6px 3px 3px; }
.barre-mois small { color: var(--gris); font-size: 12px; }

.astuce { background: var(--surface); border: 1px solid var(--trait); border-radius: 22px; padding: 18px 20px; display: grid; gap: 6px; }
.astuce p:last-child { font-size: 19px; line-height: 1.4; letter-spacing: -.015em; }
.articles { display: grid; gap: 4px; }
.article { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.article i { width: 72px; height: 72px; border-radius: 14px; background-size: auto 133.4%; background-position: center; flex: none; background-color: var(--surface-2); }
.article b { display: block; font-size: 17px; font-weight: 500; }
.article small { color: var(--gris); font-size: 14px; }

.lecture { position: fixed; inset: 0; z-index: 35; background: var(--noir); overflow-y: auto; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.lecture.vu { transform: none; }
.lecture-haut { position: sticky; top: 0; z-index: 2; padding: calc(var(--haut) + 8px) var(--bord) 8px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); }
.lecture-image { height: 46vh; margin-top: -60px; background-size: cover; background-position: center 40%; }
.lecture-corps { padding: 24px var(--bord) calc(var(--bas) + 48px); display: grid; gap: 18px; }
.lecture-corps h1 { font-size: clamp(32px, 9vw, 42px); }
.lecture-corps p:not(.ob-rang) { color: #d1d1d6; font-size: 18px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-a] { opacity: 1; transform: none; }
}

/* Auto videos : cinq étapes, un bouton chacune */
.auto-haut { padding: 4px 0 0; display: grid; gap: 2px; }
.auto-haut .retour { justify-self: start; padding-left: 0; }
.auto-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ajout-compte { color: var(--blanc); }
.ajout-compte .ic { width: 16px; height: 16px; }
.ajout-compte.petite { min-height: 30px; padding: 0 12px; font-size: 13px; }
.comptes-hub { justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.comptes-liste { flex-wrap: wrap; margin: 0; padding: 0; }
.auto-haut small { color: var(--gris); font-size: 13px; text-align: center; }
.auto-haut .progres { margin: 6px 0 0; }
.auto-video .tel-video { width: min(150px, 40vw); margin: 0; border-radius: 34px; padding: 6px; }
.auto-video .tel-video .tel-ecran { border-radius: 28px; }
.auto-video { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-bottom: 4px; }
.auto-nav { appearance: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--trait); background: var(--surface); color: var(--blanc); display: grid; place-items: center; cursor: pointer; }
.auto-nav:disabled { opacity: .25; }
.auto-nav .ic { width: 18px; height: 18px; }
.auto-rang { color: var(--gris); font-size: 13px; text-align: center; width: 100%; margin-bottom: 6px; }
.ic.fleche { transform: rotate(180deg); }
.choix-nombre { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-bottom: 6px; }
.choix-nombre button { appearance: none; border: 1px solid var(--trait); background: var(--surface); color: var(--blanc); border-radius: 20px; padding: 16px 0 12px; display: grid; gap: 2px; font: inherit; cursor: pointer; }
.choix-nombre button b { font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.choix-nombre button small { color: var(--gris); font-size: 13px; }
.choix-nombre button.oui { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.choix-nombre button.oui small { color: #555; }
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(300px, 80vw); margin: 0 auto; }
.clips i { aspect-ratio: 9 / 16; border-radius: 12px; background: #111 center / cover; }
.ob-actions .rangee { align-items: center; }
.ob-actions .rangee small { color: var(--gris); font-size: 14px; }
.ob-actions .rangee .texte { display: inline-flex; align-items: center; gap: 4px; }
.ob-actions .rangee .texte:disabled { opacity: .3; }
.ob-actions .rangee .ic { width: 16px; height: 16px; }

/* Studio : les formats, chacun expliqué, puis un parcours par format */
.hub-tete { padding: 26px 0 4px; text-align: center; animation: entre .45s cubic-bezier(.2, .8, .2, 1); }
.hub-tete h1 { margin: 0; }
.hub-tete .gris { margin-top: 8px; font-size: 17px; }
.guide-bande { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); font-size: 15px; color: var(--gris); text-align: center; }
.guide-bande b { color: var(--blanc); font-weight: 600; margin-right: 4px; }
.en-cours { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--blanc); color: var(--noir); text-align: left; }
.en-cours b { display: block; font-size: 17px; font-weight: 600; }
.en-cours small { color: #555; font-size: 14px; }
.en-cours .ic { width: 18px; height: 18px; }
.signal { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--trait); color: var(--blanc); text-align: left; }
.signal > span:nth-last-child(2) { flex: 1; }
.signal b { display: block; font-size: 16px; font-weight: 600; }
.signal small { color: var(--gris); font-size: 14px; }
.signal .ic { width: 18px; height: 18px; color: var(--gris); }
.signal-chiffre { flex: none; font-size: 34px; font-weight: 300; color: var(--vert); font-variant-numeric: tabular-nums; }
.signal.calme b { font-weight: 500; }
.genres { display: grid; gap: 12px; margin-top: 18px; }
.genre { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 24px; background: var(--surface); border: 1px solid var(--trait); text-align: left; color: var(--blanc); transition: transform .15s; }
.genre:active { transform: scale(.985); }
.genre.conseille { border-color: var(--blanc); box-shadow: 0 0 0 1px var(--blanc); }
.genre-image { flex: none; width: 74px; aspect-ratio: 9 / 16; border-radius: 14px; background: #111 center / cover; position: relative; overflow: hidden; }
.genre-image span { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 10px; font-weight: 600; font-style: normal; text-align: center; background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 2px 0; backdrop-filter: blur(6px); }
.genre-mots { flex: 1; min-width: 0; display: grid; gap: 4px; }
.genre-titre { display: flex; align-items: center; gap: 8px; }
.genre-titre b { font-size: 19px; font-weight: 600; }
.genre-titre em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--noir); background: var(--vert); border-radius: 999px; padding: 2px 8px; }
.genre-pitch { font-size: 15px; color: var(--blanc); }
.genre-mots small { font-size: 13px; color: var(--gris); line-height: 1.35; }
.genre-ou { display: flex; gap: 6px; margin-top: 4px; }
.genre-ou u { text-decoration: none; font-size: 11px; color: var(--gris); border: 1px solid var(--trait); border-radius: 999px; padding: 2px 8px; }
.genre > .ic { width: 16px; height: 16px; color: var(--gris-2); flex: none; }
.retour-guide { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--bas)); width: min(440px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 20px; background: var(--blanc); color: var(--noir); text-align: left; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); animation: entre .4s cubic-bezier(.2, .8, .2, 1); }
.retour-guide small { display: block; font-size: 12px; color: #666; }
.retour-guide b { font-size: 16px; font-weight: 600; }
.retour-guide .ic { width: 18px; height: 18px; }
.retour-guide.duo { display: grid; gap: 0; padding: 0; }
.retour-guide.duo > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 18px; color: inherit; text-align: left; }
.retour-guide.duo > button + button { border-top: 1px solid rgba(0, 0, 0, .08); }
.script { list-style: none; margin: 0 0 6px; padding: 14px 16px; display: grid; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; counter-reset: s; }
.script li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; font-size: 14px; color: var(--gris); }
.script li::before { content: counter(s); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--blanc); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.script li b { color: var(--blanc); font-weight: 600; font-size: 15px; }
.options { width: 100%; text-align: left; margin-bottom: 4px; }
.options .ligne > .ic { width: 20px; height: 20px; color: var(--vert); }
.compte-choix .case { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gris-2); display: grid; place-items: center; color: transparent; }
.compte-choix .case .ic { width: 15px; height: 15px; }
.compte-choix.oui .case { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.segments { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.segments button { min-height: 38px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--gris); }
.segments button.oui { background: var(--blanc); color: var(--noir); }
.ob-actions > .sur-titre { width: 100%; margin-top: 14px; }
.ob-actions > .petit-gris { width: 100%; text-align: left; margin: 0; }
.plus-tard small { color: var(--gris); font-size: 13px; white-space: nowrap; }
.vignettes { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vignettes > * { aspect-ratio: 4 / 5; border-radius: 12px; background: #111 center / cover; border: 0; }
.vignettes button { aspect-ratio: 9 / 16; }
.slides-mots { width: 100%; display: grid; gap: 10px; text-align: left; }
.slides-mots label { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.slides-mots i { grid-row: span 2; width: 52px; aspect-ratio: 4 / 5; border-radius: 10px; background: #111 center / cover; }
.slides-mots small { font-size: 12px; color: var(--gris); }
.slides-mots input { min-height: 42px; border-radius: 12px; background: var(--surface-2); border: 0; color: var(--blanc); padding: 0 12px; font-size: 16px; }
.carrousel { width: calc(100% + 2 * var(--bord)); margin: 0 calc(-1 * var(--bord)); padding: 0 var(--bord); display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrousel img { flex: none; width: 74%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; scroll-snap-align: center; }
.legende-apercu { width: 100%; white-space: pre-line; text-align: left; font-size: 14px; color: var(--gris); background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; padding: 12px 14px; }
.tel-petit { width: min(165px, 44vw); padding: 6px; border-radius: 34px; margin: 0 auto 6px; }
.tel-petit .tel-ecran { border-radius: 28px; }
.tel-fond { position: absolute; inset: 0; background: #111 center / cover; }
.tel-story { position: absolute; top: 10px; left: 12px; right: 12px; display: grid; gap: 8px; pointer-events: none; }
.tel-story i { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.tel-story b { font-size: 11px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.tel-legende { position: absolute; left: 10px; right: 10px; bottom: 58px; display: grid; gap: 2px; font-size: 10px; text-align: left; pointer-events: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.tel-legende span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* -- Week, Explore, Earn : les pages venues de MAXX UGC, en noir et blanc -------------------------- */

.onglets { grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; }
.onglets button { font-size: 10.5px; }
.pt { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); color: #fff; font: 700 9px/1 -apple-system, system-ui, sans-serif; font-style: normal; letter-spacing: 0; }
.pt.instagram { background: linear-gradient(45deg, #f9a23a, #e1306c 55%, #8a3ab9); }
.pt.tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.pt.youtube { background: #ff0033; }
.pt.facebook { background: #1877f2; }
.pt.linkedin { background: #0a66c2; }
.pt.x { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.rec { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 3px rgba(255, 69, 58, .25); flex: none; }
.rond { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--blanc); }
.rond .ic { width: 18px; height: 18px; }
.segments.petits { width: auto; grid-auto-columns: auto; }
.segments.petits button { min-height: 32px; padding: 0 14px; font-size: 13px; }

/* Week */
.plan-tete { display: grid; gap: 10px; padding-top: 8px; }
.plan-haut { display: flex; align-items: center; justify-content: space-between; }
.plan-nav { display: flex; gap: 8px; }
.plan-tete h1 { margin-top: 0; }
.plan-quoi { margin: 10px 0 -6px; }
.carte-maxx { display: grid; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); }
.carte-maxx-tete { display: flex; align-items: center; gap: 12px; text-align: left; }
.carte-maxx-tete img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.carte-maxx-tete b { display: block; font-size: 16px; color: var(--blanc); }
.carte-maxx-tete small { display: block; color: var(--gris); font-size: 13px; margin-top: 2px; }
.carte-maxx-actions { display: flex; gap: 8px; }
.carte-maxx-actions .pilule { flex: 1; }
.film-maxx { display: block; width: min(300px, 78vw); aspect-ratio: 9 / 16; margin: 0 auto; object-fit: cover; border-radius: 24px; background: #efe9e0; }
.plan-tete > .gris { font-size: 16px; }
.puces { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px calc(-1 * var(--bord)) 0; padding: 0 var(--bord); }
.puces::-webkit-scrollbar { display: none; }
.puce { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--gris); font-size: 14px; font-weight: 500; }
.puce .pt { width: 18px; height: 18px; border-radius: 6px; font-size: 8px; }
.puce.oui { background: var(--blanc); color: var(--noir); }
.jours { display: grid; }
.jour { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.jour-date { display: grid; justify-items: center; gap: 0; padding-top: 4px; color: var(--gris); }
.jour-date small { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.jour-date b { font-size: 24px; font-weight: 400; letter-spacing: -.03em; color: var(--blanc); }
.jour-date.auj b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blanc); color: var(--noir); font-size: 19px; font-weight: 500; }
.jour.passe .jour-date b { color: var(--gris-2); }
.jour-pile { display: grid; gap: 8px; min-width: 0; }
.jour-ajout, .jour-encore { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .2); color: var(--gris); font-size: 15px; text-align: left; }
.jour-encore { min-height: 40px; border-style: solid; border-color: var(--trait); font-size: 14px; }
.jour-ajout .ic, .jour-encore .ic { width: 18px; height: 18px; }
.jour-ajout:active, .jour-encore:active { background: var(--surface); }
.jour-rien { display: flex; align-items: center; min-height: 52px; color: var(--gris-2); font-size: 15px; }
.jour-carte { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--trait); text-align: left; }
.jour-v { position: relative; display: grid; place-items: center; width: 40px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: var(--surface-2); color: var(--gris-2); flex: none; }
.jour-v .ic { width: 16px; height: 16px; }
.jour-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jour-mots { flex: 1; min-width: 0; display: grid; }
.jour-mots small { color: var(--gris); font-size: 13px; }
.jour-mots b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jour-vues { display: inline-flex; align-items: center; gap: 4px; color: var(--blanc); font-size: 14px; font-variant-numeric: tabular-nums; }
.jour-vues .ic { width: 15px; height: 15px; color: var(--gris); }
.etat { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--gris); }
.etat.poste { background: rgba(48, 209, 88, .14); color: var(--vert); }
.etat.mal { background: rgba(255, 69, 58, .14); color: var(--rouge); }
.plan-relier { margin-top: 6px; }
.ajout { gap: 14px; }
.ajout-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); flex: none; }
.ajout-ico .ic { width: 20px; height: 20px; }
.mois-plan { display: grid; gap: 10px; }
.mois-jours, .calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mois-jours span { text-align: center; color: var(--gris-2); font-size: 12px; }
.case-jour { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--surface); overflow: hidden; display: grid; place-items: start center; padding-top: 6px; }
.case-jour b { position: relative; z-index: 1; font-size: 14px; font-weight: 500; }
.case-jour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.case-jour.auj { box-shadow: inset 0 0 0 1.5px var(--blanc); }
.case-jour.passe b { color: var(--gris-2); }
.case-jour.pret::after, .case-jour.poste::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--blanc); z-index: 1; }
.case-jour.poste::after { background: var(--vert); }
.legende-plan { display: flex; gap: 18px; justify-content: center; color: var(--gris); font-size: 13px; }
.legende-plan span { display: inline-flex; align-items: center; gap: 6px; }
.legende-plan i { width: 6px; height: 6px; border-radius: 50%; background: var(--blanc); }
.legende-plan .poste i { background: var(--vert); }
.mes-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.film { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.film img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-vide { display: grid; place-items: center; height: 100%; color: var(--gris-2); }
.film-genre { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 11px; font-weight: 500; }
.film-vues { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.film-vues .ic { width: 13px; height: 13px; }
.chiffres { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.chiffres > div { padding: 12px 6px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.chiffres b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chiffres small { color: var(--gris); font-size: 12px; }
.chiffres.plat > div { background: transparent; padding: 4px 0; }
.revoir { width: 100%; max-height: 52dvh; border-radius: 18px; background: #000; object-fit: contain; }
.tuile[hidden] { display: none; }
.signaler { display: block; margin: 14px auto 0; padding: 8px 12px; background: none; border: 0; color: var(--gris-2); font: inherit; font-size: 13px; }
.note { color: #d1d1d6; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Explore */
.explore-tete { padding-bottom: 0; }
.cherche { position: sticky; top: calc(var(--haut) + 8px); z-index: 5; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(28, 28, 30, .86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--gris); }
.cherche .ic { width: 18px; height: 18px; flex: none; }
.cherche-champ { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--blanc); font-size: 16px; }
.cherche-champ::-webkit-search-cancel-button { display: none; }
.cherche-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--gris); }
.cherche-x[hidden] { display: none; }
.cherche-x .ic { width: 16px; height: 16px; }
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tuile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--surface-2); text-align: left; }
.tuile.carree { aspect-ratio: 4 / 5; border-radius: 10px; }
.tuile.attente { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.tuile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile-texte { position: absolute; inset: 0; padding: 38px 12px 34px; font-size: 14px; line-height: 1.35; color: #e5e5ea; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
.tuile-cadre { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .4s; pointer-events: none; }
.tuile-cadre iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.tuile.joue .tuile-cadre { opacity: 1; }
.voile-bas { position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; }
.tuile > .pt { position: absolute; top: 8px; left: 8px; }
.tuile-fois { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: var(--blanc); color: var(--noir); font-size: 12px; font-weight: 700; }
.tuile-vues { position: absolute; left: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.tuile-vues .ic { width: 15px; height: 15px; }
.vide-q { grid-column: 1 / -1; padding: 40px 0; }
.armee { display: grid; gap: 26px; margin-bottom: 30px; }
.armee-titre { font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-align: left; margin: 0; }
.armee-sous { margin: -4px 0 2px; text-align: left; }
.campus-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.campus-tete .texte { padding: 4px; font-size: 15px; }
.campus-deja { margin: 2px 0 0; text-align: left; font-size: 16px; line-height: 1.4; color: var(--gris); }
.campus-deja b { color: #fff; font-weight: 600; }
.armee .segments.petits { justify-self: start; }
.armee .segments.viral-choix { justify-self: stretch; width: 100%; grid-auto-columns: 1fr; }
.viral-plus { min-height: 44px; font-size: 15px; }
.viral-plus[hidden] { display: none; }
.armee-mot { padding: 16px 18px; border-radius: 18px; background: var(--surface-2); text-align: left; }
.armee-mot .sur-titre { margin: 0 0 6px; }
.armee-mot p:last-child { margin: 0; font-size: 16px; line-height: 1.4; white-space: pre-wrap; }
.armee-pas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.armee-pas li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); font-size: 13px; color: var(--gris); text-align: center; }
.armee-pas b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blanc); color: var(--noir); font-size: 13px; }
.du-jour-corps { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: end; }
.du-jour-actions { display: grid; gap: 12px; text-align: left; }
.du-jour-hook { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 500; }
.suivre { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 6px; scrollbar-width: none; }
.suivre::-webkit-scrollbar { display: none; }
.suivre-un { flex: none; width: 128px; display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; border-radius: 18px; background: var(--surface-2); scroll-snap-align: start; }
.suivre-un b { max-width: 100%; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suivre-un small { display: inline-flex; align-items: center; gap: 4px; color: var(--gris); font-size: 12px; min-height: 16px; }
.suivre-un small .ic { width: 13px; height: 13px; }
.suivre-un .pilule { margin-top: 6px; min-height: 30px; padding: 0 14px; font-size: 13px; }
.suivre-photo { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; font-style: normal; font-size: 22px; font-weight: 600;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.suivre-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rejoindre { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.rejoindre .pilule { width: 100%; }
.tuile-fois.demandes { display: inline-flex; align-items: center; gap: 4px; background: var(--vert); }
.tuile-fois.demandes .ic { width: 13px; height: 13px; }
.tuile-qui { position: absolute; left: 10px; bottom: 30px; max-width: calc(100% - 20px); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.armee .tuile-texte { padding-bottom: 56px; -webkit-line-clamp: 8; }
.ligne.lecon b { font-size: 16px; line-height: 1.3; }
.ligne small.plie { white-space: normal; overflow: visible; }
.ligne .fleche-ext { width: 16px; height: 16px; color: var(--gris-2); flex: none; }
.lecteur { position: relative; flex: none; width: 100%; height: min(58dvh, 150vw); border-radius: 18px; overflow: hidden; background: #000; }
.lecteur.youtube, .lecteur.facebook, .lecteur.linkedin, .lecteur.x { height: auto; aspect-ratio: 16 / 10; }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fois-ligne { color: var(--gris); font-size: 15px; }
.fois-ligne b { color: var(--blanc); font-weight: 600; }
.post-visuel { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.post-visuel img { width: 100%; height: 100%; object-fit: cover; }
.post-visuel .tuile-texte { padding: 18px; }

/* Earn */
/* Earn : le profil au centre, épuré */
.profil-moi { display: grid; justify-items: center; text-align: center; gap: 2px; padding-top: 18px; }
.anneau { font-style: normal; width: 92px; height: 92px; border-radius: 50%; padding: 3px; margin-bottom: 12px; background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.anneau span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--noir); border: 3px solid var(--noir);
  font-size: 34px; font-weight: 300; letter-spacing: -.02em; }
.profil-moi > b { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.profil-moi > small { color: var(--gris); font-size: 14px; }
.moi-chiffres { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; margin-top: 22px; }
.moi-chiffre { display: grid; gap: 2px; justify-items: center; text-align: center; }
.moi-chiffre + .moi-chiffre { border-left: 1px solid var(--trait); }
.moi-chiffre b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.moi-chiffre small { color: var(--gris); font-size: 12px; }
.solde { justify-items: center; text-align: center; padding-top: 34px; }
.solde-titre { color: var(--gris); font-size: 13px; letter-spacing: .02em; }
.solde .solde-chiffre { font-size: clamp(48px, 15vw, 60px); font-weight: 300; letter-spacing: -.05em; line-height: 1.05; }
button.solde-delta { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; }
.solde > .courbe, .solde > .courbe-mois { justify-self: stretch; }
.solde-delta .ic { width: 13px; height: 13px; color: var(--gris-2); }
.courbe { position: relative; }
.courbe-point { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #3b9bff; box-shadow: 0 0 0 4px rgba(59, 155, 255, .22); }
.courbe-mois { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 8px calc(-1 * var(--bord)) 0; }
.courbe-mois button { min-height: 30px; padding: 0; font-size: 12px; color: var(--gris-2); }
.courbe-mois button.oui { color: var(--blanc); font-weight: 600; }
.barre .reglages { width: 36px; height: 36px; }
.barre .reglages .ic { width: 20px; height: 20px; }
.compte-ligne { gap: 12px; }
.compte-ligne .pt { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.page-pleine { position: fixed; inset: 0; z-index: 35; background: var(--noir); overflow-y: auto; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.page-pleine.vu { transform: none; }
.page-pleine .lecture-haut { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.lien-ext .ic { width: 16px; height: 16px; }
.compte-corps { display: grid; gap: 18px; padding: 8px var(--bord) calc(var(--bas) + 40px); }
.compte-tete { display: grid; justify-items: center; gap: 6px; text-align: center; }
.compte-photo { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); font-size: 32px; font-weight: 300; margin-bottom: 6px; }
.compte-photo .pt { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 0 0 3px var(--noir); }
.compte-tete h1 { font-size: clamp(28px, 8vw, 34px); }
.compte-corps .segments.petits { justify-self: center; }
.grille-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

/* Studio : le guide en carte, Auto post, Auto story */
.guide-carte { display: grid; gap: 4px; justify-items: start; margin-top: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--trait); }
.guide-carte small { color: var(--gris); font-size: 13px; }
.guide-carte b { font-size: 17px; font-weight: 600; }
.guide-carte .pilule { margin-top: 8px; }
.guide-points { display: flex; gap: 4px; margin-bottom: 6px; }
.guide-points i { width: 18px; height: 4px; border-radius: 2px; background: var(--surface-2); }
.guide-points i.fait { background: var(--gris); }
.guide-points i.ici { background: var(--blanc); }
.galerie { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 84px; gap: 4px; overflow-x: auto; scrollbar-width: none;
  width: calc(100% + 2 * var(--bord)); margin: 0 calc(-1 * var(--bord)) 6px; padding: 0 var(--bord); }
.galerie::-webkit-scrollbar { display: none; }
.galerie img, .galerie video { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.galerie.hautes { grid-template-rows: repeat(2, auto); grid-auto-columns: 74px; }
.galerie.hautes img, .galerie.hautes video { width: 74px; aspect-ratio: 9 / 16; }
.galerie.hautes video { grid-row: span 2; height: 100%; aspect-ratio: auto; }
.modeles { width: 100%; display: grid; gap: 10px; margin-bottom: 6px; }
.modele { display: grid; grid-template-columns: 64px 1fr 26px; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--trait); text-align: left; }
.modele.oui { border-color: var(--blanc); }
.modele-image { width: 64px; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--surface-2) center / cover; }
.modele span { display: grid; gap: 2px; }
.modele b { font-size: 15px; font-weight: 600; }
.modele small { color: var(--gris); font-size: 13px; line-height: 1.35; }
.coche-rond { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gris-2); display: grid; place-items: center; }
.modele.oui .coche-rond { background: var(--blanc); border-color: var(--blanc); color: var(--noir); }
.coche-rond .ic { width: 14px; height: 14px; }
.slides-post { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 100%; }
.slides-post::-webkit-scrollbar { display: none; }
.slides-post img, .slides-post video { flex: none; width: min(200px, 52vw); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--surface-2); scroll-snap-align: center; }
.slides-post.stories img, .slides-post.stories video { width: min(150px, 40vw); height: calc(min(150px, 40vw) * 16 / 9); aspect-ratio: auto; }
.auto-video .slides-post { min-width: 0; flex: 1 1 auto; }
