/* ==========================================================================
   Tiwup — feuille de style principale
   Charte « Nuit pop » (2026-11-16) : fond nuit, cartes aux teintes profondes très arrondies, un seul accent vif (jaune-vert).
   Polices Outfit (interface) et Instrument Serif (texte des Tiwups), hébergées sur le site (pas d'appel à Google).
   Les noms des variables (--lagon, --plume…) sont gardés pour ne rien casser : seules leurs valeurs ont changé.
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/outfit-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/outfit-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/outfit-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/outfit-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/outfit-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/outfit-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/outfit-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/outfit-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Lora italique : la « plume » du cadre d'écriture, un peu littéraire mais plus lisible que la police des cartes */
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/lora-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/lora-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* ---------- Couleurs et mesures de la charte ---------- */
:root {
	/* Accent et fonds (les noms historiques des variables sont gardés : seules leurs valeurs ont changé) */
	--lagon: #D7FF3F;        /* accent jaune-vert : aplats, pastilles d'action (texte --sur-accent dessus) */
	--lagon-fonce: #D7FF3F;  /* liens et texte en couleur (sur fond nuit) */
	--abysse: #D7FF3F;       /* boutons principaux (texte --sur-accent dessus) */
	--sur-accent: #14121F;   /* texte posé sur l'accent ou sur une couleur vive */
	--titre: #F4F1EA;        /* texte fort (anciens textes « abysse ») */
	--plume: #0E0F13;        /* fond du site */
	--papier: #17181F;       /* cartes, panneaux */
	--champ: #111218;        /* champs de saisie */
	--ecume: #23252F;        /* boutons secondaires, onglets, éléments sélectionnés */
	/* Badges et aplats discrets (texte clair dessus) */
	--lilas: #1F3B38;
	--menthe: #1B4A45;
	--soleil: #4D3A12;
	--corail: #5C2E1E;
	/* Accent chaud */
	--aurore: #F2B48A;
	--aurore-fonce: #FFB07A;
	/* Texte et traits */
	--encre: #F4F1EA;
	--encre-douce: #A5A7B4;
	--trait: #2E3040;
	/* États */
	--erreur: #FF7A6B;
	--erreur-vif: #FF9488;
	--erreur-fond: #3A1A1A;
	--sur-erreur: #14121F;   /* texte posé sur la couleur d'erreur */
	--succes-fond: #16301F;
	--trait-fort: #3A3D4F;   /* bord des champs */
	--lagon-vif: #E6FF7A;    /* bouton principal survolé */
	--focus: #D7FF3F;
	--succes: #6FDB8C;
	--avertissement-fond: #33260F;
	/* Couleurs des cartes de Tiwup (les 6 styles) */
	--carte-encre: #17181F;    --carte-encre-bord: #2E3040;    --carte-encre-doux: #A5A7B4;
	--carte-petrole: #123F3B;  --carte-petrole-bord: #1F5C56;  --carte-petrole-doux: #A6D9D1;
	--carte-nuit: #1E2A6E;     --carte-nuit-bord: #34428F;     --carte-nuit-doux: #B9C2F5;
	--carte-bordeaux: #5C1E2E; --carte-bordeaux-bord: #7E3145; --carte-bordeaux-doux: #F0BBC8;
	--carte-prune: #4A1D3F;    --carte-prune-bord: #6B2F5C;    --carte-prune-doux: #E3B9D8;
	--carte-bronze: #4D3A12;   --carte-bronze-bord: #6E5620;   --carte-bronze-doux: #EBD59A;

	--font-ui: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-tiwup: "Instrument Serif", Georgia, "Times New Roman", serif;
	--font-plume: "Lora", Georgia, "Times New Roman", serif;   /* début de phrase du cadre d'écriture */
	--radius: 28px;
	--radius-small: 14px;
	--shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
	color-scheme: dark;
}
/* ---------- Mode clair (choisi dans le menu, retenu dans le cookie tiwup_theme) : mêmes règles, autres valeurs ---------- */
html[data-theme="light"] {
	--lagon-fonce: #2A37A8;  /* liens et texte en couleur : bleu nuit (le jaune-vert est illisible sur clair) */
	--titre: #14121F;
	--plume: #F4F3EE;
	--papier: #FFFFFF;
	--champ: #FFFFFF;
	--ecume: #E9E7DF;
	--lilas: #DCEFEA;
	--menthe: #CFEDE6;
	--soleil: #F6E7B0;
	--corail: #F8D9C8;
	--aurore: #B4562E;
	--aurore-fonce: #A04A22;
	--encre: #14121F;
	--encre-douce: #5B5870;
	--trait: #DAD7CC;
	--trait-fort: #BDB9AB;
	--erreur: #B3261E;
	--erreur-vif: #8F1D17;
	--erreur-fond: #FBE4E1;
	--sur-erreur: #FFFFFF;
	--succes: #1E6B3F;
	--succes-fond: #DDF0E4;
	--avertissement-fond: #FBEBDD;
	--lagon-vif: #C6F01F;
	--focus: #2A37A8;
	--shadow: 0 1px 2px rgba(20,18,31,.05), 0 10px 30px rgba(20,18,31,.08);
	color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.55;
	background: var(--plume);
	color: var(--encre);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--lagon-fonce); text-underline-offset: 3px; }
a:hover { color: var(--titre); }
h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 2rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .35rem; color: var(--lagon); text-decoration: none; font-weight: 500; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1; }
.logo img, .logo svg { width: 1.65em; height: 1.65em; display: block; }
.logo:hover { color: var(--lagon-fonce); }

/* ---------- En-tête ---------- */
.site-header { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; background: var(--papier); border-bottom: 1px solid var(--trait); }
.site-header__nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .92rem; }
.site-header__nav a { text-decoration: none; }
.site-header__nav a:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--lagon-fonce); cursor: pointer; }
.link-button:hover { text-decoration: underline; }

.site-main { flex: 1; width: 100%; max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* ---------- Boutons ---------- */
.button { display: inline-block; padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--lagon-fonce); background: var(--abysse); color: var(--sur-accent); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: var(--abysse); border-color: var(--abysse); color: var(--sur-accent); }
.button--ghost { background: transparent; color: var(--lagon-fonce); }
.button--ghost:hover { background: var(--abysse); color: var(--sur-accent); }
.button--small { padding: .35rem .9rem; font-size: .88rem; }
.site-header__nav .button { color: var(--sur-accent); }
.site-header__nav .button:hover { text-decoration: none; }

/* ---------- Messages ---------- */
.flash { padding: .75rem 1rem; border-radius: var(--radius-small); margin-bottom: 1rem; background: var(--papier); border: 1px solid var(--trait); border-left-width: 4px; }
.flash--success { border-left-color: var(--succes); }
.flash--error { border-left-color: var(--erreur); color: var(--erreur); }
.flash--warning { border-left-color: var(--aurore); background: var(--avertissement-fond); }
.flash--dev { border-style: dashed; border-left-style: solid; border-left-color: var(--aurore-fonce); font-family: ui-monospace, Consolas, monospace; font-size: .82rem; word-break: break-all; }
.notice { padding: 1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); border: 1px solid var(--aurore); margin-bottom: 1.5rem; }
.notice p { margin: 0 0 .5rem; }

/* ---------- Panneaux et formulaires ---------- */
.panel { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius); padding: 1.75rem 1.5rem; box-shadow: var(--shadow); }
.panel--narrow { max-width: 26rem; margin: 0 auto; }
.panel__intro { color: var(--encre-douce); margin-top: 0; font-family: var(--font-tiwup); font-style: italic; font-size: 1.05rem; }
.panel__footer { margin: 1rem 0 0; font-size: .92rem; }
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field > label:not(.choice) { font-weight: 500; font-size: .95rem; }
.field legend { margin-bottom: .35rem; }
.field__help { margin: 0; font-size: .82rem; color: var(--encre-douce); }
.field__error { margin: 0; font-size: .88rem; color: var(--erreur); font-weight: 500; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=date], input[type=number], select, textarea {
	width: 100%; padding: .65rem .8rem; border: 1px solid var(--trait-fort); border-radius: var(--radius-small); font: inherit; background: var(--champ); color: var(--encre);
}
input:hover, select:hover, textarea:hover { border-color: var(--lagon); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .button:focus-visible, a:focus-visible, .link-button:focus-visible, .chip:focus-within {
	outline: 3px solid var(--focus); outline-offset: 2px;
}
[aria-invalid=true] { border-color: var(--erreur); }
input[type=radio], input[type=checkbox] { accent-color: var(--lagon-fonce); }
.choice { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.choice input { margin-top: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier); cursor: pointer; font-size: .92rem; }
.chip:hover { border-color: var(--lagon); }
.chip:has(input:checked) { border-color: var(--lagon-fonce); background: var(--ecume); color: var(--titre); }

/* ---------- Accueil ---------- */
.placeholder { text-align: center; padding-top: 10vh; }
.placeholder__prefix { font-family: var(--font-tiwup); font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.3; margin: 0 0 1rem; color: var(--encre); }
.placeholder__prefix span { color: var(--lagon-fonce); }
.placeholder__tagline { color: var(--encre-douce); }
.placeholder__soon { color: var(--encre-douce); }
.placeholder__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Profil ---------- */
.profile { text-align: center; padding-top: 1rem; }
/* .profile__avatar : voir « Photos de profil » plus bas */
.profile__name { margin: 0; }
.profile__handle { margin: 0 0 1rem; color: var(--encre-douce); }
.profile__bio { max-width: 32rem; margin: 0 auto 1rem; font-family: var(--font-tiwup); font-size: 1.25rem; line-height: 1.45; }
.profile__meta { color: var(--encre-douce); font-size: .92rem; }
.profile__meta strong { color: var(--encre); font-weight: 600; }
.profile__empty { margin-top: 2.5rem; color: var(--encre-douce); font-family: var(--font-tiwup); font-style: italic; }
.badge { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--ecume); color: var(--titre); font-size: .72rem; font-weight: 500; }
/* Statut « Pionnier » : badge du profil, puis le mot de remerciement dans les paramètres (fond jaune-vert = texte en encre foncée) */
.badge.badge--pionnier { display: inline-flex; align-items: center; gap: .3rem; background: var(--lagon); color: var(--sur-accent); font-weight: 600; }
.pioneer-card { margin: 0 0 1.8rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-small); background: var(--lilas); border: 1px solid var(--trait); }
.pioneer-card p { margin: 0 0 .6rem; }
.pioneer-card p:last-child { margin-bottom: 0; }
.pioneer-card__title { display: flex; align-items: center; gap: .45rem; font-size: 1.08rem; font-weight: 700; color: var(--titre); }
.pioneer-card__lead { font-weight: 600; }
.pioneer-card__note { font-size: .85rem; color: var(--encre-douce); }
.pioneer-card__step { margin-top: 1rem; font-weight: 600; color: var(--titre); }
.badge.badge--early { background: var(--lilas); color: var(--encre); font-weight: 600; }
.admin__setting input[type=date] { min-width: 11rem; }
.pioneers-admin__step { margin: 1.2rem 0 .4rem; font-weight: 600; color: var(--titre); }
.pioneers-admin__rhythm { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-bottom: .4rem; }
.pioneers-admin__rhythm span { display: flex; flex-direction: column; gap: .2rem; }
.pioneers-admin__rhythm label { font-size: .85rem; }
.pioneers-admin__rhythm input { width: 7rem; }
.pioneers-admin__counts { margin: 0 0 1rem; font-size: .95rem; color: var(--encre-douce); }
.pioneers-admin__counts strong { color: var(--encre); }

/* ---------- Cartes Tiwup : les 6 styles (utilisés à partir de la phase 3) ----------
   Le texte reste du vrai texte. Préfixe en italique, suite en romain. */
