/* ==========================================================================
   Barbarossa and Co — styles communs (vitrine, espace membre, administration)
   Polices auto-hébergées : aucune requête vers des serveurs tiers.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --noir: #0B0A0A;
  --noir-2: #0F0D0D;
  --surface: #141111;
  --surface-2: #1A1616;
  --ligne: #2A241C;
  --ligne-2: #4A3F2E;
  --or: #C9A55C;
  --or-clair: #E3C88A;
  --or-pale: #F1DCA8;
  --rouge: #8E1A22;
  --rouge-vif: #A8232C;
  --rouge-texte: #E0656B;
  --ivoire: #F4EEE2;
  --texte: #EFE8DA;
  --texte-2: #CFC7B8;
  --texte-3: #A39B8E;
  --vert: #7FB58E;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --rayon: 14px;
  --rayon-s: 10px;
  --rayon-l: 24px;
  --pilule: 999px;
  --verre: rgba(22, 17, 17, .58);
  --verre-bord: rgba(255, 236, 205, .09);
  --degrade: linear-gradient(115deg, var(--rouge-vif) 0%, var(--rouge-texte) 38%, var(--or) 100%);
  --degrade-rouge: linear-gradient(135deg, var(--rouge-vif), var(--rouge) 58%, color-mix(in srgb, var(--rouge) 72%, #000));
  --halo-rouge: 0 0 0 1px color-mix(in srgb, var(--rouge-vif) 55%, transparent), 0 16px 44px -14px color-mix(in srgb, var(--rouge-vif) 75%, transparent);
  --halo-or: 0 0 0 1px color-mix(in srgb, var(--or) 40%, transparent), 0 18px 50px -20px color-mix(in srgb, var(--or) 55%, transparent);
  --ombre-carte: 0 22px 60px -28px rgba(0, 0, 0, .85);
  --gouttiere: clamp(16px, 4vw, 48px);
  --ombre: 0 18px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lueur-saison: rgba(201, 165, 92, .14); /* halo d'ambiance, remplacé par saison */
}

/* === Thèmes saisonniers ======================================================
   Posés par js/core/saisons.js via l'attribut data-saison sur <html>.
   On ne remplace que la famille « or » (l'accent métallique du site) et la
   lueur d'ambiance : le noir et le rouge de la marque restent inchangés.
   Absence d'attribut = thème principal (hiver). Désactivable dans les réglages.
   Transition douce pour éviter tout « flash » au chargement. */
:root[data-saison] { transition: none; }
.mono, .btn, .pastille, h1, h2, h3, a, .num, .marque-nom { transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease); }

