@property --tour { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root { --surface-pleine: #ffffff; --force-decor: .3; --fond-panneau: linear-gradient(#ffffff, #ffffff); --degrade-titre: linear-gradient(120deg, #6d28d9, #4f46e5 45%, #0891b2); --trait: rgb(15 23 42 / .1); }
@media (prefers-color-scheme: dark) {
  :root { --surface-pleine: #141b30; --force-decor: .46; --fond-panneau: linear-gradient(135deg, #232b55, #141b30 64%); --degrade-titre: linear-gradient(120deg, #c4b5fd, #818cf8 45%, #22d3ee); --trait: rgb(233 237 246 / .12); }
}
:root[data-theme="clair"] { --surface-pleine: #ffffff; --force-decor: .3; --fond-panneau: linear-gradient(#ffffff, #ffffff); --degrade-titre: linear-gradient(120deg, #6d28d9, #4f46e5 45%, #0891b2); --trait: rgb(15 23 42 / .1); }
:root[data-theme="sombre"] { --surface-pleine: #141b30; --force-decor: .46; --fond-panneau: linear-gradient(135deg, #232b55, #141b30 64%); --degrade-titre: linear-gradient(120deg, #c4b5fd, #818cf8 45%, #22d3ee); --trait: rgb(233 237 246 / .12); }

body::before { content: none; }
.decor-site { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.decor-site::before {
  content: ""; position: absolute; inset: 0; background-size: 46px 46px;
  background-image: linear-gradient(color-mix(in srgb, var(--texte) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--texte) 5%, transparent) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle at 55% 40%, #000 0, transparent 72%); mask-image: radial-gradient(circle at 55% 40%, #000 0, transparent 72%);
}
.decor-site i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: var(--force-decor); }
.decor-site i:nth-child(1) { top: -20vmax; left: -8vmax; background: #7c3aed; animation: derive-a 24s ease-in-out infinite alternate; }
.decor-site i:nth-child(2) { right: -16vmax; bottom: -22vmax; background: #06b6d4; animation: derive-b 28s ease-in-out infinite alternate; }
.decor-site i:nth-child(3) { top: 32%; left: 58%; width: 28vmax; height: 28vmax; background: #f59e0b; opacity: calc(var(--force-decor) * .42); animation: derive-c 32s ease-in-out infinite alternate; }

body:has(> .barre) main {
  --surface: color-mix(in srgb, var(--surface-pleine) 78%, transparent);
  --bord: var(--trait);
  --ombre: inset 0 1px 0 rgb(255 255 255 / .05), 0 30px 60px -46px rgb(79 70 229 / .75);
}
.carte.proc { background: color-mix(in srgb, var(--surface-pleine) 94%, transparent); }
.carte.lien:hover, .carte.tuile:hover, .raccourcis a:hover { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 26px 50px -30px color-mix(in srgb, var(--accent) 90%, transparent); }

main > .entete:has(> h1), .tete-page, .hero-accueil {
  border: 1.5px solid transparent;
  background: var(--fond-panneau) padding-box, conic-gradient(from var(--tour), #8b5cf6, #19b8dd, #f59e0b, #5b5bf0, #8b5cf6) border-box;
  box-shadow: 0 44px 90px -52px rgb(79 70 229 / .9);
  animation: tour-complet 9s linear infinite;
}

h1 .embleme {
  position: relative; display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; margin-right: .32em; border-radius: 50%; font-size: .76em; vertical-align: middle;
  -webkit-text-fill-color: initial; background: var(--degrade);
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 2px 0 rgb(255 255 255 / .28), inset 0 -8px 16px rgb(0 0 0 / .18);
}
h1 .embleme::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); animation: onde-embleme 2.8s ease-out infinite; }
h1:has(> .embleme) { background: var(--degrade-titre); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h1:has(> .embleme)::after { -webkit-text-fill-color: initial; }
.tete-proc h1:has(> .embleme) { background: none; -webkit-text-fill-color: currentColor; }

.btn { border-radius: 13px; }
.btn.petit { border-radius: 11px; }
.btn.secondaire { background: color-mix(in srgb, var(--surface-pleine) 72%, transparent); border-color: var(--trait); }

@media (min-width: 900px) {
  .barre {
    background: color-mix(in srgb, var(--surface-pleine) 62%, transparent); border-right: 1px solid var(--trait);
    -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  }
}

.fenetre-avis { border: 1.5px solid transparent; background: linear-gradient(var(--surface-pleine), var(--surface-pleine)) padding-box, conic-gradient(from var(--tour), #8b5cf6, #19b8dd, #f59e0b, #5b5bf0, #8b5cf6) border-box; animation: tour-complet 9s linear infinite; }
#noel { background: color-mix(in srgb, var(--surface-pleine) 70%, transparent); border-color: var(--trait); }

@keyframes tour-complet { to { --tour: 360deg; } }
@keyframes onde-embleme { from { scale: 1; opacity: .8; } to { scale: 1.7; opacity: 0; } }
@keyframes derive-a { to { translate: 9vmax 7vmax; scale: 1.15; } }
@keyframes derive-b { to { translate: -8vmax -6vmax; scale: 1.2; } }
@keyframes derive-c { to { translate: -12vmax 6vmax; scale: .85; } }

@media (max-width: 899.98px) {
  .decor-site i { animation: none; filter: blur(60px); }
  h1 .embleme { width: 1.7em; height: 1.7em; }
}
@media (prefers-reduced-motion: reduce) {
  .decor-site i, h1 .embleme::after, main > .entete:has(> h1), .tete-page, .hero-accueil, .fenetre-avis { animation: none; }
}
@media print { .decor-site { display: none; } }

.tuile-icone, .raccourcis a > i { border-radius: 50%; box-shadow: inset 0 2px 0 rgb(255 255 255 / .16), 0 10px 22px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.vider-journal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.outils-msg, .choix-reactions, .choix-mention, .visite-carte, .toasts, dialog { --surface: var(--surface-pleine); }

.tete-nouveautes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.tete-nouveautes h2 { margin: 0; flex: 1 1 auto; }
.tete-nouveautes .lien-suggestions { margin: 0; }
.pastille-nouveau { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, #f59e0b 72%, var(--texte)); background: rgb(245 158 11 / .14); border: 1px solid rgb(245 158 11 / .42); }
.pastille-nouveau i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; animation: battement-nouveau 1.6s ease-out infinite; }
.liste-nouveautes li { align-items: start; }
.liste-nouveautes strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.liste-nouveautes div > ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.liste-nouveautes div > ul > li { position: relative; display: block; padding: 0 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.liste-nouveautes div > ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--degrade); }
.anciennes-nouveautes, .outils-nouveautes { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--trait); }
.anciennes-nouveautes > summary, .outils-nouveautes > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); list-style: none; }
.anciennes-nouveautes > summary::-webkit-details-marker, .outils-nouveautes > summary::-webkit-details-marker { display: none; }
.anciennes-nouveautes > summary::after, .outils-nouveautes > summary::after { content: " ▾"; }
.anciennes-nouveautes[open] > summary::after, .outils-nouveautes[open] > summary::after { content: " ▴"; }
.anciennes-nouveautes .liste-nouveautes { margin-top: 12px; }
.outils-nouveautes .form-nouveaute { margin-top: 10px; padding-top: 0; border-top: 0; }
@keyframes battement-nouveau { from { box-shadow: 0 0 0 0 rgb(245 158 11 / .7); } to { box-shadow: 0 0 0 8px rgb(245 158 11 / 0); } }
@media (prefers-reduced-motion: reduce) { .pastille-nouveau i { animation: none; } }
@media (max-width: 560px) {
  .tete-nouveautes h2 { flex: 0 1 auto; }
  .liste-nouveautes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .liste-nouveautes time { justify-self: start; }
}

.genre-nouveaute { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; white-space: nowrap; min-width: 84px; margin-right: 8px; padding: 2px 9px; border: 1px solid; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; vertical-align: 1px; }
.genre-nouveaute.ajout { color: color-mix(in srgb, #22c55e 75%, var(--texte)); background: rgb(34 197 94 / .13); border-color: rgb(34 197 94 / .45); }
.genre-nouveaute.correctif { color: color-mix(in srgb, #f97316 75%, var(--texte)); background: rgb(249 115 22 / .13); border-color: rgb(249 115 22 / .45); }
.genre-nouveaute.ajustement { color: color-mix(in srgb, #38bdf8 72%, var(--texte)); background: rgb(56 189 248 / .13); border-color: rgb(56 189 248 / .45); }
.liste-nouveautes div > ul > li { display: flex; align-items: baseline; padding-left: 0; }
.liste-nouveautes div > ul > li::before { content: none; }
.choix-genre { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.choix-genre label { margin: 0; padding: 6px 12px; cursor: pointer; gap: 6px; font-size: 11.5px; }
.choix-genre input { margin: 0; accent-color: currentColor; }
.choix-genre label:has(input:checked) { box-shadow: 0 0 0 2px currentColor; }
.liste-nouveautes div > ul > li > .genre-nouveaute { min-width: 112px; }
.genre-nouveaute.info { color: color-mix(in srgb, #a78bfa 72%, var(--texte)); background: rgb(167 139 250 / .14); border-color: rgb(167 139 250 / .48); }
.liste-nouveautes p .genre-nouveaute { min-width: 0; margin-right: 6px; }
.choix-genre { align-items: center; }
.choix-genre small { flex-basis: 100%; }
@media (max-width: 560px) {
  .liste-nouveautes div > ul > li { display: block; }
  .liste-nouveautes div > ul > li > .genre-nouveaute { min-width: 0; margin-right: 6px; }
}
.outils-nouveautes .form-nouveaute { gap: 10px; }
.form-nouveaute > input[name="titre"], .lignes-nouveaute { grid-column: 1 / -1; }
.form-nouveaute > input[name="titre"] { font-weight: 600; }
.lignes-nouveaute { display: grid; gap: 8px; }
.ligne-nouveaute { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--trait); border-radius: 14px; background: color-mix(in srgb, var(--texte) 3%, transparent); }
.ligne-nouveaute textarea { width: 100%; box-sizing: border-box; min-height: 0; max-height: 12em; resize: vertical; field-sizing: content; }
.form-nouveaute .ajouter-ligne { justify-self: start; margin: 0; }
.choix-genre input { flex: none; width: auto; }
@media (min-width: 561px) { .liste-nouveautes div > ul > li > .genre-nouveaute:not(:only-of-type) { min-width: 0; margin-right: -6px; } }
@media (max-width: 560px) { .ligne-nouveaute .choix-genre { display: grid; grid-template-columns: 1fr 1fr; } .ligne-nouveaute .choix-genre label { justify-content: flex-start; } }