.tiwup-card { position: relative; border-radius: var(--radius); padding: 1.75rem 1.5rem 1.25rem; font-family: var(--font-tiwup); font-size: 1.35rem; line-height: 1.45; overflow: hidden; }
.tiwup-card__prefix { font-style: italic; }
.tiwup-card__author { margin-top: 1.25rem; font-family: var(--font-ui); font-size: .82rem; opacity: .85; }
.tiwup-card--plume   { background: var(--plume); color: var(--encre); border: 1px solid var(--trait); }
.tiwup-card--plume .tiwup-card__prefix { color: var(--lagon-fonce); }
.tiwup-card--lagon   { background: var(--lagon); color: var(--sur-accent); font-size: 1.5rem; } /* blanc sur lagon : réservé au grand texte */
.tiwup-card--abysse  { background: var(--abysse); color: var(--plume); }
.tiwup-card--abysse .tiwup-card__prefix { color: var(--aurore); }
.tiwup-card--aurore  { background: linear-gradient(160deg, #F7CFAF 0%, var(--aurore) 100%); color: var(--encre); }
.tiwup-card--aurore .tiwup-card__prefix { color: var(--aurore-fonce); }
.tiwup-card--ecume   { background: var(--ecume); color: var(--encre); }
.tiwup-card--ecume .tiwup-card__prefix { color: var(--titre); }
.tiwup-card--papier  { background: var(--papier); color: var(--encre); border: 1.5px solid var(--lagon); }
.tiwup-card--papier .tiwup-card__prefix { color: var(--lagon-fonce); }

.tiwup-card { margin: 0 0 1rem; }
.tiwup-card__text { margin: 0; overflow-wrap: anywhere; text-align: center; }
.tiwup-card__author a { color: inherit; text-decoration: none; font-weight: 500; }
.tiwup-card__author a span { font-weight: 400; opacity: .8; }
.tiwup-card__author a:hover { text-decoration: underline; }

/* ---------- Accueil connecté ---------- */
.today { text-align: center; padding: 2.5rem 0 1rem; }
.today__prefix { font-family: var(--font-tiwup); font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.3; margin: 0 0 1.5rem; }
.today__prefix span { color: var(--lagon-fonce); }
.today__done { font-family: var(--font-tiwup); font-style: italic; font-size: 1.2rem; color: var(--lagon-fonce); }
.feed { margin-top: 2rem; }
.feed__title { border-top: 0; padding-top: 0; margin-top: 0; font-size: 1rem; color: var(--encre-douce); font-weight: 500; }

/* ---------- Écriture d'un Tiwup ---------- */
.composer__preview { margin-bottom: .5rem; }
.composer__preview .tiwup-card { margin: .35rem 0 0; }
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 30rem) { .composer__row { grid-template-columns: 1fr; } }
.composer__counter { color: var(--lagon-fonce); }
.composer__counter.is-over { color: var(--erreur); }
/* « Limite atteinte » : même rouge que les erreurs de formulaire, sur l'accueil comme à l'écriture */
.field__limit { margin: .25rem 0 0; color: var(--erreur); font-weight: 600; font-size: .9rem; }
.quick-write__count { margin: 0; font-size: .85rem; color: var(--encre-douce); }
.composer__count { margin: .15rem 0 0; font-size: .9rem; color: var(--encre-douce); }
.field__max { font-weight: 400; color: var(--encre-douce); }
.quick-write .field__limit { margin: 0; }
/* Recherche : trois familles de résultats, séparées par un titre */
.search__group { font-size: 1rem; margin: 1.6rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--trait); color: var(--encre-douce); }
.search .people__list + .search__group, .search__tags + .search__group { margin-top: 1.4rem; }
.search__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.search__tag-count { color: var(--encre-douce); font-size: .8rem; margin-left: .35rem; }
.search__posts { margin-top: .4rem; }
.quick-write__more { margin: .2rem 0 0; justify-self: center; font-size: .9rem; color: var(--lagon-fonce); }
textarea[data-body] { font-family: var(--font-tiwup); font-size: 1.15rem; line-height: 1.5; }
.style-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 30rem) { .style-picker { grid-template-columns: repeat(2, 1fr); } }
.style-picker__option { position: relative; display: flex; align-items: center; justify-content: center; min-height: 3.2rem; border-radius: var(--radius-small); cursor: pointer; font-size: .9rem; font-weight: 500; }
.style-picker__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.style-picker__option:has(input:checked) { outline: 3px solid var(--encre); outline-offset: 2px; }
.style-picker__option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.style-picker__option.tiwup-card--plume { background: var(--plume); border: 1px solid var(--trait); color: var(--encre); }
.style-picker__option.tiwup-card--lagon { background: var(--lagon); color: var(--sur-accent); }
.style-picker__option.tiwup-card--abysse { background: var(--abysse); color: var(--plume); }
.style-picker__option.tiwup-card--aurore { background: linear-gradient(160deg, #F7CFAF 0%, var(--aurore) 100%); color: var(--encre); }
.style-picker__option.tiwup-card--ecume { background: var(--ecume); color: var(--encre); }
.style-picker__option.tiwup-card--papier { background: var(--papier); border: 1.5px solid var(--lagon); color: var(--encre); }

/* ---------- Page d'un Tiwup ---------- */
.post-page { padding-top: 1rem; }
.post-page .tiwup-card { font-size: 1.6rem; }
.post-page__actions { text-align: right; }

/* ---------- Page d'accueil ---------- */
.site-main--wide { max-width: 72rem; }
.button--large { padding: .9rem 1.6rem; font-size: 1.05rem; }

.hero { text-align: center; padding: 3.5rem 0 2.5rem; max-width: 46rem; margin: 0 auto; }
.hero__title { font-family: var(--font-tiwup); font-weight: 400; font-size: clamp(1.8rem, 5.5vw, 3.1rem); line-height: 1.22; letter-spacing: -.01em; margin: 0 0 1.5rem; }
.hero__prefix { font-style: italic; color: var(--lagon-fonce); }
.hero__ending { display: block; min-height: 2.5em; color: var(--encre); transition: opacity .35s ease; }
.hero__ending.is-hidden { opacity: 0; }
.hero__lead { font-size: 1.15rem; color: var(--encre-douce); max-width: 34rem; margin: 0 auto 2rem; }
.hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 0; }

.steps { list-style: none; padding: 0; margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 60rem; }
@media (max-width: 48rem) { .steps { grid-template-columns: 1fr; } }
.steps__item { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.steps__num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--lagon); color: var(--sur-accent); font-weight: 600; font-size: .95rem; }
.steps__title { border: 0; padding: 0; margin: .8rem 0 .4rem; font-size: 1.05rem; }
.steps__item p { margin: 0; color: var(--encre-douce); font-size: .95rem; }

.feed__title { text-align: center; font-family: var(--font-tiwup); font-style: italic; font-weight: 400; font-size: 1.5rem; color: var(--encre); margin-bottom: 1.25rem; }
.site-main--wide .today { padding-top: 2rem; }

/* Flux en colonnes façon Pinterest : les cartes gardent leur hauteur naturelle */
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 40rem) { .masonry { column-count: 2; } }
@media (min-width: 64rem) { .masonry { column-count: 3; } }
.masonry .tiwup-card { break-inside: avoid; display: inline-block; width: 100%; font-size: 1.15rem; margin: 0 0 1rem; padding: 1.4rem 1.3rem 1.1rem; transition: transform .15s ease, box-shadow .15s ease; }
.masonry .tiwup-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.masonry .tiwup-card--lagon { font-size: 1.5rem; } /* blanc sur lagon : texte grand obligatoire */
@media (prefers-reduced-motion: reduce) { .hero__ending, .masonry .tiwup-card { transition: none; } }

/* ---------- Écrire directement depuis l'accueil ---------- */
.quick-write { max-width: 40rem; margin: 0 auto; text-align: left; background: var(--papier); border: 1.5px solid var(--lagon); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); display: grid; gap: .6rem; }
.quick-write__prefix { font-family: var(--font-tiwup); font-style: italic; font-size: 1.25rem; color: var(--lagon-fonce); line-height: 1.4; }
/* Un vrai champ, visiblement cliquable : fond papier, bord net, coins arrondis */
.quick-write textarea { border: 1.5px solid var(--trait); border-radius: var(--radius-small); padding: .6rem .75rem; font-family: var(--font-tiwup); font-size: 1.25rem; line-height: 1.45; background: var(--papier); resize: vertical; min-height: 3.4em; }
.quick-write textarea:hover { border-color: var(--lagon); }
.quick-write textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--lagon); }
.quick-write__tags { font-size: .95rem; }
.quick-write__category { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.quick-write__category label { font-size: .9rem; font-weight: 600; color: var(--encre-douce); }
.quick-write__category select { width: auto; min-width: 12rem; padding: .4rem .6rem; border: 1.5px solid var(--trait); border-radius: var(--radius-small); font: inherit; font-size: .95rem; background: var(--papier); }
.quick-write__buttons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; }
.quick-write__buttons .button { justify-self: auto; }
.quick-write__link input { font-size: .95rem; }
.hero__login { margin: 1rem 0 0; font-size: .92rem; color: var(--encre-douce); }
.today .quick-write { margin-top: .5rem; }
.composer__hint { margin: -.25rem 0 1rem; font-size: .9rem; }

/* ---------- Accueil : ordre explication → écrire → exemple ---------- */
.about { text-align: center; padding: 3rem 0 1rem; }
.about__title { font-family: var(--font-tiwup); font-weight: 400; font-style: italic; font-size: clamp(2rem, 6vw, 3.2rem); color: var(--lagon-fonce); margin: 0 0 .75rem; letter-spacing: -.01em; }
.about__lead { font-size: 1.15rem; color: var(--encre-douce); max-width: 34rem; margin: 0 auto 2rem; }
.about .steps { margin-bottom: 2.5rem; text-align: left; }
.write-now { text-align: center; padding: .5rem 0 2.5rem; }
.write-now__title { border: 0; padding: 0; margin: 0 0 1rem; font-size: 1.2rem; font-weight: 600; }
.example { max-width: 46rem; margin: 0 auto 2.5rem; }
.example__label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce); margin: 0 0 .6rem; }
.example__card { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.3; padding: 2.2rem 2rem; text-align: center; }
.example__card .hero__ending { display: inline; min-height: 0; color: var(--sur-accent); }

/* Signature des cartes : auteur · catégorie, puis la date à la ligne */
.tiwup-card__byline, .tiwup-card__date { display: block; }
.tiwup-card__date { margin-top: .15rem; opacity: .8; }
.tiwup-card__date a { font-weight: 400; }
.feed > .profile__empty { text-align: center; }
.profile__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0 0; }
.post-page__back { text-align: center; margin-top: 1.5rem; }
.post-page__edit { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: center; }
.post-page__daily { margin: 0 0 .8rem; text-align: center; }
.post-page__daily a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px;
	background: #D4A017; color: var(--sur-accent); text-decoration: none; font-size: .95rem; }
