/* =====================================================================
   OBSCURA COMMUNITY — réutilise les tokens --ob-* du thème.
   ===================================================================== */

/* ---- Bloc d'engagement (réactions mises en valeur + favori) ---- */
.oc-engage { max-width: 72ch; margin: 2.4rem auto 0; display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: stretch; padding: 1.6rem; border: 1px solid var(--ob-line); border-top: 2px solid var(--ob-gold); border-radius: 8px; background:
	radial-gradient(120% 140% at 0% 0%, rgba(138,14,50,.12), transparent 55%), var(--ob-ink-2); }
.oc-engage__prompt { display: flex; align-items: center; gap: .6rem; font-family: var(--ob-font-display); font-size: 1.15rem; color: var(--ob-cream); margin-bottom: 1rem; }
.oc-engage__prompt .ob-star { width: 1em; height: 1em; }
.oc-engage__total { margin-left: auto; font-family: var(--ob-font-body); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ob-gold); }
/* Barre de réactions façon Telegram : pastilles compactes premium */
.oc-reactions { display: flex; gap: .55rem; flex-wrap: wrap; }
.oc-react {
	--rc: var(--ob-gold);
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .5rem .95rem .5rem .8rem;
	border: 1px solid var(--ob-line); border-radius: 999px;
	background: var(--ob-ink); color: var(--ob-cream-dim);
	font: inherit; cursor: pointer;
	transition: transform .18s var(--ob-ease), border-color .2s, background .2s, color .2s;
	will-change: transform;
}
.oc-react:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rc) 60%, var(--ob-line)); color: var(--ob-cream); }
.oc-react.is-active {
	border-color: var(--rc); color: var(--rc);
	background: color-mix(in srgb, var(--rc) 16%, var(--ob-ink));
	box-shadow: 0 0 0 1px var(--rc), 0 6px 18px -10px var(--rc);
}
.oc-react__ico { display: inline-grid; place-items: center; color: var(--rc); flex: 0 0 auto; transition: transform .25s var(--ob-ease); }
.oc-react .oc-rico { width: 20px; height: 20px; }
.oc-react:hover .oc-react__ico { transform: scale(1.12) rotate(-4deg); }
.oc-react__label { font-size: .82rem; letter-spacing: .02em; }
.oc-react__count { font-weight: 700; font-size: .85rem; color: var(--ob-cream); font-variant-numeric: tabular-nums; min-width: .6em; text-align: center; }
.oc-react.is-active .oc-react__count { color: var(--rc); }
.oc-react.is-empty .oc-react__count { color: var(--ob-cream-mut); }
/* Animation « pop » au clic */
@keyframes oc-pop { 0%{transform:scale(1);} 35%{transform:scale(1.35);} 70%{transform:scale(.92);} 100%{transform:scale(1);} }
.oc-react.is-pop .oc-react__ico { animation: oc-pop .42s var(--ob-ease); }
@media (prefers-reduced-motion: reduce){ .oc-react,.oc-react__ico{transition:none;} .oc-react.is-pop .oc-react__ico{animation:none;} }

.oc-bookmark { display: inline-flex; align-items: center; gap: .8rem; padding: .9rem 1.3rem; border: 1px solid var(--ob-line); border-radius: 8px; background: var(--ob-ink); color: var(--ob-cream); font: inherit; cursor: pointer; text-align: left; transition: all .25s var(--ob-ease); }
.oc-bookmark:hover { border-color: var(--ob-gold); transform: translateY(-2px); }
.oc-bookmark.is-active { border-color: var(--ob-gold); background: linear-gradient(180deg, rgba(201,162,90,.14), rgba(138,14,50,.14)); }
.oc-bookmark__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ob-ink-3); flex: 0 0 auto; transition: all .25s var(--ob-ease); }
.oc-bookmark.is-active .oc-bookmark__ico { background: var(--ob-gold); }
.oc-bookmark__ico .ob-star { width: 20px; height: 20px; background: var(--ob-gold); }
.oc-bookmark.is-active .oc-bookmark__ico .ob-star { background: var(--ob-ink); }
.oc-bookmark__txt { display: flex; flex-direction: column; }
.oc-bookmark__label { font-size: .9rem; font-weight: 600; }
.oc-bookmark__hint { font-size: .74rem; color: var(--ob-cream-mut); }
@media (max-width: 640px) { .oc-engage { grid-template-columns: 1fr; } }

/* Bouton favori sur les cartes — toujours visible (mis en valeur) */
.ob-card { position: relative; }
.oc-card-bookmark { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(201,162,90,.4); border-radius: 50%; background: rgba(14,11,13,.78); color: var(--ob-gold); cursor: pointer; opacity: .9; transition: all .25s var(--ob-ease); backdrop-filter: blur(4px); }
.ob-card:hover .oc-card-bookmark { opacity: 1; }
.oc-card-bookmark:hover { background: var(--ob-gold); color: var(--ob-ink); }
.oc-card-bookmark.is-active { color: var(--ob-ink); background: var(--ob-gold); border-color: var(--ob-gold); opacity: 1; }
.oc-card-bookmark .ob-star { width: 16px; height: 16px; background: currentColor; }

/* Badge « dossier » sur l'icône compte de l'en-tête */
.ob-account-link { position: relative; }
.oc-dossier-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ob-burgundy); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* =====================================================================
   ESPACE MEMBRE — UI produit moderne (style Linear / Vercel)
   Dark neutre, Inter, cartes arrondies + ombres douces, accent bordeaux (marque).
   ===================================================================== */
.oc-account {
  --bg: #09090B; --card: #141417; --card-2: #1A1A1E; --hover: #1F1F24;
  --bd: rgba(255,255,255,.09); --bd-2: rgba(255,255,255,.16);
  --fg: #EDEDEF; --dim: #9A9AA2; --mut: #6A6A72;
  --accent: #8A0E32; --accent-2: #C9536B; --accent-soft: rgba(138,14,50,.15);
  --r: 14px; --r-sm: 9px; --r-xs: 7px;
  --sh: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -18px rgba(0,0,0,.75);
  --sh-hover: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.85);
  --inter: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  font-family: var(--inter);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.011em;
}
.oc-account-wrap { width: min(1100px, 92vw); margin-inline: auto; padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.oc-account-page .ob-article__body { max-width: 1100px; }
.oc-account-page .ob-article__hero { min-height: auto; padding-bottom: 0; }
.oc-account-page .ob-article__title { font-family: var(--inter); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.oc-account h1, .oc-account h2, .oc-account h3 { font-family: var(--inter); color: var(--fg); letter-spacing: -.02em; }
.oc-account a { color: inherit; }

/* Boutons */
.oc-account .ob-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--r-sm); font-family: var(--inter); font-weight: 500; font-size: .85rem; letter-spacing: -.01em; text-transform: none; padding: .62em 1.15em; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.oc-account .ob-btn--solid { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.oc-account .ob-btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); }
.oc-account .ob-btn:not(.ob-btn--solid) { background: var(--card-2); border: 1px solid var(--bd-2); color: var(--fg); }
.oc-account .ob-btn:not(.ob-btn--solid):hover { background: var(--hover); }

.oc-notice { margin: 0 0 1.5rem; padding: .85rem 1.1rem; border: 1px solid var(--bd); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--fg); font-size: .9rem; }