:root[data-saison="halloween"]     { --or:#E8822A; --or-clair:#F4A24E; --or-pale:#F9C58A; --lueur-saison:rgba(232,130,42,.20); }
:root[data-saison="noel"]          { --or:#E7D199; --or-clair:#F3E1B4; --or-pale:#F8EECB; --lueur-saison:rgba(227,200,138,.20); }
:root[data-saison="carnaval"]      { --or:#F0B81E; --or-clair:#F7CE55; --or-pale:#FADE86; --lueur-saison:rgba(240,184,30,.20); }
:root[data-saison="saint-valentin"]{ --or:#D98892; --or-clair:#E7A6AE; --or-pale:#F2C6CB; --lueur-saison:rgba(217,136,146,.22); }
:root[data-saison="printemps"]     { --or:#A9C7A0; --or-clair:#C4DBBC; --or-pale:#DCE9D6; --lueur-saison:rgba(169,199,160,.20); }
:root[data-saison="ete"]           { --or:#E6C04E; --or-clair:#F2D56F; --or-pale:#F8E59A; --lueur-saison:rgba(230,192,78,.20); }
:root[data-saison="automne"]       { --or:#CD853A; --or-clair:#E0A356; --or-pale:#EEC489; --lueur-saison:rgba(205,133,58,.20); }

/* === Palettes personnelles des membres (« Custom ») ============================
   Posées par js/core/palettes.js via data-palette sur <html>, dans l'espace membre
   uniquement. Placées APRÈS les saisons : la palette choisie par le membre l'emporte.
   Chaque palette recolore l'accent ET la couleur principale ; le fond noir reste. */
:root[data-palette="aphrodite"]  { --or:#E9A6B4; --or-clair:#F3C4CD; --or-pale:#F8DDE2; --rouge:#9C2C4A; --rouge-vif:#B83A5E; --rouge-texte:#EE7F9B; --lueur-saison:rgba(233,166,180,.20); }
:root[data-palette="eros"]       { --or:#F2B84B; --or-clair:#F7CF7A; --or-pale:#FBE2AC; --rouge:#A80F1E; --rouge-vif:#D11F30; --rouge-texte:#FF6B6B; --lueur-saison:rgba(209,31,48,.22); }
:root[data-palette="dionysos"]   { --or:#C8A2E0; --or-clair:#DCC0EE; --or-pale:#ECDDF7; --rouge:#5E1A4A; --rouge-vif:#7E2563; --rouge-texte:#D477B5; --lueur-saison:rgba(200,162,224,.20); }
:root[data-palette="hedone"]     { --or:#F0A877; --or-clair:#F6C29C; --or-pale:#FADBC4; --rouge:#9A3B22; --rouge-vif:#BD5230; --rouge-texte:#F08A6E; --lueur-saison:rgba(240,168,119,.20); }
:root[data-palette="ishtar"]     { --or:#E2B95C; --or-clair:#EDCD85; --or-pale:#F5E1B3; --rouge:#1D3F8F; --rouge-vif:#2A55B8; --rouge-texte:#7FA2F2; --lueur-saison:rgba(42,85,184,.24); }
:root[data-palette="lilith"]     { --or:#57C99A; --or-clair:#84DBB6; --or-pale:#B3EBD2; --rouge:#0F5A43; --rouge-vif:#177A5B; --rouge-texte:#6FE0B0; --lueur-saison:rgba(87,201,154,.18); }
:root[data-palette="nyx"]        { --or:#C9CED6; --or-clair:#DEE2E8; --or-pale:#EEF1F4; --rouge:#3A3F4A; --rouge-vif:#565D6B; --rouge-texte:#AEB6C4; --lueur-saison:rgba(201,206,214,.14); }
:root[data-palette="bacchanale"] { --or:#E8C98A; --or-clair:#F0DAAC; --or-pale:#F7E9CD; --rouge:#9E1150; --rouge-vif:#C41C66; --rouge-texte:#FF6FA8; --lueur-saison:rgba(196,28,102,.22); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--noir); color: var(--texte);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--or-clair); text-underline-offset: 3px; }
a:hover { color: var(--or-pale); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
::selection { background: var(--rouge); color: var(--ivoire); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ivoire); line-height: 1.06; margin: 0; letter-spacing: -.018em; text-wrap: balance; }
p { margin: 0; }
em.or, .or { color: var(--or-clair); }
.serif { font-family: var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.surtitre { font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--or); font-weight: 400; }
.muet { color: var(--texte-3); }
.petit { font-size: 14px; }
.conteneur { max-width: 1200px; margin: 0 auto; padding-inline: var(--gouttiere); }

/* Boutons -------------------------------------------------------------- */
.btn {
  --bg: transparent; --fg: var(--or-clair); --bd: var(--ligne-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-radius: var(--pilule); position: relative; overflow: hidden; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .35s var(--ease);
}
.btn { --bg: rgba(255, 240, 220, .035); }
.btn:hover { --bd: var(--or); color: var(--or-pale); transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--or) 25%, transparent), 0 12px 32px -16px color-mix(in srgb, var(--or) 60%, transparent); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.btn-rouge { --bg: var(--rouge); --fg: #FFF7EE; --bd: transparent; background-image: var(--degrade-rouge); box-shadow: var(--halo-rouge); }
.btn-rouge:hover { --bd: transparent; color: #fff; filter: brightness(1.08); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rouge-texte) 60%, transparent), 0 22px 54px -14px color-mix(in srgb, var(--rouge-vif) 90%, transparent); }
.btn-or { --bg: var(--or); --fg: #17120A; --bd: transparent; font-weight: 500; background-image: linear-gradient(135deg, var(--or-pale), var(--or) 55%, color-mix(in srgb, var(--or) 70%, #000)); box-shadow: var(--halo-or); }
.btn-or:hover { --bd: transparent; color: #17120A; filter: brightness(1.06); }
.btn-plein { width: 100%; }
.btn-petit { min-height: 38px; padding: 0 16px; font-size: 11.5px; letter-spacing: .1em; }
.btn-lien { background: none; border: 0; color: var(--or-clair); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { --fg: var(--rouge-texte); --bd: #5A2427; }
.btn-danger:hover { --bd: var(--rouge-texte); color: #F08A8F; }
/* reflet doré au survol */
.btn-rouge::after, .btn-or::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 210, .28) 50%, transparent 70%);
  transition: transform .7s var(--ease);
}
.btn-rouge:hover::after, .btn-or:hover::after { transform: translateX(120%); }

/* Formulaires ---------------------------------------------------------- */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .etiquette { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--texte-3); }
input:not([type]), input[type="text"], input[type="url"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: var(--noir-2); color: var(--texte);
  border: 1px solid var(--ligne-2); border-radius: 12px; font: 300 16px/1.4 var(--sans);
  transition: border-color .2s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px color-mix(in srgb, var(--or) 16%, transparent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--or) 50%), linear-gradient(135deg, var(--or) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.case { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; }
.case input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--or); flex: none; }
.aide { font-size: 13.5px; color: var(--texte-3); }

/* Cartes, pastilles ---------------------------------------------------- */
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.cadre-or { border: 1px solid var(--or); padding: 8px; }
.cadre-or > * { border: 1px solid var(--ligne-2); }
.pastille {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ligne-2);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-2); white-space: nowrap; border-radius: var(--pilule); background: rgba(255, 240, 220, .025);
}
.pastille.or { border-color: color-mix(in srgb, var(--or) 70%, transparent); color: var(--or-clair); background: color-mix(in srgb, var(--or) 9%, transparent); }
.pastille.rouge { background: var(--rouge); border-color: var(--rouge); color: #FBF6EC; }
.pastille.vert { border-color: #3D5E46; color: var(--vert); }
.pastille.alerte { border-color: #6A2A2D; color: var(--rouge-texte); }
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pastille.sans-point::before { display: none; }

.losange-sep { display: flex; align-items: center; gap: 12px; color: var(--or); }
.losange-sep::before, .losange-sep::after { content: ""; height: 1px; flex: 1; background: currentColor; opacity: .7; }
.losange-sep span { width: 9px; height: 9px; border: 1px solid currentColor; transform: rotate(45deg); }

/* Bandeau démo --------------------------------------------------------- */
.bandeau-demo {
  position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
  padding: 7px 16px; background: #1D1408; border-bottom: 1px solid var(--ligne-2); color: var(--or-clair);
  font-size: 12.5px; letter-spacing: .04em; text-align: center;
}
.bandeau-demo strong { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.bandeau-demo button { font-size: 12.5px; }

/* Notifications (toasts) & fenêtres ------------------------------------ */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; padding: 14px 18px; background: #1A1513; border: 1px solid var(--or); color: var(--texte);
  box-shadow: var(--ombre); font-size: 15px; animation: toast-in .45s var(--ease) both; border-radius: 14px;
}
.toast.erreur { border-color: var(--rouge-texte); }
.toast.sortie { animation: toast-out .35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

dialog.fenetre {
  width: min(94vw, 560px); max-height: 88vh; padding: 0; background: var(--surface); color: var(--texte);
  border: 1px solid color-mix(in srgb, var(--or) 55%, transparent); box-shadow: var(--ombre), 0 0 80px -30px color-mix(in srgb, var(--rouge-vif) 50%, transparent); border-radius: 22px;
}
dialog.fenetre[open] { animation: fenetre-in .35s var(--ease) both; }
dialog.fenetre::backdrop { background: rgba(5, 4, 4, .72); backdrop-filter: blur(3px); }
.fenetre-tete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px 0; }
.fenetre-corps { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.fenetre-pied { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 0 22px 22px; }
@keyframes fenetre-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.fermer { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--texte-2); cursor: pointer; font-size: 26px; line-height: 1; }

/* Avatar (initiales ou photo) ------------------------------------------ */
.avatar {
  --t: 20; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, hsl(var(--t) 35% 30%), hsl(var(--t) 30% 12%));
  border: 1px solid var(--ligne-2); color: var(--or-pale); font: 500 16px/1 var(--serif); letter-spacing: .04em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.grand { width: 96px; height: 96px; font-size: 34px; }

/* Animations d'apparition ---------------------------------------------- */
.revele { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.revele.vu { opacity: 1; transform: none; }
.vue-entree { animation: vue-in .5s var(--ease) both; }
@keyframes vue-in { from { opacity: 0; transform: translateY(12px); } }

.chiffres { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .revele { opacity: 1; transform: none; }
}
.mono { display: inline-block; flex: none; background: center / contain no-repeat url(../img/logo.png); }
/* Mascotte « hôte / Organisation » (silhouette or + nœud rouge, détourée). */
.mascotte { display: inline-block; flex: none; background: center / contain no-repeat url(../img/mascotte.png); }
.av-orga { flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 46% 38%, #A0222B, #4E0C12 78%); border: 1px solid var(--or); }
.av-orga .mascotte { width: 88%; height: 88%; background-position: center bottom; }
.hote-glow { filter: drop-shadow(0 10px 30px rgba(142, 26, 34, .5)); }

dialog.fenetre > form { display: flex; flex-direction: column; max-height: 88vh; max-height: 88dvh; }
dialog.fenetre .fenetre-corps { overflow-y: auto; min-height: 0; }
dialog.fenetre .fenetre-pied { padding-top: 14px; border-top: 1px solid var(--ligne); }
legend svg, .etiquette svg, .surtitre svg, .pastille svg { display: inline-block; vertical-align: -2px; }

/* === Refonte : utilitaires ============================================ */
.texte-degrade { background-image: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verre { background: var(--verre); border: 1px solid var(--verre-bord); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.eyebrow-pilule { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 7px 14px; border-radius: var(--pilule);
  border: 1px solid color-mix(in srgb, var(--or) 35%, transparent); background: rgba(20, 14, 12, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.eyebrow-pilule::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge-texte); box-shadow: 0 0 10px var(--rouge-vif); animation: pulser 2.4s ease-in-out infinite; }
@keyframes pulser { 50% { opacity: .45; transform: scale(.8); } }

/* Sélecteur de langue (FR · NL · EN) */
.langues { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--pilule); border: 1px solid var(--verre-bord); background: rgba(14, 10, 10, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); flex: none; }
.langues button { min-width: 36px; height: 30px; padding: 0 8px; border: 0; border-radius: var(--pilule); background: none; color: var(--texte-3); font: 500 11.5px/1 var(--sans); letter-spacing: .08em; cursor: pointer; transition: color .2s, background .2s; }
.langues button:hover { color: var(--ivoire); }
.langues button[aria-pressed="true"] { background: color-mix(in srgb, var(--or) 18%, transparent); color: var(--or-pale); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--or) 40%, transparent); }