.post-page__daily a:hover { background: #B8860B; }
.post-page__daily span { opacity: .8; }

/* ---------- Suppression d'un Tiwup (uniquement depuis son profil, avec confirmation) ---------- */
.profile-post { margin-bottom: 1rem; }
.profile-post .tiwup-card { margin-bottom: .3rem; }
.profile-post__delete { display: inline-block; font-size: .8rem; color: var(--encre-douce); text-decoration: none; padding: .1rem .2rem; }
.profile-post__delete:hover { color: var(--erreur); text-decoration: underline; }
.post-page__delete { text-align: center; margin: .4rem 0 0; }
.delete-post { max-width: 36rem; margin: 0 auto; padding-top: 1rem; }
.delete-post__warning { color: var(--erreur); font-weight: 500; }
.delete-post__actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.button--danger { background: transparent; border-color: var(--erreur); color: var(--erreur); }
.button--danger:hover { background: var(--erreur); border-color: var(--erreur); color: var(--sur-erreur); }

/* Éléments masqués par le JavaScript (attribut hidden), même quand leur classe les affiche en flex */
[hidden] { display: none !important; }

/* ---------- Comptes entité ---------- */
.entity-fields { border-left: 3px solid var(--lagon); padding-left: 1rem; margin-bottom: 1.25rem; }
.account-type { background: var(--ecume); border-radius: var(--radius-small); padding: .9rem 1rem; margin-bottom: 1rem; }
.account-type p { margin: 0 0 .5rem; }
.profile__pending { max-width: 30rem; margin: .75rem auto 0; font-size: .88rem; color: var(--titre); background: var(--ecume); border-radius: var(--radius-small); padding: .5rem .8rem; }

/* ---------- Photos de profil ---------- */
.avatar { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--initial { display: grid; place-items: center; background: var(--lagon); color: var(--sur-accent); font-family: var(--font-ui); font-weight: 500; }
.profile__avatar { width: 92px; height: 92px; margin: 0 auto 1rem; font-size: 2.3rem; }
.profile__avatar-link { display: block; width: 92px; margin: 0 auto 1rem; text-decoration: none; text-align: center; }
.profile__avatar-link .profile__avatar { margin-bottom: .3rem; }
.profile__avatar-link span.profile__avatar-add { font-size: .78rem; color: var(--lagon-fonce); }
.avatar--small { width: 26px; height: 26px; font-size: .78rem; }
.tiwup-card__byline { display: flex !important; align-items: center; gap: .45rem; flex-wrap: wrap; }
.avatar-settings { margin-bottom: 1.2rem; padding: 1rem; border: 1.5px dashed transparent; border-radius: var(--radius); transition: border-color .15s, background .15s; }
.avatar-settings--drag { border-color: var(--lagon); background: color-mix(in srgb, var(--lagon) 8%, transparent); }
.avatar-settings__form { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin: 0; }
.avatar-settings__body { flex: 1; min-width: 14rem; }
.avatar-settings__actions { display: flex; gap: .8rem 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.avatar-settings__choose { cursor: pointer; }
.avatar-settings__file { margin: 0 0 .4rem; font-size: .88rem; font-weight: 500; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.avatar-settings .field__help { margin: 0; }
.avatar-picker { position: relative; display: block; width: 96px; height: 96px; flex: none; cursor: pointer; border-radius: 50%; }
.avatar-picker .avatar { width: 96px; height: 96px; font-size: 2.4rem; }
.avatar-picker [data-avatar-current] { display: block; }
.avatar-picker__badge { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--abysse); color: var(--sur-accent); border: 3px solid var(--papier); transition: transform .15s, background .15s; }
.avatar-picker__badge svg { width: 17px; height: 17px; }
.avatar-picker:hover .avatar-picker__badge { transform: scale(1.08); background: var(--abysse); }
.avatar-picker:hover .avatar { filter: brightness(.94); }
#avatar-input:focus-visible ~ .avatar-settings__actions .avatar-settings__choose, .avatar-settings__form:focus-within .avatar-picker { outline: none; }
#avatar-input:focus-visible ~ .avatar-settings__actions .avatar-settings__choose { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagon) 45%, transparent); }
.avatar-settings--chosen .avatar-picker .avatar { box-shadow: 0 0 0 3px var(--lagon); }
/* Avertissement visible tant que la photo choisie n'est pas envoyée */
.avatar-settings__pending { display: none; margin: 0 0 .5rem; font-size: .88rem; font-weight: 600; color: var(--erreur); }
.avatar-settings--chosen .avatar-settings__pending { display: block; }

/* ---------- Boutons sous les Tiwups : j'aime, partager, Tiwup du jour ---------- */
/* Lien d'évitement : hors écran jusqu'à ce qu'on l'atteigne au clavier */
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 100; padding: .7rem 1.1rem; border-radius: var(--radius-small);
	background: var(--lagon); color: var(--sur-accent); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus-visible { top: .5rem; outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tiwup { margin: 0 0 1.1rem; }
.masonry .tiwup { break-inside: avoid; display: inline-block; width: 100%; }
.masonry .tiwup .tiwup-card { margin: 0; }
.tiwup__shared { margin: 0 0 .35rem .2rem; font-size: .8rem; color: var(--encre-douce); }
.tiwup__shared::before { content: "↻ "; }
.tiwup__shared a { color: var(--lagon-fonce); font-weight: 500; text-decoration: none; }
.tiwup-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .35rem .1rem 0; }
.tiwup-actions form { margin: 0; display: inline; }
.act { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.25rem; padding: .25rem .6rem; border: 0; border-radius: 999px; background: transparent; color: var(--encre-douce); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; }
.act svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.act:hover { background: var(--ecume); color: var(--titre); }
.act:focus-visible, .vote__info:focus-visible { outline: 2px solid var(--lagon-fonce); outline-offset: 2px; }
.act--like.is-on { color: var(--aurore-fonce); }
.act--like.is-on svg { fill: currentColor; }
.act--share.is-on { color: var(--lagon-fonce); font-weight: 500; }
.act.is-static { cursor: default; }
.act.is-static:hover { background: transparent; color: var(--encre-douce); }
.act--vote { border: 1.5px solid var(--trait); font-weight: 500; color: var(--encre); }
.act--vote:hover { border-color: var(--aurore); background: var(--avertissement-fond); }
.act--vote.is-on { border-color: var(--aurore-fonce); background: var(--aurore); color: var(--encre); }
.act--vote.is-on svg { fill: currentColor; }
.act--vote.is-disabled { opacity: .55; cursor: not-allowed; }
.act.is-busy { opacity: .6; pointer-events: none; }
.vote { position: relative; display: inline-flex; align-items: center; gap: .15rem; margin-left: auto; }
.vote__info { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--trait); background: var(--papier); color: var(--encre-douce); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.vote__tip { position: absolute; z-index: 20; right: 0; bottom: calc(100% + .5rem); width: min(19rem, 80vw); padding: .75rem .9rem; border-radius: var(--radius-small); background: var(--abysse); color: var(--sur-accent); font-size: .8rem; line-height: 1.45; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transition: opacity .12s; }
.vote__tip p { margin: 0; }
/* Le fond de l'info-bulle est le jaune-vert dans les deux modes : le texte reste donc toujours en encre foncée. */
.vote__tip .vote__status { margin-top: .45rem; color: var(--sur-accent); font-weight: 700; }
.vote:hover .vote__tip, .vote:focus-within .vote__tip, .vote.is-open .vote__tip { visibility: visible; opacity: 1; }
.flash-inline { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 50; max-width: 90vw; padding: .6rem 1rem; border-radius: var(--radius-small); background: var(--encre); color: var(--plume); font-size: .88rem; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .vote__tip { transition: none; } }

/* Initiale de l'auteur lisible sur toutes les couleurs de carte */
.tiwup-card--lagon .avatar--initial { background: var(--abysse); }
.tiwup-card--abysse .avatar--initial { background: var(--lagon); }
.profile__avatar-link { width: auto; display: flex; flex-direction: column; align-items: center; }

/* ---------- Page d'un Tiwup ---------- */
.post-page { max-width: 44rem; margin: 0 auto; }
.tiwup-card[data-href] { cursor: pointer; }
.act--comment svg { stroke-width: 1.8; }
.post-author { display: flex; gap: .9rem; align-items: flex-start; margin: 1.6rem 0 0; padding: 1rem 1.1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius-small); }
.post-author__photo { flex: none; text-decoration: none; }
.avatar--author { width: 52px; height: 52px; font-size: 1.3rem; }
.post-author__text { min-width: 0; }
.post-author p { margin: 0; }
.post-author__name a { color: var(--encre); text-decoration: none; }
.post-author__name span { color: var(--encre-douce); }
.post-author__name .badge { margin-left: .4rem; }
.post-author__bio { margin-top: .3rem !important; color: var(--encre-douce); font-size: .92rem; }
.post-author__meta { margin-top: .45rem !important; font-size: .82rem; color: var(--encre-douce); }
.post-author__meta a { color: var(--lagon-fonce); }

/* ---------- Commentaires ---------- */
.comments { margin-top: 2.2rem; }
.comments h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.comments__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: var(--ecume); color: var(--titre); font-size: .82rem; }
.comments__prompt, .comments__empty { color: var(--encre-douce); font-size: .95rem; }
.comments__prompt a { color: var(--lagon-fonce); font-weight: 500; }
.comment-form { display: flex; gap: .7rem; align-items: flex-start; margin: .8rem 0 1.4rem; }
.comment-form__fields { flex: 1; min-width: 0; }
.comment-form textarea { width: 100%; resize: vertical; font: inherit; padding: .6rem .75rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); color: var(--encre); }
.comment-form textarea:focus { outline: 2px solid var(--lagon); outline-offset: 1px; border-color: var(--lagon); }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .4rem; flex-wrap: wrap; }
.comment-form--small { display: block; margin: .5rem 0 .3rem; }
.comment-form--small button { margin-top: .35rem; }
.avatar--comment { width: 36px; height: 36px; font-size: .95rem; }
.comments__list { display: flex; flex-direction: column; gap: 1rem; }
.comment { display: flex; gap: .7rem; align-items: flex-start; scroll-margin-top: 5rem; }
.comment:target .comment__main { background: var(--avertissement-fond); border-radius: var(--radius-small); }
.comment__main { flex: 1; min-width: 0; padding: .1rem .3rem; }
.comment__head { font-size: .85rem; color: var(--encre-douce); }
.comment__head a { color: var(--encre); text-decoration: none; }
.comment__head a span { color: var(--encre-douce); }
.comment__edited { font-style: italic; }
.comment__body { margin: .2rem 0 .3rem; overflow-wrap: anywhere; }
.comment__actions { display: flex; gap: .9rem; align-items: flex-start; flex-wrap: wrap; font-size: .82rem; }
.comment__more { flex-basis: auto; }
.comment__more[open] { flex-basis: 100%; }
.comment__more summary { cursor: pointer; color: var(--lagon-fonce); list-style: none; }
.comment__more summary::-webkit-details-marker { display: none; }
.comment__delete { margin: 0; }
.comment__delete button { border: 0; background: none; padding: 0; font: inherit; color: var(--encre-douce); cursor: pointer; }
.comment__delete button:hover { color: var(--erreur); text-decoration: underline; }
.comment__deleted { margin: 0; font-style: italic; color: var(--encre-douce); font-size: .9rem; }
.comment__replies { margin-left: 3.1rem; padding-left: .9rem; border-left: 2px solid var(--trait); display: flex; flex-direction: column; gap: .8rem; }
.comment--reply .avatar--comment { width: 30px; height: 30px; font-size: .85rem; }
.post-more { margin-top: 2.6rem; }
.post-more h2 { font-family: var(--font-tiwup); font-style: italic; font-weight: 400; font-size: 1.3rem; text-align: center; }
/* « D'autres mondes de… » : peu de cartes, une grille simple de 2 colonnes (les colonnes de type magazine les empilaient) */
.masonry.masonry--small { column-count: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.masonry--small .tiwup { margin: 0; }
@media (max-width: 600px) { .masonry.masonry--small { grid-template-columns: 1fr; } .comment__replies { margin-left: 1.2rem; } }
.post-page .post-more .tiwup-card { font-size: 1.15rem; }

/* Lien externe du profil */
.profile__link { margin: .5rem 0 0; font-size: .92rem; }
.profile__link a { display: inline-flex; align-items: center; gap: .35rem; color: var(--lagon-fonce); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.profile__link a:hover { text-decoration: underline; }

/* ---------- Abonnements ---------- */
.profile__meta a { color: inherit; text-decoration: none; }
.profile__meta a:hover { color: var(--lagon-fonce); text-decoration: underline; }
.follow-form { display: inline; margin: 0; }
.follow-button { min-width: 8.5rem; }
.follow-button.is-on { background: transparent; color: var(--lagon-fonce); box-shadow: inset 0 0 0 1.5px var(--lagon-fonce); }
.follow-button.is-on:hover { background: var(--ecume); }
.people { max-width: 40rem; margin: 0 auto; }
.people__back { margin: 0 0 .6rem; font-size: .9rem; }
.post-page__back { margin: 0 0 .9rem; font-size: .9rem; }
.post-page__pin { margin: 1rem 0 .2rem; font-size: .9rem; }
/* Le Tiwup épinglé en haut d'un profil ou du fil : dans la ligne de notes, au-dessus de la carte */
.tiwup__pinned { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .82rem; font-weight: 600; color: var(--lagon-fonce); }
.field__inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin: .35rem 0 0; }
.post-page__back a { color: var(--lagon-fonce); text-decoration: none; }
.post-page__back a:hover { text-decoration: underline; }
.people__back a { color: var(--lagon-fonce); text-decoration: none; }
.people__back span { color: var(--encre-douce); }
.people h1 { font-size: 1.5rem; margin: 0 0 .8rem; }
.people__tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--trait); margin-bottom: 1rem; }
.people__tabs a { padding: .5rem .8rem; color: var(--encre-douce); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.people__tabs a[aria-current="page"] { color: var(--titre); font-weight: 500; border-bottom-color: var(--lagon-fonce); }
.people__empty { color: var(--encre-douce); }
.people__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--trait); }
.person__photo { flex: none; text-decoration: none; }
.avatar--person { width: 46px; height: 46px; font-size: 1.15rem; }
.person__text { flex: 1; min-width: 0; }
.person__name { color: var(--encre); text-decoration: none; }
.person__name span { color: var(--encre-douce); font-size: .9rem; }
.person__bio { margin: .15rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.person .follow-button { min-width: 7.5rem; }
/* Écran étroit : la photo et le bouton gardaient leur taille et écrasaient le nom et la bio
   (71 px de large en 360). Le bouton passe donc sur sa propre ligne, en pleine largeur. */
@media (max-width: 26.5rem) {
	.person { flex-wrap: wrap; align-items: flex-start; }
	.person__text { flex: 1 1 8rem; }
	.person .follow-button { flex: 1 0 100%; min-width: 0; width: 100%; margin-top: .55rem; }
}
.people__pages { display: flex; justify-content: space-between; margin-top: 1rem; }
@media (max-width: 480px) { .person { flex-wrap: wrap; } .person .follow-form, .person > a.follow-button { margin-left: calc(46px + .8rem); } }

/* ---------- Blocage ---------- */
.block-form { display: inline; margin: 0; }
.profile__more { position: relative; display: inline-block; }
.profile__more summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--trait); color: var(--encre-douce); font-size: 1.2rem; line-height: 1; }
.profile__more summary::-webkit-details-marker { display: none; }
.profile__more summary:hover, .profile__more[open] summary { background: var(--ecume); color: var(--titre); }
.profile__menu { position: absolute; z-index: 30; top: calc(100% + .4rem); right: 0; min-width: 13rem; padding: .35rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius-small); box-shadow: var(--shadow); text-align: left; }
.profile__menu-item { width: 100%; text-align: left; border: 0; background: none; padding: .55rem .7rem; border-radius: 6px; font: inherit; font-size: .9rem; color: var(--erreur); cursor: pointer; }
.profile__menu-item:hover { background: var(--erreur-fond); }
.profile__blocked { max-width: 30rem; margin: 1.2rem auto 0; padding: 1rem; border-radius: var(--radius-small); background: var(--ecume); text-align: center; }
.profile__blocked p { margin: 0 0 .7rem; color: var(--titre); }
.notice-page { max-width: 32rem; margin: 3rem auto; text-align: center; }
.person__handle { color: var(--encre-douce); font-size: .9rem; }
.blocked-search { display: flex; gap: .5rem; margin: .6rem 0 .4rem; }
.blocked-search input { flex: 1; min-width: 0; padding: .55rem .75rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); font: inherit; color: var(--encre); }
.blocked-search input:focus { outline: 2px solid var(--lagon); outline-offset: 1px; border-color: var(--lagon); }
.blocked-list .person { gap: .7rem; }
.blocked-list .block-form { margin-left: auto; }
.field__help--count { display: flex; justify-content: space-between; gap: 1rem; }
.field__count { flex: none; font-variant-numeric: tabular-nums; }
.field__count.is-full { color: var(--aurore-fonce); font-weight: 500; }
.profile__bio--empty a { font-family: var(--font-ui); font-size: .9rem; color: var(--lagon-fonce); text-decoration: none; border-bottom: 1px dashed var(--lagon); }

/* ---------- Favoris ---------- */
.act--favorite.is-on { color: var(--lagon-fonce); }
.act--favorite.is-on svg { fill: currentColor; }
.profile__tabs { max-width: 44rem; margin: 1.8rem auto 0; justify-content: center; }
.profile__tab-help { max-width: 44rem; margin: .6rem auto 0; text-align: center; font-size: .85rem; color: var(--encre-douce); }

/* ---------- Signalement et modération ---------- */
.act--report { opacity: .55; }
.act--report:hover { opacity: 1; color: var(--erreur); }
.report-page, .admin { max-width: 44rem; margin: 0 auto; }
.report-page h1, .admin h1 { font-size: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.report-page .tiwup { margin: 1rem 0 1.4rem; }
.report-page__done { background: var(--ecume); padding: .8rem 1rem; border-radius: var(--radius-small); color: var(--titre); }
.report-page__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.admin-item__actions .button--danger { background: var(--erreur); color: var(--sur-erreur); border-color: var(--erreur); }
.admin-item__actions .button--danger:hover { background: var(--erreur-vif); border-color: var(--erreur-vif); color: var(--sur-erreur); }
.admin-link { font-weight: 500; }
.admin-link__count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--erreur); color: var(--sur-erreur); font-size: .72rem; }
.admin__setting { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .8rem 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius-small); margin-bottom: 1.4rem; }
.admin__setting input { width: 5rem; padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.admin__setting .field__help { flex-basis: 100%; margin: 0; }
.admin__empty { color: var(--encre-douce); }
.admin-item { padding: 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); margin-bottom: 1.2rem; }
.admin-item--hidden { border-color: var(--erreur); }
.admin-item__head { font-size: .88rem; color: var(--encre-douce); margin-bottom: .7rem; }
.admin-item__status { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--ecume); color: var(--titre); font-size: .75rem; margin-right: .4rem; }
.admin-item--hidden .admin-item__status { background: var(--erreur-fond); color: var(--erreur); }
.admin-item .tiwup { margin: 0 0 .7rem; }
.admin-item__reasons { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 .6rem; }
.admin-item__reasons li { padding: .15rem .55rem; border-radius: 999px; background: var(--erreur-fond); color: var(--erreur); font-size: .8rem; }
.admin-item__details { margin: 0 0 .7rem; padding-left: 1.1rem; font-size: .88rem; color: var(--encre); }
.admin-item__details span { color: var(--encre-douce); }
.admin-item__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-item__actions form { margin: 0; }

/* ---------- Notifications, compte suspendu ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; color: var(--titre); }
.bell:hover { background: var(--ecume); }
.bell__count { position: absolute; top: -.2rem; right: -.35rem; display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--erreur); color: var(--sur-erreur); font-size: .68rem; line-height: 1; }
.suspended-banner { max-width: 44rem; margin: 0 auto 1.2rem; padding: .75rem 1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); color: var(--aurore-fonce); font-size: .92rem; }
.notifications { max-width: 40rem; margin: 0 auto; }
.notifications__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.notification { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); font-size: .93rem; }
.notification--unread { border-left: 4px solid var(--lagon); }
.notification time { flex: none; color: var(--encre-douce); font-size: .82rem; }
.notifications__empty { color: var(--encre-douce); }

/* ---------- Signaler un commentaire ou un profil ---------- */
.comment__report { color: var(--encre-douce); font-size: inherit; text-decoration: none; }
.comment__report:hover { color: var(--erreur); text-decoration: underline; }
.profile__menu-item--neutral { display: block; color: var(--encre); text-decoration: none; }
.profile__menu-item--neutral:hover { background: var(--ecume); }
.report-target { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; margin: 0 0 1.2rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); }
.report-target__name { margin: 0 0 .3rem; }
.report-target__name span, .report-target__name a { color: var(--encre-douce); text-decoration: none; }
.report-target__name strong { color: var(--encre); }
.report-target__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Mes décisions de modération ---------- */
.decisions { max-width: 40rem; margin: 0 auto; }
.decisions__rights { padding: .9rem 1.1rem; border-radius: var(--radius-small); background: var(--ecume); color: var(--titre); font-size: .9rem; margin-bottom: 1.4rem; }
.decisions__rights p { margin: 0 0 .5rem; }
.decisions__rights p:last-child { margin: 0; }
.decisions__empty { color: var(--encre-douce); }
.decision { padding: 1rem 1.1rem; border: 1px solid var(--trait); border-left: 4px solid var(--aurore); border-radius: var(--radius-small); background: var(--papier); margin-bottom: 1rem; scroll-margin-top: 5rem; }
.decision--removed, .decision--suspended, .decision--upheld { border-left-color: var(--erreur); }
.decision--restored, .decision--reinstated { border-left-color: var(--succes); }
.decision__head { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.decision__date { color: var(--encre-douce); }
.decision__content, .admin-item .decision__content { margin: .7rem 0; padding: .6rem .8rem; border-left: 3px solid var(--trait); font-family: var(--font-tiwup); color: var(--encre); background: var(--plume); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }
.decision__action { margin: .4rem 0; font-weight: 500; }
.decision__facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; margin: .5rem 0 .8rem; font-size: .9rem; }
.decision__facts dt { color: var(--encre-douce); }
.decision__facts dd { margin: 0; }
.decision__appeal { margin: .4rem 0 0; font-size: .9rem; color: var(--titre); }
.decision__appeal--upheld { color: var(--erreur); }
.decision__appeal--overturned { color: var(--succes); }
.decision__form summary { list-style: none; display: inline-block; cursor: pointer; }
.decision__form summary::-webkit-details-marker { display: none; }
.decision__form[open] summary { margin-bottom: .8rem; }