/* ---- Carte identité ---- */
.oc-id { display: flex; align-items: center; gap: 1.3rem; padding: 1.5rem 1.7rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh); }
.oc-id__avatar { flex: 0 0 auto; }
.oc-id__avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; border: 1px solid var(--bd-2); }
.oc-id__meta { min-width: 0; flex: 1; }
.oc-id__line { display: flex; align-items: center; gap: .7rem; }
.oc-id__name { font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin: 0; }
.oc-id__badge { font-size: .68rem; font-weight: 500; letter-spacing: .02em; color: var(--accent-2); background: var(--accent-soft); border: 1px solid rgba(138,14,50,.3); padding: .15em .6em; border-radius: 999px; }
.oc-id__since { color: var(--dim); font-size: .88rem; margin: .35rem 0 0; }
.oc-id__edit { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; align-self: flex-start; font-size: .82rem; font-weight: 500; color: var(--dim); background: var(--card-2); border: 1px solid var(--bd); padding: .5em .9em; border-radius: var(--r-sm); transition: color .15s ease, background .15s ease, border-color .15s ease; }
.oc-id__edit:hover { color: var(--fg); background: var(--hover); border-color: var(--bd-2); }

/* ---- Cartes statistiques ---- */
.oc-statcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin: .9rem 0 0; }
.oc-statcard { display: block; padding: 1.15rem 1.25rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.oc-statcard:hover { transform: translateY(-2px); border-color: var(--bd-2); box-shadow: var(--sh-hover); }
.oc-statcard__num { display: block; font-size: 1.85rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.oc-statcard__lbl { display: block; margin-top: .45rem; font-size: .8rem; color: var(--dim); }
@media (max-width: 720px) { .oc-statcards { grid-template-columns: repeat(2, 1fr); } }

/* ---- Onglets ---- */
.oc-tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--bd); margin: 1.8rem 0 clamp(1.6rem, 4vw, 2.4rem); }
.oc-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .85rem; color: var(--dim); font-size: .86rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: var(--r-xs) var(--r-xs) 0 0; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.oc-tab:hover { color: var(--fg); background: var(--card); }
.oc-tab.is-active { color: var(--fg); border-bottom-color: var(--accent); }
.oc-tab__ico { width: 16px; height: 16px; flex: 0 0 auto; color: var(--mut); transition: color .15s ease; }
.oc-tab:hover .oc-tab__ico, .oc-tab.is-active .oc-tab__ico { color: var(--accent-2); }
.oc-tab__count { font-size: .72rem; color: var(--mut); background: var(--card-2); border: 1px solid var(--bd); padding: .05em .5em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.oc-tab.is-active .oc-tab__count { color: var(--accent-2); border-color: rgba(138,14,50,.3); }
.oc-tab--out { margin-left: auto; }
.oc-tab--out:hover { color: var(--accent-2); }

.oc-main { min-width: 0; }

/* ---- Blocs / titres de section ---- */
.oc-dash-block { margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.oc-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.1rem; }
.oc-block-head h2 { font-size: 1.12rem; font-weight: 600; margin: 0; }
.ob-more { font-size: .82rem; font-weight: 500; color: var(--accent-2); white-space: nowrap; }
.ob-more:hover { color: var(--fg); }
.oc-hint { color: var(--dim); font-size: .92rem; margin: 0 0 1.2rem; }

/* ---- État vide ---- */
.oc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 2.6rem 1.5rem; color: var(--dim); font-size: .95rem; }
.oc-empty::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(138,14,50,.3); }

/* ---- Cartes d'articles (harmonisées dans l'espace membre) ---- */
.oc-account .ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.oc-account .ob-card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.oc-account .ob-card:hover { transform: translateY(-3px); border-color: var(--bd-2); box-shadow: var(--sh-hover); }
.oc-account .ob-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--card-2); }
.oc-account .ob-card__media img { width: 100%; height: 100%; object-fit: cover; }
.oc-account .ob-card__noimg { display: grid; place-items: center; height: 100%; color: var(--mut); font-size: 1.4rem; }
.oc-account .ob-card__body { padding: .95rem 1.05rem 1.1rem; }
.oc-account .ob-card .ob-kicker, .oc-account .ob-card__cat { color: var(--accent-2); font-size: .68rem; letter-spacing: .04em; }
.oc-account .ob-card__title { font-family: var(--inter); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: .35rem 0 .4rem; }
.oc-account .ob-card__title a { color: var(--fg); }
.oc-account .ob-card__title a:hover { color: var(--accent-2); }
.oc-account .ob-card__excerpt { color: var(--dim); font-size: .86rem; line-height: 1.55; margin: 0 0 .7rem; }
.oc-account .ob-card .ob-meta { color: var(--mut); font-size: .76rem; gap: .5rem; }
.oc-account .ob-card .ob-meta .ob-star, .oc-account .ob-card .ob-star { background: var(--mut); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .oc-id { flex-wrap: wrap; }
  .oc-id__edit { order: 3; }
  .oc-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .oc-tab { white-space: nowrap; }
  .oc-tab--out { margin-left: 0; }
}

