/* Share It · habillage C « Fil » (maquette Claude Design du 26 nov. 2026).
   Posé PAR-DESSUS static/styles.css : les jetons de couleur et de police sont
   redéfinis (clair, Geist), puis les pièces propres au fil continu. Une
   application de jour : fond blanc, texte fin, un seul poids d'accent (500),
   jamais de gras. Une photo ouverte passe sur fond presque noir. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/fonts/geist-latin-wght.woff2?v=1') format('woff2'); }

/* Clair dans tous les cas (la direction n'a pas encore son mode sombre) :
   la spécificité triple passe devant les blocs « thème » de styles.css. */
:root:root:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f1;     /* champs, appui */
  --line: #e5e5e2;          /* filets */
  --line-2: #e5e5e2;
  --ink: #151515;           /* texte, bouton plein : 18:1 */
  --ink-2: #616161;         /* texte secondaire : 6,2:1 */
  --ink-3: #6f6f6f;         /* heures, aides : 5,1:1 */
  --like: #e0352b;          /* cœur */
  --danger: #c4281f;
  --ok: #1f7a3a;
  --media: #f3f3f1;
  --scrim: rgba(21, 21, 21, .4);
  --bleu: #2b59ff;          /* nouveau, liens : 4,9:1 */
  --bleu-pale: #eef1ff;
  --c7: #e4ded2;            /* la 8e couleur, visible sur blanc */
  --display: 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --r-bouton: 8px;
  --r-champ: 12px;
}
.force-sombre {
  --bg: #0e0e0e; --surface: #0e0e0e; --ink: #f4f4f2; --ink-2: #b9b9b5; --ink-3: #9a9a96;
  --media: #0e0e0e; color: var(--ink);
}

body { font: 400 15px/1.45 var(--body); font-variant-numeric: normal; }
.display { font-family: var(--display); font-variation-settings: normal; font-weight: 300; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; box-shadow: none; }
::selection { background: var(--bleu-pale); }
svg { stroke-width: 1.6; }
.spacer { flex: 1; }
strong, b { font-weight: 500; }