/* ---------- Modération : types, motif, contestations ---------- */
.admin__tabs { margin-bottom: 1.2rem; }
.admin__tabs .comments__count { min-width: 1.4rem; height: 1.4rem; font-size: .75rem; }
.admin-item__kind { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--abysse); color: var(--sur-accent); font-size: .75rem; margin-right: .3rem; }
.admin-item__decide { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.admin-item__decide label { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: var(--encre-douce); }
.admin-item__decide select, .admin-item__decide input { padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; font-size: .88rem; background: var(--papier); color: var(--encre); max-width: 15rem; }
.admin-item__notice { margin: .6rem 0 0; }
.admin-item__decision { font-size: .9rem; color: var(--encre-douce); }
.admin-item__appeal-text { margin: .4rem 0 .9rem; overflow-wrap: anywhere; }
.admin-item__appeal-text span { color: var(--encre-douce); font-size: .88rem; }
.decision__form[open] summary { display: none; }

/* ---------- Avertissements et suspensions ---------- */
.admin__setting--warnings { flex-direction: column; align-items: flex-start; }
.admin__setting-title { margin: 0 0 .5rem; font-weight: 500; }
.admin__setting-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0 0 .7rem; }
.admin__setting-line input { width: 4.5rem; }
.admin-item__warnings { float: right; font-size: .8rem; color: var(--encre-douce); }
.admin-item__warnings--some { color: var(--erreur); font-weight: 500; }
.admin-item__check { flex-direction: row !important; align-items: center; gap: .35rem !important; color: var(--encre) !important; font-size: .85rem !important; align-self: center; }
.decisions__warnings { padding: .7rem 1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); color: var(--aurore-fonce); font-size: .9rem; margin: -.6rem 0 1.2rem; }