/* ---- Mes commentaires ---- */
.oc-mycomments { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.oc-mycomment { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 1.1rem 1.3rem; transition: border-color .15s ease; }
.oc-mycomment:hover { border-color: var(--bd-2); }
.oc-mycomment__meta { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: .45rem; }
.oc-mycomment__post { font-weight: 600; font-size: 1rem; color: var(--fg); }
.oc-mycomment__post:hover { color: var(--accent-2); }
.oc-mycomment__date { font-size: .76rem; color: var(--mut); }
.oc-mycomment__text { color: var(--dim); font-size: .92rem; line-height: 1.6; }
.oc-mycomment__go { display: inline-block; margin-top: .55rem; font-size: .8rem; font-weight: 500; color: var(--accent-2); }

/* ---- Mes réactions ---- */
.oc-myreacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.oc-myreact { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); transition: border-color .15s ease; }
.oc-myreact:hover { border-color: var(--bd-2); }
.oc-myreact__ico { --rc: var(--accent); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--rc); background: var(--accent-soft); border: 1px solid rgba(138,14,50,.3); flex: 0 0 auto; }
.oc-myreact__ico .oc-rico { width: 18px; height: 18px; }
.oc-myreact__label { font-size: .74rem; font-weight: 500; color: var(--dim); flex: 0 0 auto; min-width: 84px; }
.oc-myreact__post { flex: 1; min-width: 0; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-myreact__post:hover { color: var(--accent-2); }
.oc-myreact__date { font-size: .76rem; color: var(--mut); flex: 0 0 auto; }
@media (max-width: 560px) { .oc-myreact__post { white-space: normal; } .oc-myreact__date { display: none; } }

/* ---- Rubriques suivies ---- */
.oc-cats { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.oc-cat { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); transition: border-color .15s ease; }
.oc-cat:hover { border-color: var(--bd-2); }
.oc-cat__name { font-weight: 600; font-size: 1rem; color: var(--fg); }
.oc-cat__count { color: var(--mut); font-size: .8rem; margin-left: auto; }
.oc-follow { border: 1px solid var(--bd-2); background: var(--card-2); color: var(--dim); border-radius: var(--r-sm); padding: .5em 1.1em; font-family: var(--inter); font-size: .78rem; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.oc-follow:hover { color: var(--fg); background: var(--hover); }
.oc-follow .oc-follow__on { display: none; }
.oc-follow.is-active { border-color: var(--accent); color: #fff; background: var(--accent); }
.oc-follow.is-active .oc-follow__on { display: inline; }
.oc-follow.is-active .oc-follow__off { display: none; }

/* ---- Réglages ---- */
.oc-form { display: grid; gap: 1.3rem; max-width: 640px; }
.oc-fieldset { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 1.5rem; margin: 0; }
.oc-fieldset legend { font-size: .8rem; font-weight: 600; color: var(--fg); padding: 0 .5rem; }
.oc-field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.oc-field label { font-size: .82rem; color: var(--dim); }
.oc-form input[type=text], .oc-form input[type=email], .oc-form textarea { background: #0E0E11; border: 1px solid var(--bd-2); border-radius: var(--r-sm); color: var(--fg); padding: .7rem .85rem; font: inherit; font-family: var(--inter); transition: border-color .15s ease, box-shadow .15s ease; }
.oc-form input:focus, .oc-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.oc-avatar-row { display: flex; align-items: center; gap: 1rem; }
.oc-avatar-row img { border-radius: 50%; border: 1px solid var(--bd-2); }
.oc-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--fg); margin-bottom: .55rem; }
.oc-check input { margin-top: .2rem; accent-color: var(--accent); }
.oc-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .35rem .9rem; }

/* ---- Invité (déconnecté) ---- */
.oc-guest { text-align: center; max-width: 520px; margin: 2.5rem auto; background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); box-shadow: var(--sh); padding: clamp(2rem, 5vw, 3rem); }
.oc-guest .ob-star { width: 1.6rem; height: 1.6rem; display: inline-block; background: var(--accent); }
.oc-guest h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 600; margin: .6rem 0 .5rem; }
.oc-guest p { color: var(--dim); }
.oc-guest__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---- Liens : neutralise l'héritage du thème (doré + soulignement) ---- */
.oc-account a[href] { color: var(--fg); text-decoration: none; }
.oc-account a.oc-tab { color: var(--dim); }
.oc-account a.oc-tab:hover, .oc-account a.oc-tab.is-active { color: var(--fg); }
.oc-account a.oc-id__edit { color: var(--dim); }
.oc-account a.oc-id__edit:hover { color: var(--fg); }
.oc-account a.ob-more { color: var(--accent-2); }
.oc-account a.ob-more:hover { color: var(--fg); }
.oc-account a.oc-mycomment__go { color: var(--accent-2); }
.oc-account a.oc-statcard:hover .oc-statcard__num { color: var(--accent-2); }
.oc-account .ob-card__title a:hover,
.oc-account a.oc-mycomment__post:hover,
.oc-account a.oc-myreact__post:hover { color: var(--accent-2); }
.oc-account .oc-statcard__lbl { color: var(--dim); }
.oc-account .oc-cat__count, .oc-account .oc-mycomment__date, .oc-account .oc-myreact__date { color: var(--mut); }

/* =====================================================================
   FORMULAIRE NEWSLETTER (shortcode)
   ===================================================================== */
.oc-newsletter { max-width: 460px; }
.oc-newsletter__title { font-family: var(--ob-font-display); font-size: 1.4rem; margin: 0 0 .4rem; color: var(--ob-cream); }
.oc-newsletter__text { color: var(--ob-cream-dim); font-size: .92rem; margin: 0 0 1rem; }
.oc-newsletter__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.oc-newsletter input[type=email] { flex: 1 1 220px; background: var(--ob-ink); border: 1px solid var(--ob-line); border-radius: 999px; color: var(--ob-cream); padding: .7rem 1.1rem; font: inherit; }
.oc-newsletter input[type=email]:focus { outline: none; border-color: var(--ob-gold); }
.oc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.oc-newsletter__msg { margin: .8rem 0 0; font-size: .88rem; min-height: 1.2em; }
.oc-newsletter__msg.is-ok { color: var(--ob-gold-soft); }
.oc-newsletter__msg.is-err { color: var(--ob-burgundy-lt); }

/* Variante footer : colonne étroite, champ pleine largeur + bouton dessous */
.oc-newsletter--footer { max-width: none; }
.oc-newsletter--footer .oc-newsletter__text { font-size: .9rem; }
.oc-newsletter--footer .oc-newsletter__row { flex-direction: column; align-items: stretch; gap: .6rem; }
.oc-newsletter--footer input[type=email] { flex: 1 1 auto; }
.oc-newsletter--footer .ob-btn { justify-content: center; }

/* =====================================================================
   COMMENTAIRES « REDDIT-LIKE »
   ===================================================================== */
