/* Share It · habillage D « Ciel » (maquette Claude Design du 26 nov. 2026).
   Posé PAR-DESSUS static/styles.css. Le fond prend la couleur du ciel à
   chaque heure (variables --ciel, --encre, posées par chapitre en ligne,
   voir styleHeure dans app.js) ; Manrope seule, tout en 200 à 500, jamais de
   gras ; boutons en pilule, seuls éléments ronds avec les avatars ; vignettes
   à 3 px ; aucune carte. */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/static/fonts/manrope-latin-wght.woff2?v=1') format('woff2'); }

/* écrans hérités (compte, réglages, invités) : un fond lavande clair, l'encre de la nuit */
:root:root:root {
  color-scheme: light;
  --bg: #f2f0f5;
  --surface: #ffffff;
  --surface-2: #e7e4ec;
  --line: #dcd8e2;
  --line-2: #c9c4d2;
  --ink: #15122a;           /* 17:1 sur --bg */
  --ink-2: #4e4a5c;         /* 7,6:1 */
  --ink-3: #66617a;         /* 5,4:1 */
  --like: #c2185b;
  --danger: #b3261e;
  --ok: #1f7a3a;
  --media: #dcd8e2;
  --scrim: rgba(21, 18, 42, .45);
  --c7: #e4ded2;
  --display: 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --r-bouton: 999px;
  --r-champ: 999px;
  --nuit: #15122a;
}
.force-sombre { --bg: #15122a; --surface: #15122a; --ink: #ffffff; --ink-2: rgba(255,255,255,.86); --ink-3: rgba(255,255,255,.7); 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.02em; }
strong, b, h1, h2, h3, .rows-title, .btn, .btn-fort, .name-tint { font-weight: 500 !important; }
.display, .sheet h2 { font-weight: 300 !important; }
:focus-visible { outline: 2px solid var(--nuit); outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
svg { stroke-width: 1.6; }
.spacer { flex: 1; }
.avatar { border: 0; font-weight: 500; color: #15122a; }
.avatar.d-av-xs { width: 22px; height: 22px; font-size: 10px; box-shadow: 0 0 0 2px var(--ciel, var(--bg)); }
.avatar.d-av-s { width: 30px; height: 30px; font-size: 13px; }
.avatar.d-av-m { width: 36px; height: 36px; font-size: 15px; }

.topbar { border-bottom: 1px solid var(--line); padding-top: max(0px, var(--safe-t)); }
.topbar-row { min-height: 56px; padding-bottom: 0; }
.topbar-title h1, .topbar.big .topbar-title h1 { font-size: 17px; letter-spacing: 0; }
.topbar-title small { font-weight: 400; }
.btn { border: 1px solid var(--line-2); border-radius: 999px; }
.btn-primary, .btn-plein { border-color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]), textarea { border-radius: 999px; }
.sheet { border-top: 0; border-radius: 18px 18px 0 0; }

/* ------------------------------------------------------------ l'album */
.d-shell { padding-bottom: 0; background: var(--ciel); }
.d-tete {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2px;
  height: calc(56px + var(--safe-t)); padding: var(--safe-t) 6px 0;
  background: var(--ciel); color: var(--encre);
  transition: background-color .5s ease, color .5s ease;
}
.d-tete-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; flex: none; }
.d-tete-btn svg { width: 24px; height: 24px; }
.d-tete-titre { flex: 1; min-width: 0; text-align: left; font-size: 16px; font-weight: 400; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .2s ease; }
.d-tete.avec-titre .d-tete-titre { opacity: 1; }

.d-corps, .d-intro, .d-chapitre, .d-fin { background: var(--ciel); color: var(--encre); }
.d-intro { padding: 8px 16px 20px; }
.d-titre { margin: 0 0 8px; font-size: 40px; line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; }
.d-sous { margin: 0 0 14px; font-size: 14px; color: var(--encre-2); }
.d-gens { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--encre-2); min-height: 32px; }
.d-visages { display: inline-flex; }
.d-visages .avatar + .avatar { margin-left: -5px; }
.d-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pastille); color: var(--ciel); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.d-nouv {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; height: 44px; padding: 0 20px;
  border-radius: 22px; background: var(--pastille); color: var(--ciel); font-size: 15px; font-weight: 500;
}
.d-nouv svg, .d-pastille-nouv svg, .d-plan-nouv svg { width: 16px; height: 16px; display: block; }
.d-ciel { margin-top: 22px; }
.d-ciel p { margin: 0 0 8px; font-size: 13px; color: var(--encre-2); }
.d-ciel-rang { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 2px; overflow-x: auto; scrollbar-width: none; }
.d-ciel-rang::-webkit-scrollbar { display: none; }
.d-ciel-case {
  position: relative; height: 60px; background: var(--ciel); color: var(--encre); text-align: left;
  padding: 0 6px 6px; display: flex; align-items: flex-end; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.d-ciel-point { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }

/* « 23 h » : le grand nombre fin qui ouvre chaque heure (et le plan de la soirée) */
.d-chapitre { padding-bottom: 4px; }
.d-chap-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.d-heure { font-size: 96px; line-height: .85; font-weight: 200; letter-spacing: -0.04em; color: var(--encre); font-variant-numeric: lining-nums; }
.d-heure small { font-size: 34px; letter-spacing: 0; margin-left: 6px; font-weight: 300; }
.d-chap-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 6px; font-size: 13px; color: var(--encre-2); text-align: right; }
.d-pilule { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 12px; background: var(--pastille); color: var(--ciel); font-size: 13px; font-weight: 500; }