/* ---------- Tiwups sponsorisés ---------- */
.sponsored-card { padding-top: 2.1rem; }
.sponsored-card__label { position: absolute; top: .65rem; right: .8rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(23,48,56,.78); color: #fff; font-family: var(--font-ui, inherit); font-size: .7rem; font-weight: 500; letter-spacing: .03em; }
.sponsored-card__link { display: block; color: inherit; text-decoration: none; }
.sponsored-card__link:hover .sponsored-card__body { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sponsored-card__image { display: block; width: 100%; height: auto; margin: .9rem 0 .2rem; border-radius: calc(var(--radius) - 6px); }
.sponsored-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.sponsored-card__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid rgba(0,0,0,.08); flex: none; }
.sponsored-card__logo--empty { display: inline-block; background: var(--ecume); }
.sponsored-card__advertiser { font-weight: 600; }
.tiwup-card .sponsored-card__cta, .tiwup-card .sponsored-card__cta:visited { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--titre); font-family: var(--font-ui, inherit); font-size: .8rem; font-weight: 500; text-decoration: none; border: 1px solid rgba(0,0,0,.08); }
.tiwup-card .sponsored-card__cta:hover { background: var(--papier); color: var(--titre); }
.sponsored-card__footer.tiwup-card__author { opacity: 1; }
.admin__setting > .choice { flex-basis: 100%; }
.sponsored-why { margin: .35rem .2rem 0; font-size: .78rem; color: var(--encre-douce); }
.sponsored-why summary { cursor: pointer; display: inline; }
.sponsored-why p { margin: .35rem 0 0; }
.sponsor__intro { max-width: 46rem; }
.sponsor__mine { font-size: .92rem; }
.sponsor__off { padding: .7rem 1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); color: var(--aurore-fonce); max-width: 46rem; }
.sponsor__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .sponsor__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); } .sponsor__form, .sponsor__login { grid-column: 1; grid-row: 1; } .sponsor__preview { grid-column: 2; grid-row: 1; position: sticky; top: 5.5rem; } }
.sponsor__preview-label { margin: 0 0 .5rem; font-size: .85rem; color: var(--encre-douce); }
.sponsor__form { max-width: 38rem; }
.sponsor__form h2 { font-size: 1.15rem; margin: 1.4rem 0 .2rem; }
.sponsor__form h2:first-of-type { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.pack { position: relative; display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack:has(input:checked) { outline: 3px solid var(--lagon); outline-offset: 1px; }
.pack:has(input:focus-visible) { outline: 3px solid var(--focus); }
.pack__views { font-weight: 500; }
.pack__price { font-size: 1.35rem; font-weight: 600; color: var(--titre); }
.pack__tax { font-size: .75rem; color: var(--encre-douce); }
.sponsor-mine { max-width: 40rem; margin: 0 auto; }
.campaign { margin-bottom: 1.4rem; }
.campaign__head { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.campaign__status { padding: .1rem .55rem; border-radius: 999px; background: var(--ecume); color: var(--titre); font-size: .8rem; }
.campaign--active .campaign__status { background: var(--lagon); color: var(--sur-accent); }
.campaign--refused .campaign__status, .campaign--cancelled .campaign__status { background: var(--erreur-fond, var(--erreur-fond)); color: var(--erreur); }
.campaign__explain { font-size: .9rem; color: var(--encre-douce); margin: .5rem 0; }
.campaign__reason { font-size: .9rem; color: var(--erreur); margin: 0 0 .5rem; }
.admin__tabs--wrap { flex-wrap: wrap; }
.admin-item__billing { font-size: .88rem; }

/* ==========================================================================
   Charte « Aube crème » (2026-11-11) — réglages qui priment sur les règles plus haut
   ========================================================================== */
body { background: var(--plume); }
h1, h2 { letter-spacing: -.02em; }
h1 { font-weight: 700; }
a { color: var(--lagon-fonce); }
a:hover { color: var(--encre); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .button:focus-visible, a:focus-visible, .link-button:focus-visible, .chip:focus-within,
.style-picker__option:has(input:focus-visible), .pack:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=date], input[type=number], select, textarea { border-color: var(--trait-fort); border-radius: var(--radius-small); }
input:hover, select:hover, textarea:hover { border-color: var(--lagon-fonce); }

/* Plus d'italique : le début de phrase reste droit, en caractères fins */
.tiwup-card__prefix, .hero__prefix, .about__title, .feed__title, .quick-write__prefix, .today__done, .panel__intro, .profile__empty, .post-more h2 { font-style: normal; }

/* En-tête et logo */
.site-header { background: var(--papier); border-bottom: 1px solid var(--trait); padding: 1rem 1.25rem; }
.logo { color: var(--encre); font-family: var(--font-tiwup); font-weight: 600; letter-spacing: -.03em; }
.logo:hover { color: var(--encre); }
.site-header__nav a:not(.button) { color: var(--encre); font-weight: 500; }
.bell { color: var(--encre); background: var(--ecume); width: 2.5rem; height: 2.5rem; }
.bell:hover { background: var(--trait); }
.bell__count { background: var(--corail); color: var(--encre); font-weight: 700; }

/* Boutons en pastilles : encre (principal), brume (secondaire) */
.button { border-color: var(--abysse); background: var(--abysse); color: var(--sur-accent); font-weight: 700; }
.button:hover { background: var(--lagon-vif); border-color: var(--lagon-vif); color: var(--sur-accent); }
.button--ghost { background: var(--ecume); border-color: var(--ecume); color: var(--encre); font-weight: 500; }
.button--ghost:hover { background: var(--trait); border-color: var(--trait); color: var(--encre); }
.button--danger { background: transparent; border-color: var(--erreur); color: var(--erreur); }
.button--danger:hover { background: var(--erreur); border-color: var(--erreur); color: var(--sur-erreur); }
.site-header__nav .button { color: var(--sur-accent); }

/* Panneaux */
.panel { border-color: var(--trait); box-shadow: var(--shadow); }
.chip:has(input:checked) { border-color: var(--abysse); background: var(--ecume); color: var(--encre); }
.badge { background: var(--lilas); color: var(--encre); }
.steps__item { background: var(--ecume); border: 0; }
.steps__num { background: var(--lagon); color: var(--encre); font-weight: 700; }

/* Cartes : arrondies, sans bordure, début de phrase fin + suite en gras */
.tiwup-card { border-radius: var(--radius); border: 0; font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
.tiwup-card__prefix { font-weight: 400; color: inherit; }
.tiwup-card--plume, .style-picker__option.tiwup-card--plume { background: var(--papier); color: var(--encre); border: 1px solid var(--trait); }
.tiwup-card--lagon, .style-picker__option.tiwup-card--lagon { background: var(--lagon); color: var(--encre); }
.tiwup-card--abysse, .style-picker__option.tiwup-card--abysse { background: var(--abysse); color: var(--sur-accent); }
.tiwup-card--aurore, .style-picker__option.tiwup-card--aurore { background: var(--corail); color: var(--encre); }
.tiwup-card--ecume, .style-picker__option.tiwup-card--ecume { background: var(--menthe); color: var(--encre); }
.tiwup-card--papier, .style-picker__option.tiwup-card--papier { background: var(--soleil); color: var(--encre); border: 0; }
.tiwup-card--plume .tiwup-card__prefix, .tiwup-card--lagon .tiwup-card__prefix, .tiwup-card--aurore .tiwup-card__prefix,
.tiwup-card--ecume .tiwup-card__prefix, .tiwup-card--papier .tiwup-card__prefix { color: var(--encre); }
.tiwup-card--abysse .tiwup-card__prefix { color: var(--aurore); }
.masonry .tiwup-card, .masonry .tiwup-card--lagon { font-size: 1.2rem; padding: 1.5rem 1.4rem 1.2rem; }
.masonry .tiwup-card:hover { box-shadow: 0 12px 30px rgba(31,77,74,.12); }
.tiwup-card__author { font-weight: 400; opacity: 1; }
.tiwup-card__author a span, .tiwup-card__date { opacity: .75; }
.style-picker__option { border-radius: var(--radius-small); font-weight: 500; }
.style-picker__option:has(input:checked) { outline: 3px solid var(--lagon-fonce); outline-offset: 2px; }

/* Pictogramme de la catégorie, devant le texte */
.tiwup-card__icon { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .4em; border-radius: 50%; background: rgba(255,255,255,.62); color: var(--encre); vertical-align: -.36em; }
.tiwup-card__icon svg { width: 1.05em; height: 1.05em; display: block; }
.tiwup-card--plume .tiwup-card__icon { background: var(--ecume); }
.tiwup-card--abysse .tiwup-card__icon { background: rgba(255,255,255,.14); color: var(--aurore); }

/* Accueil */
.about__title { font-weight: 600; color: var(--encre); letter-spacing: -.03em; }
.feed__title { font-weight: 600; letter-spacing: -.02em; font-size: 1.8rem; }
.example__card, .example__card.tiwup-card--lagon { background: var(--abysse); color: var(--sur-accent); }
.example__card .tiwup-card__prefix { color: var(--aurore); }
.example__card .hero__ending { color: var(--sur-accent); }
.example__label { color: var(--encre-douce); }
.quick-write { border: 0; background: var(--ecume); box-shadow: none; }
/* Le début de phrase du cadre d'écriture : police de lecture, plus grand et en gras, pour bien poser l'exercice */
.quick-write__prefix { color: var(--encre); font-family: var(--font-plume); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.35; letter-spacing: 0; }
.quick-write textarea { border-color: var(--trait); background: var(--papier); font-weight: 600; }
.quick-write textarea:focus-visible { border-color: var(--lagon-fonce); }
.hero__prefix { color: var(--lagon-fonce); }
.write-now__title { font-family: var(--font-tiwup); font-size: 1.6rem; letter-spacing: -.02em; }
textarea[data-body] { font-weight: 600; }

/* Tiwup du jour et publicités dans la même famille */
.sponsored-card__label { background: var(--abysse); color: var(--sur-accent); }
.link-button { color: var(--encre); font-weight: 500; }
.site-header .link-button:hover { color: var(--lagon-fonce); }

/* Listes de Tiwups (accueil, « Du même auteur ») : grille régulière, mêmes largeurs et même hauteur sur chaque ligne
   (remplace l'ancien affichage en colonnes façon Pinterest) */
.masonry, .masonry.masonry--small { column-count: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1rem; align-items: stretch; }
@media (min-width: 40rem) { .masonry, .masonry.masonry--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.masonry .tiwup { display: flex; flex-direction: column; width: auto; margin: 0; }
.masonry .tiwup .tiwup-card, .masonry .tiwup-card { display: flex; flex-direction: column; flex: 1 1 auto; width: auto; margin: 0; }
.masonry .tiwup-card__author { margin-top: auto; padding-top: 1.25rem; }
.masonry .tiwup-actions { flex: none; }
/* Chaque Tiwup occupe 3 rangées de la grille (la ligne de note « Tiwup du jour » / « partagé par », la carte, puis ses boutons) :
   les cartes d'une même ligne démarrent toutes à la même hauteur, même si une seule porte une note au-dessus d'elle. */
@supports (grid-template-rows: subgrid) {
	.masonry .tiwup { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
	.masonry .tiwup .tiwup-card { flex: none; height: 100%; box-sizing: border-box; }
	.masonry .tiwup__notes { align-self: end; }
	.masonry .tiwup-actions { align-self: start; }
}

/* Signet « favoris » dans le coin haut droit de la carte ; boutons (j'aime, commentaires, partage, signaler, vote) sur une seule ligne */
.tiwup-card__fav { position: absolute; top: .7rem; right: .7rem; z-index: 1; }
.tiwup-card__fav form { margin: 0; }
.tiwup-card__fav .act { color: inherit; opacity: .8; min-height: 2.5rem; min-width: 2.5rem; justify-content: center; padding: .25rem; font-family: var(--font-ui); }
.tiwup-card__fav .act:hover { opacity: 1; background: rgba(255,255,255,.45); color: inherit; }
.tiwup-card--abysse .tiwup-card__fav .act:hover { background: rgba(255,255,255,.14); }
.tiwup-card__fav .act--favorite.is-on { opacity: 1; color: inherit; }
.tiwup-card:has(.tiwup-card__fav) .tiwup-card__text { padding-inline: 2rem; } /* place du favori, des deux côtés pour rester centré */
.tiwup-actions { flex-wrap: nowrap; gap: .1rem; }
.tiwup-actions .act { padding: .25rem .42rem; }
.tiwup-actions .vote { flex: none; }
.tiwup-actions .act--vote { white-space: nowrap; }
/* Carte étroite : le bouton de vote garde son étoile, le texte reste lisible par les lecteurs d'écran */
.tiwup-actions { container-type: inline-size; }
.tiwup-actions { min-width: 0; }
@container (max-width: 340px) {
	.act--vote span[data-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.act--vote { padding: .25rem .55rem; }
}

/* ---------- Zones tactiles ----------
   Sur écran tactile, viser 44 px (2,75 rem) : en dessous, on se trompe de bouton.
   Les tailles visibles ne changent pas sur ordinateur, où la souris est précise. */
@media (pointer: coarse) {
	.act { min-height: 2.75rem; min-width: 2.75rem; justify-content: center; }
	.tiwup-actions { gap: .3rem; }
	.vote { gap: .4rem; }
	/* La bulle « ? » garde sa petite taille à l'œil, mais sa zone sensible fait 44 px */
	.vote__info { position: relative; }
	.vote__info::after { content: ''; position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); }
	.tiwup-card__fav .act { min-width: 2.75rem; min-height: 2.75rem; }
	.bell, .lang-switch, .theme-toggle, .site-header__search { min-width: 2.75rem; min-height: 2.75rem; }
	.choice { padding: .35rem 0; min-height: 2.75rem; align-items: center; }
	.avatar-settings__choose { display: inline-flex; align-items: center; min-height: 2.75rem; }
	.profile__bio-link { display: inline-block; min-height: 2.75rem; line-height: 2.75rem; }
	.tiwup-card__author a, .tiwup-card__date { display: inline-block; padding: .45rem 0; }
	.site-footer nav a { display: inline-block; padding: .6rem 0; }
	.people__tabs a, .feed__tabs a { min-height: 2.75rem; display: inline-flex; align-items: center; }
}

/* ---------- Pied de page et pages légales ---------- */
.site-footer { border-top: 1px solid var(--trait); padding: 1.4rem 1.25rem 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center; align-items: center; font-size: .85rem; color: var(--encre-douce); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; }
.site-footer a { color: var(--encre-douce); text-decoration: none; }
.site-footer a:hover { color: var(--encre); text-decoration: underline; }
.site-footer p { margin: 0; }
.legal { max-width: 44rem; margin: 0 auto; line-height: 1.65; }
.legal h1 { margin: 1.2rem 0 .3rem; font-family: var(--font-tiwup); font-weight: 600; font-size: 2.1rem; }
.legal h2 { font-family: var(--font-tiwup); font-weight: 600; font-size: 1.25rem; margin: 2rem 0 .5rem; border: 0; padding: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .3rem 0; }
.legal__nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.legal__nav a { padding: .4rem .85rem; border-radius: 999px; background: var(--ecume); color: var(--encre); text-decoration: none; font-size: .88rem; }
.legal__nav a[aria-current="page"] { background: var(--abysse); color: var(--sur-accent); }
.legal__updated, .legal__note { margin: 0 0 1rem; font-size: .85rem; color: var(--encre-douce); }
.legal__lead { font-size: 1.08rem; }
.legal-todo { background: #4D3A12; color: #F4F1EA; padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
.legal code { font-size: .88em; background: var(--ecume); padding: 0 .3rem; border-radius: 4px; }

/* ---------- Validation avant publication ---------- */
.pending { margin: 0 0 2rem; padding: 1.2rem 1.2rem .4rem; border-radius: var(--radius); background: var(--avertissement-fond); }
.pending__title { margin: 0 0 .3rem; font-family: var(--font-tiwup); font-size: 1.25rem; border: 0; padding: 0; }
.pending__help { margin: 0 0 1rem; font-size: .9rem; color: var(--encre-douce); }
.profile-post--pending .tiwup-card { opacity: .85; }
.profile-post--draft .tiwup-card { opacity: .55; filter: grayscale(.8); }
.profile__first { text-align: center; margin: 2.5rem 0; }
.signup__login { margin: -.3rem 0 1rem; }
.pending-post { max-width: 40rem; margin: 0 auto; }
.pending-post__banner { padding: .9rem 1.1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); color: var(--encre); margin: 0 0 1.2rem; line-height: 1.5; }
.pending-post__actions { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.legal h3 { font-family: var(--font-tiwup); font-weight: 600; font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.admin__intro { margin: 0 0 1rem; }
.admin-item__matched { margin: .3rem 0 .8rem; font-size: .9rem; color: var(--aurore-fonce); }
.admin-item__matched span { color: var(--encre-douce); }
.admin-terms__add { margin: 1rem 0 .4rem; }
.admin-terms { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .4rem .8rem; }
.admin-terms li { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: var(--radius-small); background: var(--papier); border: 1px solid var(--trait); font-size: .9rem; }
.admin-terms__term { font-weight: 600; }
.admin-terms__note { flex: 1; color: var(--encre-douce); font-size: .8rem; }
.admin-terms form { margin: 0; }
.admin__setting input[type=checkbox] { width: auto; padding: 0; }
.link-button--danger { color: var(--erreur); }
.settings__profile-link { margin: -.2rem 0 2rem; text-align: center; }

/* ---------- Profil : encadrés de chiffres ---------- */
.profile__stats { list-style: none; margin: 1.1rem auto .7rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 32rem; }
.profile__stat { text-align: center; line-height: 1.2; }
.profile__stat > a, .profile__stat > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .8rem .4rem; height: 100%; box-sizing: border-box; border-radius: 18px; background: var(--stat-bg); color: var(--encre); text-decoration: none; }
.profile__stat > a { transition: transform .15s, box-shadow .15s; }
.profile__stat > a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,77,74,.12); color: var(--encre); }
.profile__stat strong { font-family: var(--font-tiwup); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; }
.profile__stat span { font-size: .8rem; font-weight: 500; }
.profile__stat--tiwups { --stat-bg: var(--soleil); }
.profile__stat--followers { --stat-bg: var(--menthe); }
.profile__stat--following { --stat-bg: var(--lilas); }
.profile__stat--likes { --stat-bg: var(--aurore); }
.profile__meta { margin-top: 0; font-size: .82rem; }
@media (max-width: 30rem) {
	.profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Inviter des amis ---------- */
.invite-page__intro { margin: 0 0 1.4rem; color: var(--encre-douce); line-height: 1.5; }
.invite-page__joined { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--trait); font-weight: 500; }
.invite-share__label { display: block; font-weight: 500; margin-bottom: .4rem; }
.invite-share__message { width: 100%; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); font-family: var(--font-tiwup); font-size: 1.1rem; line-height: 1.4; color: var(--encre); resize: vertical; }
.invite-share__message:focus { outline: none; border-color: var(--lagon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagon) 25%, transparent); }
.invite-share__link { margin: .5rem 0 1.2rem; font-size: .85rem; color: var(--encre-douce); word-break: break-all; }
.invite-share__link a { color: var(--lagon-fonce); font-weight: 500; }
.invite-share__native { text-align: center; margin: 0 0 1.4rem; }
.invite-share__native .button { width: 100%; }
.invite-share__native .field__help { margin-top: .4rem; }
.invite-share__with { margin: 0 0 .6rem; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-douce); }
.invite-share__apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.invite-app { display: flex; align-items: center; justify-content: flex-start; text-align: left; line-height: 1.2; gap: .6rem; padding: .75rem .9rem; border-radius: 16px; border: 0; font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; color: #fff; transition: transform .12s, filter .12s; }
.invite-app:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.invite-app svg { width: 22px; height: 22px; flex: none; }
.invite-app--whatsapp { background: #198644; }
.invite-app--messenger { background: #0866FF; }
.invite-app--line { background: #058734; }
.invite-app--sms, .invite-app--email { background: var(--abysse); color: var(--sur-accent); }
.invite-app--sms:hover, .invite-app--email:hover { color: var(--sur-accent); }
.invite-app--copy { background: var(--ecume); color: var(--encre); }
.invite-app--copy:hover { color: var(--encre); }
.invite-share__feedback { min-height: 1.3em; margin: .7rem 0 0; font-size: .9rem; font-weight: 500; color: var(--lagon-fonce); }
.invite-share__tips { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .82rem; color: var(--encre-douce); line-height: 1.45; }
.invite-share__tips li + li { margin-top: .3rem; }
.invite-prompt { position: relative; margin: 1.6rem 0; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius); background: var(--papier); border: 2px solid var(--soleil); box-shadow: var(--shadow); }
.invite-prompt__title { border: 0; padding: 0; margin: 0 4.5rem .3rem 0; font-family: var(--font-tiwup); font-size: 1.4rem; font-weight: 600; }
.invite-prompt__text { margin: 0 0 1.1rem; color: var(--encre-douce); }
.invite-prompt__close { position: absolute; top: 1.1rem; right: 1.2rem; font-size: .88rem; }
.invite-banner { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .7rem 1rem; border-radius: var(--radius-small); background: var(--lilas); font-weight: 500; }
.invite-landing { text-align: center; padding: 1rem 0 2rem; }
.invite-landing__avatar { width: 104px; height: 104px; margin: 0 auto 1rem; font-size: 2.4rem; }
.invite-landing__title { margin: 0; font-family: var(--font-tiwup); font-size: 2.1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.invite-landing__handle { margin: .3rem 0 0; color: var(--encre-douce); }
.invite-landing__pitch { margin: 1.2rem auto 1.6rem; max-width: 32rem; font-family: var(--font-tiwup); font-size: 1.15rem; line-height: 1.45; }
.invite-landing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.invite-landing__recent { font-family: var(--font-tiwup); font-size: 1.3rem; font-weight: 600; margin: 0 0 1rem; text-align: center; }

/* ---------- Avis « Ils nous recommandent » (façon Google) ---------- */
.stars { display: inline-flex; gap: 1px; font-size: 1rem; line-height: 1; letter-spacing: 0; }
.stars__on { color: #F4B400; }
.stars__off { color: var(--trait); }
.review { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 20px; background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 1px 2px rgba(31,77,74,.04); box-sizing: border-box; height: 100%; }
.review__head { display: flex; align-items: center; gap: .75rem; }
.review__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.review__avatar--initial { display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; }
.review__avatar--big { width: 96px; height: 96px; font-size: 2.2rem; }
.review__who { flex: 1; min-width: 0; }
.review__name { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.2; }
.review__subtitle { margin: .1rem 0 0; font-size: .8rem; color: var(--encre-douce); }
.review__rating { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.review__when { font-size: .8rem; color: var(--encre-douce); }
.review__text { margin: 0; font-family: var(--font-tiwup); font-size: 1.08rem; line-height: 1.4; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.reviews-home__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.reviews-home__slot { display: grid; }
.reviews-home__slot > .review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.reviews-home__slot > .review.is-current { opacity: 1; visibility: visible; transition: opacity .45s ease; }
@media (max-width: 52rem) { .reviews-home__slots { grid-template-columns: minmax(0, 1fr); } .reviews-home__slot:nth-child(n+2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .reviews-home__slot > .review { transition: none; } }
.reviews-summary { display: flex; align-items: center; gap: .8rem; }
.reviews-summary__score { margin: 0; font-family: var(--font-tiwup); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.reviews-summary .stars { font-size: 1.15rem; }
.reviews-summary__count { margin: .2rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.reviews-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; margin: .5rem 0 2rem; }
.reviews-page__title { margin: 0; font-family: var(--font-tiwup); font-weight: 600; font-size: 2.6rem; letter-spacing: -.03em; }
.reviews-page__intro { margin: .4rem 0 0; font-size: 1.05rem; color: var(--encre-douce); max-width: 34rem; }
.reviews-page__score { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; max-width: 100%; box-sizing: border-box; padding: 1rem 1.4rem; border-radius: 20px; background: var(--papier); border: 1px solid var(--trait); }
.reviews-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; flex: 1 1 9rem; min-width: 8rem; font-size: .75rem; color: var(--encre-douce); }
.reviews-bars li { display: flex; align-items: center; gap: .5rem; }
.reviews-bars__track { flex: 1; height: 8px; border-radius: 99px; background: var(--ecume); overflow: hidden; }
.reviews-bars__track span { display: block; height: 100%; background: #F4B400; border-radius: inherit; }
.reviews-page__disclaimer { margin: 1rem 0 0; text-align: center; font-size: .82rem; color: var(--encre-douce); font-style: italic; }
.reviews-page__join { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem; font-family: var(--font-tiwup); font-size: 1.15rem; }
.reviews-home { margin: 2.5rem 0; }
.reviews-home__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.reviews-home__title { margin: 0; font-family: var(--font-tiwup); font-weight: 600; font-size: 1.8rem; letter-spacing: -.02em; }
.reviews-home__more { text-align: center; margin: .4rem 0 0; }
/* Administration */
.admin-reviews__top { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.2rem; }
.admin-reviews__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.admin-reviews__item { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: var(--radius-small); background: var(--papier); border: 1px solid var(--trait); }
.admin-reviews__item--hidden { opacity: .55; }
.admin-reviews__body { flex: 1; min-width: 0; }
.admin-reviews__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.admin-reviews__text { margin: .2rem 0 0; font-size: .9rem; color: var(--encre-douce); }
.admin-reviews__badge { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: var(--lilas); }
.admin-reviews__badge--off { background: var(--ecume); }
.admin-reviews__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.admin-reviews__cols fieldset { border: 1px solid var(--trait); border-radius: var(--radius-small); padding: .8rem 1rem; margin: 0; }
.admin-reviews__cols legend { font-weight: 700; padding: 0 .3rem; }
.admin-reviews__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-top: 1rem; }
.admin-reviews__row input[type=number] { width: 6rem; }
.admin-reviews__image { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.6rem; }
.admin-reviews__delete { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--trait); }

/* ---------- Supprimer son compte ---------- */
.account-delete__warning { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius-small); background: var(--avertissement-fond); color: var(--erreur); font-weight: 600; }
.account-delete__list { margin: 0 0 1.4rem; padding-left: 1.1rem; line-height: 1.5; color: var(--encre-douce); }
.account-delete__list li + li { margin-top: .4rem; }
.account-delete__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.2rem; }
.goodbye { text-align: center; }
.goodbye__text { font-family: var(--font-tiwup); font-size: 1.15rem; line-height: 1.5; margin: 0 0 1.4rem; }

/* ---------- Administration : maintenance ---------- */
.maintenance h2 { margin-top: 2rem; }
.maintenance__state { margin: .4rem 0 .8rem; font-weight: 500; }
.maintenance__table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.maintenance__table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--papier); border-radius: var(--radius-small); overflow: hidden; }
.maintenance__table th, .maintenance__table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.maintenance__table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--encre-douce); }
.maintenance__ok { color: var(--lagon-fonce); font-weight: 700; }
.maintenance__error { color: var(--erreur); font-weight: 700; }
.maintenance__warn { font-weight: 600; color: var(--aurore-fonce); }
.maintenance__files { margin: .4rem 0 1rem; padding-left: 1.2rem; font-size: .88rem; }
.maintenance__last { margin: 1.4rem 0 0; font-size: .85rem; color: var(--encre-douce); }
.maintenance__ext { list-style: none; margin: .4rem 0 1rem; padding: 0; font-size: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.maintenance__ext .is-on span { color: var(--lagon-fonce); font-weight: 700; }
.maintenance__ext .is-off { color: var(--erreur); }
.maintenance__ext .is-off span { font-weight: 700; }

/* Anti-robot Cloudflare (inscription) : cadre centré */
.cf-turnstile { display: flex; justify-content: center; margin: 1rem 0; }

/* Ligne de l'auteur centrée, comme le texte du Tiwup */
.tiwup-card__author { text-align: center; }
.tiwup-card__byline { justify-content: center; }
.maintenance__inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.maintenance__inline input[type=number] { width: 6rem; }

/* ---------- Notifications sociales, réponses aux commentaires ---------- */
.notification { align-items: flex-start; }
.notification__link { display: flex; align-items: flex-start; gap: .7rem; color: var(--encre); text-decoration: none; flex: 1; min-width: 0; }
.notification__link:hover .notification__what { text-decoration: underline; }
.notification__icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soleil); font-size: 1rem; }
.notification__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.notification__what { font-weight: 500; }
.notification__quote { font-family: var(--font-tiwup); font-size: .92rem; color: var(--encre-douce); overflow-wrap: anywhere; }
.comment__reply-to { margin: .1rem 0 .2rem; font-size: .8rem; }
.comment__reply-to a { color: var(--lagon-fonce); text-decoration: none; }
.comment__reply-to a:hover { text-decoration: underline; }

/* Administration > Tiwups automatiques */
.admin-link__count--soft, .admin-link__count--linked { background: var(--lagon); color: var(--sur-accent); }
.auto-admin__days { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.4rem; }
.auto-admin__day { padding: .35rem .8rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier); color: var(--encre); text-decoration: none; font-size: .9rem; }
.auto-admin__day:hover { border-color: var(--lagon); }
.auto-admin__day.is-current { background: var(--abysse); border-color: var(--abysse); color: var(--sur-accent); }
.auto-admin__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1.4rem; }
.auto-account { margin-bottom: 2.4rem; }
.auto-account__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--trait); }
.auto-account__head h2 { margin: 0; font-size: 1.15rem; }
.auto-account__head h2 span { color: var(--encre-douce); font-weight: 400; font-size: .9rem; }
.auto-account__lang { padding: .1rem .45rem; border-radius: 6px; background: var(--lilas); font-size: .75rem; font-weight: 700; }
.auto-account__count { color: var(--encre-douce); font-size: .9rem; margin-left: auto; }
.auto-item { padding: 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); margin-bottom: 1rem; }
.auto-item--published { border-color: var(--succes); }
.auto-item--discarded { opacity: .6; }
.auto-item__preview { margin-bottom: .8rem; }
.auto-item__source, .auto-item__note { font-size: .88rem; color: var(--encre-douce); margin: .3rem 0; overflow-wrap: anywhere; }
.auto-item__source > span, .auto-item__note > span { font-weight: 700; }
.auto-item__note { background: var(--avertissement-fond); padding: .4rem .6rem; border-radius: 8px; }
.auto-item__form { margin-top: .8rem; }
.auto-item__form textarea { width: 100%; }
.auto-item__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; }
.auto-item__row label { display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.auto-item__row select { padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; background: var(--champ); }
.auto-item__buttons { display: flex; gap: .5rem; margin-left: auto; }
.auto-item__status { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: .8rem 0 0; }
.auto-admin__upload { margin-top: 2rem; padding: .8rem 1rem; border: 1px dashed var(--trait); border-radius: var(--radius-small); }
.auto-admin__upload summary { cursor: pointer; font-weight: 500; }
.auto-admin__upload form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; }
.auto-admin__upload .field__help { flex-basis: 100%; margin: 0; }

