/*
	Nouvelle interface (includes/interface.php) : feuille unique, pensée d'abord pour le téléphone.
	Tailles : téléphone par défaut ; tablette à partir de 700 px (colonne de droite) ; ordinateur
	à partir de 1100 px (navigation à gauche, en-tête complet).
*/

@font-face { font-family: 'Netto'; src: url('../font/NettoWeb.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Netto'; src: url('../font/NettoWeb-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root
{
	--ardoise: #2B2F36;
	--ardoise-claire: #3B404A;
	--fond: #9CAAC7;
	--fond-bas: #7486AE;
	/* Dégradé bleu du site (ancienne interface : templates/img/fond.jpg, 1500 px de haut) */
	--degrade: linear-gradient(#8B97AF 0, #9CAAC7 6px, #98A6C3 200px, #909FBE 500px, #8696B8 800px, #7486AE 1500px) no-repeat 0 0 / 100% 1500px;
	--sur-fond: #1E2433;
	--sur-fond-doux: #2F3A52;
	--carte: #FFFFFF;
	--texte: #1E2129;
	--texte-doux: #3A3F4B;
	--texte-discret: #5F6675;
	--trait: #D5DBE7;
	--trait-leger: #EEF1F6;
	--champ: #B8C1D3;
	--vert: #A3BB0F;
	--vert-texte: #1E2400;
	--vert-fonce: #5E6C00;
	--vert-pale: #EEF3D2;
	--rouge: #CE4A2C;
	--rouge-fonce: #B03A2E;
	--alerte: #C0392B;
	--lien: #2E5C9A;
	--rayon: 16px;
	--police-titre: 'Netto', -apple-system, 'Helvetica Neue', Arial, sans-serif;
	--police: -apple-system, 'Helvetica Neue', Arial, sans-serif;
	--hauteur-nav-mobile: 72px;
}

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

body
{
	margin: 0;
	background: var(--degrade), var(--fond-bas);
	color: var(--texte);
	font: 16px/1.45 var(--police);
	-webkit-text-size-adjust: 100%;
	/* Pied de page collé en bas, même quand la page est courte */
	min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex-grow: 1; }

a { color: var(--lien); }
a:hover { color: #1F416E; }
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* 16 px au moins dans les champs : sinon Safari sur iPhone zoome au toucher */
input, select, textarea { font-size: 16px; }

.invisible
{
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--carte); border-radius: 8px; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }

/* Boutons */
.bouton
{
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px;
	font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bouton--vert { background: var(--vert); color: var(--vert-texte); }
.bouton--vert:hover { background: #B3CB1F; color: var(--vert-texte); }
.bouton--sombre { background: var(--ardoise); color: #FFFFFF; }
.bouton--sombre:hover { background: var(--ardoise-claire); color: #FFFFFF; }
.bouton--clair { background: #FFFFFF; color: var(--texte); }
.bouton--large { width: 100%; }
.bouton-icone
{
	width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent;
	color: var(--texte-discret); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bouton-icone:hover { background: var(--trait-leger); }
.pilule
{
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0;
	border-radius: 22px; background: var(--trait-leger); color: var(--texte-doux);
	font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.lien-fort { font-size: 14px; font-weight: 700; text-decoration: none; }
.pastille
{
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--alerte); color: #FFFFFF;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--ardoise); color: #FFFFFF; }
.entete__barre
{
	max-width: 1240px; margin: 0 auto; padding: 8px 8px 8px 12px;
	display: flex; align-items: center; gap: 8px;
}
.logo { display: flex; align-items: center; gap: 6px; color: #FFFFFF; text-decoration: none; margin-right: auto; }
.logo:hover { color: #FFFFFF; }
.logo img { width: 36px; height: 36px; }
/* Pastille « Bêta » collée sur le ver (et rappelée dans le pied de page) */
.logo { position: relative; }
.logo__beta
{
	display: inline-block; padding: 2px 5px; border-radius: 6px; background: var(--vert); color: var(--vert-texte);
	font: 700 9px/1 var(--police); letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.logo .logo__beta { position: absolute; left: -2px; bottom: -5px; transform: rotate(-8deg); pointer-events: none; }
.pied__beta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.logo__texte { display: flex; flex-direction: column; line-height: 1; }
.logo__nom { font: 700 23px/1 var(--police-titre); letter-spacing: .5px; }
.logo__devise { display: none; font: 12px/1.2 var(--police-titre); color: #C9CFDA; white-space: nowrap; }
.recherche { display: none; }
.entete__icone
{
	position: relative; width: 44px; height: 44px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; border-radius: 22px;
}
.entete__icone:hover { background: var(--ardoise-claire); color: #FFFFFF; }
.entete__participer, .entete__notifications, .menu-compte { display: none; }
/* Visiteur : icône de connexion comme le dé, « Inscription » en blanc ; sur téléphone la loupe
   laisse sa place (la recherche est dans la barre du bas) */
.entete__inscription { padding: 0 14px; }
.entete__inscription:hover { background: #E9F3C4; color: var(--texte); }
@media (max-width: 699px) { .entete__barre:has(.entete__inscription) .entete__loupe { display: none; } }
@media (max-width: 379px)
{
	.entete__barre:has(.entete__inscription) .entete__hasard { display: none; }
	.entete__barre:has(.entete__inscription) .logo__nom { font-size: 20px; }
}

.avatar
{
	position: relative; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
	background: #6C7A96; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
	font: 700 16px/1 var(--police-titre);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--grand { width: 48px; height: 48px; font-size: 21px; }

/* Menu du compte : voir la fin de la feuille (« Menu du compte, comme la maquette ») */

/* Barre du bas (téléphone) */
.nav-mobile
{
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
	padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--carte); border-top: 1px solid var(--trait);
}
.nav-mobile a
{
	position: relative; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	color: var(--texte-discret); text-decoration: none; font-size: 11px;
}
.nav-mobile a[aria-current] { color: var(--texte); font-weight: 700; }
.nav-mobile .pastille { top: 2px; right: auto; left: calc(50% + 4px); }
.nav-mobile .nav-mobile__participer
{
	justify-self: center; width: 56px; height: 56px; border-radius: 28px;
	background: var(--vert); color: var(--vert-texte); box-shadow: 0 4px 12px rgba(43, 47, 54, .25);
}

/* Mise en page */
.mise-en-page { max-width: 1240px; margin: 0 auto; }
.colonne-gauche, .colonne-droite { display: none; }
.fil { min-width: 0; }

.onglets
{
	position: sticky; top: 60px; z-index: 10; display: flex; overflow-x: auto;
	background: var(--ardoise); scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a
{
	flex: 1 0 auto; display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 14px;
	color: #C9CFDA; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.onglets a[aria-current] { color: #FFFFFF; box-shadow: inset 0 -3px 0 var(--vert); }

.fil__cartes { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 16px; }
.fil__suite { align-self: center; margin: 8px 0; }
.fil__fin { text-align: center; color: var(--sur-fond-doux); }

/* Carte d'un envoi */
.carte { background: var(--carte); display: flex; flex-direction: column; }
.carte__meta
{
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 12px 14px 4px;
	font-size: 13px; line-height: 1.3; color: var(--texte-discret);
}
.carte__etiquettes { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 700px) { .carte__etiquettes { margin-left: auto; } }
.carte__meta a { color: var(--texte-doux); font-weight: 600; text-decoration: none; }
.thema
{
	padding: 3px 9px; border-radius: 8px; background: var(--thema); color: var(--thema-texte) !important;
	font: 700 13px/1.3 var(--police-titre) !important; letter-spacing: .2px; text-decoration: none;
}
.carte__selection { display: inline-flex; align-items: center; gap: 3px; color: var(--vert-fonce); font-weight: 700; }
.carte__titre { margin: 0; padding: 2px 14px 12px; font: 700 20px/1.22 var(--police-titre); letter-spacing: .1px; }
.carte__titre a { color: var(--texte); text-decoration: none; }
.carte__media { position: relative; display: block; background: #1E2129; overflow: hidden; }
.carte__media img, .carte__media video
{
	display: block; width: 100%; height: auto; max-height: 75vh; object-fit: cover; object-position: top;
}
.carte__lecture
{
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 68px; height: 68px; border: 0; border-radius: 34px; background: rgba(255, 255, 255, .94); color: var(--ardoise);
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .15s;
}
button.carte__lecture { cursor: pointer; }
button.carte__lecture:hover { transform: translate(-50%, -50%) scale(1.06); }
.carte__media--lancee .carte__lecture { display: none; }
.carte__media--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte__media--video video { max-height: 75vh; object-fit: contain; background: #000; }
.carte__media--masque { min-height: 240px; }
.carte__media--masque img, .carte__media--masque video { filter: blur(18px) brightness(.85); transform: scale(1.1); }
.carte__masque
{
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	color: #FFFFFF; font-size: 16px; text-align: center;
}
.carte__media--revele img, .carte__media--revele video { filter: none; transform: none; }
.carte__media--revele .carte__masque { display: none; }
.carte__extrait { margin: 0; padding: 0 12px 4px; color: var(--texte-doux); font-size: 15px; }
.carte__actions { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.espace { flex-grow: 1; }
.carte__meilleur
{
	display: flex; flex-direction: column; gap: 2px; margin: 0 14px 14px; padding: 10px 12px; border-radius: 10px;
	background: #F3FBC4; color: var(--texte-doux); font-size: 14px; text-decoration: none;
}
.carte__meilleur small { color: var(--texte-discret); font-size: 12px; }
.carte__meilleur strong { color: var(--texte-doux); }

/*
	Vote : une gélule, flèche verte pour, rouge contre, score au milieu. Au survol, la flèche se
	remplit de sa couleur ; après le vote, la gélule prend la teinte du vote.
*/
.vote
{
	display: inline-flex; align-items: center; height: 42px; padding: 3px; border-radius: 21px;
	background: var(--trait-leger); box-shadow: inset 0 0 0 1px var(--trait);
}
.vote a
{
	width: 36px; height: 36px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
	transition: background-color .12s, color .12s, transform .12s;
}
.vote__pour { color: var(--vert-fonce); }
.vote__contre { color: var(--rouge); }
.vote__pour:hover { background: var(--vert); color: var(--vert-texte); }
.vote__contre:hover { background: var(--rouge); color: #FFFFFF; }
.vote a:active { transform: scale(.92); }
.vote__score { min-width: 30px; padding: 0 2px; text-align: center; font: 700 16px/1 var(--police-titre); color: var(--texte); }
.vote--pour { background: var(--vert-pale); box-shadow: inset 0 0 0 1px #CBD98A; }
.vote--pour .vote__pour { background: var(--vert); color: var(--vert-texte); }
.vote--pour .vote__score { color: var(--vert-fonce); }
.vote--contre { background: #FBE6E1; box-shadow: inset 0 0 0 1px #EDB9AC; }
.vote--contre .vote__contre { background: var(--rouge); color: #FFFFFF; }
.vote--contre .vote__score { color: var(--rouge-fonce); }

/* Type d'envoi (couleur de la base) et croix rose / noire */
.type
{
	display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px;
	background: #F1F3F7; background: color-mix(in srgb, var(--type) 22%, #FFFFFF); color: var(--texte-doux);
	font-size: 12px; font-weight: 700; white-space: nowrap;
}
.type::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--type); }
.croix { display: inline-flex; flex-shrink: 0; }
.croix svg { display: block; }
.masque
{
	position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	padding: 16px 20px; text-align: center; color: #FFFFFF; cursor: pointer; overflow: hidden;
}
.masque--rose { background: rgba(214, 47, 132, .5); }
.masque--rose .masque__texte { text-shadow: 0 1px 3px rgba(90, 10, 50, .6); }
.masque--noire { background: rgba(24, 24, 27, .86); }
.masque .croix svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.masque--rose .croix circle { fill: #FFFFFF; }
.masque--rose .croix path { stroke: #D62F84; }
.masque__texte { max-width: 440px; font: 700 14px/1.35 var(--police-titre); letter-spacing: .1px; }
@media (min-width: 700px) { .masque__texte { font-size: 16px; line-height: 1.4; } }
.carte__media--revele .masque { display: none; }

/* Encarts de la colonne de droite */
.encart { background: var(--carte); border-radius: var(--rayon); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.encart h2, .encart__titre { margin: 0; display: flex; align-items: center; gap: 8px; font: 700 18px/1.2 var(--police-titre); }
.encart--soutien { padding: 0; gap: 0; overflow: hidden; }
.encart__banniere .soutien { display: block; }
/* Bannière moins haute : recadrée sur le texte et le ver */
.encart__banniere img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 75%; }
.encart__banniere { font-size: 12px; color: var(--texte-discret); }
.encart__banniere p { margin: 8px 16px 0; }
/* Sous la bannière : le bouton, serré */
.encart__corps { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.encart__corps .bouton { min-height: 40px; }
.liste-chaudes, .liste-classement { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.liste-chaudes a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--texte); text-decoration: none; }
.liste-chaudes span:last-child { display: flex; flex-direction: column; }
.liste-chaudes small { color: var(--texte-discret); font-size: 12px; }
.pastille-thema
{
	width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--thema); color: var(--thema-texte);
	display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.liste-classement li { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; }
.liste-classement .rang { display: block; width: 22px; min-height: 0; padding: 0; border: 0; font-weight: 700; color: var(--texte-discret); }
.liste-classement a { flex-grow: 1; color: var(--texte); font-weight: 600; text-decoration: none; }
.liste-classement .score { color: var(--texte-discret); }

/* Pied de page */
.pied { margin-top: 24px; padding-bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom)); color: #C9CFDA; }
/* Le paysage laisse voir le dégradé de la page ; le sombre commence sous l'herbe */
.pied { background: linear-gradient(transparent 185px, var(--ardoise) 185px); }
@media (min-width: 700px) { .pied { background: linear-gradient(transparent 370px, var(--ardoise) 370px); } }
/* Paysage du Lombrik répété sur toute la largeur, comme dans l'ancienne interface */
.pied__paysage
{
	height: 185px; background: url('../img/lelombrikland.png') repeat-x center bottom / auto 185px;
}
/* Image entière (370 px) : la couper laissait voir le bord de son halo, une ligne dans le ciel */
@media (min-width: 700px) { .pied__paysage { height: 370px; background-size: auto; } }
.pied__contenu { max-width: 1240px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied__liens a, .pied__bas a { color: #FFFFFF; text-decoration: none; font-size: 14px; }
.pied__liens a:hover, .pied__bas a:hover { text-decoration: underline; }
.pied__bas { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
.pied__bas span a { color: #C9CFDA; }

/* Tablette */
@media (min-width: 700px)
{
	.entete__barre { padding: 10px 20px; gap: 14px; }
	.logo img { width: 40px; height: 40px; }
	.logo__nom { font-size: 26px; }
	.recherche
	{
		display: flex; align-items: center; gap: 8px; flex: 1 1 auto; max-width: 560px; height: 42px; padding: 0 14px;
		border-radius: 21px; background: var(--ardoise-claire); color: #C9CFDA;
	}
	.recherche input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #FFFFFF; }
	.recherche input::placeholder { color: #C9CFDA; }
	.recherche:focus-within { background: #FFFFFF; color: var(--texte-discret); }
	.recherche:focus-within input { color: var(--texte); }
	.entete__loupe { display: none; }
	.entete__participer, .entete__notifications { display: inline-flex; }
	.menu-compte { display: block; }
	.menu-compte__pseudo { display: none; }

	.mise-en-page { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; }
	.fil { flex: 1 1 auto; }
	.onglets { position: static; border-radius: var(--rayon); margin-bottom: 14px; }
	.fil__cartes { padding: 0; gap: 16px; }
	.carte { border-radius: var(--rayon); overflow: hidden; }
	.carte__titre { font-size: 21px; padding: 0 16px 12px; }
	.carte__meta { padding: 14px 16px 6px; }
	.carte__actions { padding: 10px 12px; }
	.carte__meilleur { margin: 0 16px 16px; }
	.colonne-droite { display: flex; flex-direction: column; gap: 14px; width: 260px; flex-shrink: 0; }
}

/* Ordinateur */
@media (min-width: 1100px)
{
	.pied { padding-bottom: 0; }
	.nav-mobile { display: none; }
	.logo { width: 250px; margin-right: 0; }
	.logo__devise { display: block; }
	.menu-compte__pseudo { display: inline; }
	.recherche { margin-right: auto; }
	.colonne-gauche
	{
		display: flex; flex-direction: column; gap: 18px; width: 220px; flex-shrink: 0;
		position: sticky; top: 80px;
	}
	.colonne-gauche a
	{
		display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px;
		color: var(--sur-fond); text-decoration: none; font-weight: 600; font-size: 15px;
	}
	/* Fils : un léger fond blanc derrière ceux qui ne sont pas affichés (l'actif est en blanc plein) */
	.colonne-gauche__fils a { background: rgba(255, 255, 255, .22); }
	.colonne-gauche a:hover { background: rgba(255, 255, 255, .45); }
	.colonne-gauche h2 { margin: 0 0 4px 12px; font: 700 12px/1 var(--police); letter-spacing: 1px; text-transform: uppercase; color: var(--sur-fond-doux); }
	.colonne-gauche .point { width: 10px; height: 10px; border-radius: 5px; flex-shrink: 0; }
	.colonne-gauche__fils, .colonne-gauche__abonnements, .colonne-gauche__liens { display: flex; flex-direction: column; gap: 2px; }
	.colonne-gauche__fils { gap: 6px; }
	.colonne-gauche__liens a { font-weight: 400; font-size: 14px; min-height: 34px; }
	.colonne-gauche .lien-fort { color: #1F3D6B; font-size: 14px; }
	.fil { max-width: 680px; }
	.colonne-droite { width: 300px; }
	.onglets { display: none; }
}

/* Message bref (lien copié, erreur de vote) */
.annonce
{
	position: fixed; left: 50%; bottom: calc(var(--hauteur-nav-mobile) + 16px); z-index: 50;
	transform: translate(-50%, 20px); opacity: 0; transition: opacity .2s, transform .2s;
	padding: 10px 16px; border-radius: 20px; background: var(--texte); color: #FFFFFF; font-size: 14px; font-weight: 700;
}
.annonce--visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1100px) { .annonce { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .annonce, .vote a { transition: none; } }

/* Fils de la colonne de gauche : le fil affiché */
.colonne-gauche a[aria-current] { background: var(--carte); color: var(--texte); font-weight: 700; }

/* ---- Page d'un média ---- */
.media-nav { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.media-nav__retour { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--texte-doux); font-weight: 600; text-decoration: none; }
.media-nav .pilule { background: var(--carte); }
.media__titre { margin: 0; padding: 0 12px 12px; font: 700 23px/1.2 var(--police-titre); }
.etiquette { padding: 2px 8px; border-radius: 8px; background: var(--trait-leger); color: var(--texte-doux); font-size: 12px; font-weight: 700; }
.media__contenu { background: #1E2129; }
.media__contenu > img, .media__contenu video, .media__zoom img { display: block; width: 100%; height: auto; max-height: 85vh; object-fit: contain; margin: 0 auto; }
.media__zoom { display: block; cursor: zoom-in; }
.media__externe
{
	position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 16px; background: #1E2129 center / cover no-repeat; color: #FFFFFF; text-align: center;
}
.media__externe::before { content: ''; position: absolute; inset: 0; background: rgba(30, 33, 41, .7); }
.media__externe > * { position: relative; }
.media__externe p { max-width: 420px; margin: 0; font-size: 13px; color: #DDE1E8; }
.media__externe iframe, .media__flash ruffle-player, .media__flash ruffle-object { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__lancer
{
	width: 72px; height: 72px; border: 0; border-radius: 36px; background: var(--vert); color: var(--vert-texte);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.media__flash
{
	position: relative; width: 100%; max-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	color: #FFFFFF; font-weight: 700;
}
.media__flash p, .media__note { margin: 0; }
.media__note { padding: 12px 14px; background: #FFF4DC; color: #5A4300; font-size: 14px; }
.media__son { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 20px 16px; background: var(--ardoise); }
.media__son img { width: 180px; height: 180px; object-fit: cover; border-radius: 14px; }
.media__son audio { width: 100%; max-width: 560px; }
.media__thread { padding: 4px 16px 12px; background: var(--carte); font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.media__thread img { max-width: 100%; height: auto; border-radius: 10px; }
.media__thread blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--trait); color: var(--texte-doux); }
.media__lien { display: flex; flex-direction: column; background: var(--carte); color: var(--texte); text-decoration: none; }
.media__lien img { width: 100%; max-height: 360px; object-fit: cover; }
.media__lien-texte { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--trait-leger); }
.media__lien-externe { position: relative; display: block; }
.media__lien-externe img { width: 100%; opacity: .6; }
.media__lien-externe .bouton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.media__masque-conteneur { position: relative; min-height: 220px; overflow: hidden; }
.media__actions { padding: 12px; }
.media__description { margin: 0; padding: 0 16px 16px; color: var(--texte-doux); font-size: 16px; overflow-wrap: anywhere; }
.vote--grand { height: 48px; border-radius: 24px; }
.vote--grand a { width: 42px; height: 42px; border-radius: 21px; }
.vote--grand .vote__score { min-width: 36px; font-size: 18px; }

/* Commentaires */
.commentaires { margin-top: 8px; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.commentaires__entete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.commentaires__entete h2 { margin: 0; flex-grow: 1; font: 700 19px/1.2 var(--police-titre); }
.commentaires__entete .pilule { height: 36px; font-size: 13px; }
.commentaires__info, .commentaires__vide { margin: 0; color: var(--texte-doux); }
.commentaires__formulaire { display: flex; flex-direction: column; gap: 8px; }
.commentaires__formulaire textarea
{
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--champ); border-radius: 12px; resize: vertical; background: #FFFFFF;
}
.commentaires__outils { display: flex; align-items: center; gap: 8px; }
.commentaires__reponse { margin: 0; font-size: 14px; color: var(--texte-doux); }
.pilule--fichier { position: relative; cursor: pointer; }
.pilule--fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Image ou GIF choisi pour le commentaire (v3.js) */
/* Compteur (près de la limite) et brouillon remis dans le formulaire (v3.js) */
.commentaires__compteur { margin: -2px 0 0; text-align: right; font-size: 12px; color: var(--texte-discret); }
.commentaires__compteur[hidden] { display: none; }
.commentaires__compteur--trop { color: var(--rouge-fonce); font-weight: 700; }
.commentaires__brouillon { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--vert-pale); color: var(--vert-fonce); font-size: 13px; font-weight: 600; }
.commentaires__apercu { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--trait-leger); }
.commentaires__apercu[hidden] { display: none; }
.commentaires__vignette { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.commentaires__vignette img, .commentaires__vignette video { width: 100%; height: 100%; object-fit: cover; display: block; }
.commentaires__fichier { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.commentaires__fichier strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commentaires__fichier small { font-size: 12px; color: var(--texte-discret); }
.lien-bouton { border: 0; padding: 0 8px; min-height: 36px; background: none; color: var(--texte-discret); font-weight: 700; font-size: 13px; cursor: pointer; }
.lien-bouton:hover { color: var(--texte); }
.commentaires__liste { display: flex; flex-direction: column; gap: 18px; }
/* Formulaire passé sous la liste (v3.js) : séparé des commentaires, apparition douce */
.commentaires__bas { padding-top: 14px; border-top: 1px solid var(--trait-leger); animation: apparition .25s ease-out; }
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .commentaires__bas { animation: none; } }
/* Avatar à gauche, le reste du commentaire aligné sur le pseudo */
.commentaire { --decalage: 46px; display: flex; flex-direction: column; }
.commentaire__corps { display: flex; flex-direction: column; gap: 4px; }
.commentaire__tete { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 22px; padding-left: var(--decalage); font-size: 13px; color: var(--texte-discret); }
.commentaire__tete .avatar { position: absolute; left: 0; top: 0; }
.commentaire__pseudo { color: var(--texte); font-weight: 700; font-size: 14px; text-decoration: none; }
.commentaire__pseudo:hover { color: var(--lien); }
.avatar--petit { width: 28px; height: 28px; font-size: 13px; }
.avatar--commentaire { width: 36px; height: 36px; font-size: 15px; text-decoration: none; }
.badge { padding: 1px 7px; border-radius: 8px; background: var(--trait-leger); color: var(--texte-doux); font-size: 12px; font-weight: 700; }
.badge--role { background: var(--ardoise); color: #DDE88A; }
.badge--rang { background: var(--vert-pale); color: var(--vert-fonce); font-weight: 600; }
.commentaire time { font-size: 12px; }
.commentaire__texte { padding-left: var(--decalage); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.commentaire__image { display: block; max-width: min(320px, 100%); max-height: 320px; margin: 4px 0 0 var(--decalage); border-radius: 10px; }
.commentaire__modere { color: var(--texte-discret); }
.commentaire__actions { display: flex; align-items: center; gap: 2px; padding-left: calc(var(--decalage) - 8px); }
.commentaire__actions .lien-bouton { text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; padding: 0 8px; border-radius: 15px; }
.commentaire__actions .lien-bouton:hover { background: var(--trait-leger); }
/* Vote d'un commentaire : discret, flèches seules, couleur au survol ou une fois voté */
.vote--petit { height: 30px; padding: 0; background: none; box-shadow: none; }
.vote--petit a { width: 28px; height: 28px; border-radius: 14px; color: #8A92A3; }
.vote--petit .vote__pour:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.vote--petit .vote__contre:hover { background: #FBE6E1; color: var(--rouge-fonce); }
.vote--petit .vote__score { min-width: 22px; font: 700 13px/1 var(--police); color: var(--texte-doux); }
.vote--petit.vote--pour, .vote--petit.vote--contre { background: none; box-shadow: none; }
.vote--petit.vote--pour .vote__pour { background: none; color: var(--vert-fonce); }
.vote--petit.vote--contre .vote__contre { background: none; color: var(--rouge); }
.vote--bloque a { opacity: .35; pointer-events: none; }
/* Meilleur commentaire : fond jaune-vert, comme dans l'ancienne interface */
.commentaire--meilleur > .commentaire__corps { margin: 0 -10px; padding: 10px; border-radius: 12px; background: #F1FBB8; }
.commentaire__distinction { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 2px; color: var(--vert-fonce); font-size: 12px; font-weight: 700; }
.commentaire__reponses { display: flex; flex-direction: column; gap: 16px; margin: 8px 0 0 17px; padding-left: 16px; border-left: 2px solid var(--trait-leger); }
.commentaire__reponses--plat { margin-left: 0; padding-left: 0; border-left: 0; }
.commentaire--cible > .commentaire__corps { animation: cible 2s ease-out; border-radius: 8px; }
@keyframes cible { from { background: var(--vert-pale); } to { background: transparent; } }

/* Dans le même genre, auteur */
.similaires { padding: 16px 12px; }
.similaires h2 { margin: 0 0 10px; font: 700 18px/1.2 var(--police-titre); }
.similaires__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.similaire { display: flex; flex-direction: column; gap: 6px; color: var(--texte); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; }
.similaire img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--trait); }
.similaires__liste { display: flex; flex-direction: column; gap: 10px; }
.similaires__liste .similaire { flex-direction: row; align-items: center; gap: 10px; }
.similaires__liste .similaire img { width: 88px; flex-shrink: 0; }
.auteur { display: flex; align-items: center; gap: 12px; color: var(--texte); text-decoration: none; }
.auteur span:last-child { display: flex; flex-direction: column; }
.auteur strong { font: 700 18px/1.2 var(--police-titre); }
.auteur .badge { align-self: flex-start; margin: 3px 0 2px; }
.auteur small, .encart__discret { color: var(--texte-discret); font-size: 13px; }
.encart__texte { margin: 0; font-size: 14px; color: var(--texte-doux); }
.encart__titre .thema { font-size: 15px; }
.bouton--clair-bord { background: var(--trait-leger); color: var(--texte); }
/* Dans le même genre : sous les commentaires jusqu'à la tablette, dans la colonne sur ordinateur */
.encart--similaires { display: none; }
@media (min-width: 1100px) { .encart--similaires { display: flex; } }

@media (min-width: 700px)
{
	.media-nav { padding: 0 0 12px; }
	.media__titre { font-size: 28px; padding: 0 18px 14px; }
	.commentaires { margin-top: 16px; padding: 18px 20px; border-radius: var(--rayon); }
	.similaires { padding: 18px 0 0; }
	.similaires__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.media__contenu { border-radius: 0; }
}
@media (min-width: 1100px)
{
	.mise-en-page--media .fil { max-width: none; flex: 1 1 auto; }
	.mise-en-page--media .colonne-droite { width: 320px; }
	.similaires--bas { display: none; }
}
/* Page d'un média : les fils à gauche seulement si le média garde assez de largeur */
@media (min-width: 1100px) and (max-width: 1279px) { .mise-en-page--media .colonne-gauche { display: none; } }
.media__flash--lance > button:not(.media__plein-ecran), .media__flash--lance > p { display: none; }
.media__externe iframe { z-index: 1; }
.pilule[aria-pressed="true"] { background: var(--vert-pale); color: var(--vert-fonce); }
.pilule[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 699px) { .masque-tel { display: none; } .media__actions .pilule { padding: 0 12px; } }
a.pilule:hover, a.pilule:focus { color: var(--texte); }

/* ---- Page d'une thématique ---- */
.thema-bandeau { overflow: hidden; }
.thema-bandeau__liseret { height: 6px; background: var(--thema); }
.thema-bandeau__corps { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.thema-bandeau__haut { display: flex; align-items: center; gap: 12px; }
.thema-bandeau__image
{
	width: 68px; height: 68px; flex-shrink: 0; border-radius: 16px; object-fit: cover; background: var(--thema);
	display: flex; align-items: center; justify-content: center; color: var(--thema-texte); font: 700 28px/1 var(--police-titre);
}
.thema-bandeau__nom { margin: 0; font: 700 26px/1.1 var(--police-titre); overflow-wrap: anywhere; }
.thema-bandeau__stats { font-size: 13px; color: var(--texte-discret); }
.thema-bandeau__equipe { display: block; margin-top: 2px; font-size: 13px; color: var(--texte-discret); }
.thema-bandeau__equipe a { font-weight: 700; color: var(--texte); text-decoration: none; }
@media (min-width: 700px) { .thema-bandeau__equipe { display: none; } }
.thema-bandeau__sujet { margin: 0; font-weight: 700; }
.thema-bandeau__description { margin: 0; color: var(--texte-doux); font-size: 15px; overflow-wrap: anywhere; }
.thema-bandeau__description:empty { display: none; }
.thema-bandeau__boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.thema-bandeau__boutons .bouton { flex: 1 1 auto; }
.thema-bandeau__onglets { display: flex; border-top: 1px solid var(--trait); }
.thema-bandeau__onglets a
{
	flex: 1; height: 46px; display: flex; align-items: center; justify-content: center;
	color: var(--texte-discret); font-weight: 700; text-decoration: none;
}
.thema-bandeau__onglets a[aria-current] { color: var(--texte); box-shadow: inset 0 -3px 0 var(--thema); }
.puces { display: flex; gap: 8px; padding: 10px 12px 2px; overflow-x: auto; scrollbar-width: none; }
.puce
{
	flex-shrink: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px;
	background: var(--carte); border: 1px solid var(--trait); color: var(--texte-doux); font-size: 14px; font-weight: 600; text-decoration: none;
}
.puce--active { background: var(--ardoise); border-color: var(--ardoise); color: #FFFFFF; }
.puce--active:hover { color: #FFFFFF; }
.liste-membres a { display: flex; align-items: center; gap: 10px; }
.liste-membres__autres { padding: 4px 0 0 2px; font-size: 13px; color: var(--texte-discret); }
.mise-en-page--thema .fil__cartes { padding-top: 8px; }
@media (min-width: 700px)
{
	.thema-bandeau__corps { padding: 20px 22px; }
	.thema-bandeau__image { width: 96px; height: 96px; border-radius: 22px; font-size: 38px; }
	.thema-bandeau__nom { font-size: 32px; }
	.thema-bandeau__boutons .bouton { flex: 0 0 auto; }
	.puces { padding: 14px 0 0; }
	.mise-en-page--thema .fil__cartes { padding-top: 14px; }
}
@media (min-width: 1100px)
{
	.mise-en-page--thema .fil { max-width: none; flex: 1 1 auto; }
}

/* Page simple (message, page introuvable) */
.page-simple { max-width: 720px; margin: 24px auto; padding: 24px 20px; background: var(--carte); border-radius: var(--rayon); }
.page-simple h1 { margin: 0 0 8px; font: 700 26px/1.2 var(--police-titre); }

/* ---- Liste des thématiques et pages larges ---- */
.page-large { max-width: 1240px; margin: 0 auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.page-large__entete { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.page-large__entete h1 { margin: 0; font: 700 28px/1.1 var(--police-titre); }
.champ-recherche
{
	display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 23px;
	background: var(--carte); border: 1px solid var(--trait); color: var(--texte-discret);
}
.champ-recherche input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; }
.puces--plates { padding: 0; }
.grille-thema { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grille-thema .fil__suite, .grille-thema .fil__fin { grid-column: 1 / -1; justify-self: center; }
.carte-thema
{
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 14px;
	border-radius: var(--rayon); background: var(--carte);
}
.carte-thema::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--thema); }
.carte-thema .bouton--large { width: auto; align-self: flex-start; min-height: 40px; }
.carte-thema__haut { display: flex; align-items: center; gap: 12px; color: var(--texte); text-decoration: none; }
.carte-thema__haut > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.carte-thema__haut strong { font: 700 19px/1.2 var(--police-titre); overflow-wrap: anywhere; }
.carte-thema__haut small { color: var(--texte-discret); font-size: 13px; }
.carte-thema__image
{
	position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--thema);
	display: flex; align-items: center; justify-content: center; color: var(--thema-texte); font: 700 22px/1 var(--police-titre);
}
.carte-thema__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-thema p { margin: 0; color: var(--texte-doux); font-size: 14px; }
.carte-thema p:empty { display: none; }
@media (min-width: 700px)
{
	.page-large { padding: 22px 20px; }
	.grille-thema { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.page-large__entete h1 { font-size: 32px; }
}
@media (min-width: 1100px) { .grille-thema { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px)
{
	.carte-thema p { min-height: 2.8em; }
	.carte-thema .bouton--large { width: 100%; align-self: stretch; }
}

/* ---- Pages de compte (connexion, mot de passe oublié) ---- */
.compte { max-width: 460px; margin: 0 auto; }
/* Ciel des pages de compte : nuages du site et le ver avec sa bulle (pas le paysage du pied de page) */
.compte__ciel
{
	position: relative; overflow: hidden; height: 170px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 34px;
	background: linear-gradient(#C3CEE4, #9CAAC7);
}
.compte__nuage { position: absolute; background: url('../img/cloud.png') no-repeat center / contain; }
.compte__nuage--1 { width: 150px; height: 95px; left: -30px; top: 18px; opacity: .9; }
.compte__nuage--2 { width: 100px; height: 63px; right: 28px; top: 8px; opacity: .65; }
.compte__nuage--3 { width: 190px; height: 120px; right: -60px; bottom: -48px; opacity: .95; }
.compte__ver { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; animation: ver-flotte 3.2s ease-in-out infinite; }
.compte__ver img { width: 120px; height: auto; filter: drop-shadow(0 6px 8px rgba(30, 36, 51, .25)); }
.compte__bulle
{
	position: absolute; left: calc(100% - 14px); top: -14px; padding: 6px 12px; border-radius: 14px 14px 14px 4px;
	background: #FFFFFF; color: var(--texte); font: 700 14px/1 var(--police-titre); white-space: nowrap; box-shadow: 0 3px 10px rgba(30, 36, 51, .18);
}
@keyframes ver-flotte { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .compte__ver { animation: none; } }
.compte__carte
{
	position: relative; margin-top: -22px; padding: 24px 20px; border-radius: 22px 22px 0 0; background: var(--carte);
	display: flex; flex-direction: column; gap: 14px;
}
.compte__carte h1 { margin: 0; font: 700 26px/1.2 var(--police-titre); }
.compte__intro, .compte__aide { margin: 0; color: var(--texte-doux); font-size: 15px; }
.compte__aide { font-size: 13px; color: var(--texte-discret); }
.compte__erreur { margin: 0; padding: 12px 14px; border-radius: 12px; background: #F8E1DE; color: #7A231A; font-size: 14px; font-weight: 600; }
.compte__succes { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--vert-pale); color: #2F3A00; font-size: 14px; }
.compte__formulaire { display: flex; flex-direction: column; gap: 14px; }
.compte__ligne { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.compte__bas { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--trait-leger); text-align: center; font-size: 15px; color: var(--texte-doux); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 700; }
.champ input
{
	height: 50px; padding: 0 14px; border: 1px solid var(--champ); border-radius: 12px; background: #FFFFFF; width: 100%;
}
.champ input:focus { outline: none; border: 2px solid var(--lien); padding: 0 13px; }
.champ__mdp { position: relative; display: block; }
.champ__mdp input { padding-right: 52px; }
.champ__mdp .bouton-icone { position: absolute; right: 3px; top: 3px; }
.case { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.case input { width: 20px; height: 20px; margin: 0; }
.bouton--fort { min-height: 52px; font: 700 18px/1 var(--police-titre); border-radius: 26px; }
@media (min-width: 700px)
{
	.compte { margin: 28px auto; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(30, 33, 41, .12); }
	.compte__carte { border-radius: 22px 22px 0 0; padding: 28px 30px; }
}

/* ---- Notifications, pages étroites, états vides ---- */
.page-etroite { max-width: 720px; margin: 0 auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.page-etroite > h1 { margin: 0; font: 700 28px/1.1 var(--police-titre); }
.notifs { border-radius: var(--rayon); overflow: hidden; }
.notifs__groupe { margin: 0; padding: 14px 16px 6px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--texte-discret); }
.notifs__liste { list-style: none; margin: 0; padding: 0; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--trait-leger); color: var(--texte); text-decoration: none; }
.notif:hover { background: #F8F9FB; color: var(--texte); }
.notif--nouvelle { background: #F5F8EA; }
.notif__icone { width: 38px; height: 38px; flex-shrink: 0; border-radius: 19px; display: flex; align-items: center; justify-content: center; }
.notif__texte { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.35; }
.notif__extrait { color: var(--texte-doux); font-size: 14px; overflow-wrap: anywhere; }
.notif__texte time { color: var(--texte-discret); font-size: 12px; }
.notif__vignette { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.notif__point { width: 10px; height: 10px; flex-shrink: 0; margin-top: 6px; border-radius: 5px; background: var(--vert-fonce); }
.vide { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; text-align: center; color: var(--texte-doux); }
.vide strong { font: 700 20px/1.2 var(--police-titre); color: var(--texte); }
@media (min-width: 700px) { .page-etroite { padding: 24px 20px; } }

/* ---- Profil d'un membre ---- */
/* En-tête : bannière à la couleur de sa thématique favorite, avatar en surimpression, chiffres */
.profil { position: relative; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--rayon); overflow: hidden; }
.profil__couverture
{
	height: 96px; margin: 0 -16px;
	background:
		radial-gradient(circle at 18% 120%, rgba(255, 255, 255, .28) 0 22%, transparent 23%),
		radial-gradient(circle at 82% -30%, rgba(255, 255, 255, .18) 0 26%, transparent 27%),
		radial-gradient(circle at 60% 140%, rgba(0, 0, 0, .12) 0 20%, transparent 21%),
		linear-gradient(120deg, color-mix(in srgb, var(--profil) 88%, #2B2F36), color-mix(in srgb, var(--profil) 45%, #2B2F36));
}
.profil__haut { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: -48px; }
.avatar--profil { width: 88px; height: 88px; font-size: 38px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--carte), 0 6px 16px rgba(30, 33, 41, .25); }
.profil__identite { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
.profil__identite h1 { margin: 0; font: 700 26px/1.1 var(--police-titre); overflow-wrap: anywhere; }
.profil__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.profil__badges:empty { display: none; }
.profil__modifier { display: none; }
.badge--grand { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 13px; }
.badge--classement { background: var(--vert-pale); color: var(--vert-fonce); }
.mon-compte { border-radius: var(--rayon); display: flex; flex-direction: column; overflow: hidden; }
.mon-compte a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px; color: var(--texte); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--trait-leger); }
.mon-compte a span:first-of-type { flex-grow: 1; }
.mon-compte__sortie { color: var(--rouge-fonce) !important; border-bottom: 0 !important; }
.mon-compte__theme { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--trait-leger); font-weight: 600; }
.mon-compte__theme > span { flex-grow: 1; }
.mon-compte__theme > svg { color: var(--texte-doux); }
.onglets-clairs { display: flex; gap: 4px; padding: 4px; border-radius: 24px; background: var(--carte); align-self: flex-start; }
.onglets-clairs a { height: 38px; padding: 0 20px; border-radius: 19px; display: flex; align-items: center; color: var(--texte-doux); font-weight: 700; text-decoration: none; }
.onglets-clairs a[aria-current] { background: var(--ardoise); color: #FFFFFF; }
.profil__bio { margin: 0; color: var(--texte-doux); overflow-wrap: anywhere; white-space: pre-line; }
.profil__infos { margin: -4px 0 0; font-size: 13px; color: var(--texte-discret); }
.profil__chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chiffre { padding: 10px 12px; border-radius: 12px; background: #F5F7FA; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chiffre__icone { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--profil) 30%, #FFFFFF); color: color-mix(in srgb, var(--profil) 45%, #1E2129); }
.chiffre > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chiffre strong { font: 700 20px/1.1 var(--police-titre); }
.chiffre small { font-size: 12px; color: var(--texte-discret); }

/* Corps : envois, et à côté (dessous sur téléphone) les thématiques */
.page-membre__corps { display: flex; flex-direction: column; gap: 14px; }
.page-membre__envois { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-membre__cote { display: flex; flex-direction: column; gap: 14px; }
.page-membre__cote:empty { display: none; }
.profil-themas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.profil-thema { display: flex; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; border-radius: 10px; color: var(--texte); text-decoration: none; }
.profil-thema:hover { background: var(--trait-leger); color: var(--texte); }
.profil-thema__nom { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profil-thema__nom strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-thema__nom small { font-size: 12px; color: var(--texte-discret); }
.profil-thema__barre { height: 4px; border-radius: 2px; background: var(--trait-leger); position: relative; overflow: hidden; }
.profil-thema__barre::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--part); border-radius: 2px; background: var(--thema); }
/* Téléphone : thématiques en rangée qu'on fait défiler, pour ne pas repousser les envois */
@media (max-width: 699px)
{
	.page-membre__cote .encart { padding: 12px 0 12px 14px; }
	.profil-themas { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 14px; }
	.profil-themas li { flex: 0 0 auto; }
	.profil-thema { margin: 0; padding: 6px 12px 6px 6px; background: #F5F7FA; }
	.profil-thema__barre { display: none; }
}

/* Envois en tuiles ; sans image, une case teintée au type d'envoi */
.grille-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grille-tuiles .fil__suite, .grille-tuiles .fil__fin { grid-column: 1 / -1; justify-self: center; }
.tuile { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--carte); color: var(--texte); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tuile:hover { color: var(--texte); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 33, 41, .15); }
.tuile__image
{
	position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, color-mix(in srgb, var(--type, #9AA3B2) 22%, #FFFFFF), color-mix(in srgb, var(--type, #9AA3B2) 45%, #FFFFFF));
}
.tuile__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile__image--masque img { filter: blur(16px); }
.tuile__type { font: 700 15px/1 var(--police-titre); letter-spacing: .5px; text-transform: uppercase; color: color-mix(in srgb, var(--type, #9AA3B2) 75%, #1E2129); }
.tuile__titre { padding: 8px 10px 4px; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tuile__meta { padding: 0 10px 10px; display: flex; align-items: center; gap: 2px 10px; font-size: 12px; color: var(--texte-discret); flex-wrap: wrap; margin-top: auto; }
.tuile__score { display: inline-flex; align-items: center; gap: 5px; }
.tuile__meta strong { color: var(--texte); }
.tuile__vote { width: 18px; height: 18px; border-radius: 6px; background: var(--vert); color: var(--vert-texte); display: inline-flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .tuile { transition: none; } .tuile:hover { transform: none; } }
@media (min-width: 700px)
{
	.profil { padding: 0 26px 22px; gap: 14px; }
	.profil__couverture { height: 130px; margin: 0 -26px; }
	.profil__haut { flex-direction: row; align-items: flex-end; margin-top: -56px; gap: 20px; }
	.avatar--profil { width: 120px; height: 120px; font-size: 50px; }
	.profil__identite h1 { font-size: 34px; }
	.profil__modifier { display: inline-flex; align-self: flex-end; }
	.profil__chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
	.grille-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.mon-compte { display: none; }
}
@media (min-width: 1100px)
{
	.page-membre__corps { flex-direction: row-reverse; align-items: flex-start; gap: 18px; }
	.page-membre__envois { flex: 1 1 auto; }
	.page-membre__cote { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }
	.page-membre__cote[data-collante="non"] { position: static; }
}

/* ---- Réglages (modifier mon profil) ---- */
.reglages { display: flex; flex-direction: column; gap: 14px; }
.reglages__bloc { border-radius: var(--rayon); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.reglages__bloc h2 { margin: 0; font: 700 20px/1.2 var(--police-titre); }
.reglages__avatar { display: flex; align-items: center; gap: 16px; }
.reglages__avatar > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.reglages__deux { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.reglages__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.champ textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--champ); border-radius: 12px; resize: vertical; background: #FFFFFF; }
fieldset.champ { margin: 0; padding: 0; border: 0; }
fieldset.champ legend { padding: 0 0 6px; font-size: 14px; font-weight: 700; }
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--trait-leger); }
.segment input { position: absolute; opacity: 0; }
.segment span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--texte-doux); cursor: pointer; text-align: center; }
.segment input:checked + span { background: #FFFFFF; color: var(--texte); font-weight: 700; box-shadow: 0 1px 3px rgba(43, 47, 54, .2); }
.segment input:focus-visible + span { outline: 3px solid var(--lien); }
@media (min-width: 700px) { .reglages__deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reglages__bloc { padding: 22px 24px; } }

/* ---- Recherche ---- */
.champ-recherche--grand { height: 52px; border-radius: 26px; }
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.puce-case { flex-shrink: 0; }
.puce-case input { position: absolute; opacity: 0; }
.puce-case span
{
	display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: 19px;
	background: var(--carte); border: 1px solid var(--trait); color: var(--texte-doux); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.puce-case small { color: var(--texte-discret); font-weight: 400; }
.puce-case input:checked + span { background: var(--vert-pale); border-color: var(--vert-fonce); color: var(--texte); }
.puce-case input:focus-visible + span { outline: 3px solid var(--lien); }
.puce-select { flex-shrink: 0; height: 38px; padding: 0 12px; border: 1px solid var(--trait); border-radius: 19px; background: var(--carte); font-size: 14px; font-weight: 600; }
.recherche__total { margin: 0; color: var(--texte-discret); font-size: 14px; }
.resultats { list-style: none; margin: 0; padding: 0; border-radius: var(--rayon); overflow: hidden; }
.resultat { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--trait-leger); color: var(--texte); text-decoration: none; }
.resultat:hover { background: #F8F9FB; color: var(--texte); }
.resultat__image { position: relative; width: 112px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--trait); }
.resultat__image img { width: 100%; height: 100%; object-fit: cover; }
.resultat__texte { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.resultat__texte strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.resultat__description { font-size: 13px; color: var(--texte-doux); overflow-wrap: anywhere; }
.resultat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: var(--texte-discret); }
.resultat mark { background: #F2F6C8; color: inherit; border-radius: 2px; padding: 0 1px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--texte-discret); }
.pagination .pilule { background: var(--carte); }
@media (min-width: 700px) { .resultat__image { width: 180px; height: 104px; } .resultat__texte strong { font: 700 19px/1.25 var(--police-titre); } }
/* Cases cachées des pastilles et segments : gardées dans leur pastille (sinon la page déborde) */
.puce-case, .segment { position: relative; }
.puce-case input, .segment input { inset: 0; width: 100%; height: 100%; margin: 0; }

/* ---- Pages de texte (changelog…) ---- */
.texte { border-radius: var(--rayon); padding: 18px 16px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.texte h2 { margin: 0 0 6px; font: 700 20px/1.25 var(--police-titre); }
.texte h3 { margin: 16px 0 6px; font-size: 16px; }
.texte p { margin: 0 0 10px; }
.texte ol, .texte ul { margin: 0 0 10px; padding-left: 22px; }
.texte li { margin-bottom: 4px; }
.notes .changelog_note { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--trait-leger); }
.notes .changelog_note:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.notes .changelog_resume { color: var(--texte-doux); }
@media (min-width: 700px) { .texte { padding: 26px 30px; } }

/* ---- Classement ---- */
.page-classement > h1 { font-size: 24px; }
.explication { border-radius: var(--rayon); }
.explication summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
.explication .texte { padding-top: 0; font-size: 14px; }
/* Podium : avatars au-dessus de marches or, argent, bronze de hauteurs différentes */
.podium
{
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: end;
	padding: 18px 10px 0; border-radius: var(--rayon); overflow: hidden;
	background: linear-gradient(180deg, var(--carte) 30%, #E4E9F2);
}
.podium__place
{
	--medaille: #C27A3A; --marche: 64px;
	display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
	color: var(--texte); text-decoration: none; text-align: center;
}
.podium__place:hover { color: var(--texte); }
.podium__place--1 { --medaille: #E3A919; --marche: 112px; }
.podium__place--2 { --medaille: #9AA3B2; --marche: 84px; }
.podium__place strong { max-width: 100%; padding: 0 4px; font: 700 15px/1.2 var(--police-titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__place small { font-size: 12px; color: var(--texte-doux); margin-bottom: 8px; }
.avatar--podium { width: 56px; height: 56px; font-size: 24px; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--medaille); margin-bottom: 6px; transition: transform .15s; }
.podium__place--1 .avatar--podium { width: 76px; height: 76px; font-size: 32px; }
.podium__place:hover .avatar--podium { transform: translateY(-3px); }
.podium__couronne { color: #F5C431; margin-bottom: -2px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.podium__marche
{
	align-self: stretch; height: var(--marche); display: flex; align-items: flex-start; justify-content: center; padding-top: 8px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--medaille) 80%, #FFFFFF), var(--medaille));
	border-radius: 10px 10px 0 0; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08);
	color: #FFFFFF; font: 700 34px/1 var(--police-titre); text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}
.podium__place--1 .podium__marche { font-size: 44px; margin: 0 -1px; position: relative; z-index: 1; }
@media (min-width: 700px)
{
	.podium { padding: 24px 40px 0; }
	.avatar--podium { width: 68px; height: 68px; font-size: 28px; }
	.podium__place--1 .avatar--podium { width: 92px; height: 92px; font-size: 38px; }
	.podium__place strong { font-size: 17px; }
	.podium__place small { font-size: 13px; }
}
.rangs { list-style: none; margin: 0; padding: 0; border-radius: var(--rayon); overflow: hidden; }
.rang, .ma-position { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; border-bottom: 1px solid var(--trait-leger); color: var(--texte); text-decoration: none; }
.rang:hover { background: #F8F9FB; color: var(--texte); }
.rang--moi { background: var(--vert-pale); }
.rang__position { width: 36px; flex-shrink: 0; text-align: center; font: 700 17px/1 var(--police-titre); color: var(--texte-discret); }
.rang__nom { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rang__nom small { font-size: 12px; color: var(--texte-discret); }
.rang__total { font: 700 16px/1 var(--police-titre); }
.ma-position
{
	position: sticky; bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom)); border: 0; border-radius: 14px;
	background: var(--ardoise); color: #FFFFFF; box-shadow: 0 6px 20px rgba(30, 33, 41, .3);
}
.ma-position:hover { color: #FFFFFF; }
.ma-position .rang__position { color: #DDE88A; }
@media (min-width: 1100px) { .ma-position { bottom: 16px; } }
.page-simple p { color: var(--texte-doux); overflow-wrap: anywhere; }
.page-simple__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.page-simple--succes h1::before { content: '✓ '; color: var(--vert-fonce); }
.texte--gabarit h1 { margin: 0 0 14px; font: 700 26px/1.2 var(--police-titre); }
.texte--gabarit img { max-width: 100%; height: auto; }
.texte--gabarit .donation_block { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--trait-leger); }
.texte--gabarit .donation_block span { overflow-wrap: anywhere; font-size: 14px; }
.texte--gabarit .clear { clear: both; }

/* ---- Participer ---- */
.participer__bloc { border-radius: var(--rayon); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.participer__bloc h2 { margin: 0; font: 700 20px/1.2 var(--police-titre); }
.participer__ligne { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.participer__ligne > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.participer h1 .pastille-thema { font-size: 22px; vertical-align: middle; }
.depot
{
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px;
	border: 2px dashed var(--champ); border-radius: 14px; background: var(--trait-leger); color: var(--texte-doux); text-align: center; cursor: pointer;
}
.depot strong { color: var(--texte); font-size: 16px; }
.depot span { font-size: 13px; }
.depot:hover, .depot:focus-within { border-color: var(--vert-fonce); background: var(--vert-pale); }
.depot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.progression { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--trait-leger); }
.progression[hidden], .depot[hidden] { display: none; }
.progression__nom { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.progression__barre { height: 6px; border-radius: 3px; background: var(--trait); overflow: hidden; }
.progression__barre span { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--vert-fonce); transition: width .2s; }
.progression__texte { font-size: 13px; color: var(--texte-discret); }
.envoi-resume { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--trait-leger); color: var(--vert-fonce); }
.envoi-resume > span { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--texte); }
.envoi-resume small { color: var(--texte-discret); font-size: 13px; overflow-wrap: anywhere; }
.envoi-debut { display: flex; align-items: center; gap: 8px; color: var(--texte-doux); }
.envoi-debut input { width: 76px; height: 50px; padding: 0 12px; border: 1px solid var(--champ); border-radius: 12px; background: #FFFFFF; }
.champ select
{
	-webkit-appearance: none; appearance: none; height: 50px; padding: 0 40px 0 14px; border: 1px solid var(--champ); border-radius: 12px; width: 100%; color: var(--texte);
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F6675' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.champ select:focus { outline: none; border: 2px solid var(--lien); padding: 0 39px 0 13px; }
.leger { font-weight: 400; color: var(--texte-discret); }
.interrupteurs { display: flex; flex-direction: column; border: 1px solid var(--trait); border-radius: 12px; }
.interrupteurs label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; cursor: pointer; }
.interrupteurs label + label { border-top: 1px solid var(--trait); }
.interrupteurs label > span { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.interrupteurs small { color: var(--texte-discret); font-size: 13px; }
.interrupteurs input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; }
/* Sur téléphone, « Publier » reste à portée de pouce, au-dessus de la barre de navigation */
.participer__publier
{
	position: sticky; bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom)); z-index: 5;
	margin: 0 -12px; padding: 10px 12px; background: linear-gradient(rgba(116, 134, 174, 0), var(--fond-bas) 40%);
}
@media (min-width: 700px) { .participer__publier { position: static; margin: 0; padding: 0; background: none; } .participer__publier .bouton { width: auto; min-width: 220px; } }
/* Éditeur Quill (threads) aux couleurs des champs */
.champ .ql-toolbar.ql-snow { border: 1px solid var(--champ); border-radius: 12px 12px 0 0; background: var(--trait-leger); }
.champ .ql-container.ql-snow { border: 1px solid var(--champ); border-top: 0; border-radius: 0 0 12px 12px; background: #FFFFFF; font: inherit; font-size: 16px; }
.champ .ql-editor { min-height: 220px; line-height: 1.5; }
.champ .ql-editor img { max-width: 100%; height: auto; }
/* Mes abonnements : « Gérer » à côté de l'abonnement, état vide sur toute la largeur */
.carte-thema__boutons { display: flex; gap: 8px; }
.carte-thema .carte-thema__boutons .bouton--large { flex-grow: 1; width: auto; align-self: auto; }
.grille-thema > .vide { grid-column: 1 / -1; }

/* ---- Créer et gérer une thématique ---- */
.champ__libelle { font-size: 14px; font-weight: 700; }
.apercu-thema
{
	display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; border-radius: var(--rayon);
	background: var(--thema); color: var(--thema-texte); transition: background .2s;
}
.apercu-thema__nom { font: 700 28px/1.1 var(--police-titre); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.apercu-thema small { font-size: 13px; opacity: .85; }
.apercu-thema--petit { padding: 16px 18px; }
.apercu-thema--petit .apercu-thema__nom { font-size: 24px; }
.image-thema { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.image-thema > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1 1 180px; }
.image-thema__apercu { position: relative; width: 160px; height: 70px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--trait-leger); border: 1px dashed var(--champ); }
.image-thema__apercu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.champ input.champ__couleur { width: 96px; height: 50px; padding: 4px; cursor: pointer; }
.equipe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.equipe li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--trait-leger); }
.equipe li:last-child { border-bottom: 0; }
.equipe__nom { flex-grow: 1; min-width: 0; font-weight: 700; color: var(--texte); overflow-wrap: anywhere; }
.signalements li > span:not(.equipe__nom) { color: var(--texte-discret); font-size: 14px; }
.equipe__ajout { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.equipe__ajout > .bouton { align-self: flex-end; }
.suggestions
{
	list-style: none; margin: 0; padding: 4px; border: 1px solid var(--trait); border-radius: 12px; background: var(--carte);
	box-shadow: 0 8px 24px rgba(30, 33, 41, .12);
}
.suggestions[hidden] { display: none; }
.suggestions button { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; cursor: pointer; }
.suggestions button:hover, .suggestions button:focus-visible { background: var(--trait-leger); }
.champ__erreur { margin: -8px 0 0; color: #B03A2E; font-size: 13px; font-weight: 600; }
.champ input[aria-invalid="true"] { border-color: #B03A2E; }
altcha-widget { display: block; }
/* Formulaires protégés (includes/antispam.php) : pot de miel hors écran */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.page-introuvable { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.page-introuvable h1 { margin: 0; }
.page-introuvable .champ-recherche { width: 100%; max-width: 440px; }
.page-introuvable .page-simple__actions { justify-content: center; }

/* Commentaires sur ordinateur : avatars plus grands */
@media (min-width: 1100px)
{
	.commentaire { --decalage: 52px; }
	.avatar--commentaire { width: 42px; height: 42px; font-size: 17px; }
	.commentaire__reponses { margin-left: 20px; }
}

/* Bulle de profil (survol d'un pseudo ou d'un avatar) */
.bulle-membre
{
	position: absolute; z-index: 60; width: 300px; padding: 16px; border-radius: 16px; background: var(--carte);
	box-shadow: 0 16px 44px rgba(30, 33, 41, .28); display: flex; flex-direction: column; gap: 10px; font-size: 14px;
	animation: bulle .12s ease-out;
}
@keyframes bulle { from { opacity: 0; transform: translateY(4px); } }
.bulle-membre__haut { display: flex; align-items: center; gap: 14px; color: var(--texte); text-decoration: none; }
.bulle-membre__haut > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bulle-membre__haut strong { font: 700 20px/1.1 var(--police-titre); overflow-wrap: anywhere; }
.avatar--bulle { width: 72px; height: 72px; font-size: 30px; }
.bulle-membre p { margin: 0; }
.bulle-membre__bio { color: var(--texte-doux); }
.bulle-membre__infos { color: var(--texte-discret); font-size: 13px; }
.bulle-membre__points { display: flex; gap: 16px; padding-top: 10px; border-top: 1px solid var(--trait-leger); color: var(--texte-discret); font-size: 12px; }
.bulle-membre__points strong { display: block; color: var(--texte); font: 700 17px/1.2 var(--police-titre); }
@media (prefers-reduced-motion: reduce) { .bulle-membre { animation: none; } }

/* Classement de l'accueil : trois médailles, puis les suivants et sa propre place */
.encart .liste-classement { gap: 2px; }
.liste-classement .podium-mini a, .liste-classement .classement-ligne a
{
	display: flex; align-items: center; gap: 10px; flex-grow: 1; min-height: 40px; padding: 4px 8px; margin: 0 -8px; border-radius: 12px;
	color: var(--texte); text-decoration: none;
}
.liste-classement .podium-mini a:hover, .liste-classement .classement-ligne a:hover { background: var(--trait-leger); }
.classement-ligne__nom { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.classement-ligne__nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.classement-ligne__nom small { color: var(--texte-discret); font-size: 12px; font-weight: 400; }
.liste-classement .score { font: 700 14px/1 var(--police-titre); color: var(--texte-doux); white-space: nowrap; }
.liste-classement .score small { font: 400 11px var(--police); color: var(--texte-discret); }
.podium-mini .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--medaille); }
.podium-mini a { position: relative; }
.liste-classement .podium-mini .rang
{
	position: absolute; left: 36px; bottom: 2px; z-index: 1; display: block; width: 20px; height: 20px; padding: 0; border-radius: 10px;
	background: var(--medaille); color: #FFFFFF; font: 700 11px/20px var(--police-titre); text-align: center; box-shadow: 0 0 0 2px #FFFFFF;
}
.podium-mini--1 { --medaille: #E3A919; }
.podium-mini--2 { --medaille: #9AA3B2; }
.podium-mini--3 { --medaille: #C27A3A; }
.podium-mini--1 a { background: linear-gradient(90deg, #FDF4D6, rgba(253, 244, 214, 0)); }
.classement-ligne .avatar { width: 28px; height: 28px; font-size: 12px; margin-left: 6px; }
.classement-ligne .rang { width: 16px; text-align: right; font-size: 13px; }
.classement-ligne--moi { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--trait); }
.classement-ligne--moi .rang { width: auto; min-width: 16px; color: var(--vert-fonce); }

/*
	Colonne de droite (ou son bas, page d'un média) collante (v3.js) : plus courte que l'écran, elle reste sous l'en-tête ;
	plus haute, elle défile normalement avec la page (data-collante="non").
*/
@media (min-width: 700px)
{
	.colonne-droite[data-collante] { position: sticky; top: 80px; align-self: flex-start; }
	/* Page d'un média : seul le bas de la colonne colle, la colonne prend donc toute la hauteur */
	.mise-en-page--media .colonne-droite { align-self: stretch; }
	.colonne-droite__collante { display: flex; flex-direction: column; gap: 14px; }
	.colonne-droite__collante[data-collante] { position: sticky; top: 80px; }
	.colonne-droite[data-collante="non"], .colonne-droite__collante[data-collante="non"] { position: static; }
}

/* Bouton pour remonter, en bas à droite (au-dessus de la barre du téléphone) */
.haut-de-page
{
	position: fixed; right: 16px; bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom) + 14px); z-index: 30;
	width: 46px; height: 46px; border: 0; border-radius: 23px; background: var(--ardoise); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(30, 33, 41, .3);
	transition: opacity .2s, transform .2s;
}
.haut-de-page:hover { background: var(--ardoise-claire); }
.haut-de-page[hidden] { display: none; }
@media (min-width: 1100px) { .haut-de-page { right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 25px; } }
.encart__sous-titre { margin: -6px 0 2px; font-size: 12px; color: var(--texte-discret); }
/* Carte du fil : liseré du haut à la couleur du type d'envoi */
.carte--typee { border-top: 3px solid var(--type); }
.interrupteurs strong .croix { vertical-align: -2px; margin-right: 4px; }
.interrupteurs input:disabled { opacity: .4; }
.interrupteurs label:has(input:disabled) { cursor: not-allowed; color: var(--texte-discret); }
/* Favori d'une carte : signet rempli une fois ajouté */
.bouton-favori[aria-pressed="true"] { color: var(--vert-fonce); }
.bouton-favori[aria-pressed="true"] svg { fill: currentColor; }
.masque__toujours { margin-top: 2px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; opacity: .9; cursor: pointer; }
.masque__toujours:hover { opacity: 1; }

/* Page média : menu « Plus d'actions » sur téléphone, outils en ligne au-delà */
.media__actions { position: relative; }
.plus-actions { display: inline-flex; }
.media__outils-libelle { margin-left: 2px; }
@media (max-width: 699px)
{
	.media__outils
	{
		display: none; position: absolute; right: 8px; top: calc(100% - 6px); z-index: 15; min-width: 210px; padding: 6px;
		flex-direction: column; background: var(--carte); border-radius: 14px; box-shadow: 0 12px 34px rgba(30, 33, 41, .25);
	}
	.media__outils--ouvert { display: flex; }
	.media__outils > a, .media__outils > button
	{
		width: 100%; height: 44px; justify-content: flex-start; gap: 10px; padding: 0 12px; border-radius: 10px;
		background: none; color: var(--texte); font-size: 15px; font-weight: 600; text-decoration: none;
	}
	.media__outils > a:hover, .media__outils > button:hover { background: var(--trait-leger); }
	.media__outils .masque-tel { display: inline; }
}
@media (min-width: 700px)
{
	.plus-actions, .media__outils-libelle { display: none; }
	.media__outils { display: contents; }
}
.commentaires__plus { align-self: center; }

/* Flash : plein écran (bouton en haut à droite), avertissement clavier sur écran tactile */
.media__plein-ecran { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0, 0, 0, .55); color: #FFFFFF; }
.media__plein-ecran:hover { background: rgba(0, 0, 0, .75); }
.media__flash:fullscreen, .media__flash--plein { width: 100%; height: 100%; max-height: none; aspect-ratio: auto !important; background: #000; }
.media__flash--plein { position: fixed; inset: 0; z-index: 100; }
@media (hover: hover) and (pointer: fine) { .media__note--tactile { display: none; } }
/* Profil : thématiques où il publie, celles qu'il modère */
.mon-compte__detail { margin-left: auto; color: var(--texte-discret); font-size: 13px; font-weight: 400; }


/* Modifier mon profil : sur ordinateur, sections à gauche et aperçu de la carte à droite */
.reglages__sommaire, .reglages__apercu { display: none; }
.reglages__bloc { scroll-margin-top: 84px; }
@media (min-width: 1100px)
{
	.page-reglages { display: grid; grid-template-columns: 210px minmax(0, 720px) 300px; gap: 24px; justify-content: center; align-items: start; max-width: 1340px; margin: 0 auto; padding: 0 20px; }
	.page-reglages > .page-etroite { margin: 0; padding: 16px 0; }
	.reglages__sommaire { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; padding-top: 64px; }
	.reglages__sommaire a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--sur-fond); font-weight: 600; text-decoration: none; }
	.reglages__sommaire a:hover { background: rgba(255, 255, 255, .45); }
	.reglages__apercu { display: block; position: sticky; top: 84px; padding-top: 64px; }
	.reglages__apercu-titre { margin: 0 0 8px; font: 700 12px/1 var(--police); letter-spacing: 1px; text-transform: uppercase; color: var(--sur-fond-doux); }
	.apercu-profil { border-radius: var(--rayon); padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
	.apercu-profil strong { font: 700 22px/1.1 var(--police-titre); }
	.apercu-profil p { margin: 0; color: var(--texte-doux); font-size: 14px; overflow-wrap: anywhere; }
	.apercu-profil p:empty { display: none; }
	.apercu-profil small { color: var(--texte-discret); font-size: 13px; }
}
/* Recherche : thématiques et membres trouvés, en tête */
.trouves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.trouve { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--carte); color: var(--texte); text-decoration: none; }
.trouve:hover { box-shadow: 0 0 0 2px var(--trait); }
.trouve > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.trouve strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trouve small { color: var(--texte-discret); font-size: 12px; }

/* Inscription : étape, état des champs vérifiés pendant la frappe, solidité du mot de passe */
.compte__etape { margin: 0 0 -8px; font-size: 13px; font-weight: 700; color: var(--vert-fonce); letter-spacing: .3px; }
.champ__etat { margin: -8px 0 0; font-size: 13px; font-weight: 600; }
.champ__etat:empty { display: none; }
.champ__etat--ok { color: var(--vert-fonce); }
.champ__etat--ok::before { content: '✓ '; }
.champ__etat--erreur { color: #B03A2E; }
.solidite { margin: 2px 0 0; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texte-discret); }
.solidite[hidden] { display: none; }
.solidite__barre { flex: 0 0 120px; height: 6px; border-radius: 3px; background: var(--trait-leger); overflow: hidden; }
.solidite__barre span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .2s, background-color .2s; }
.solidite[data-niveau="0"] .solidite__barre span { width: 10%; background: #B03A2E; }
.solidite[data-niveau="1"] .solidite__barre span { width: 30%; background: #E07B39; }
.solidite[data-niveau="2"] .solidite__barre span { width: 55%; background: #E3B11B; }
.solidite[data-niveau="3"] .solidite__barre span { width: 80%; background: var(--vert); }
.solidite[data-niveau="4"] .solidite__barre span { width: 100%; background: var(--vert-fonce); }
.puces--choix { flex-wrap: wrap; padding: 0; overflow: visible; }
/* Création d'une thématique : teintes proposées à côté du sélecteur */
.nuancier { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nuancier__teinte { width: 36px; height: 36px; border: 0; border-radius: 18px; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.nuancier__teinte:hover { transform: scale(1.08); }

/* Mots-clés en pastilles */
.mots-cles
{
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 50px; padding: 7px 10px;
	border: 1px solid var(--champ); border-radius: 12px; background: #FFFFFF; cursor: text;
}
.mots-cles:focus-within { border: 2px solid var(--lien); padding: 6px 9px; }
.mots-cles input { flex: 1 1 120px; min-width: 0; height: 32px; padding: 0 4px; border: 0; outline: none; background: none; }
.champ .mots-cles input { height: 32px; padding: 0 4px; border: 0; width: auto; }
.champ .mots-cles input:focus { border: 0; padding: 0 4px; }
.mot-cle { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 12px; border-radius: 15px; background: var(--trait-leger); font-size: 14px; font-weight: 600; }
.mot-cle button { width: 24px; height: 24px; border: 0; border-radius: 12px; background: none; color: var(--texte-discret); font-size: 17px; line-height: 1; cursor: pointer; }
.mot-cle button:hover { background: var(--trait); color: var(--texte); }

/* Gérer une thématique : sections, signalements */
.gestion__onglets { position: sticky; top: 68px; z-index: 5; }
@media (min-width: 700px) { .gestion__onglets { position: static; } }
.signalements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.signalements li + li { border-top: 1px solid var(--trait-leger); }
.signalement { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: var(--texte); text-decoration: none; }
.signalement:hover strong { color: var(--lien); }
.signalement strong { overflow-wrap: anywhere; }
.signalement small { color: var(--texte-discret); font-size: 13px; }
/* Participer : glisser-déposer, fichier prêt, retirer */
.depot__glisser { display: none; }
@media (hover: hover) and (pointer: fine) { .depot__glisser { display: inline; font-weight: 600; color: var(--texte-doux); } }
.depot--survol { border-color: var(--vert-fonce); background: var(--vert-pale); transform: scale(1.01); }
.progression { position: relative; }
.progression__retirer { position: absolute; top: 8px; right: 8px; }
.progression__nom { padding-right: 70px; }
.progression--pret .progression__barre span { width: 100% !important; }
.progression--pret .progression__texte { color: var(--vert-fonce); font-weight: 700; }
.progression--pret .progression__texte::before { content: '✓ '; }
[data-choix-flash][hidden], form[data-details][hidden] { display: none; }
/* Un fichier en cours d'envoi : seuls le fichier et ses détails restent à l'écran */
.participer--fichier > .participer__bloc:not([data-envoi-fichier]) { display: none; }

/* Lecteur de son : forme d'onde (avance en vert), temps, commandes ; mini-lecteur en bas */
.lecteur { gap: 12px; }
.lecteur--pret audio { display: none; }
.lecteur__piste, .lecteur__temps, .lecteur__commandes { display: none; }
.lecteur--pret .lecteur__piste { display: block; width: 100%; max-width: 560px; height: 56px; cursor: pointer; }
.lecteur__onde { display: flex; align-items: center; gap: 2px; height: 100%; }
.lecteur__onde span { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #5D6680; }
.lecteur__onde .lecteur__joue { background: var(--vert); }
.lecteur--pret .lecteur__temps { display: flex; justify-content: space-between; width: 100%; max-width: 560px; margin: -6px 0 0; color: #C9CFDA; font-size: 13px; font-variant-numeric: tabular-nums; }
.lecteur--pret .lecteur__commandes { display: flex; align-items: center; gap: 22px; }
.lecteur__lecture
{
	width: 64px; height: 64px; border: 0; border-radius: 32px; background: var(--vert); color: var(--vert-texte);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lecteur__saut { width: 48px; height: 48px; border: 0; border-radius: 24px; background: var(--ardoise-claire); color: #FFFFFF; font: 700 14px/1 var(--police-titre); cursor: pointer; }
.lecteur__saut:hover { background: #4A505C; }
.lecteur__icone-pause, .lecteur--joue .lecteur__icone-lecture { display: none; }
.lecteur--joue .lecteur__icone-pause { display: inline; }
.mini-lecteur
{
	position: fixed; left: 8px; right: 8px; bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom) + 8px); z-index: 25;
	display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 8px 12px 10px 8px;
	border-radius: 16px; background: var(--ardoise); color: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.mini-lecteur[hidden] { display: none; }
.mini-lecteur__bouton { grid-row: span 2; width: 44px; height: 44px; border: 0; border-radius: 22px; background: var(--vert); color: var(--vert-texte); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mini-lecteur__bouton svg { width: 22px; height: 22px; }
.mini-lecteur__titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; cursor: pointer; }
.mini-lecteur__barre { height: 4px; border-radius: 2px; background: #5D6680; overflow: hidden; }
.mini-lecteur__barre span { display: block; height: 100%; width: 0; background: var(--vert); }
@media (min-width: 1100px) { .mini-lecteur { left: auto; right: 24px; bottom: 90px; width: 360px; } }
/* Bouton pour remonter au-dessus du mini-lecteur */
.avec-mini-lecteur .haut-de-page { bottom: calc(var(--hauteur-nav-mobile) + env(safe-area-inset-bottom) + 86px); }
@media (min-width: 1100px) { .avec-mini-lecteur .haut-de-page { bottom: 24px; } }

/* Inscription / connexion : onglets, argumentaire à côté sur ordinateur */
.compte__onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 22px; background: var(--trait-leger); }
.compte__onglets a { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 19px; color: var(--texte-doux); font-weight: 700; text-decoration: none; }
.compte__onglets a[aria-current] { background: #FFFFFF; color: var(--texte); box-shadow: 0 1px 3px rgba(43, 47, 54, .2); }
.compte-argumentaire { display: none; }
@media (min-width: 1100px)
{
	.compte-page--double { display: grid; grid-template-columns: minmax(0, 420px) 460px; gap: 56px; justify-content: center; align-items: center; min-height: calc(100vh - 64px - 300px); padding: 28px 20px; }
	.compte-page--double .compte { margin: 0; }
	.compte-argumentaire { display: flex; flex-direction: column; gap: 18px; color: var(--sur-fond); }
	.compte-argumentaire img { width: 120px; height: auto; }
	.compte-argumentaire h2 { margin: 0; font: 700 34px/1.15 var(--police-titre); color: #1A2030; }
	.compte-argumentaire ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 600; }
	.compte-argumentaire li { display: flex; align-items: center; gap: 12px; }
	.compte-argumentaire li svg { flex-shrink: 0; width: 36px; height: 36px; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .6); color: var(--vert-fonce); }
}

/* Vote d'un visiteur : invitation à créer un compte */
.invitation { width: min(420px, calc(100vw - 32px)); padding: 26px 24px 22px; border: 0; border-radius: 22px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.invitation::backdrop { background: rgba(30, 33, 41, .55); }
.invitation img { width: 110px; height: auto; }
.invitation h2 { margin: 8px 0 6px; font: 700 24px/1.2 var(--police-titre); }
.invitation p { margin: 0 0 18px; color: var(--texte-doux); }
.invitation__actions { display: flex; flex-direction: column; gap: 8px; }
.invitation__fermer { position: absolute; top: 10px; right: 10px; }
/* Éditeur Quill : libellés en français (titres, bulle des liens) ; « .champ » pour passer devant
   quill.snow.css, chargée après cette feuille */
.champ .ql-snow .ql-picker.ql-header .ql-picker-label::before, .champ .ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Texte'; }
.champ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .champ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Titre'; }
.champ .ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .champ .ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Sous-titre'; }
.champ .ql-snow .ql-tooltip::before { content: 'Lien :'; }
.champ .ql-snow .ql-tooltip[data-mode="link"]::before { content: 'Adresse du lien :'; }
.champ .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: 'Enregistrer'; }
.champ .ql-snow .ql-tooltip a.ql-action::after { content: 'Modifier'; }
.champ .ql-snow .ql-tooltip a.ql-remove::before { content: 'Retirer'; }
.champ .ql-editor blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid var(--trait); color: var(--texte-doux); }
/* « Le meilleur » : périodes sous les onglets */
.fil__periodes { padding: 10px 12px; }
@media (min-width: 700px) { .fil__periodes { padding: 0 0 14px; } }

/* Thread dans le fil : texte replié avec fondu, « Voir la suite » le déplie sur place */
.carte__thread { position: relative; padding: 0 14px 4px; }
.carte__thread-texte { font-size: 16px; line-height: 1.55; color: var(--texte); overflow-wrap: anywhere; }
.carte__thread-texte p { margin: 0 0 10px; }
.carte__thread-texte img { max-width: 100%; height: auto; border-radius: 10px; }
.carte__thread-texte blockquote { margin: 10px 0; padding-left: 14px; border-left: 3px solid var(--trait); color: var(--texte-doux); }
.carte__thread-texte h2, .carte__thread-texte h3 { margin: 12px 0 6px; font-family: var(--police-titre); line-height: 1.2; }
.carte__thread--replie .carte__thread-texte { max-height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.carte__thread-suite { margin: 2px 0 6px; padding: 0 16px; height: 36px; border: 0; border-radius: 18px; background: var(--trait-leger); color: var(--texte); font-weight: 700; font-size: 14px; cursor: pointer; }
.carte__thread-suite:hover { background: var(--trait); }
@media (min-width: 700px) { .carte__thread { padding: 0 16px 4px; } }

/*
	Nombre de membres connectés sur le panneau du paysage, à la même place que dans l'ancienne
	interface : panneau à 624 × 284 px dans l'image (1650 × 370), centrée en bas ; image réduite
	de moitié sur téléphone.
*/
.pied__paysage { position: relative; }
.pied__connectes
{
	position: absolute; top: 141px; left: calc(50% - 103px); width: 30px; height: 13px;
	color: #EF593B; font: 700 12px/13px var(--police-titre); text-align: center;
}
@media (min-width: 700px) { .pied__connectes { top: 284px; left: calc(50% - 201px); width: 50px; height: 21px; font-size: 20px; line-height: 21px; } }

/* Pastille d'une thématique : sa couleur, son image par-dessus quand elle en a une */
.pastille-thema { position: relative; overflow: hidden; }
.pastille-thema img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pastille-thema--mini { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.pastille-thema--grande { width: 52px; height: 52px; border-radius: 14px; font: 700 22px/1 var(--police-titre); }
/* Encart « Publié dans » de la page d'un média : liseré, pastille et nom aux couleurs de la thématique */
.encart--thema { border-top: 5px solid var(--thema); }
.encart__surtitre { margin: 0 0 -4px; font: 700 12px/1 var(--police); letter-spacing: 1px; text-transform: uppercase; color: var(--texte-discret); }
.encart-thema__tete { display: flex; align-items: center; gap: 12px; color: var(--texte); text-decoration: none; }
.encart-thema__tete strong { font: 700 22px/1.1 var(--police-titre); overflow-wrap: anywhere; }
.encart-thema__tete:hover strong { color: var(--lien); }

/* En-tête : dé (envoi au hasard) partout, Discord sur ordinateur (lien aussi dans le pied de page) */
.entete__discord { display: none; }
@media (min-width: 1100px) { .entete__discord { display: inline-flex; } }
.logo { flex-shrink: 0; }
.recherche { min-width: 0; }
.entete__hasard:hover svg { transform: rotate(-18deg); transition: transform .2s; }

/* Menu du compte, comme la maquette : pastille avatar + pseudo, panneau en quatre parties */
.menu-compte { position: relative; }
.menu-compte summary
{
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px;
	border-radius: 22px; background: var(--ardoise-claire); color: #FFFFFF; font-weight: 700; font-size: 15px;
}
.menu-compte summary:hover { background: #4A505C; }
.menu-compte summary::-webkit-details-marker { display: none; }
.menu-compte__chevron { transition: transform .15s; }
.menu-compte[open] .menu-compte__chevron { transform: rotate(180deg); }
.menu-compte__panneau
{
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 380px; max-height: calc(100vh - 80px); overflow-y: auto;
	background: var(--carte); color: var(--texte); border-radius: 18px; box-shadow: 0 18px 50px rgba(30, 33, 41, .3);
	display: flex; flex-direction: column;
}
.menu-compte__panneau a { color: var(--texte); text-decoration: none; }
.menu-compte__profil { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--trait-leger); }
.menu-compte__profil:hover { background: #F8F9FB; }
.menu-compte__profil > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.menu-compte__profil strong { font: 700 19px/1.15 var(--police-titre); }
.menu-compte__profil small { font-size: 13px; color: var(--texte-discret); }
.menu-compte__notifs { padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--trait-leger); }
.menu-compte__notifs p { margin: 0; padding: 0 8px 4px; display: flex; align-items: center; justify-content: space-between; }
.menu-compte__notifs p span { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--texte-discret); }
.menu-compte__notifs p a { font-size: 13px; font-weight: 700; color: var(--lien) !important; }
.menu-notif { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.menu-notif .notif__icone { width: 32px; height: 32px; flex-shrink: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.menu-notif > span:last-child { flex-grow: 1; padding-top: 6px; }
.menu-notif small { color: var(--texte-discret); font-size: 14px; }
.menu-notif--nouvelle { background: #F5F8EA; }
.menu-notif:hover { background: var(--trait-leger); }
.menu-notif__vide { padding: 4px 8px 8px; font-size: 14px; color: var(--texte-discret); }
.menu-compte__grille { padding: 6px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; border-bottom: 1px solid var(--trait-leger); }
.menu-compte__bas { padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.menu-compte__grille a, .menu-compte__bas a
{
	height: 42px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
}
.menu-compte__grille a svg, .menu-compte__bas a svg { flex-shrink: 0; color: var(--texte-doux); }
.menu-compte__grille a:hover, .menu-compte__bas a:hover { background: var(--trait-leger); }
.menu-compte__bas .menu-compte__sortie, .menu-compte__bas .menu-compte__sortie svg { color: var(--rouge-fonce); }

/* Nuages du fond (v3.js) : calques fixes derrière le contenu, le paysage et le pied de page */
.nuages { position: fixed; top: 0; left: 0; z-index: 0; width: 100%; height: 0; pointer-events: none; will-change: transform; opacity: 0; transition: opacity 1s; }
.nuages--visibles { opacity: 1; }
.nuages img { position: absolute; max-width: none; user-select: none; }
body > main, body > .pied { position: relative; z-index: 1; }
@media (max-width: 699px) { .nuages { display: none; } }
@media (prefers-reduced-motion: reduce) { .nuages { transition: none; } }
/* Ordre des commentaires : trois boutons en segments */
.segments--tri { grid-template-columns: repeat(3, auto); padding: 3px; border-radius: 12px; }
.segments--tri a { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border-radius: 9px; color: var(--texte-doux); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.segments--tri a:hover { color: var(--texte); }
.segments--tri a[aria-current] { background: #FFFFFF; color: var(--texte); font-weight: 700; box-shadow: 0 1px 3px rgba(43, 47, 54, .2); }
.envoi-resume__image { width: 96px; height: 60px; flex-shrink: 0; border-radius: 10px; object-fit: cover; }

/* Choix de la thématique : raccourcis à leurs couleurs, recherche avec suggestions */
.puce--thema { border-color: transparent; background: color-mix(in srgb, var(--thema) 16%, #FFFFFF); color: var(--texte); cursor: pointer; }
.puce--thema:hover { background: color-mix(in srgb, var(--thema) 30%, #FFFFFF); }
.puce--thema.puce--active { background: var(--thema); color: var(--thema-texte); }
.recherche-thema { position: relative; }
.recherche-thema[hidden] { display: none; }
.champ .recherche-thema input
{
	height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--champ); border-radius: 23px; width: 100%;
	background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235F6675' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
}
.champ .recherche-thema input:focus { padding-left: 39px; }
.recherche-thema .suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 300px; overflow-y: auto; }
.recherche-thema .suggestions li { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.recherche-thema .suggestions li[aria-selected="true"], .recherche-thema .suggestions li:hover { background: var(--trait-leger); }
.recherche-thema .suggestions .suggestions__vide { color: var(--texte-discret); font-weight: 400; cursor: default; }
.champ--erreur .recherche-thema input { border: 2px solid #B03A2E; }
/* Cartes de formulaire : pas d'image à rogner, les suggestions (thématique, membre) peuvent déborder */
.carte.reglages__bloc { overflow: visible; position: relative; }
.recherche-thema .suggestions { z-index: 40; }
.recherche-thema input { scroll-margin-top: 76px; }

/*
	Éditeur de thread redimensionnable : barre à attraper sous la zone de texte (souris ou doigt,
	v3.js), comme la poignée d'un champ de texte.
*/
.champ .ql-container.ql-snow { height: 300px; min-height: 160px; border-radius: 0; }
.champ .ql-editor { height: 100%; min-height: 0; overflow-y: auto; }
.editeur-poignee
{
	height: 18px; border: 1px solid var(--champ); border-top: 0; border-radius: 0 0 12px 12px; background: var(--trait-leger);
	display: flex; align-items: center; justify-content: center; cursor: ns-resize; touch-action: none; user-select: none;
}
.editeur-poignee::before { content: ''; width: 36px; height: 4px; border-radius: 2px; background: #9AA3B2; }
.editeur-poignee:hover::before, .editeur-poignee--active::before { background: var(--texte-doux); }
/* Barre d'outils, zone de texte et poignée d'un seul tenant (sans l'espacement du champ) */
.champ .ql-toolbar.ql-snow + .ql-container.ql-snow, .champ .editeur-poignee { margin-top: -6px; }

/* Participer : les trois façons de publier au même poids (bouton noir), séparées par « ou » ;
   la création de thématique dans un bandeau clair */
.participer__bouton { align-self: flex-start; min-width: 160px; }
.depot__bouton { margin: 6px 0 2px; pointer-events: none; }
.depot:hover .depot__bouton { background: var(--ardoise-claire); }
.depot__glisser { font-weight: 400 !important; }
.participer__ou { display: flex; align-items: center; gap: 14px; margin: -2px 8px; color: #FFFFFF; font: 700 14px/1 var(--police-titre); letter-spacing: 1.5px; text-transform: uppercase; }
.participer__ou::before, .participer__ou::after { content: ''; flex-grow: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .55); }
.participer__ou span { padding: 6px 12px; border-radius: 14px; background: rgba(43, 47, 54, .55); }
.participer__annexe
{
	margin-top: 10px; padding: 14px 16px; border-radius: var(--rayon); background: rgba(255, 255, 255, .72);
	border: 1px dashed rgba(43, 47, 54, .25); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; color: var(--texte);
}
.participer__annexe > span { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--ardoise); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.participer__annexe p { flex: 1 1 260px; margin: 0; font-size: 15px; color: var(--texte-doux); }
.participer__annexe p strong { color: var(--texte); }
.participer__annexe .bouton { box-shadow: inset 0 0 0 1px var(--trait); }

/* Inscription courte : anti-robot invisible (affiché seulement s'il échoue), conditions sous le bouton */
.altcha-discret { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.altcha-discret--visible { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.compte__cgu { margin-top: -4px; text-align: center; }
/* Pages de compte sur téléphone : ciel plus bas, le formulaire et son bouton tiennent dans l'écran */
@media (max-width: 699px)
{
	.compte__ciel { height: 116px; padding-bottom: 30px; }
	.compte__ver img { width: 84px; }
	.compte__bulle { font-size: 12px; padding: 5px 10px; }
	.compte__nuage--1 { width: 110px; height: 70px; top: 10px; }
	.compte__nuage--3 { width: 140px; height: 88px; bottom: -40px; }
	.compte__carte { padding: 20px 18px; gap: 12px; }
	.compte__carte h1 { font-size: 24px; }
}

/* En-tête vidéo des pages de compte, bouton pour le son */
.compte__ciel--video { padding: 0; background: #2B2F36; align-items: stretch; }
.compte__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compte__son
{
	position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
	border: 0; border-radius: 17px; background: rgba(20, 22, 28, .7); color: #FFFFFF; font-size: 13px; font-weight: 700; cursor: pointer;
}
.compte__son:hover { background: rgba(20, 22, 28, .85); }
.compte__son[aria-pressed="true"] { background: var(--vert); color: var(--vert-texte); }
.compte__ciel.compte__ciel--video { height: 210px; padding: 0; }
@media (max-width: 699px) { .compte__ciel.compte__ciel--video { height: 160px; } }
/* Lecteur d'une plateforme : hauteur selon le format (portrait TikTok, son SoundCloud, publication X…) */
.media__externe--portrait, .media__externe--son, .media__externe--carre, .media__externe--publication { aspect-ratio: auto; height: var(--hauteur-lecteur); }
.media__externe--portrait { max-width: 420px; margin: 0 auto; }
.media__externe p a { color: #FFFFFF; }

/*
	Mode sombre (menu du compte, v3.js ; cookie « theme » lu par v3_page pour éviter le flash) :
	nuit étoilée derrière, blocs sombres. Les couleurs passent par les variables ; les quelques
	teintes écrites en dur sont reprises une à une ci-dessous.
*/
:root[data-theme="sombre"]
{
	color-scheme: dark;
	--ardoise: #12151C;
	--ardoise-claire: #262B36;
	--fond: #0E1428;
	--fond-bas: #070A16;
	--degrade: linear-gradient(#060914 0, #0B1124 400px, #111A36 900px, #16224A 1500px) no-repeat 0 0 / 100% 1500px;
	--sur-fond: #E3E7F2;
	--sur-fond-doux: #A9B3CC;
	--carte: #1C212C;
	--texte: #E6E9F0;
	--texte-doux: #C4CAD7;
	--texte-discret: #939BAE;
	--trait: #343B4A;
	--trait-leger: #262C38;
	--champ: #4B5368;
	--vert-texte: #151A00;
	--vert-fonce: #C9DD55;
	--vert-pale: #2C3317;
	--rouge-fonce: #F08B7A;
	--alerte: #F08B7A;
	--lien: #8EB6F2;
}
:root[data-theme="sombre"] a:hover { color: #B7D0F7; }
/* Ciel dans un calque fixé à l'écran, sous les étoiles : pas de cassure en bas d'un dégradé qui
   défilerait (« background-attachment: fixed » est ignoré par Safari sur iPhone) */
:root[data-theme="sombre"] body { background: #070A16; }
:root[data-theme="sombre"]::after
{
	content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
	background: linear-gradient(#060914 0%, #0B1124 35%, #111A36 70%, #16224A 100%);
}

/* Nuit étoilée : trois couches d'étoiles fixes (la plus fine scintille) et une lune */
:root[data-theme="sombre"] body::before,
:root[data-theme="sombre"] body::after
{
	content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
:root[data-theme="sombre"] body::before
{
	background:
		radial-gradient(1.5px 1.5px at 20px 30px, #FFFFFF 50%, transparent 51%),
		radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, .85) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 210px 160px, rgba(255, 255, 255, .9) 50%, transparent 51%),
		radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, .7) 50%, transparent 51%),
		radial-gradient(2px 2px at 280px 40px, #FFF6D8 50%, transparent 51%),
		radial-gradient(1px 1px at 330px 230px, rgba(255, 255, 255, .8) 50%, transparent 51%);
	background-size: 360px 260px;
}
:root[data-theme="sombre"] body::after
{
	background:
		radial-gradient(1px 1px at 90px 120px, #FFFFFF 50%, transparent 51%),
		radial-gradient(1px 1px at 250px 20px, #FFFFFF 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 170px 270px, #DCE7FF 50%, transparent 51%),
		radial-gradient(1px 1px at 400px 180px, #FFFFFF 50%, transparent 51%);
	background-size: 470px 320px;
	animation: scintille 6s ease-in-out infinite alternate;
}
/* La lune, à part (sans scintillement), dans la marge de droite */
:root[data-theme="sombre"]::before
{
	content: ''; position: fixed; top: 96px; right: 28px; z-index: 0; width: 64px; height: 64px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle at 38% 36%, #FFFDF2, #F4E7BF 55%, #E2CF98);
	box-shadow: 0 0 30px 8px rgba(255, 240, 200, .22), 0 0 90px 30px rgba(255, 240, 200, .08), inset -8px -6px 0 rgba(180, 160, 110, .25);
}
@keyframes scintille { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :root[data-theme="sombre"] body::after { animation: none; } }
@media (max-width: 1439px) { :root[data-theme="sombre"]::before { display: none; } }
:root[data-theme="sombre"] .nuages { filter: brightness(.3) saturate(.6); opacity: .28; }
:root[data-theme="sombre"] .profil__couverture { filter: brightness(.62) saturate(.9); }
:root[data-theme="sombre"] .pied__paysage { filter: brightness(.42) saturate(.75) hue-rotate(-8deg); }
:root[data-theme="sombre"] .pied__connectes { filter: brightness(2.2); }
:root[data-theme="sombre"] .pied { color: #9AA3B6; }

/* Blocs et champs : teintes claires écrites en dur */
:root[data-theme="sombre"] .champ input,
:root[data-theme="sombre"] .champ textarea,
:root[data-theme="sombre"] .champ select,
:root[data-theme="sombre"] .champ .ql-container.ql-snow,
:root[data-theme="sombre"] .champ .recherche-thema input,
:root[data-theme="sombre"] .commentaires__formulaire textarea,
:root[data-theme="sombre"] .envoi-debut input,
:root[data-theme="sombre"] .mots-cles,
:root[data-theme="sombre"] .recherche:focus-within,
:root[data-theme="sombre"] .compte__bulle { background: #141821; }
:root[data-theme="sombre"] .recherche:focus-within input { color: var(--texte); }
:root[data-theme="sombre"] .ql-toolbar.ql-snow { border-color: var(--trait); background: #20252F; }
:root[data-theme="sombre"] .ql-snow .ql-stroke { stroke: var(--texte-doux); }
:root[data-theme="sombre"] .ql-snow .ql-fill { fill: var(--texte-doux); }
:root[data-theme="sombre"] .ql-snow .ql-picker { color: var(--texte-doux); }
:root[data-theme="sombre"] .ql-editor.ql-blank::before { color: var(--texte-discret); }
:root[data-theme="sombre"] .type { background: #262C38; }
:root[data-theme="sombre"] .segment input:checked + span,
:root[data-theme="sombre"] .compte__onglets a[aria-current],
:root[data-theme="sombre"] .segments--tri a[aria-current],
:root[data-theme="sombre"] .puce--thema,
:root[data-theme="sombre"] .puce--thema:hover { background: #2E3442; }
:root[data-theme="sombre"] .chiffre,
:root[data-theme="sombre"] .profil-thema { background: #232935; }
:root[data-theme="sombre"] .chiffre__icone { background: color-mix(in srgb, var(--profil) 35%, #1C212C); color: color-mix(in srgb, var(--profil) 55%, #FFFFFF); }
:root[data-theme="sombre"] .commentaires__vignette { background: #141821; }
:root[data-theme="sombre"] .tuile__image { background: linear-gradient(135deg, color-mix(in srgb, var(--type, #9AA3B2) 22%, #1C212C), color-mix(in srgb, var(--type, #9AA3B2) 40%, #1C212C)); }
:root[data-theme="sombre"] .tuile__type { color: color-mix(in srgb, var(--type, #9AA3B2) 60%, #FFFFFF); }
:root[data-theme="sombre"] .notif:hover,
:root[data-theme="sombre"] .resultat:hover,
:root[data-theme="sombre"] .rang:hover,
:root[data-theme="sombre"] .menu-compte__profil:hover { background: #242A36; }
:root[data-theme="sombre"] .notif--nouvelle,
:root[data-theme="sombre"] .menu-notif--nouvelle { background: #262D1A; }
:root[data-theme="sombre"] .vote--contre,
:root[data-theme="sombre"] .vote--petit .vote__contre:hover { background: #3B2522; }
:root[data-theme="sombre"] .carte__meilleur,
:root[data-theme="sombre"] .commentaire--meilleur > .commentaire__corps { background: #2A3016; }
:root[data-theme="sombre"] .media__note { background: #3A3218; color: #F1D88C; }
:root[data-theme="sombre"] .compte__erreur { background: #3B2522; color: #F5B3A7; }
:root[data-theme="sombre"] .compte__succes { color: #D8EA7A; }
:root[data-theme="sombre"] .resultat mark { background: #4A5320; color: #F2F7D0; }
:root[data-theme="sombre"] .colonne-gauche .lien-fort { color: #A9C6F5; }
:root[data-theme="sombre"] .colonne-gauche a:hover { background: rgba(255, 255, 255, .1); }
:root[data-theme="sombre"] .colonne-gauche__fils a { background: rgba(255, 255, 255, .07); }
:root[data-theme="sombre"] .colonne-gauche a[aria-current] { background: var(--carte); }
:root[data-theme="sombre"] .compte-argumentaire h2 { color: var(--texte); }
:root[data-theme="sombre"] .compte__ciel { background: #10162B; }
:root[data-theme="sombre"] .podium { background: linear-gradient(180deg, var(--carte) 30%, #151A26); }
:root[data-theme="sombre"] .avatar--podium { box-shadow: 0 0 0 3px var(--carte), 0 0 0 6px var(--medaille); }
:root[data-theme="sombre"] .podium-mini .avatar { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--medaille); }
:root[data-theme="sombre"] .liste-classement .podium-mini .rang { box-shadow: 0 0 0 2px var(--carte); }
:root[data-theme="sombre"] .podium-mini--1 a { background: linear-gradient(90deg, #3A3218, rgba(58, 50, 24, 0)); }
:root[data-theme="sombre"] .entete__inscription:hover { background: #E9F3C4; }
:root[data-theme="sombre"] .bouton--clair, :root[data-theme="sombre"] .bouton--clair:hover { color: #1E2129; }
/* Ce qui est « ardoise » dans l'interface claire ressortirait à peine sur les blocs sombres */
:root[data-theme="sombre"] .bouton--sombre { background: #3A4254; }
:root[data-theme="sombre"] .bouton--sombre:hover { background: #4A5368; }
:root[data-theme="sombre"] .puce--active,
:root[data-theme="sombre"] .puce--active:hover,
:root[data-theme="sombre"] .onglets-clairs a[aria-current] { background: #E6E9F0; border-color: #E6E9F0; color: #1E2129; }
:root[data-theme="sombre"] .menu-compte__panneau { box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
:root[data-theme="sombre"] .avatar { background: #4A5672; }

/* Choix du thème dans le menu du compte : jour, système, nuit */
.menu-compte__theme { display: flex; align-items: center; gap: 10px; padding: 4px 10px 8px; }
.menu-compte__theme > span { flex-grow: 1; font-size: 15px; font-weight: 600; color: var(--texte); }
.theme-choix { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--trait-leger); }
.theme-choix button
{
	display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px; border: 0; border-radius: 9px;
	background: none; color: var(--texte-discret); font-size: 13px; font-weight: 700; cursor: pointer;
}
.theme-choix button:hover { color: var(--texte); }
.theme-choix button[aria-checked="true"] { background: var(--carte); color: var(--texte); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
:root[data-theme="sombre"] .theme-choix button[aria-checked="true"] { background: #3A4254; }