/* la planche : 6 colonnes, rangées de 58 px ; la place se mérite */
.d-planche { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 58px; grid-auto-flow: dense; gap: 4px; padding: 0 4px; }
.d-tuile { position: relative; overflow: hidden; border-radius: 3px; background: rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.d-tuile[hidden] { display: none; }
.d-tuile > img, .d-serie-cliche > img { width: 100%; height: 100%; object-fit: cover; }
.d-tuile:active { opacity: .9; }
.d-tuile .fondu { opacity: 0; transition: opacity .25s ease; }
.d-tuile .fondu.la { opacity: 1; }
.d-sans-image { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; }
.d-sans-image svg { width: 28px; height: 28px; }
.d-serie { display: flex; gap: 2px; background: none; cursor: default; }
.d-serie-cliche { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 3px; cursor: pointer; }
.d-badge-jaime, .d-badge-haut {
  position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
  border-radius: 12px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; pointer-events: none;
}
.d-badge-jaime { left: 8px; bottom: 8px; }
.d-badge-jaime[hidden] { display: none; }
.d-badge-haut { right: 8px; top: 8px; }
.d-badge-jaime svg { width: 11px; height: 11px; fill: #fff; stroke: none; display: block; }
.d-badge-haut svg { width: 11px; height: 11px; display: block; }
.tap-coeur { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none; color: #fff;
  animation: d-coeur .6s cubic-bezier(.16, 1, .3, 1) forwards; z-index: 2; }
.tap-coeur svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
@keyframes d-coeur { 0% { transform: scale(0); opacity: 1; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* agrandie sur place : toute la largeur, jamais recadrée, ses commentaires dessous */
.d-ouverte { grid-column: 1 / -1; color: var(--encre); }
.d-ouverte-dedans { animation: d-ouvre .32s cubic-bezier(.16, 1, .3, 1); }
@keyframes d-ouvre { from { opacity: 0; transform: scale(.98); } }
.d-ouverte-media { position: relative; display: flex; align-items: center; justify-content: center; margin: 0 -4px; }
.d-ouverte-media > img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.d-ouverte-media .c-video { position: absolute; inset: 0; background: transparent; }
.d-voisines { display: flex; gap: 4px; padding: 6px 0 0; }
.d-voisine { width: 52px; height: 52px; border-radius: 3px; overflow: hidden; opacity: .6; }
.d-voisine[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--encre); }
.d-voisine img { width: 100%; height: 100%; object-fit: cover; }
.d-detail { padding: 6px 8px 14px; }
.d-detail-ligne { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.d-qui { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); font-size: 15px; }
.d-quand { font-size: 14px; color: var(--encre-2); }
.d-act { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; color: var(--encre); font-size: 15px; }
.d-act svg { width: 22px; height: 22px; display: block; }
.like[aria-pressed="true"] svg { fill: currentColor; }
.like.vient-d-aimer svg { animation: d-pop .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes d-pop { 40% { transform: scale(1.25); } }
.d-legende { margin: 0 0 6px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-cmts { display: grid; gap: 14px; padding: 4px 0 14px; }
.d-cmt { display: flex; gap: 10px; align-items: flex-start; }
.d-cmt-corps { flex: 1; min-width: 0; }
.d-cmt-corps small { display: block; font-size: 13px; color: var(--encre-2); }
.d-cmt-corps p { margin: 1px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.d-cmt-suppr { width: 32px; height: 32px; color: var(--encre-2); display: flex; align-items: center; justify-content: center; }
.d-cmt-suppr svg { width: 16px; height: 16px; }
.d-cmt-vide { margin: 0; font-size: 14px; color: var(--encre-2); }
.d-form { display: flex; gap: 8px; align-items: center; }
.d-champ { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; border-radius: 23px !important;
  background: rgba(255, 255, 255, .55) !important; color: #2a1414; font-size: 15px; }
.d-champ::placeholder { color: rgba(42, 20, 20, .7); }
[style*="--encre:#FFFFFF"] .d-champ { background: rgba(255, 255, 255, .16) !important; color: #fff; }
[style*="--encre:#FFFFFF"] .d-champ::placeholder { color: rgba(255, 255, 255, .78); }
.d-envoi { width: 46px; height: 46px; border-radius: 50%; background: var(--pastille); color: var(--ciel); display: flex; align-items: center; justify-content: center; flex: none; }
.d-envoi svg { width: 20px; height: 20px; }

.d-pastille-nouv {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 22px; background: var(--nuit); color: #fff; font-size: 15px; font-weight: 500;
  transform: translate(-50%, 90px); transition: transform .35s cubic-bezier(.16, 1, .3, 1); pointer-events: none;
}
.d-pastille-nouv.la { transform: translate(-50%, 0); pointer-events: auto; }
/* l'onglet « Sommaire » posé au bord droit : ouvre le plan de la soirée */
.d-sommaire {
  position: fixed; right: 0; top: 46%; z-index: 25; width: 24px; padding: 12px 0;
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
  border-radius: 8px 0 0 8px; background: rgba(42, 20, 20, .82); color: #fff; font-size: 12px; letter-spacing: .02em;
}
.d-sommaire::before { content: ''; position: absolute; inset: -6px -4px -6px -10px; }
.d-fin { padding: 40px 16px calc(56px + var(--safe-b)); text-align: center; color: var(--encre-2); }
.d-fin p { margin: 0 0 4px; }
.d-lien { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.mur-vide { padding-top: 12px; }

/* le lecteur repris de C */
.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; }

/* ------------------------------------------------------------ le plan de la soirée */
.scrim:has(.d-plan) { background: var(--nuit); }
.scrim .sheet.d-plan { height: 100dvh; max-height: none; border-radius: 0; background: var(--nuit); color: #fff; padding: calc(16px + var(--safe-t)) 0 calc(24px + var(--safe-b)); display: flex; flex-direction: column; }
.d-plan .sheet-grip { display: none; }
.d-plan-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; }
.d-plan-tete h2 { margin: 0; font-size: 22px; font-weight: 300 !important; }
.d-plan-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; }
.d-plan-x svg { width: 22px; height: 22px; }
.d-plan-debut { display: flex; align-items: center; gap: 10px; padding: 10px 16px 16px; font-size: 15px; color: #fff; }
.d-plan-debut svg { width: 18px; height: 18px; display: block; }
.d-plan-heures { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.d-plan-heure { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; min-height: 86px; background: var(--ciel); color: var(--encre); text-align: left; }
.d-plan-n { font-size: 56px; line-height: .9; font-weight: 200; letter-spacing: -0.03em; }
.d-plan-n small { font-size: 20px; margin-left: 4px; font-weight: 300; }
.d-plan-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--encre-2); }
.d-plan-mini { display: flex; gap: 4px; }
.d-plan-mini img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.d-plan-nouv { margin: 16px 16px 0; height: 52px; border-radius: 26px; background: #fff; color: var(--nuit); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ------------------------------------------------------------ une personne */
.d-perso { --ciel: var(--mc); --encre: #2a1414; --encre-2: rgba(42, 20, 20, .8); --pastille: #2a1414; background: var(--mc); color: #2a1414; min-height: 100dvh; }
.d-perso main { padding-bottom: calc(40px + var(--safe-b)); }
.d-perso-tete { display: flex; align-items: center; gap: 16px; padding: 8px 16px 16px; }
.d-perso-av { width: 64px; height: 64px; border-radius: 50%; background: #2a1414; color: var(--mc); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 300; flex: none; }
.d-perso-tete h1 { margin: 0; font-size: 34px; font-weight: 300 !important; letter-spacing: -0.02em; line-height: 1.1; }
.d-perso-tete p { margin: 2px 0 0; font-size: 14px; color: rgba(42, 20, 20, .8); }
.d-perso-onglets { display: flex; gap: 8px; padding: 0 16px 8px; }
.d-perso-onglets span { height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; font-size: 15px; border: 1px solid rgba(42, 20, 20, .5); }
.d-perso-onglets .on { background: #2a1414; color: #fff; border-color: #2a1414; }
.d-perso-heure { display: flex; align-items: baseline; gap: 4px; padding: 18px 16px 10px; }
.d-perso-heure span { font-size: 40px; font-weight: 200; line-height: 1; letter-spacing: -0.03em; }
.d-perso-heure small { font-size: 18px; margin-right: 12px; }
.d-perso-heure em { font-style: normal; font-size: 13px; color: rgba(42, 20, 20, .8); }
.d-vide { padding: 40px 16px; text-align: center; }

/* ------------------------------------------------------------ mes soirées */
.d-accueil { background: var(--bg); }
.d-accueil main { padding-bottom: calc(100px + var(--safe-b)); }
.d-accueil-tete { display: flex; align-items: center; gap: 10px; padding: calc(16px + var(--safe-t)) 16px 0; height: calc(72px + var(--safe-t)); max-width: var(--col); margin: 0 auto; }
.d-marque { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.d-marque img { width: 30px; height: 30px; border-radius: 7px; }
.d-moi { display: flex; }
.d-moi-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.d-moi-ic svg { width: 20px; height: 20px; }
.d-grand-titre { margin: 18px 16px 22px; font-size: 40px; font-weight: 200 !important; letter-spacing: -0.03em; max-width: var(--col); }
.d-bande { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 18px 16px; min-height: 124px; background: var(--ciel); color: var(--encre); margin-bottom: 2px; }
.d-bande:active { filter: brightness(.96); }
.d-bande-date { display: flex; flex-direction: column; font-size: 46px; line-height: .95; font-weight: 200; letter-spacing: -0.03em; }
.d-bande-date small { font-size: 13px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.d-bande-date svg { width: 28px; height: 28px; }
.d-bande-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.d-bande-txt strong { font-size: 18px; line-height: 1.25; }
.d-bande-txt small { font-size: 13px; color: var(--encre-2); }
.d-bande-minis { display: flex; gap: 4px; }
.d-bande-minis img { width: 40px; height: 52px; object-fit: cover; border-radius: 3px; }
.d-accueil-vide { padding: 0 16px; color: var(--ink-2); }
.d-bas { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(16px + var(--safe-b)); background: linear-gradient(rgba(242, 240, 245, 0), var(--bg) 35%); }
.d-btn-nuit { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: calc(var(--col) - 32px); margin: 0 auto; height: 52px; border-radius: 26px; background: var(--nuit); color: #fff; font-size: 16px; }
.d-btn-nuit svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ l'invitation */
.d-invit { min-height: 100dvh; background: var(--ciel); color: var(--encre); position: relative; }
.d-invit-ciel { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 2px; height: 42dvh; min-height: 260px; padding-bottom: 2px; background: #15122a; }
.d-invit-marque { position: absolute; left: 16px; top: calc(40px + var(--safe-t)); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px; border-radius: 18px; background: #fff; color: #15122a; font-size: 15px; }
.d-invit-marque img { width: 28px; height: 28px; border-radius: 7px; }
.d-invit-corps { padding: 24px 20px calc(32px + var(--safe-b)); max-width: 460px; }
.d-invit-qui { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.d-invit h1 { margin: 10px 0 6px; font-size: 36px; font-weight: 300 !important; letter-spacing: -0.02em; line-height: 1.1; }
.d-invit-stats { margin: 0 0 26px; font-size: 14px; color: var(--encre-2); }
.d-invit-form { display: grid; gap: 10px; }
.d-invit-form label { font-size: 15px; font-weight: 500; }
.d-invit-form .d-champ { height: 52px; background: #fff !important; color: #15122a; }
.d-invit-form .d-champ::placeholder { color: #66617a; }
.d-btn-contour { height: 52px; border-radius: 26px; border: 1px solid var(--encre); color: var(--encre); font-size: 16px; font-weight: 500; }
.d-btn-contour:active { background: rgba(255, 255, 255, .12); }
.d-btn-contour[disabled] { opacity: .5; }
.d-invit-note { margin: 18px 0 0; font-size: 13px; color: var(--encre-2); line-height: 1.6; }
.d-invit .error { color: #fff; }

@media (min-width: 1000px) {
  .shell { padding-left: 0 !important; }
  .d-corps, .d-perso main { max-width: 760px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tap-coeur, .like.vient-d-aimer svg, .d-ouverte-dedans { animation: none; }
  .d-tete { transition: none; }
}