/* Fils : onglets, « Voir plus », fin du fil, Tiwup du jour, tri des abonnements */
.feed__tabs { margin-bottom: 1.2rem; }
.feed__next { display: flex; justify-content: center; margin: 1.6rem 0 .5rem; }
.feed__more.is-busy { opacity: .6; pointer-events: none; }
.feed-end { max-width: 34rem; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 2rem 1.6rem; }
.feed-end__title { font-family: var(--font-tiwup); font-size: 1.35rem; line-height: 1.35; margin: 0; }
.feed-end__text { margin: 0; font-size: 1.05rem; }
.feed-end__tomorrow { margin: 0; color: var(--encre-douce); }

/* Comptes à suivre : carte dans le fil, liste sur les cartes de transition et de fin, proposition après un j'aime */
.suggest { font-family: inherit; font-size: 1rem; line-height: 1.35; text-align: left; }
.suggest__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.suggest__title { margin: 0; font-family: var(--font-tiwup); font-size: 1.15rem; }
.suggest--inline { width: 100%; margin: .4rem 0; }
.suggest--inline .suggest__title { font-size: 1rem; margin-bottom: .4rem; }
.suggest__close { border: 0; background: none; font-size: 1.4rem; line-height: 1; padding: .1rem .4rem; color: var(--encre-douce); cursor: pointer; }
.suggest__close:hover { color: var(--encre); }
.suggest__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.suggest__item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.suggest__who { display: flex; align-items: center; gap: .55rem; min-width: 0; color: inherit; text-decoration: none; }
.suggest__who > span { min-width: 0; font-size: .95rem; }
.suggest__who > span > span { color: var(--encre-douce); font-size: .85rem; }
.suggest__who small { display: block; color: var(--encre-douce); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__item .follow-form { flex: none; margin: 0; }
.follow-nudge { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .5rem 0 0; padding: .55rem .8rem; border-radius: var(--radius-small); background: var(--papier); border: 1px solid var(--trait); font-size: .9rem; }
.follow-nudge .follow-form { flex: none; margin: 0; }
.tiwup__daily { margin: 0 0 .35rem; font-size: .85rem; font-weight: 700; color: var(--aurore-fonce); }
.feed__sort { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.2rem; font-size: .9rem; }
.feed__sort a { padding: .25rem .7rem; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier); color: var(--encre); text-decoration: none; }
.feed__sort a[aria-current="page"] { background: var(--abysse); border-color: var(--abysse); color: var(--sur-accent); }

/* Administration > Fil */
.feed-admin__group { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.feed-admin__field { padding: .8rem 1rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius-small); }
.feed-admin__field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.feed-admin__field input { width: 7rem; padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.feed-admin__field .field__help { margin: .4rem 0 0; }
.feed-admin__stats { padding-left: 1.2rem; }
.feed--profile .masonry, .feed--profile .masonry.masonry--small { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin: 0 auto; }
.feed__sort { justify-content: center; }

/* Tiwup du jour : page des résultats */
.day { max-width: 60rem; margin: 0 auto; text-align: center; }
.day__kicker { margin: 0; font-weight: 700; color: var(--aurore-fonce); letter-spacing: .02em; }
.day__title { font-family: var(--font-tiwup); font-weight: 600; margin: .3rem 0 1.6rem; }
.day__winner { max-width: 34rem; margin: 0 auto; text-align: left; }
.day__winner .tiwup-card { font-size: 1.45rem; padding: 2rem 1.8rem 1.4rem; box-shadow: var(--shadow); }
.day__stats { text-align: center; color: var(--encre-douce); margin: .6rem 0 0; }
.day__subtitle { font-family: var(--font-tiwup); font-weight: 400; font-style: italic; font-size: 1.4rem; margin: 2.4rem 0 1rem; }
.day__selection { text-align: left; }
.day__item { display: flex; flex-direction: column; }
.day__rank { margin: 0 0 .35rem; font-weight: 700; font-size: .9rem; color: var(--lagon-fonce); }
.day__voters { margin-top: 1.4rem; }
.day__message { font-size: 1.1rem; }
.day__nav { display: flex; justify-content: space-between; max-width: 34rem; margin: 1.8rem auto 0; }
.day__how { max-width: 40rem; margin: 0 auto; color: var(--encre-douce); }
.day__history ul { list-style: none; padding: 0; max-width: 40rem; margin: 0 auto; text-align: left; }
.day__history li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; padding: .6rem 0; border-bottom: 1px solid var(--trait); }
.tiwup__daily a { font-weight: 500; }
/* Administration > Tiwup du jour */
.daily-admin__table .is-excluded { opacity: .6; }
.daily-admin__exclude { display: flex; gap: .4rem; align-items: center; }
.daily-admin__exclude input { width: 9rem; padding: .25rem .4rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; font-size: .85rem; }
.feed-admin__field input.feed-admin__wide { width: 100%; }
.day__selection { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.4rem 1rem; align-items: stretch; }
.day__item .tiwup { display: flex; flex-direction: column; flex: 1 0 auto; margin: 0; }
.day__item .tiwup-card { flex: 1 0 auto; margin: 0; font-size: 1.15rem; padding: 1.4rem 1.3rem 1.1rem; display: flex; flex-direction: column; }
.day__item .tiwup-card__author { margin-top: auto; padding-top: 1.1rem; }

/* Lien cliquable sous un Tiwup (« Source : site · titre · date ») */
.tiwup-card__source { margin: .7rem 0 0; font-family: var(--font-ui, inherit); font-size: .78rem; line-height: 1.4; text-align: center; opacity: .85; overflow-wrap: anywhere; }
.tiwup-card__source > span { font-weight: 700; }
.tiwup-card__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.masonry .tiwup-card__source { font-size: .72rem; }
/* Tiwup traduit automatiquement : « Traduit de l'anglais · Voir l'original » */
.tiwup-card__translation { margin: .6rem 0 0; font-family: var(--font-ui, inherit); font-size: .75rem; text-align: center; opacity: .75; }
.tiwup-card__translation .link-button { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.tiwup-card__text[hidden] { display: none; }
.masonry .tiwup-card__translation { font-size: .7rem; }
.write-link { border: 1px dashed var(--trait); border-radius: var(--radius-small); padding: .8rem 1rem; }
.write-link legend { font-weight: 500; padding: 0 .3rem; }
.write-link__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .8rem; }
.write-link__row > .field:first-child { grid-column: 1 / -1; }
.write-link__row input { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 640px) { .write-link__row { grid-template-columns: 1fr; } }
.profile__admin-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; margin-top: .8rem; font-size: .85rem; color: var(--encre-douce); }

/* Tiwups automatiques : écriture directe (Thailandee, Tiwupoff…) */
.auto-writers { margin: 0 0 2rem; }
.auto-writers__title { font-size: 1.15rem; margin: 0 0 .8rem; }
.auto-writers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.auto-writer { padding: 1rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); }
.auto-writer .auto-account__head h3 { margin: 0; font-size: 1.05rem; }
.auto-writer .auto-account__head h3 span { color: var(--encre-douce); font-weight: 400; font-size: .9rem; }
.auto-writer__last { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.auto-writer__link { margin: 0 0 .8rem; font-size: .9rem; }
.auto-writer__link summary { cursor: pointer; font-weight: 500; }
.auto-writer__link-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; margin-top: .5rem; }
.auto-writer__link-fields label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.auto-writer__link-fields label:first-child { grid-column: 1 / -1; }
.auto-writer__link-fields input { padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }

/* Administration > Liens */
.link-item__tiwup { font-family: var(--font-tiwup); font-size: 1.05rem; margin: 0 0 .6rem; }
.link-item__tiwup a { color: inherit; }
.link-item__facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .8rem; margin: 0 0 .5rem; font-size: .9rem; }
.link-item__facts dt { font-weight: 700; }
.link-item__facts dd { margin: 0; overflow-wrap: anywhere; }
.link-item__decide { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.link-item__decide input[type=text] { padding: .4rem .6rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.link-item__buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.link-item__suspend { margin-top: .7rem; font-size: .9rem; }
.link-item__suspend summary { cursor: pointer; color: var(--erreur); font-weight: 500; }
.link-item__suspend form { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin-top: .5rem; }
.link-item__suspend label { display: flex; flex-direction: column; gap: .2rem; }
.link-item__suspend label.checkbox { flex-direction: row; align-items: center; }
.link-item__suspend select, .link-item__suspend input[type=text] { padding: .35rem .5rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.links-admin__add, .links-admin__search { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.links-admin__add input, .links-admin__search input { padding: .4rem .6rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.links-admin__patterns { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; padding: 1rem; border: 1px solid var(--trait); border-radius: 10px; }
.links-admin__patterns h2 { margin: 0; font-size: 1.05rem; }
.links-admin__patterns label { display: grid; gap: .25rem; font-size: .9rem; }
.links-admin__patterns input { padding: .4rem .6rem; border: 1px solid var(--trait); border-radius: 6px; font: inherit; }
.links-admin__patterns .button { justify-self: start; }
.links-admin__url { overflow-wrap: anywhere; }
.tiwup-card__source--pending { font-style: italic; }

/* Page d'un Tiwup : partager en image */
.share-image { margin: 1.4rem 0 .4rem; padding: 1rem 1.2rem; border: 1px dashed var(--trait); border-radius: var(--radius-small); text-align: center; }
.share-image__title { margin: 0; font-weight: 700; }
.share-image__help { margin: .3rem 0 .8rem; }
.share-image__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* Recherche de membres */
.search__form { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.search__form input[type=search] { flex: 1; min-width: 0; padding: .7rem .9rem; font: inherit; font-size: 1.05rem; border: 1px solid var(--trait-fort); border-radius: var(--radius-small); background: var(--champ); }
.search__form input[type=search]:focus { outline: 2px solid var(--lagon-fonce); outline-offset: 1px; }

/* Bandeau « Tiwup du jour » au-dessus du fil */
.daily-strip { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--ecume); color: var(--encre); }
.daily-strip__icon { flex: none; color: var(--corail); }
.daily-strip__text { flex: 1 1 16rem; min-width: 0; }
.daily-strip__text p { margin: 0; line-height: 1.4; }
.daily-strip__title { font-weight: 700; }
.daily-strip__links { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.quick-write .button--ghost { background: var(--papier); border-color: var(--papier); }
.quick-write .button--ghost:hover { background: var(--trait); border-color: var(--trait); }
.daily-strip .button--ghost { background: var(--papier); border-color: #fff; }
.daily-strip .button--ghost:hover { background: var(--papier); border-color: var(--papier); }

/* Administration > Comptes liés */
.account-links { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .8rem; }
.account-link { border: 1px solid var(--trait); border-radius: 10px; padding: .8rem 1rem; display: grid; gap: .6rem; background: var(--papier); }
.account-link--device { border-color: var(--corail); }
.account-link__why { margin: 0; font-size: .9rem; }
.account-link__alert { color: var(--erreur); font-weight: 700; }
.account-link__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 640px) { .account-link__pair { grid-template-columns: 1fr; } }
.account-link__user { display: grid; gap: .3rem; align-content: start; }
.account-link__suspend { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.account-link__suspend select { padding: .25rem .4rem; border-radius: 6px; border: 1px solid var(--trait); font: inherit; font-size: .85rem; }

/* Page Tiwup du jour : règles et conseils */
.day__rules { margin: 0 0 1.5rem; display: grid; gap: .3rem; }
.day__rules dt { font-weight: 700; color: var(--encre); margin-top: .6rem; }
.day__rules dd { margin: 0; }
.day__tips { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.vote__tip a { color: inherit; text-decoration: underline; }

/* ---------- Téléphone : en-tête compact + barre de navigation en bas ---------- */
.site-header__toggle, .site-header__menu, .tabbar { display: none; }
@media (max-width: 640px) {
	.site-header { flex-wrap: wrap; padding: .55rem 1rem; gap: .4rem; position: sticky; top: 0; z-index: 30; }
	.site-header .logo { font-size: 1.3rem; }
	.site-header__menu { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; color: var(--encre); cursor: pointer; }
	.site-header__menu:hover { background: var(--ecume); }
	/* Le menu est atteignable au clavier : il lui faut l'anneau de focus des autres commandes */
	.site-header__menu:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
	/* Le menu (inviter, profil, paramètres, admin, langue…) se déplie sous l'en-tête */
	.site-header__nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .3rem 0 .6rem; font-size: 1rem; }
	.site-header__toggle:checked ~ .site-header__nav { display: flex; }
	.site-header__nav > a, .site-header__nav > form { padding: .6rem .2rem; border-top: 1px solid var(--trait); }
	.site-header__nav .link-button { padding: 0; font-size: 1rem; }
	/* Déjà dans la barre du bas */
	.site-header__nav > .site-header__search, .site-header__nav > .bell, .site-header__nav > a.button { display: none; }
	.site-header__toggle { position: absolute; opacity: 0; pointer-events: none; }
	.site-header__toggle:checked + .site-header__menu { background: var(--ecume); }

	.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		background: var(--papier); border-top: 1px solid var(--trait); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(31,45,43,.06); }
	.tabbar__item { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .25rem 0; color: var(--encre-douce); text-decoration: none; font-size: .7rem; font-weight: 500; }
	.tabbar__item[aria-current="page"] { color: var(--titre); font-weight: 700; }
	.tabbar__item svg { width: 1.5rem; height: 1.5rem; }
	.tabbar__item--write svg { width: 2.3rem; height: 2.3rem; padding: .35rem; margin: -.55rem 0 -.25rem; border-radius: 999px; background: var(--abysse); color: var(--sur-accent); box-sizing: border-box; }
	.tabbar__item span { white-space: nowrap; }
	.tabbar__count { position: absolute; top: .05rem; left: calc(50% + .35rem); min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 999px; background: var(--corail); color: var(--encre); font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
	body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
	.flash-inline { bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* ---------- Mes statistiques ---------- */
.stats h1 { margin-bottom: .3rem; }
.stats h2 { font-size: 1.15rem; margin: 2rem 0 .7rem; }
.stats__periods { margin: 1rem 0 1.2rem; }
.stats__tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .7rem; }
.stats__tile { display: grid; gap: .15rem; align-content: start; padding: .85rem 1rem; border-radius: 14px; background: var(--papier); border: 1px solid var(--trait); }
.stats__label { font-size: .85rem; color: var(--encre-douce); font-weight: 500; }
.stats__tile strong { font-family: var(--font-tiwup); font-size: 1.9rem; line-height: 1.1; color: var(--encre); }
.stats__help { font-size: .76rem; color: var(--encre-douce); line-height: 1.35; }
.stats__delta { justify-self: start; font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; }
.stats__delta--up { background: var(--succes-fond); color: #1E6B3F; }
.stats__delta--down { background: var(--erreur-fond); color: var(--aurore-fonce); }
.stats__chart svg { width: 100%; height: 9rem; display: block; background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: .4rem; box-sizing: border-box; }
.stats__bar--views { fill: var(--ecume); }
.stats__bar--reads { fill: var(--lagon-fonce); }
.stats__legend { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .82rem; color: var(--encre-douce); }
.stats__key { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-left: .6rem; }
.stats__key:first-child { margin-left: 0; }
.stats__key--views { background: var(--ecume); border: 1px solid var(--trait-fort); }
.stats__key--reads { background: var(--abysse); }
.stats__axis { display: flex; justify-content: space-between; margin: .3rem 0 0; font-size: .75rem; color: var(--encre-douce); }
.stats__tips ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.stats__sort { font-size: .88rem; display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: center; }
.stats__sort a[aria-current] { font-weight: 700; color: var(--encre); text-decoration: none; }
/* Le tableau déborde sur téléphone : ombres aux bords pour montrer qu'il reste des colonnes,
   et cadre focalisable pour atteindre ces colonnes au clavier (flèches). */
.stats__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--trait); border-radius: 12px; background-color: var(--papier);
	background-image: linear-gradient(to right, var(--papier), var(--papier)), linear-gradient(to left, var(--papier), var(--papier)),
		linear-gradient(to right, rgba(20,18,31,.22), rgba(20,18,31,0)), linear-gradient(to left, rgba(20,18,31,.22), rgba(20,18,31,0));
	background-position: 0 0, 100% 0, 0 0, 100% 0; background-repeat: no-repeat;
	background-size: 2rem 100%, 2rem 100%, 1rem 100%, 1rem 100%;
	background-attachment: local, local, scroll, scroll; }
.stats__table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.stats__scroll-hint { display: none; margin: 0 0 .4rem; font-size: .85rem; color: var(--encre-douce); }
@media (max-width: 640px) { .stats__scroll-hint { display: block; } }
.stats__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.stats__table th, .stats__table td { padding: .55rem .7rem; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.stats__table thead th { font-weight: 700; color: var(--encre-douce); font-size: .8rem; background: var(--papier); }
.stats__table th[scope="row"], .stats__table thead th:first-child { text-align: left; white-space: normal; min-width: 14rem; }
.stats__table tbody tr:last-child > * { border-bottom: 0; }
.stats__table th[scope="row"] a { color: var(--encre); font-weight: 500; text-decoration: none; }
.stats__meta { display: block; font-size: .75rem; font-weight: 400; color: var(--encre-douce); margin-top: .15rem; }
@media (max-width: 640px) {
	.stats__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
	.stats__tile { padding: .7rem .75rem; }
	.stats__tile strong { font-size: 1.55rem; }
	.stats__help { display: none; }
	.stats__table th[scope="row"], .stats__table thead th:first-child { min-width: 11rem; }
}
.account-link__suspend select { width: auto; }

/* ==========================================================================
   Charte « Nuit pop » (2026-11-16) — cartes de Tiwup et détails. Ce bloc, en fin de fichier, a le dernier mot.
   Les 6 styles gardent leur nom technique (enregistré avec chaque Tiwup) ; seules leurs couleurs et leur nom affiché changent :
   plume → Encre, lagon → Pétrole, abysse → Nuit, aurore → Bordeaux, ecume → Prune, papier → Bronze.
   ========================================================================== */
body { font-weight: 400; }
/* Logo d'origine : pictogramme et nom en Fraunces 600 */
.logo, .logo:hover { color: var(--encre); font-family: "Fraunces", Georgia, serif; font-style: normal; font-weight: 600; letter-spacing: -.03em; }

.tiwup-card { font-size: 1.6rem; line-height: 1.16; font-weight: 400; }
.masonry .tiwup-card, .masonry .tiwup-card--lagon { font-size: 1.45rem; }
.tiwup-card--plume,  .style-picker__option.tiwup-card--plume  { background: var(--carte-encre);    color: var(--encre); border: 1px solid var(--carte-encre-bord); }
.tiwup-card--lagon,  .style-picker__option.tiwup-card--lagon  { background: var(--carte-petrole);  color: var(--encre); border: 1px solid var(--carte-petrole-bord); }
.tiwup-card--abysse, .style-picker__option.tiwup-card--abysse { background: var(--carte-nuit);     color: var(--encre); border: 1px solid var(--carte-nuit-bord); }
.tiwup-card--aurore, .style-picker__option.tiwup-card--aurore { background: var(--carte-bordeaux); color: var(--encre); border: 1px solid var(--carte-bordeaux-bord); }
.tiwup-card--ecume,  .style-picker__option.tiwup-card--ecume  { background: var(--carte-prune);    color: var(--encre); border: 1px solid var(--carte-prune-bord); }
.tiwup-card--papier, .style-picker__option.tiwup-card--papier { background: var(--carte-bronze);   color: var(--encre); border: 1px solid var(--carte-bronze-bord); }
.tiwup-card--plume  .tiwup-card__prefix { color: var(--carte-encre-doux); }
.tiwup-card--lagon  .tiwup-card__prefix { color: var(--carte-petrole-doux); }
.tiwup-card--abysse .tiwup-card__prefix { color: var(--carte-nuit-doux); }
.tiwup-card--aurore .tiwup-card__prefix { color: var(--carte-bordeaux-doux); }
.tiwup-card--ecume  .tiwup-card__prefix { color: var(--carte-prune-doux); }
.tiwup-card--papier .tiwup-card__prefix { color: var(--carte-bronze-doux); }
.tiwup-card .tiwup-card__icon, .tiwup-card--plume .tiwup-card__icon, .tiwup-card--abysse .tiwup-card__icon { background: rgba(255,255,255,.1); color: var(--encre); }
.tiwup-card .avatar--initial { background: rgba(255,255,255,.14); color: var(--encre); }
.tiwup-card__fav .act:hover, .tiwup-card--abysse .tiwup-card__fav .act:hover { background: rgba(255,255,255,.12); }
.masonry .tiwup-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.example__card, .example__card.tiwup-card--lagon { background: var(--carte-nuit); color: var(--encre); border: 1px solid var(--carte-nuit-bord); }
.example__card .tiwup-card__prefix { color: var(--carte-nuit-doux); }
.example__card .hero__ending { color: var(--encre); }
.tiwup-card .sponsored-card__cta, .tiwup-card .sponsored-card__cta:visited { background: var(--lagon); color: var(--sur-accent); }
.tiwup-card .sponsored-card__cta:hover { background: var(--encre); color: var(--sur-accent); }
.stats__delta--up { color: var(--succes); }
:focus-visible { outline-color: var(--focus); }
.style-picker__option:has(input:focus-visible), .pack:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.style-picker__option:has(input:checked) { box-shadow: 0 0 0 3px var(--encre); }   /* choisie : anneau clair, distinct du citron du focus */
::selection { background: var(--lagon); color: var(--sur-accent); }
.tiwup-card__prefix, .hero__prefix { font-style: italic; }
h1, h2, .about__title, .feed__title { letter-spacing: -.01em; }
/* Profil : tuiles de chiffres sobres, toutes pareilles */
.profile__stat--tiwups, .profile__stat--followers, .profile__stat--following, .profile__stat--likes { --stat-bg: var(--papier); }
.profile__stat > a, .profile__stat > div { border: 1px solid var(--trait); color: var(--encre); }
.profile__stat > a:hover { box-shadow: 0 6px 16px rgba(0,0,0,.4); border-color: var(--lagon); }
/* Les cartes de Tiwup gardent leurs teintes profondes dans les deux modes : à l'intérieur, les couleurs restent celles du mode sombre */
.tiwup-card, .style-picker__option {
	--encre: #F4F1EA; --encre-douce: #C9CBD6; --titre: #F4F1EA; --lagon-fonce: #D7FF3F; --trait: rgba(255,255,255,.18);
	--papier: #17181F; --ecume: rgba(255,255,255,.12); --aurore-fonce: #FFB07A; --erreur: #FF7A6B; --succes: #6FDB8C; --focus: #D7FF3F;
}
/* Bouton « Mode clair / Mode sombre » du menu : même allure que les liens voisins */
/* Bouton soleil / lune du menu : la lune invite à passer au sombre, le soleil à revenir au clair */
.theme-toggle { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; background: none; border: 0; border-radius: 999px; color: var(--encre); cursor: pointer; }
.theme-toggle:hover { background: var(--ecume); }
.theme-toggle__moon { display: block; }
.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="light"] .style-picker__option:has(input:checked) { box-shadow: 0 0 0 3px var(--encre); }
html[data-theme="light"] .masonry .tiwup-card:hover { box-shadow: 0 12px 30px rgba(20,18,31,.25); }
html[data-theme="light"] .profile__stat > a:hover { box-shadow: 0 6px 16px rgba(20,18,31,.12); border-color: var(--encre); }
@media (max-width: 640px) { .site-header__nav > .theme-toggle { width: auto; height: auto; justify-items: start; padding: .6rem .2rem; border-top: 1px solid var(--trait); border-radius: 0; } .site-header__nav > .theme-toggle:hover { background: none; } }
/* Pastilles numérotées de l'accueil : chiffre sombre sur le jaune-vert, dans les deux modes */
.steps__num { color: var(--sur-accent); }
/* Changement de langue : drapeau de l'autre langue, à côté du soleil / de la lune */
.lang-switch { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; }
.lang-switch:hover { background: var(--ecume); }
.lang-switch .flag { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
@media (max-width: 640px) { .site-header__nav > .lang-switch { width: auto; height: auto; justify-items: start; padding: .6rem .2rem; border-top: 1px solid var(--trait); border-radius: 0; } .site-header__nav > .lang-switch:hover { background: none; } }
/* Le drapeau et la lune portent leur nom dans le menu du téléphone, comme les autres lignes ;
   sur grand écran l'icône seule suffit, le nom reste lu par les lecteurs d'écran via aria-label. */
.lang-switch__name, .theme-toggle__name { display: none; }
@media (max-width: 640px) {
	.site-header__nav > .lang-switch, .site-header__nav > .theme-toggle { grid-auto-flow: column; justify-content: start; align-items: center; gap: .6rem; }
	.site-header__nav > .lang-switch .lang-switch__name, .site-header__nav > .theme-toggle .theme-toggle__name { display: inline; font-size: 1rem; color: var(--encre); }
}
/* Accueil : « À toi : dans quel monde t'es-tu réveillé ? » — l'appel à participer, bien visible */
.write-now__title { font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.5rem, 4.8vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; text-align: center; color: var(--encre); margin: 0 0 1.1rem; }
/* Accueil : note moyenne des avis sous l'accroche, et étiquette « Exemple » plus lisible */
.about__rating { margin: -1.2rem 0 2rem; text-align: center; }
.about__rating a { display: inline-flex; align-items: center; gap: .45rem; color: var(--encre); text-decoration: none; font-size: 1rem; }
.about__rating a:hover { text-decoration: underline; }
.about__rating .stars { font-size: 1.1rem; }
.about__rating__count { color: var(--encre-douce); }   /* seulement le nombre d'avis : les étoiles gardent leur jaune */
.example__label { font-size: 1rem; letter-spacing: .1em; }
/* Mentions « @pseudo » : lien vers le profil dans la carte, et liste de suggestions sous le champ d'écriture */
.tiwup-card .mention { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.tiwup-card .mention:hover { text-decoration-color: currentColor; }
.mention-suggest { list-style: none; margin: .3rem 0 0; padding: .3rem; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--radius-small); box-shadow: var(--shadow); }
.mention-suggest li button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .35rem .6rem; background: none; border: 0; border-radius: 10px; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.mention-suggest li button:hover, .mention-suggest li.is-active button { background: var(--ecume); }
.mention-suggest img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.mention-suggest small { color: var(--encre-douce); font-size: .85em; }
.comment__body .mention { color: var(--lagon-fonce); text-decoration: none; }
.comment__body .mention:hover { text-decoration: underline; }
.comment-form { position: relative; }
.comment-form .mention-suggest { position: absolute; left: 0; right: 0; z-index: 5; }
/* Hashtags : sous la carte, sur la page d'un Tiwup seulement */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0 0; }
.post-tags__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-douce); }
.post-tags__tag { display: inline-block; padding: .35rem .75rem; min-height: 32px; line-height: 1.5; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre); text-decoration: none; font-size: .9rem; }
.post-tags__tag:hover { background: var(--ecume); border-color: var(--encre-douce); }
/* Page d'un hashtag */
.tag-page__title { font-family: var(--font-tiwup); font-size: 2.1rem; margin: 0 0 .2rem; }
.tag-page__intro { color: var(--encre-douce); margin: 0 0 1.4rem; }
/* Administration des hashtags */
.hashtags-admin__list { list-style: none; margin: .6rem 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.hashtags-admin__list .hashtag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); }
.hashtag--blocked { opacity: .65; }
.hashtag__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.hashtag__tag { font-weight: 600; color: var(--encre); text-decoration: none; }
.hashtag__tag:hover { text-decoration: underline; }
.hashtag__mark { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--erreur); }
.hashtag__meta { font-size: .85rem; color: var(--encre-douce); }
.hashtags-admin__add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Administration > Tiwups automatiques : cases à cocher et boutons d'ensemble */
.auto-item__pick { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: .9rem; font-weight: 600; }
.auto-admin__actions { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: .8rem; margin-top: 1.5rem; padding: .9rem 1rem;
	border-top: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); box-shadow: var(--shadow); }
.auto-admin__actions .auto-item__pick { margin: 0; }
.auto-admin__actions-buttons { display: flex; gap: .6rem; }

/* Profil : la présentation se modifie sur place */
/* Présentation : centrée comme la photo et le nom ; « (Modifier) » discret à sa suite */
.profile__bio-edit { margin: .4rem 0 1rem; text-align: center; }
.profile__bio-edit .profile__bio { margin: 0 auto; }
.profile__bio-link { white-space: nowrap; font-family: var(--font-ui); font-size: .8rem; color: var(--encre-douce); }
.profile__bio-link .link-button { font-family: inherit; font-size: inherit; font-weight: 400; color: inherit; text-decoration: underline; }
.profile__bio-link .link-button:hover { color: var(--encre); }
.profile__bio-form { margin: 0 auto; max-width: 34rem; text-align: left; }
.profile__bio-form input[type=text] { width: 100%; }
.profile__bio-form .field__help { margin-top: .25rem; }
.profile__bio-buttons { display: flex; justify-content: flex-end; gap: .5rem; margin: .5rem 0 0; }

/* Clocher : volet des dernières notifications */
.notif-menu { position: relative; display: inline-flex; }
.notif-menu__panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 60; width: min(24rem, calc(100vw - 2rem));
	max-height: min(32rem, calc(100vh - 6rem)); overflow-y: auto; padding: .4rem 0;
	border: 1px solid var(--trait); border-radius: var(--radius-small); background: var(--papier); box-shadow: var(--shadow); }