/* avatars : ronds pleins, sans contour, initiale fine */
.avatar { border: 0; font-weight: 400; color: #151515; }
.avatar.c-av-xs { width: 20px; height: 20px; font-size: 9px; font-weight: 500; box-shadow: 0 0 0 2px var(--bg); }
.avatar.c-av-s { width: 32px; height: 32px; font-size: 14px; font-weight: 500; }
.avatar.c-av-m { width: 36px; height: 36px; font-size: 15px; font-weight: 500; }
.avatar.c-av-l { width: 52px; height: 52px; font-size: 23px; font-weight: 500; }
.avatar.c-av-xl { width: 84px; height: 84px; font-size: 38px; font-weight: 400; }

/* écrans hérités (compte, réglages, invités, nouvelle soirée) */
.topbar { border-bottom: 1px solid var(--line); padding-top: max(0px, var(--safe-t)); }
.topbar-row { min-height: 56px; padding-bottom: 0; }
.topbar-title { text-align: center; }
.topbar-title h1, .topbar.big .topbar-title h1 { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.topbar-title small { font-weight: 400; font-size: 13px; color: var(--ink-2); margin: 0; order: 2; }
.topbar-title { display: flex; flex-direction: column; }
.topbar-row > .iconbtn:first-child + .topbar-title:last-child { margin-right: 44px; }
.btn { font-weight: 500; border: 1px solid var(--line); border-radius: var(--r-bouton); }
.btn-primary, .btn-plein { border-color: var(--ink); }
.btn-fort { font-weight: 500; }
.rows-title { font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]), textarea {
  background: var(--surface-2); border: 0; border-radius: var(--r-champ);
}
.field label { font-weight: 400; color: var(--ink); }
.sheet { border-top: 0; border-radius: 12px 12px 0 0; }
.sheet h2 { font-weight: 400; font-size: 20px; }
.empty h3 { font-weight: 300; }
.etiquette { font-weight: 500; }

/* ------------------------------------------------------------ en-tête du fil */
.c-shell { padding-bottom: 0; }
.c-tete {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}
.c-tete { display: flex; align-items: center; height: calc(56px + var(--safe-t)); padding-left: 4px; padding-right: 4px; max-width: var(--col); margin: 0 auto; }
.c-tete-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.c-tete-btn svg { width: 24px; height: 24px; }
.c-tete-centre { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.c-titre { font-size: 15px; font-weight: 500; line-height: 1.25; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-sous {
  display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.2;
  min-height: 22px; padding: 0 8px; border-radius: 11px;
}
.c-sous svg { width: 14px; height: 14px; stroke-width: 1.8; }
.c-sous.nouv { background: var(--bleu); color: #fff; font-weight: 500; height: 24px; padding: 0 12px; }

/* ------------------------------------------------------------ les personnes */
.c-fil { max-width: var(--col); margin: 0 auto; }
.c-gens { padding: 24px 0 0; }
.c-gens-tete { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 10px 14px; }
.c-gens-n { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.c-lien { font-size: 14px; font-weight: 500; color: var(--bleu); min-height: 32px; display: inline-flex; align-items: center; }
.c-gens-rang {
  display: flex; gap: 6px; padding: 0 12px 16px; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.c-gens-rang::-webkit-scrollbar { display: none; }
.c-gen { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 56px; flex: none; font-size: 12px; color: var(--ink); }
.c-gen span:last-child { max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-gen:active .avatar { transform: scale(.94); }
.c-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bleu); color: #fff;
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.c-badge.point { min-width: 10px; width: 10px; height: 10px; padding: 0; }

/* « 14 nouvelles depuis ta visite » */
.c-bandeau {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 0 12px 8px;
  padding: 14px 14px; border-radius: 8px; background: var(--bleu-pale); color: var(--bleu); text-align: left; font-size: 15px;
}
.c-bandeau strong { font-weight: 500; }
.c-bandeau-txt { flex: 1; }
.c-point { width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); flex: none; }
.c-fleche svg { width: 18px; height: 18px; display: block; }
.c-neuf-filet { display: flex; align-items: center; gap: 10px; padding: 18px 14px 0; color: var(--bleu); font-size: 12px; font-weight: 500; }
.c-neuf-filet::after { content: ''; flex: 1; height: 1px; background: var(--bleu); }

/* « 23 h ————— 50 photos » */
.c-heure { display: flex; align-items: center; gap: 12px; padding: 24px 14px 0; font-size: 13px; color: var(--ink-2); }
.c-heure i { flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------ une publication */
.c-post { padding-bottom: 20px; }
.c-auteur { display: flex; align-items: center; gap: 10px; padding: 16px 6px 10px 14px; }
.c-auteur-qui { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.c-auteur-qui strong { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-quand { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.c-plus { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.c-plus svg { width: 22px; height: 22px; }

/* Le média : jamais recadré. Un portrait est plafonné à 460 px (on voit
   arriver le suivant), un paysage prend la largeur. */
.c-media {
  position: relative; margin: 0 12px; aspect-ratio: var(--ratio);
  border-radius: 4px; overflow: hidden; background: var(--media);
  -webkit-tap-highlight-color: transparent;
}
.c-media.portrait, .c-media:not(.paysage):not(.en-serie) {
  width: min(calc(100% - 24px), calc(460px * var(--ratio))); margin-left: auto; margin-right: auto;
}
.c-media > img { width: 100%; height: 100%; object-fit: contain; }
.c-media .fondu { opacity: 0; transition: opacity .25s ease; }
.c-media .fondu.la { opacity: 1; }
.tap-coeur { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none;
  color: var(--like); animation: c-coeur .6s cubic-bezier(.16, 1, .3, 1) forwards; }
.tap-coeur svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@keyframes c-coeur { 0% { transform: scale(0); opacity: 1; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.c-actions { display: flex; align-items: center; gap: 12px; padding: 10px 12px 0 8px; }
.c-act { min-width: 40px; height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; color: var(--ink); font-size: 15px; }
.c-act svg { width: 24px; height: 24px; display: block; }
.c-act-ic { display: inline-flex; }
.like[aria-pressed="true"] svg { fill: var(--like); stroke: var(--like); }
.like.vient-d-aimer svg { animation: c-pop .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes c-pop { 40% { transform: scale(1.25); } }
.c-aimee { display: flex; align-items: center; gap: 8px; padding: 2px 14px 0 16px; font-size: 14px; color: #3a3a3a; }
.c-aimee[hidden] { display: none; }
.c-visages { display: inline-flex; }
.c-visages .avatar + .avatar { margin-left: -5px; }
.c-legende { margin: 8px 14px 0 16px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* une série : le cliché suivant dépasse ; les 12 px des bords restent au geste retour */
.c-serie-piste {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 12px; scroll-padding: 0 12px; overscroll-behavior-x: contain;
}
.c-serie-piste::-webkit-scrollbar { display: none; }
.c-cliche { flex: 0 0 84%; scroll-snap-align: start; }
.c-cliche .c-media { margin: 0; width: 100%; }
.c-serie-info { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0 14px; font-size: 13px; color: var(--ink-2); }
.c-points { display: inline-flex; gap: 4px; }
.c-points i { width: 5px; height: 5px; border-radius: 50%; background: #c9c9c5; }
.c-points i.on { background: var(--ink); }

/* le lecteur : nos commandes en bas, sur un voile léger */
.c-video { position: absolute; inset: 0; background: #0e0e0e; }
.c-video video { width: 100%; height: 100%; object-fit: contain; }
.c-v-cmd {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px;
  padding: 18px 8px 6px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
}
.c-v-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.c-v-btn svg { width: 20px; height: 20px; }
.c-v-barre { flex: 1; height: 24px; position: relative; cursor: pointer; }
.c-v-barre::before, .c-v-barre i { content: ''; position: absolute; left: 0; top: 11px; height: 2px; border-radius: 1px; }
.c-v-barre::before { right: 0; background: rgba(255, 255, 255, .4); }
.c-v-barre i { background: #fff; width: 0; }
.c-v-temps { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

.c-fin { padding: 40px 14px calc(48px + var(--safe-b)); text-align: center; color: var(--ink-2); font-size: 14px; }
.c-fin p { margin: 0 0 4px; }
.c-bleu { color: var(--bleu); }
.mur-vide { padding-top: 12px; }

/* ------------------------------------------------------------ la photo ouverte */
.scrim:has(.sheet-photo) { background: #0e0e0e; }
.scrim .sheet.sheet-cmt.sheet-photo {
  height: 100dvh; max-height: none; max-width: 560px; border-radius: 0; border: 0; background: var(--bg);
}
.sheet-photo .sheet-grip { display: none; }
.c-ph { flex: none; }
.c-ph-noir { background: #0e0e0e; padding-top: var(--safe-t); }
.c-ph-barre { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 4px 0 4px; color: #f4f4f2; }
.c-ph-barre strong { font-size: 15px; font-weight: 500; }
.c-ph-h { font-size: 14px; color: #b9b9b5; }
.c-ph-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #f4f4f2; flex: none; }
.c-ph-btn svg { width: 22px; height: 22px; }
.c-ph-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: min(46dvh, calc(100vw / var(--ratio)), calc(560px / var(--ratio)));
}
.c-ph-img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.c-ph-media .c-video { position: absolute; inset: 0; }
.c-ph-jaime { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px 6px; border-top: 0; }
.c-ph-jaime .c-aimee { padding: 0; }
.c-ph-legende { margin: 4px 14px 0 16px; font-size: 15px; }
.sheet-photo .cmt-titre { font: 400 13px/1.3 var(--body); color: var(--ink-2); padding: 10px 14px 10px; margin: 0; border-bottom: 1px solid var(--line); }
.sheet-photo .cmt-list { padding: 4px 14px 10px; }
.cmt-qui strong { font-weight: 500; }
.cmt-qui small { font-weight: 400; }
.cmt-texte { font-weight: 400; }
.cmt-form { border-top: 1px solid var(--line); padding-top: 12px; }
.cmt-form::before { display: none; }
.cmt-input { background: var(--surface-2); border: 0; border-radius: 22px; height: 44px; padding: 0 16px; }
.cmt-input:focus { box-shadow: 0 0 0 1px var(--line); }
.cmt-send { width: auto; height: 44px; padding: 0 6px 0 4px; background: none; color: var(--bleu); font-weight: 500; font-size: 15px; }
.cmt-form > .avatar { width: 32px; height: 32px; font-size: 14px; font-weight: 500; }

/* ------------------------------------------------------------ une personne */
.c-perso { display: flex; flex-direction: column; align-items: center; padding: 24px 14px 20px; text-align: center; }
.c-perso h1 { margin: 14px 0 4px; font-size: 22px; font-weight: 400; }
.c-perso p { margin: 0; font-size: 14px; color: var(--ink-2); }
.c-onglets { display: flex; border-bottom: 1px solid var(--line); max-width: var(--col); margin: 0 auto; }
.c-onglets span { flex: 1; text-align: center; padding: 12px 0 11px; font-size: 14px; color: var(--ink-2); }
.c-onglets .on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.c-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: var(--col); margin: 0 auto; padding-top: 2px; }
.c-case { position: relative; aspect-ratio: 1; background: var(--media); overflow: hidden; }
.c-case img { width: 100%; height: 100%; object-fit: cover; }
.c-case-duree { position: absolute; right: 6px; bottom: 6px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.c-vide { text-align: center; color: var(--ink-2); padding: 40px 14px; }

/* ------------------------------------------------------------ mes soirées */
.c-accueil main { max-width: var(--col); margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); }
.c-accueil-tete { display: flex; align-items: center; gap: 10px; max-width: var(--col); margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px 0; height: calc(72px + var(--safe-t)); }
.c-marque { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.c-marque img { width: 30px; height: 30px; border-radius: 7px; }
.c-moi { display: flex; }
.c-moi-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.c-moi-ic svg { width: 20px; height: 20px; }
.c-grand-titre { margin: 20px 0 24px; font-size: 28px; font-weight: 300; letter-spacing: -0.01em; }
.c-sous-titre { margin: 8px 0 4px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.c-soirees { display: grid; gap: 4px; margin-bottom: 20px; }
.c-soiree { display: flex; align-items: center; gap: 14px; padding: 12px 0; -webkit-tap-highlight-color: transparent; }
.c-soiree:active { opacity: .7; }
.c-soiree-img { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; background: var(--surface-2); flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.c-soiree-img img { width: 100%; height: 100%; object-fit: cover; }
.c-soiree-img svg { width: 22px; height: 22px; }
.c-soiree-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.c-soiree-txt strong { font-size: 16px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-soiree-txt small { font-size: 14px; color: var(--ink-2); }
.c-accueil-vide p { color: var(--ink-2); margin: 0 0 12px; }
.c-bas { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(16px + var(--safe-b)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); }
.c-btn-contour {
  display: flex; align-items: center; justify-content: center; gap: 8px; max-width: calc(var(--col) - 32px); margin: 0 auto;
  height: 52px; border: 1px solid #d6d6d2; border-radius: 8px; background: #fff; font-size: 16px; color: var(--ink);
}
.c-btn-contour svg { width: 20px; height: 20px; }
.c-btn-contour:active { background: var(--surface-2); }

/* ------------------------------------------------------------ l'invitation */
.c-invit { max-width: 420px; margin: 0 auto; padding: calc(64px + var(--safe-t)) 20px calc(40px + var(--safe-b)); text-align: center; }
.c-invit-marque { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 56px; }
.c-invit-marque img { width: 56px; height: 56px; border-radius: 12px; }
.c-invit-qui { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #3a3a3a; }
.c-invit-qui .avatar { width: 26px; height: 26px; font-size: 11px; }
.c-invit h1 { margin: 12px 0 10px; font-size: 30px; font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }
.c-invit-stats { margin: 0 0 56px; font-size: 14px; color: var(--ink-2); }
.c-invit-form { display: grid; gap: 10px; text-align: left; }
.c-invit-form label { font-size: 14px; color: var(--ink); }
.c-champ { height: 52px; padding: 0 16px; font-size: 16px; border-radius: 8px !important; }
.c-champ::placeholder { color: #767676; }
.c-btn-plein { height: 52px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; }
.c-btn-plein:active { opacity: .88; }
.c-btn-plein[disabled] { opacity: .5; }
.c-invit-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* PC : une colonne au centre (la colonne de gauche du site principal n'existe pas ici) */
@media (min-width: 1000px) {
  .shell { padding-left: 0 !important; }
  .c-tete, .c-accueil-tete { max-width: var(--col); }
}
@media (prefers-reduced-motion: reduce) {
  .tap-coeur, .like.vient-d-aimer svg { animation: none; }
}

/* jamais de gras, y compris dans les écrans hérités du site principal */
strong, b, h1, h2, h3, .rows-title, .btn, .btn-fort, .name-tint { font-weight: 500 !important; }
.display, .c-grand-titre, .c-invit h1, .c-perso h1, .sheet h2 { font-weight: 300 !important; }