.oc-comments { max-width: 80ch; margin: 0 auto; }
.oc-comments__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--ob-line); }
.oc-comments__title { font-family: var(--ob-font-display); font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0; display: flex; align-items: center; gap: .5rem; }
.oc-comments__title .ob-star { width: .8em; height: .8em; }
.oc-sort { display: inline-flex; gap: .3rem; background: var(--ob-ink-2); border: 1px solid var(--ob-line); border-radius: 999px; padding: .25rem; }
.oc-sort__opt { padding: .35em .9em; border-radius: 999px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ob-cream-dim); }
.oc-sort__opt.is-active { background: var(--ob-burgundy); color: #fff; }
.oc-sort__opt:hover { color: var(--ob-gold); }

/* Formulaire */
.oc-comment-form, .comment-respond { background: var(--ob-ink-2); border: 1px solid var(--ob-line); border-left: 3px solid var(--ob-gold); border-radius: 8px; padding: 1.2rem 1.4rem; margin: 0 0 2rem; }
.comment-respond .comment-reply-title { font-family: var(--ob-font-display); font-size: 1.2rem; margin: 0 0 .8rem; color: var(--ob-cream); }
.comment-respond .comment-reply-title small { margin-left: .6rem; font-size: .8rem; }
.oc-form-field textarea, .comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] {
	width: 100%; background: var(--ob-ink); border: 1px solid var(--ob-line); border-radius: 6px; color: var(--ob-cream); padding: .8rem .9rem; font: inherit; box-sizing: border-box; }
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--ob-gold); box-shadow: 0 0 0 3px rgba(201,162,90,.15); }
.comment-form .comment-form-author, .comment-form .comment-form-email, .comment-form .comment-form-url { display: inline-block; width: 32%; margin-right: 1%; }
@media (max-width: 600px) { .comment-form .comment-form-author, .comment-form .comment-form-email, .comment-form .comment-form-url { width: 100%; } }
.comment-form label { font-size: .8rem; color: var(--ob-cream-dim); }
.comment-form .form-submit .submit, .oc-comment-form .submit {
	background: var(--ob-burgundy); border: 1px solid var(--ob-burgundy); border-radius: 999px; color: #fff; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; padding: .7rem 1.6rem; cursor: pointer; transition: background .25s var(--ob-ease); }
.comment-form .form-submit .submit:hover { background: var(--ob-burgundy-lt); }

/* Liste */
.oc-comment-list, .oc-children { list-style: none; margin: 0; padding: 0; }
.oc-comment { margin: 0 0 .4rem; }
.oc-comment__row { display: flex; gap: .8rem; padding: .8rem 0; }
.oc-children { margin-left: 1.2rem; padding-left: 1rem; border-left: 1px solid var(--ob-line); }
.oc-children:hover { border-left-color: var(--ob-line-soft); }

/* Colonne de vote */
.oc-vote { display: flex; flex-direction: column; align-items: center; gap: .15rem; flex: 0 0 auto; width: 30px; }
.oc-vote__btn { border: 0; background: transparent; color: var(--ob-cream-mut); cursor: pointer; padding: 2px; line-height: 0; border-radius: 4px; transition: color .2s var(--ob-ease), transform .15s; }
.oc-vote__btn:hover { color: var(--ob-cream); }
.oc-vote__up.is-on { color: var(--ob-gold); }
.oc-vote__down.is-on { color: var(--ob-burgundy-lt); }
.oc-vote__btn:active { transform: scale(.85); }
.oc-vote__score { font-family: var(--ob-font-body); font-weight: 700; font-size: .82rem; color: var(--ob-cream); font-variant-numeric: tabular-nums; }
.oc-vote.is-up .oc-vote__score { color: var(--ob-gold); }
.oc-vote.is-down .oc-vote__score { color: var(--ob-burgundy-lt); }

/* Contenu */
.oc-comment__main { flex: 1; min-width: 0; }
.oc-comment__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--ob-cream-mut); margin-bottom: .4rem; }
.oc-collapse { border: 0; background: transparent; color: var(--ob-cream-mut); cursor: pointer; font-family: var(--ob-font-body); font-size: .8rem; padding: 0 .2rem; }
.oc-collapse:hover { color: var(--ob-gold); }
.oc-comment__avatar img { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.oc-comment__author { color: var(--ob-cream); font-weight: 600; }
.oc-tag { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: .15em .5em; border-radius: 999px; }
.oc-tag--op { background: var(--ob-burgundy); color: #fff; }
.oc-tag--grade { border: 1px solid var(--ob-line-soft); color: var(--ob-gold); }
.oc-comment__collapsed-count { display: none; color: var(--ob-cream-mut); font-style: italic; }
.oc-comment__text { color: var(--ob-cream); line-height: 1.65; font-size: .96rem; }
.oc-comment__text p { margin: 0 0 .6rem; }
.oc-comment__actions { margin-top: .5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.oc-comment__actions a, .oc-comment__actions button { font-size: .78rem; letter-spacing: .04em; color: var(--ob-cream-dim); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.oc-comment__actions a:hover, .oc-comment__actions button:hover { color: var(--ob-gold); }
.oc-cmt-delete:hover { color: var(--ob-burgundy-lt) !important; }
.oc-tag--pending { background: rgba(201,162,90,.14); border: 1px solid var(--ob-line-soft); color: var(--ob-gold); }
.oc-comment.is-pending > .oc-comment__row > .oc-comment__main > .oc-comment__text { opacity: .7; }

/* Formulaire d'édition inline */
.oc-edit-form { margin: .5rem 0; }
.oc-edit-text { width: 100%; background: var(--ob-ink); border: 1px solid var(--ob-gold); border-radius: 6px; color: var(--ob-cream); padding: .7rem .8rem; font: inherit; box-sizing: border-box; }
.oc-edit-text:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,162,90,.15); }
.oc-edit-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.oc-edit-actions .ob-btn { padding: .45em 1.1em; font-size: .74rem; }

/* Fil replié */
.oc-comment.is-collapsed > .oc-comment__row > .oc-comment__main > .oc-comment__text,
.oc-comment.is-collapsed > .oc-comment__row > .oc-comment__main > .oc-comment__actions,
.oc-comment.is-collapsed > .oc-comment__row > .oc-comment__main > .oc-children { display: none; }
.oc-comment.is-collapsed > .oc-comment__row > .oc-vote { opacity: .4; }
.oc-comment.is-collapsed .oc-comment__collapsed-count { display: inline; }

/* Le formulaire de réponse déplacé hérite du style .comment-respond */
.oc-children .comment-respond { margin: .6rem 0 1rem; }

/* =====================================================================
   Notifications « toast » — premium dark mystère
   ===================================================================== */
.oc-toasts {
  position: fixed;
  z-index: 99999;
  right: clamp(.8rem, 2.5vw, 1.6rem);
  bottom: clamp(.8rem, 2.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: min(380px, calc(100vw - 1.6rem));
  pointer-events: none;
}
.oc-toast {
  --oc-accent: var(--ob-gold);
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem .95rem;
  overflow: hidden;
  color: var(--ob-cream);
  background:
    linear-gradient(180deg, rgba(28,23,20,.96), rgba(14,11,13,.97));
  border: 1px solid var(--ob-line);
  border-left: 3px solid var(--oc-accent);
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  font-family: var(--ob-font-body);
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .42s var(--ob-ease), transform .42s var(--ob-ease);
}
.oc-toast.is-in  { opacity: 1; transform: translateY(0) scale(1); }
.oc-toast.is-out { opacity: 0; transform: translateY(8px) scale(.98); }
.oc-toast--success { --oc-accent: var(--ob-gold); }
.oc-toast--info    { --oc-accent: var(--ob-burgundy-lt); }
.oc-toast--error   { --oc-accent: var(--ob-burgundy); }

.oc-toast__ico {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--oc-accent);
  background: radial-gradient(circle at 50% 40%, rgba(201,162,90,.16), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oc-accent) 38%, transparent);
}
.oc-toast--error .oc-toast__ico { background: radial-gradient(circle at 50% 40%, rgba(138,14,50,.22), transparent 70%); }
.oc-toast__star { font-size: 1.15rem; line-height: 1; }
.oc-toast__msg {
  font-size: .98rem; line-height: 1.4;
  letter-spacing: .005em;
}
.oc-toast__close {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--ob-cream-dim); font-size: 1.25rem; line-height: 1;
  padding: .1rem .3rem; border-radius: 6px;
  transition: color .2s var(--ob-ease), background .2s var(--ob-ease);
}
.oc-toast__close:hover { color: var(--ob-cream); background: rgba(255,255,255,.06); }
.oc-toast__bar {
  position: absolute; left: 0; bottom: 0; height: 2px;
  width: 100%; transform-origin: left;
  background: linear-gradient(90deg, var(--oc-accent), transparent);
  animation: oc-toast-bar linear forwards;
}
@keyframes oc-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Commentaire fraîchement publié */
.oc-just-added { animation: oc-cmt-in .9s var(--ob-ease) both; }
@keyframes oc-cmt-in {
  0%   { opacity: 0; transform: translateY(-10px); background: rgba(201,162,90,.10); }
  60%  { background: rgba(201,162,90,.10); }
  100% { opacity: 1; transform: translateY(0); background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .oc-toast { transition: opacity .2s linear; transform: none; }
  .oc-toast.is-in, .oc-toast.is-out { transform: none; }
  .oc-toast__bar { animation-duration: .01ms !important; }
  .oc-just-added { animation: none; }
}

/* =====================================================================
   AUTHENTIFICATION (page Connexion) — cabinet Obscura
   ===================================================================== */
.oc-account-wrap:has(.oc-auth) {
  width: 100%;
  margin-inline: 0;
  padding: 0;
}

.oc-auth {
  --auth-ink: oklch(12% .018 27);
  --auth-panel: oklch(16% .02 33);
  --auth-field: oklch(18% .018 38);
  --auth-line: oklch(31% .033 48);
  --auth-cream: oklch(92% .021 78);
  --auth-dim: oklch(73% .02 72);
  --auth-muted: oklch(55% .018 68);
  --auth-gold: oklch(73% .115 79);
  --auth-gold-soft: oklch(83% .082 82);
  --auth-burgundy: oklch(38% .135 15);
  --auth-burgundy-lit: oklch(53% .155 16);
  --auth-ease: cubic-bezier(.16,1,.3,1);
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .96fr) minmax(420px, 1.04fr);
  min-height: calc(100vh - 96px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(115deg, color-mix(in oklch, var(--auth-burgundy) 28%, transparent) 0%, transparent 36%),
    linear-gradient(180deg, var(--auth-ink), oklch(10% .016 28));
  color: var(--auth-cream);
}

.oc-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--auth-gold) 12%, transparent) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, color-mix(in oklch, var(--auth-cream) 5%, transparent) 0 1px, transparent 1px 92px);
  mask-image: linear-gradient(90deg, oklch(0% 0 0), transparent 72%);
  opacity: .22;
}