.notif-menu__head { margin: 0; padding: .6rem .9rem .5rem; font-weight: 700; color: var(--titre); border-bottom: 1px solid var(--trait); }
.notif-menu__body .notifications__list { margin: 0; padding: 0; list-style: none; }
.notif-menu__body .notification { padding: .6rem .9rem; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0;
	background: none; font-size: .88rem; gap: .6rem; }
.notif-menu__body .notification--unread { border-left: 0; background: var(--lilas); }
.notif-menu__body .notification:last-child { border-bottom: 0; }
.notif-menu__body .notification__quote { display: block; font-size: .85rem; }
.notif-menu__body .notification time { font-size: .76rem; }
.notif-menu__body .notifications__empty { margin: 0; padding: 1rem .9rem; color: var(--encre-douce); }
.notif-menu__all { margin: 0; padding: .6rem .9rem .3rem; text-align: center; border-top: 1px solid var(--trait); }
.notif-menu__all a { font-size: .9rem; font-weight: 600; }
/* Sur téléphone le clocher est à gauche dans le menu déplié : aucun décalage, sinon le volet sort de l'écran */
@media (max-width: 40rem) { .notif-menu__panel { right: 0; } }

/* Crayon devant « Écrire un Tiwup » */
.button__icon { display: inline-block; vertical-align: -.15em; margin-right: .4em; }
/* Carte de l'auteur sous un Tiwup : bouton S'abonner bien visible */
.post-author__follow { margin-top: .6rem; }
.post-author__follow .follow-button { min-height: 44px; padding-left: 1.2rem; padding-right: 1.2rem; }

/* Paramètres : rien d'enregistré, un champ refusé */
.notice--error { background: var(--erreur-fond); border-color: var(--erreur); }
.notice--error p { margin: 0; color: var(--erreur); font-weight: 600; }
/* Écrire : bouton Publier */
.composer__submit { margin-top: .5rem; }
@media (max-width: 640px) {
	/* Saisie au téléphone : la barre du bas s'efface, le clavier a toute la place */
	html.is-typing .tabbar { display: none; }
	html.is-typing body { padding-bottom: 0; }
	/* Écrire : Publier reste à portée de pouce, collé au-dessus de la barre du bas */
	.composer__submit { position: sticky; bottom: calc(4.2rem + env(safe-area-inset-bottom)); z-index: 20; padding: .6rem 0; background: linear-gradient(to top, var(--plume) 70%, transparent); }
	.composer__submit .button { width: 100%; }
	/* Clavier ouvert : le bouton reprend sa place, pour ne pas couvrir le compteur sous le champ */
	html.is-typing .composer__submit { position: static; background: none; }
}

/* ---------- Téléphone : cibles tactiles d'au moins 44 px (tests mobiles) ---------- */
@media (max-width: 640px) {
	/* Barre d'actions d'une carte : chaque bouton fait au moins 44 × 44 ; « Signaler » est écarté de « Partager » */
	.tiwup-actions .act { min-height: 44px; min-width: 44px; justify-content: center; }
	.tiwup-actions .act--report { margin-left: .9rem; }
	.vote__info { min-width: 44px; min-height: 44px; }
	/* « Voir l'original » reste discret à l'œil, mais sa zone de toucher fait 44 px de haut */
	.tiwup-card__translation .link-button { position: relative; }
	.tiwup-card__translation .link-button::after { content: ""; position: absolute; left: -.6rem; right: -.6rem; top: 50%; height: 44px; transform: translateY(-50%); }
	/* Sous les commentaires : Répondre, Modifier, Supprimer, Signaler bien séparés et hauts de 44 px */
	.comment__actions { gap: 0 1.4rem; align-items: center; font-size: .9rem; }
	.comment__more summary, .comment__delete button, .comment__report { display: inline-flex; align-items: center; min-height: 44px; }
	.comment__more[open] summary { min-height: 36px; }
	/* Page de son Tiwup : épingler, corriger, supprimer, chacun sur sa ligne, et « Supprimer » à l'écart */
	.post-page__pin .link-button, .post-page__edit > a, .post-page__delete a { display: inline-flex; align-items: center; min-height: 44px; }
	.post-page__delete { margin-top: 1.4rem; }
	/* Carte « Comptes à suivre » : la croix */
	.suggest__close { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
	.suggest .follow-button, .follow-nudge .follow-button { min-height: 44px; }
	.post-page__back a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Accueil : le bouton « Écrire un Tiwup » remplace le formulaire */
.write-now__cta { margin: 0; }
.write-now__button { display: inline-flex; align-items: center; justify-content: center; gap: .1rem; min-height: 52px; padding-left: 2rem; padding-right: 2rem; font-size: 1.1rem; box-shadow: var(--shadow); }
@media (max-width: 640px) {
	.write-now { padding: .2rem 0 1.4rem; }
	.write-now__title { font-size: 1.05rem; margin-bottom: .7rem; }
	.write-now__button { width: 100%; }
}

/* Recherche, liste de membres, écran étroit : le bouton S'abonner passe sous le nom sans dépasser l'écran
   (sa marge à gauche + 100 % de largeur faisaient glisser la page sur le côté) */
@media (max-width: 480px) {
	.person .follow-form, .person > a.follow-button { flex: 0 0 calc(100% - 46px - .8rem); max-width: calc(100% - 46px - .8rem); box-sizing: border-box; }
	.person .follow-form .follow-button { width: 100%; box-sizing: border-box; margin-top: .55rem; }
}

/* Profil : S'abonner juste sous le nom */
.profile__handle + .profile__actions { margin-top: .8rem; }
@media (max-width: 640px) { .profile__handle + .profile__actions .follow-button { min-height: 44px; min-width: 11rem; } }

/* Onglet Abonnements : les comptes suivis sous leurs Tiwups */
.following-list { max-width: 44rem; margin: 2.2rem auto 0; scroll-margin-top: 5rem; }
.following-list__title { font-size: 1.15rem; margin: 0 0 .4rem; }
.following-list .suggest--inline { margin-top: 1.6rem; }

/* Lire par thème : catégorie cliquable sur les cartes, pastilles des catégories */
.tiwup-card__category { color: inherit; text-decoration: none; }
.tiwup-card__category:hover { text-decoration: underline; }
.category-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem 0 .9rem; margin: 0 0 .6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav--wrap { flex-wrap: wrap; overflow: visible; }
.category-nav .post-tags__tag { flex: none; display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; }
.category-nav .post-tags__tag[aria-current="page"] { background: var(--abysse); color: var(--sur-accent); }
.category-page__icon { display: inline-grid; vertical-align: middle; margin-right: .5rem; }
.category-page__icon svg { width: 1.6rem; height: 1.6rem; }
.profile__actions + .profile__bio, .profile__actions + .profile__link { margin-top: 1rem; }
/* Menu ☰ du téléphone : « Catégories » en tête ; cloche et profil retirés (déjà dans la barre du bas) ; déconnexion en dernier */
.site-header__categories { display: none; }
@media (max-width: 640px) {
	.site-header__nav > .site-header__categories { display: block; order: -1; border-top: 0; }
	.site-header__nav > .notif-menu, .site-header__nav > .site-header__profile { display: none; }
	.site-header__nav > .site-header__logout { order: 10; }
}
/* Écrire : formulaire court (comme l'ancien encart de l'accueil) ; « Personnaliser » déplie l'aperçu et la couleur */
.composer__form { max-width: none; margin: 0; }
.composer__form .field__error, .composer__form .error { margin: 0; }
.composer__custom summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--lagon-fonce); padding: .4rem 0; min-height: 2.75rem; display: flex; align-items: center; }
.composer__custom[open] summary { margin-bottom: .4rem; }
.composer__custom .field { margin: .6rem 0 0; }
.composer__custom summary { gap: .4rem; } .composer__custom-icon { flex: none; }
/* Accueil : bouton « Écrire un Tiwup » un peu plus grand ; « Rejoindre Tiwup » après les 3 étapes */
.write-now__button { min-height: 60px; padding-left: 2.6rem; padding-right: 2.6rem; font-size: 1.25rem; }
.write-now__button .button__icon { width: 22px; height: 22px; }
.about__join { margin: -1rem 0 2.5rem; text-align: center; }
@media (max-width: 640px) { .about__join-button { width: 100%; } .about__join { margin-top: -1.5rem; } }
.write-now__button { min-width: 16rem; }
a.follow-button, .follow-button { text-align: center; justify-content: center; }

/* Administration > Organisations */
.org-badge { display:inline-block; margin-left:.4em; padding:.1em .6em; border-radius:999px; font-size:.8em; font-weight:600; vertical-align:middle; background:var(--surface-2,#e9e6df); }
.org-badge--approved { background:#dff3e4; color:#1d6b33; }
.org-badge--rejected, .org-badge--banned { background:#fbe3e1; color:#a3261b; }
.org-detail dd { margin:0 0 .7rem; }
.org-actions { display:flex; flex-direction:column; gap:.8rem; margin:1rem 0; }
.org-actions .inline-form { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.org-list { list-style:none; padding:0; }
.org-row { padding:.7rem 0; border-bottom:1px solid var(--border,#e2dfd8); }

.org-row--check { display:flex; gap:.7rem; align-items:flex-start; }
.org-row--check input[type=checkbox] { margin-top:.3rem; width:1.2rem; height:1.2rem; flex:none; }
.org-bulk__actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