/* Panneau de marque */
.oc-auth__brand {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: inherit;
  padding: clamp(2.2rem, 5vw, 5.4rem);
  border-right: 1px solid color-mix(in oklch, var(--auth-gold) 26%, transparent);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--auth-panel) 92%, transparent), color-mix(in oklch, var(--auth-ink) 96%, transparent)),
    linear-gradient(135deg, transparent 0 42%, color-mix(in oklch, var(--auth-gold) 10%, transparent) 42% 43%, transparent 43%);
}

.oc-auth__brand::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid color-mix(in oklch, var(--auth-gold) 28%, transparent);
  border-radius: 8px;
  pointer-events: none;
}

.oc-auth__brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  max-width: 520px;
  flex-direction: column;
  justify-content: center;
}

.oc-auth__logo {
  width: min(230px, 64%);
  height: auto;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
}

.oc-auth__logo-text {
  display: block;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  color: var(--auth-gold);
  font-family: var(--ob-font-display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 600;
}

.oc-auth__edition {
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--auth-gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1;
  text-transform: uppercase;
}

.oc-auth__tagline {
  max-width: 12ch;
  margin: 0 0 clamp(1.8rem, 4vw, 3.2rem);
  color: var(--auth-cream);
  font-family: var(--ob-font-display);
  font-size: clamp(2.45rem, 5.4vw, 5.6rem);
  font-weight: 600;
  line-height: .95;
}

.oc-auth__perks {
  display: grid;
  gap: .72rem;
  max-width: 370px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-auth__perks li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: .55rem;
  align-items: baseline;
  color: var(--auth-dim);
  font-size: 1.02rem;
  line-height: 1.35;
}

.oc-auth__star {
  color: var(--auth-gold);
  font-size: .88em;
  line-height: 1;
}

.oc-auth__seal {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: clamp(1.8rem, 4vw, 3.4rem);
}

.oc-auth__seal span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid color-mix(in oklch, var(--auth-gold) 34%, transparent);
  border-radius: 999px;
  padding: .45rem .8rem;
  color: var(--auth-gold-soft);
  font-size: .78rem;
  letter-spacing: .04em;
}

.oc-auth__watermark {
  position: absolute;
  right: -1vw;
  bottom: -2.4vw;
  z-index: 1;
  color: color-mix(in oklch, var(--auth-gold) 8%, transparent);
  font-family: var(--ob-font-display);
  font-size: clamp(8rem, 17vw, 18rem);
  font-weight: 700;
  line-height: .78;
  pointer-events: none;
}

/* Panneau formulaire */
.oc-auth__main {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.oc-auth__card {
  position: relative;
  width: min(100%, 480px);
  border: 1px solid color-mix(in oklch, var(--auth-cream) 12%, transparent);
  border-radius: 8px;
  padding: clamp(1.3rem, 3.2vw, 2.35rem);
  background: linear-gradient(180deg, color-mix(in oklch, var(--auth-panel) 93%, transparent), color-mix(in oklch, var(--auth-ink) 98%, transparent));
  box-shadow: 0 28px 80px -52px color-mix(in oklch, var(--auth-burgundy) 82%, oklch(0% 0 0));
}

.oc-auth__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 8px;
  background: color-mix(in oklch, var(--auth-gold) 9%, transparent);
  filter: blur(22px);
  opacity: .45;
}

.oc-auth__mobile-brand { display: none; }
.oc-auth__desktop-kicker { margin-bottom: .95rem; }
.oc-auth .ob-kicker { color: var(--auth-gold); }
.oc-auth .ob-kicker::before { background: currentColor; }

.oc-auth__title {
  margin: 0 0 .65rem;
  color: var(--auth-cream);
  font-family: var(--ob-font-display);
  font-size: clamp(2.35rem, 4.3vw, 4rem);
  font-weight: 600;
  line-height: .98;
}

.oc-auth__sub {
  max-width: 42ch;
  margin: 0 0 1.55rem;
  color: var(--auth-dim);
  font-size: 1.06rem;
  line-height: 1.55;
}

.oc-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin: 0 0 1.45rem;
  border: 1px solid color-mix(in oklch, var(--auth-cream) 12%, transparent);
  border-radius: 999px;
  padding: .25rem;
  background: color-mix(in oklch, var(--auth-ink) 62%, transparent);
}

.oc-auth__tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--auth-muted);
  font-family: var(--ob-font-body);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: background .2s var(--auth-ease), color .2s var(--auth-ease);
}

.oc-auth__tab:hover { color: var(--auth-cream); }
.oc-auth__tab.is-active {
  background: var(--auth-cream);
  color: var(--auth-ink);
}

.oc-auth__form {
  display: grid;
  gap: 1rem;
}

.oc-auth__field {
  display: grid;
  gap: .45rem;
}

.oc-auth__field > span {
  color: var(--auth-dim);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.oc-auth__field em {
  color: var(--auth-muted);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.oc-auth__field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid color-mix(in oklch, var(--auth-cream) 16%, transparent);
  border-radius: 8px;
  background: var(--auth-field);
  color: var(--auth-cream);
  font-family: var(--ob-font-body);
  font-size: 1.08rem;
  line-height: 1.2;
  padding: .85rem 1rem;
  transition: border-color .2s var(--auth-ease), box-shadow .2s var(--auth-ease), background .2s var(--auth-ease);
}

.oc-auth__field input:hover {
  border-color: color-mix(in oklch, var(--auth-cream) 30%, transparent);
  background: color-mix(in oklch, var(--auth-field) 86%, var(--auth-cream));
}

.oc-auth__field input:focus {
  outline: none;
  border-color: var(--auth-gold);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--auth-gold) 22%, transparent);
}

.oc-auth__field small {
  color: var(--auth-muted);
  font-size: .84rem;
}

.oc-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--auth-dim);
  font-size: .95rem;
}

.oc-auth__row a,
.oc-auth__back a,
.oc-auth__alt a {
  color: var(--auth-gold);
  text-decoration: none;
}

.oc-auth__row a:hover,
.oc-auth__back a:hover,
.oc-auth__alt a:hover { color: var(--auth-gold-soft); }

.oc-auth__check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--auth-dim);
  cursor: pointer;
}

.oc-auth__check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-burgundy);
}

.oc-auth__submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  margin-top: .35rem;
  border-color: var(--auth-burgundy) !important;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--auth-burgundy-lit), var(--auth-burgundy)) !important;
  color: var(--auth-cream) !important;
  font-size: .84rem;
  letter-spacing: .14em;
  box-shadow: 0 18px 34px -22px var(--auth-burgundy-lit);
}

.oc-auth__submit:hover {
  border-color: var(--auth-burgundy-lit) !important;
  background: linear-gradient(180deg, color-mix(in oklch, var(--auth-burgundy-lit) 88%, var(--auth-gold)), var(--auth-burgundy)) !important;
  color: var(--auth-cream) !important;
}

.oc-auth__alt,
.oc-auth__back {
  color: var(--auth-dim);
  font-size: .96rem;
  line-height: 1.45;
}

.oc-auth__alt { margin: 1.15rem 0 0; }
.oc-auth__back { margin: 1.65rem 0 0; font-size: .9rem; }

.oc-auth__notice {
  margin: 0 0 1.3rem;
  border: 1px solid color-mix(in oklch, var(--auth-gold) 32%, transparent);
  border-radius: 8px;
  padding: .9rem 1rem;
  background: color-mix(in oklch, var(--auth-gold) 10%, transparent);
  color: var(--auth-gold-soft);
  font-size: .94rem;
  line-height: 1.5;
}

.oc-auth__notice p { margin: 0 0 .3rem; }
.oc-auth__notice p:last-child { margin: 0; }
.oc-auth__notice.is-err {
  border-color: color-mix(in oklch, var(--auth-burgundy-lit) 58%, transparent);
  background: color-mix(in oklch, var(--auth-burgundy) 18%, transparent);
  color: oklch(76% .112 22);
}

.oc-auth .cf-turnstile,
.oc-auth .tsg-wrap {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 980px) {
  .oc-auth {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .oc-auth__brand { display: none; }
  .oc-auth__main { min-height: calc(100vh - 72px); padding: clamp(1.2rem, 5vw, 2.2rem); }
  .oc-auth__mobile-brand { display: grid; gap: .85rem; margin-bottom: 1rem; }
  .oc-auth__mobile-logo { width: min(190px, 58vw); height: auto; }
  .oc-auth__desktop-kicker { display: none; }
}

@media (max-width: 520px) {
  .oc-auth__main { align-items: start; padding: 1rem; }
  .oc-auth__card { padding: 1rem; }
  .oc-auth__mobile-brand { gap: .45rem; margin-bottom: .65rem; }
  .oc-auth__mobile-logo { display: none; }
  .oc-auth__title { font-size: clamp(1.85rem, 11vw, 2.45rem); margin-bottom: .45rem; }
  .oc-auth__sub { margin-bottom: 1rem; font-size: .98rem; line-height: 1.45; }
  .oc-auth__tabs { grid-template-columns: 1fr; border-radius: 8px; }
  .oc-auth__tab { border-radius: 6px; }
  .oc-auth__form { gap: .82rem; }
  .oc-auth__field input { min-height: 48px; }
  .oc-auth__row { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .oc-auth__submit { min-height: 48px; }
}

/* Version corrigée : page d'accès compacte, lisible, sans poster géant. */
.site-main:has(.oc-auth) > .ct-trending-block { display: none !important; }

.oc-auth {
  width: min(1160px, calc(100% - clamp(1rem, 5vw, 4rem)));
  min-height: auto;
  margin: clamp(1.7rem, 4.5vw, 3.8rem) auto clamp(2.2rem, 5vw, 4.8rem);
  grid-template-columns: minmax(300px, .84fr) minmax(430px, 1fr);
  border-color: color-mix(in oklch, var(--auth-gold) 22%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--auth-burgundy) 12%, transparent), transparent 44%),
    linear-gradient(180deg, oklch(13% .019 28), oklch(10% .016 30));
  box-shadow: 0 24px 70px -48px color-mix(in oklch, var(--auth-burgundy) 70%, oklch(0% 0 0));
}

.oc-auth::before {
  opacity: .08;
  mask-image: linear-gradient(90deg, oklch(0% 0 0), transparent 64%);
}

.oc-auth__brand {
  min-height: auto;
  padding: clamp(2rem, 4.2vw, 3.9rem);
  border-right-color: color-mix(in oklch, var(--auth-gold) 18%, transparent);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--auth-panel) 92%, transparent), color-mix(in oklch, var(--auth-ink) 96%, transparent));
}

.oc-auth__brand::after {
  inset: clamp(.8rem, 1.6vw, 1.2rem);
  border-color: color-mix(in oklch, var(--auth-gold) 18%, transparent);
}

.oc-auth__brand-inner {
  justify-content: flex-start;
  max-width: 390px;
}

.oc-auth__logo {
  width: min(190px, 70%);
  margin-bottom: clamp(2.2rem, 5vw, 4.8rem);
}

.oc-auth__edition {
  margin-bottom: .65rem;
  font-size: .68rem;
  letter-spacing: .22em;
}

.oc-auth__tagline {
  max-width: 11.5ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
  font-size: clamp(2.05rem, 3.5vw, 3.55rem);
  line-height: .98;
}

.oc-auth__perks {
  gap: .62rem;
  max-width: 330px;
}

.oc-auth__perks li {
  grid-template-columns: 1rem 1fr;
  gap: .5rem;
  font-size: .96rem;
  line-height: 1.34;
}

.oc-auth__seal {
  margin-top: clamp(1.3rem, 3vw, 2.2rem);
}

.oc-auth__seal span {
  min-height: 30px;
  padding: .38rem .7rem;
  font-size: .72rem;
}

.oc-auth__watermark {
  right: auto;
  left: -1rem;
  bottom: -1.5rem;
  font-size: clamp(5.6rem, 11vw, 11rem);
  opacity: .46;
}

.oc-auth__main {
  place-items: center start;
  padding: clamp(2rem, 4.5vw, 4.2rem);
}

.oc-auth__card {
  width: min(100%, 470px);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.oc-auth__card::before { display: none; }

.oc-auth__desktop-kicker { margin-bottom: .8rem; }

.oc-auth__title {
  max-width: 10ch;
  margin-bottom: .7rem;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  line-height: 1;
}

.oc-auth__sub {
  max-width: 43ch;
  margin-bottom: 1.45rem;
  font-size: 1rem;
  line-height: 1.55;
}

.oc-auth__tabs {
  max-width: 430px;
  margin-bottom: 1.3rem;
  border-radius: 8px;
  background: color-mix(in oklch, var(--auth-ink) 76%, transparent);
}

.oc-auth__tab {
  min-height: 40px;
  border-radius: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
}

.oc-auth__form {
  gap: .95rem;
}

.oc-auth__field > span {
  font-size: .72rem;
  letter-spacing: .13em;
}

.oc-auth__field input {
  min-height: 50px;
  border-color: color-mix(in oklch, var(--auth-cream) 18%, transparent);
  background: oklch(17% .017 32);
  font-size: 1rem;
}

.oc-auth__field input:-webkit-autofill,
.oc-auth__field input:-webkit-autofill:hover,
.oc-auth__field input:-webkit-autofill:focus {
  border-color: var(--auth-gold);
  -webkit-box-shadow: 0 0 0 1000px oklch(17% .017 32) inset !important;
  -webkit-text-fill-color: var(--auth-cream) !important;
  caret-color: var(--auth-cream);
  transition: background-color 9999s ease-out;
}

.oc-auth__row {
  font-size: .9rem;
}

.oc-auth__submit {
  min-height: 50px;
  border-radius: 8px;
  margin-top: .15rem;
}

.oc-auth__alt {
  margin-top: 1rem;
}

.oc-auth__back {
  margin-top: 1.1rem;
}

@media (max-width: 1080px) {
  .oc-auth {
    grid-template-columns: minmax(260px, .72fr) minmax(410px, 1fr);
  }

  .oc-auth__tagline {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  }
}

@media (max-width: 900px) {
  .oc-auth {
    width: min(620px, calc(100% - 2rem));
    grid-template-columns: 1fr;
  }

  .oc-auth__main {
    min-height: auto;
    place-items: start;
  }
}

@media (max-width: 520px) {
  .oc-auth {
    width: min(100%, calc(100% - 1rem));
    margin-top: .9rem;
    margin-bottom: 2rem;
  }

  .oc-auth__main {
    padding: 1.15rem;
  }

  .oc-auth__card {
    width: 100%;
  }

  .oc-auth__title {
    max-width: none;
    font-size: clamp(1.85rem, 10vw, 2.4rem);
  }

  .oc-auth__tabs {
    grid-template-columns: 1fr 1fr;
  }

  .oc-auth__tab {
    min-height: 38px;
    font-size: .7rem;
  }
}

/* Indicateur de force du mot de passe */
.oc-pw { display: flex; align-items: center; gap: .7rem; margin-top: .15rem; }
.oc-pw__track { flex: 1; height: 4px; border-radius: 999px; background: var(--ob-line); overflow: hidden; }
.oc-pw__fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s var(--ob-ease), background .25s var(--ob-ease); }
.oc-pw__label { min-width: 46px; font-size: .72rem; letter-spacing: .04em; color: var(--ob-cream-mut); text-align: right; }
.oc-pw[data-level="1"] .oc-pw__fill { width: 33%; background: var(--ob-burgundy-lt); }
.oc-pw[data-level="2"] .oc-pw__fill { width: 66%; background: var(--ob-gold); }
.oc-pw[data-level="3"] .oc-pw__fill { width: 100%; background: var(--ob-gold-soft); }
.oc-pw[data-level="1"] .oc-pw__label { color: var(--ob-burgundy-lt); }
.oc-pw[data-level="2"] .oc-pw__label { color: var(--ob-gold); }
.oc-pw[data-level="3"] .oc-pw__label { color: var(--ob-gold-soft); }

/* Notice de bienvenue (après activation) */
.oc-notice--ok { border-color: var(--accent); }

/* =====================================================================
   AUTHENTIFICATION V2 — refonte sobre sans jaune/or
   ===================================================================== */
body:has(.oc-auth) .ct-trending-block,
body:has(.oc-auth) .ct-footer {
  display: none !important;
}

body:has(.oc-auth) #header {
  display: none !important;
}

body:has(.oc-auth) .ct-header {
  border-bottom-color: rgba(190, 45, 82, .46);
}

body:has(.oc-auth) .ct-header::after {
  background: linear-gradient(90deg, transparent, rgba(190, 45, 82, .72), transparent);
}

.oc-account-wrap:has(.oc-auth) {
  width: 100%;
  margin-inline: 0;
  padding: 0;
}

.oc-auth {
  --auth-bg: #0f0b0d;
  --auth-panel: #171012;
  --auth-panel-2: #1f1518;
  --auth-field: #211719;
  --auth-line: rgba(239, 224, 218, .14);
  --auth-line-strong: rgba(239, 224, 218, .24);
  --auth-text: #efe0da;
  --auth-soft: #c7aaa3;
  --auth-muted: #8c7470;
  --auth-accent: #be2d52;
  --auth-accent-deep: #7c1731;
  --auth-accent-soft: rgba(190, 45, 82, .18);
  --auth-focus: rgba(220, 73, 109, .34);
  --auth-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(420px, 520px);
  gap: clamp(2.2rem, 6vw, 5rem);
  width: min(1120px, calc(100% - clamp(1.2rem, 6vw, 5rem)));
  min-height: auto;
  margin: clamp(2rem, 6vw, 5rem) auto clamp(2.4rem, 7vw, 6rem);
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow: visible;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(190, 45, 82, .18), transparent 38%),
    linear-gradient(180deg, #130d0f, #0c090a);
  color: var(--auth-text);
  box-shadow: 0 32px 90px -62px rgba(0, 0, 0, .95);
}

.oc-auth::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(239, 224, 218, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(239, 224, 218, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(120deg, black, transparent 74%);
  opacity: .45;
}

.oc-auth::after {
  content: "";
  position: absolute;
  inset: auto 18% -1px 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--auth-accent), transparent);
  opacity: .82;
}

.oc-auth__brand {
  position: relative;
  display: grid;
  min-height: auto;
  align-items: start;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
    var(--auth-panel);
}

.oc-auth__brand::before {
  content: "OBSCURA";
  display: block;
  margin-bottom: clamp(2rem, 6vw, 4.6rem);
  color: var(--auth-text);
  font-family: var(--ob-font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .9;
}

.oc-auth__brand::after {
  content: "";
  position: absolute;
  inset: auto -16% -34% auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(190, 45, 82, .26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 45, 82, .16), transparent 62%);
  pointer-events: none;
}

.oc-auth__brand-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  max-width: none;
  align-content: start;
}

.oc-auth__logo,
.oc-auth__logo-text,
.oc-auth__watermark {
  display: none !important;
}

.oc-auth__edition,
.oc-auth .ob-kicker {
  width: fit-content;
  margin: 0 0 .8rem;
  color: #e46a86;
  font-family: var(--ob-font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.oc-auth .ob-kicker::before {
  background: currentColor;
}

.oc-auth__tagline {
  max-width: 12ch;
  margin: 0 0 1.5rem;
  color: var(--auth-text);
  font-family: var(--ob-font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}

.oc-auth__perks {
  display: grid;
  gap: .62rem;
  max-width: 310px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oc-auth__perks li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: .55rem;
  align-items: baseline;
  color: var(--auth-soft);
  font-size: .94rem;
  line-height: 1.38;
}

.oc-auth__star {
  color: #e46a86;
  font-size: .72rem;
  line-height: 1;
}

.oc-auth__seal {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.35rem;
}

.oc-auth__seal span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(228, 106, 134, .28);
  border-radius: 999px;
  padding: .38rem .72rem;
  color: var(--auth-soft);
  font-size: .72rem;
  letter-spacing: .04em;
}

.oc-auth__main {
  display: grid;
  min-height: auto;
  place-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem) clamp(.4rem, 1vw, 1rem);
}

.oc-auth__card {
  position: relative;
  width: min(100%, 500px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.oc-auth__card::before {
  display: none;
}

.oc-auth__mobile-brand {
  display: none;
}

.obscura .oc-auth__mobile-logo {
  display: none !important;
}

.oc-auth__desktop-kicker {
  margin-bottom: .9rem;
}

.oc-auth__title {
  max-width: 12ch;
  margin: 0 0 .75rem;
  color: var(--auth-text);
  font-family: var(--ob-font-display);
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 600;
  line-height: 1;
}

.oc-auth__sub {
  max-width: 44ch;
  margin: 0 0 1.45rem;
  color: var(--auth-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.oc-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  max-width: 100%;
  margin: 0 0 1.35rem;
  padding: .28rem;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.oc-auth__tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--auth-soft);
  font-family: var(--ob-font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background .2s var(--auth-ease), color .2s var(--auth-ease), border-color .2s var(--auth-ease);
}

.oc-auth__tab:hover {
  color: var(--auth-text);
}

.oc-auth__tab.is-active {
  background: var(--auth-text);
  color: #170d10;
}

.obscura .entry-content .oc-auth a.oc-auth__tab,
.obscura .entry-content .oc-auth a.oc-auth__tab:hover,
.obscura .entry-content .oc-auth a.oc-auth__tab.is-active {
  text-decoration: none;
}

.obscura .entry-content .oc-auth a.oc-auth__tab {
  color: var(--auth-soft);
}

.obscura .entry-content .oc-auth a.oc-auth__tab:hover {
  color: var(--auth-text);
}

.obscura .entry-content .oc-auth a.oc-auth__tab.is-active {
  color: #170d10;
}

.oc-auth__form {
  display: grid;
  gap: .95rem;
}

.oc-auth__field {
  display: grid;
  gap: .45rem;
}

.oc-auth__field > span {
  color: var(--auth-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.oc-auth__field em {
  color: var(--auth-muted);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.oc-auth__field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 6px;
  background: var(--auth-field);
  color: var(--auth-text);
  font-family: var(--ob-font-body);
  font-size: 1rem;
  line-height: 1.2;
  padding: .86rem 1rem;
  transition: border-color .2s var(--auth-ease), box-shadow .2s var(--auth-ease), background .2s var(--auth-ease);
}

.oc-auth__field input:hover {
  border-color: rgba(239, 224, 218, .38);
  background: #261a1d;
}

.oc-auth__field input:focus {
  outline: none;
  border-color: #e46a86;
  box-shadow: 0 0 0 3px var(--auth-focus);
}

.oc-auth__field input:-webkit-autofill,
.oc-auth__field input:-webkit-autofill:hover,
.oc-auth__field input:-webkit-autofill:focus {
  border-color: #e46a86;
  -webkit-box-shadow: 0 0 0 1000px var(--auth-field) inset !important;
  -webkit-text-fill-color: var(--auth-text) !important;
  caret-color: var(--auth-text);
  transition: background-color 9999s ease-out;
}

.oc-auth__field small {
  color: var(--auth-muted);
  font-size: .84rem;
}

.oc-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--auth-soft);
  font-size: .92rem;
}

.oc-auth__row a,
.oc-auth__back a,
.oc-auth__alt a {
  color: #e46a86;
  text-decoration: none;
}

.obscura .entry-content .oc-auth .oc-auth__row a,
.obscura .entry-content .oc-auth .oc-auth__back a,
.obscura .entry-content .oc-auth .oc-auth__alt a {
  color: #e46a86;
  text-decoration: none;
}

.oc-auth__row a:hover,
.oc-auth__back a:hover,
.oc-auth__alt a:hover {
  color: var(--auth-text);
}

.obscura .entry-content .oc-auth .oc-auth__row a:hover,
.obscura .entry-content .oc-auth .oc-auth__back a:hover,
.obscura .entry-content .oc-auth .oc-auth__alt a:hover {
  color: var(--auth-text);
}

.oc-auth__check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--auth-soft);
  cursor: pointer;
}

.oc-auth__check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--auth-accent);
}

.oc-auth__submit {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  margin-top: .18rem;
  border: 1px solid var(--auth-accent) !important;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--auth-accent), var(--auth-accent-deep)) !important;
  color: var(--auth-text) !important;
  font-size: .82rem;
  letter-spacing: .14em;
  box-shadow: 0 18px 34px -24px rgba(190, 45, 82, .85);
}

.oc-auth__submit:hover {
  border-color: #e46a86 !important;
  background: linear-gradient(180deg, #d9466d, #8e1c3a) !important;
  color: var(--auth-text) !important;
}

.oc-auth__alt,
.oc-auth__back {
  color: var(--auth-soft);
  font-size: .94rem;
  line-height: 1.45;
}

.oc-auth__alt { margin: 1rem 0 0; }
.oc-auth__back { margin: 1.05rem 0 0; font-size: .88rem; }

.oc-auth__notice {
  margin: 0 0 1.2rem;
  border: 1px solid rgba(228, 106, 134, .3);
  border-radius: 6px;
  padding: .85rem .95rem;
  background: rgba(190, 45, 82, .11);
  color: var(--auth-text);
  font-size: .92rem;
  line-height: 1.5;
}

.oc-auth__notice p { margin: 0 0 .3rem; }
.oc-auth__notice p:last-child { margin: 0; }
.oc-auth__notice.is-ok {
  border-color: rgba(111, 171, 143, .4);
  background: rgba(49, 110, 82, .16);
  color: #bfe5d0;
}
.oc-auth__notice.is-err {
  border-color: rgba(228, 106, 134, .45);
  background: rgba(190, 45, 82, .14);
  color: #f0b6c4;
}

.oc-pw__track { background: rgba(239, 224, 218, .15); }
.oc-pw[data-level="1"] .oc-pw__fill { background: #be2d52; }
.oc-pw[data-level="2"] .oc-pw__fill { background: #d9466d; }
.oc-pw[data-level="3"] .oc-pw__fill { background: #bfe5d0; }
.oc-pw[data-level="1"] .oc-pw__label { color: #f0b6c4; }
.oc-pw[data-level="2"] .oc-pw__label { color: #e46a86; }
.oc-pw[data-level="3"] .oc-pw__label { color: #bfe5d0; }

@media (max-width: 900px) {
  .oc-auth {
    grid-template-columns: 1fr;
    width: min(620px, calc(100% - 1.4rem));
    gap: 0;
    margin-block: 1rem 2.4rem;
  }

  .oc-auth__brand {
    display: none;
  }

  .oc-auth__main {
    padding: clamp(1.1rem, 5vw, 2rem);
  }

  .oc-auth__mobile-brand {
    display: block;
    margin-bottom: .7rem;
  }

  .oc-auth__mobile-logo {
    display: none;
  }

  .oc-auth__desktop-kicker {
    display: none;
  }

  .oc-auth__title {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .oc-auth {
    width: min(100%, calc(100% - .8rem));
    padding: .55rem;
  }

  .oc-auth__title {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  .oc-auth__sub {
    margin-bottom: 1.15rem;
    font-size: .96rem;
  }

  .oc-auth__tabs {
    gap: .25rem;
  }

  .oc-auth__tab {
    min-height: 39px;
    font-size: .68rem;
    letter-spacing: .05em;
  }

  .oc-auth__field input,
  .oc-auth__submit {
    min-height: 49px;
  }

  .oc-auth__row {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }
}
