/* =====================================================================
   Nos Chorales — styles publics
   Conçus pour se fondre dans n'importe quel thème :
   - polices et couleur du texte héritées du thème
   - surfaces et bordures dérivées de la couleur du texte (fonctionne sur fond clair ou sombre)
   - couleur principale : réglage du plugin, sinon couleur principale d'Elementor, sinon vert liturgique
   - mise en page adaptée à la largeur réellement disponible (container queries)
   ===================================================================== */

.nc {
  --nc-accent: var(--nc-accent-reglage, var(--e-global-color-primary, #1B5A45));
  --nc-accent-ink: #fff;
  --nc-gold: #A9781C;
  --nc-warn: #B45309;
  --nc-live: #C2410C;
  --nc-wa: #128C7E;
  --nc-danger: #A23B2C;
  --nc-line: color-mix(in srgb, currentColor 16%, transparent);
  --nc-surface: color-mix(in srgb, currentColor 3%, transparent);
  --nc-surface-2: color-mix(in srgb, currentColor 6%, transparent);
  --nc-muted: color-mix(in srgb, currentColor 66%, transparent);
  --nc-accent-soft: color-mix(in srgb, var(--nc-accent) 12%, transparent);
  --nc-r: 12px;
  --nc-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 22px -10px rgba(0, 0, 0, .22);
  --nc-shadow-hover: 0 2px 4px rgba(0, 0, 0, .08), 0 16px 34px -14px rgba(0, 0, 0, .32);
  container-type: inline-size;
  box-sizing: border-box;
  line-height: 1.55;
}
.nc *, .nc *::before, .nc *::after { box-sizing: border-box; }
.nc img { max-width: 100%; height: auto; display: block; }
.nc a { text-underline-offset: 3px; }
.nc h2, .nc h3 { text-wrap: balance; }
.nc :focus-visible { outline: 2px solid var(--nc-gold); outline-offset: 2px; }

.nc-muted { color: var(--nc-muted); }
.nc-small { font-size: .88em; }
.nc-num { font-variant-numeric: tabular-nums; }
.nc-cap::first-letter { text-transform: uppercase; }
.nc-select { user-select: all; }
.nc-eyebrow { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nc-gold); }
.nc-h1 { font-size: clamp(1.6rem, 4cqi, 2.2rem); line-height: 1.12; margin: 0 0 18px; }
.nc-h2 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 12px; }

/* ---------- Boutons, champs, pastilles ---------- */
.nc .nc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--nc-line); background: transparent; color: inherit;
  border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, transform .15s;
}
.nc .nc-btn:hover { border-color: var(--nc-accent); color: inherit; }
.nc .nc-btn:active { transform: translateY(1px); }
.nc .nc-btn.nc-primary { background: var(--nc-accent); border-color: var(--nc-accent); color: var(--nc-accent-ink); }
.nc .nc-btn.nc-primary:hover { filter: brightness(1.08); color: var(--nc-accent-ink); }
.nc .nc-btn.nc-whatsapp { color: var(--nc-wa); border-color: color-mix(in srgb, var(--nc-wa) 45%, transparent); }
.nc .nc-btn.nc-danger { color: var(--nc-danger); }
.nc .nc-btn.nc-ghost { border-color: transparent; }
.nc .nc-btn.nc-big { padding: 12px 22px; font-size: 1.02rem; }
.nc .nc-btn.nc-small { padding: 6px 11px; font-size: .86rem; }
.nc .nc-btn.nc-large { width: 100%; margin-top: 10px; }
.nc .nc-btn:disabled { opacity: .55; cursor: not-allowed; }

.nc .nc-input, .nc .nc-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .nc .nc-field select, .nc .nc-field textarea {
  width: 100%; border: 1px solid var(--nc-line); border-radius: 10px; padding: 10px 13px;
  background: var(--nc-surface); color: inherit; font: inherit; font-size: 1rem; margin: 0;
}
.nc .nc-input:focus, .nc .nc-field input:focus, .nc .nc-field select:focus, .nc .nc-field textarea:focus {
  outline: none; border-color: var(--nc-accent); box-shadow: 0 0 0 3px var(--nc-accent-soft);
}

.nc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.nc .nc-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--nc-line); border-radius: 999px;
  padding: 5px 13px; font-size: .88rem; text-decoration: none; color: inherit; transition: border-color .15s;
}
.nc .nc-chip:hover { border-color: var(--nc-accent); }
.nc .nc-chip.nc-on { background: var(--nc-accent); border-color: var(--nc-accent); color: var(--nc-accent-ink); }
.nc .nc-chip small { opacity: .7; }

.nc-pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--nc-surface-2); color: var(--nc-muted); white-space: nowrap; }
.nc-pill.nc-gold { background: color-mix(in srgb, var(--nc-gold) 16%, transparent); color: var(--nc-gold); }
.nc-pill.nc-warn { background: color-mix(in srgb, var(--nc-warn) 16%, transparent); color: var(--nc-warn); }
.nc-pill.nc-live { background: color-mix(in srgb, var(--nc-live) 15%, transparent); color: var(--nc-live); }
.nc-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.nc-tag { display: inline-flex; align-items: center; gap: 6px; }

.nc-alerte { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 600; }
.nc-alerte.nc-ok { background: var(--nc-accent-soft); }
.nc-alerte.nc-err { background: color-mix(in srgb, var(--nc-danger) 12%, transparent); color: var(--nc-danger); }
.nc-bandeau { border-left: 4px solid var(--nc-warn); background: color-mix(in srgb, var(--nc-warn) 9%, transparent); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 18px; }

.nc-empty { border: 1px dashed var(--nc-line); border-radius: var(--nc-r); padding: 30px 22px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.nc-empty h3 { margin: 0; font-size: 1.15rem; }
.nc-empty p { margin: 0 0 6px; color: var(--nc-muted); max-width: 34em; }
.nc-empty-petit { padding: 18px; }
.nc-loading { color: var(--nc-muted); padding: 26px; text-align: center; margin: 0; }

/* ---------- Recherche ---------- */
.nc-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.nc-search .nc-input { flex: 1 1 240px; }
.nc-search-grand .nc-input { padding: 14px 18px; font-size: 1.08rem; box-shadow: var(--nc-shadow); }
.nc-search-grand .nc-btn { padding: 12px 22px; }

/* ---------- Catalogue ---------- */
.nc-catalogue { display: grid; grid-template-columns: 1fr; gap: 24px; }
@container (min-width: 820px) {
  .nc-catalogue:not(.nc-sans-filtres) { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .nc-rail { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
}
.nc-main { min-width: 0; }
.nc-rail { display: flex; flex-direction: column; gap: 22px; }
@container (max-width: 819px) {
  .nc-rail { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .nc-rail section { min-width: 200px; }
  .nc-facet { max-height: 200px; overflow-y: auto; }
}
.nc-rail h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nc-muted); margin: 0 0 8px; }
.nc-facet { display: flex; flex-direction: column; gap: 1px; }
.nc .nc-facet a { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 8px; text-decoration: none; color: inherit; font-size: .94rem; }
.nc .nc-facet a:hover { background: var(--nc-accent-soft); }
.nc .nc-facet a.nc-on { background: var(--nc-accent); color: var(--nc-accent-ink); }
.nc-n { margin-left: auto; font-size: .76rem; opacity: .7; font-variant-numeric: tabular-nums; }
.nc-listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.nc-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 32px; }

/* ---------- Cartes de partitions ---------- */
.nc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 18px; }
@container (max-width: 480px) { .nc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.nc .nc-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.nc-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow); transition: box-shadow .2s, transform .2s; }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.nc-card:hover .nc-thumb { box-shadow: var(--nc-shadow-hover); transform: translateY(-3px); }
.nc-thumb-a4 { aspect-ratio: 1 / 1.414; }
.nc-thumb-vide { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; background: #FCFCF9; color: #2B3530; }
.nc-thumb-titre { font-weight: 700; font-size: .98rem; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-portee { flex: 1; min-height: 40px; background: repeating-linear-gradient(to bottom, transparent 0 26px, #C9D2CB 26px 27px, transparent 27px 31px, #C9D2CB 31px 32px, transparent 32px 36px, #C9D2CB 36px 37px, transparent 37px 41px, #C9D2CB 41px 42px, transparent 42px 46px, #C9D2CB 46px 47px, transparent 47px 64px); }
.nc-thumb-extrait { font-style: italic; font-size: .8rem; line-height: 1.5; white-space: pre-line; color: #4A5650; overflow: hidden; }
.nc-thumb-badges { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.nc-thumb-badges .nc-pill { background: rgba(255, 255, 255, .95); color: #3D4A43; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.nc-thumb-badges .nc-pill.nc-gold { background: #FBF3E1; color: #8A5F0E; }
.nc-thumb-badges .nc-pill.nc-warn { background: #FEF3C7; color: #92400E; }
.nc-card-body { display: grid; gap: 2px; min-width: 0; }
.nc .nc-card-titre { font-size: 1.04rem; font-weight: 700; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-card:hover .nc-card-titre { color: var(--nc-accent); }
.nc-card-by { margin: 0; color: var(--nc-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-card-meta, .nc-card-foot { margin: 2px 0 0; display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: .78rem; color: var(--nc-muted); }

/* ---------- Temps liturgiques ---------- */
.nc-temps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.nc .nc-temps-grid a { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--nc-line); border-radius: var(--nc-r); text-decoration: none; color: inherit; font-weight: 600; overflow: hidden; transition: border-color .15s, transform .15s; }
.nc .nc-temps-grid a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--nc-c); }
.nc .nc-temps-grid a:hover { border-color: var(--nc-c); transform: translateY(-1px); }

/* ---------- Fiche chant ---------- */
.nc-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.nc-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--nc-muted); }
.nc-facts dd { margin: 2px 0 0; font-weight: 600; }
.nc-facts a { text-decoration: none; }
.nc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.nc-gestion { padding-top: 14px; border-top: 1px solid var(--nc-line); margin-bottom: 26px; }
.nc-confirm { display: inline-block; }
.nc-confirm summary { list-style: none; }
.nc-confirm summary::-webkit-details-marker { display: none; }
.nc-confirm[open] summary { display: none; }
.nc-confirm-box { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px solid var(--nc-danger); border-radius: 10px; padding: 6px 10px; margin: 0; }

.nc-versions { margin: 0 0 26px; }
.nc-versions-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.nc .nc-version { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--nc-line); border-radius: var(--nc-r); text-decoration: none; color: inherit; }
.nc .nc-version:hover { border-color: var(--nc-accent); }
.nc .nc-version.nc-courante { border-color: var(--nc-accent); background: var(--nc-accent-soft); }
.nc-version-thumb { width: 52px; height: 66px; flex: none; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--nc-line); display: flex; }
.nc-version-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nc-version-txt { display: grid; min-width: 0; font-size: .9rem; }
.nc-version-txt span { color: var(--nc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nc-songgrid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@container (min-width: 860px) { .nc-songgrid { grid-template-columns: minmax(0, 1fr) 330px; } .nc-paroles-panel { position: sticky; top: 90px; } }
.nc-col { display: grid; gap: 20px; min-width: 0; }
.nc-parties { display: flex; gap: 8px; flex-wrap: wrap; }
.nc-panel { border: 1px solid var(--nc-line); border-radius: var(--nc-r); overflow: hidden; min-width: 0; background: var(--nc-surface); }
.nc-panel > h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nc-muted); margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--nc-line); font-weight: 700; }
.nc-pdf { width: 100%; height: 80vh; min-height: 480px; border: 0; display: block; background: #fff; }
.nc-pdf-secours { margin: 0; padding: 8px 16px; font-size: .88rem; border-top: 1px solid var(--nc-line); }
.nc-lyrics { padding: 16px 18px; white-space: pre-wrap; font-size: 1.05rem; line-height: 1.7; }
.nc-trad { font-style: italic; color: var(--nc-muted); border-top: 1px solid var(--nc-line); }
.nc-osmd { background: #fff; color: #111; padding: 8px; overflow-x: auto; }
.nc-player { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--nc-line); background: var(--nc-surface-2); }
.nc-player-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nc-player label { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--nc-muted); }
.nc-player input[type=range] { accent-color: var(--nc-accent); }
.nc-voices { display: flex; gap: 6px; flex-wrap: wrap; }
.nc .nc-voices button { border: 1px solid var(--nc-accent); border-radius: 999px; padding: 4px 12px; background: var(--nc-accent-soft); color: inherit; font: inherit; font-size: .86rem; cursor: pointer; }
.nc .nc-voices button.nc-off { background: none; border-color: var(--nc-line); color: var(--nc-muted); text-decoration: line-through; }

/* ---------- Événements ---------- */
.nc-events { display: grid; gap: 10px; }
.nc-events-grille { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@container (max-width: 400px) { .nc-events-grille { grid-template-columns: 1fr; } }
.nc .nc-event { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--nc-line); border-radius: var(--nc-r); padding: 12px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.nc .nc-event:hover { border-color: var(--nc-accent); box-shadow: var(--nc-shadow); }
.nc .nc-event.nc-avec-affiche { grid-template-columns: 62px minmax(0, 1fr) 84px; }
.nc-event-affiche { width: 84px; height: 106px; object-fit: cover; border-radius: 8px; border: 1px solid var(--nc-line); }
.nc-cal { display: grid; justify-items: center; align-content: start; text-align: center; background: var(--nc-surface-2); border-radius: 10px; padding: 6px 4px 8px; line-height: 1; }
.nc-cal b { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 3px 0 2px; }
.nc-cal-j, .nc-cal-m { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.nc-cal-j { color: var(--nc-muted); }
.nc-cal-m { color: var(--nc-gold); }
.nc-cal-grand { min-width: 84px; padding: 10px 8px 12px; }
.nc-cal-grand b { font-size: 2.6rem; }
.nc-event-body { min-width: 0; }
.nc-event-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--nc-accent); }
.nc .nc-event h3 { font-size: 1.08rem; margin: 3px 0; line-height: 1.25; }
.nc .nc-event p { margin: 0; color: var(--nc-muted); font-size: .88rem; }

.nc-agenda-head { display: grid; gap: 10px; margin-bottom: 28px; justify-items: start; }
.nc-mois { margin-bottom: 34px; }
.nc .nc-mois-titre { display: flex; align-items: baseline; gap: 12px; font-size: 1.45rem; margin: 0 0 14px; }
.nc .nc-mois-titre::first-letter { text-transform: uppercase; }
.nc-mois-titre span { font-size: .88rem; font-weight: 400; color: var(--nc-muted); }
.nc-passes { opacity: .78; margin-top: 50px; }

.nc-fiche-evenement { display: grid; grid-template-columns: 1fr; gap: 28px; }
@container (min-width: 820px) { .nc-fiche-evenement:not(.nc-sans-affiche) { grid-template-columns: minmax(0, 1fr) 320px; } }
.nc-event-main { display: grid; gap: 20px; min-width: 0; align-content: start; }
.nc-event-hero { display: flex; gap: 18px; align-items: center; }
.nc-by { margin: 6px 0 0; color: var(--nc-muted); font-size: 1.05rem; }
.nc-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; border: 1px solid var(--nc-line); border-radius: var(--nc-r); overflow: hidden; }
.nc-infos > div { padding: 14px 18px; border-right: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line); margin: 0 -1px -1px 0; }
.nc-infos dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--nc-muted); margin-bottom: 4px; }
.nc-infos dd { margin: 0; font-weight: 600; }
.nc-description .nc-prose { white-space: pre-wrap; max-width: 65ch; }
.nc-affiche { display: block; align-self: start; }
@container (min-width: 820px) { .nc-affiche { position: sticky; top: 90px; } }
.nc-affiche img { width: 100%; border-radius: var(--nc-r); border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow); }

.nc-vedette { display: grid; grid-template-columns: 1fr; border: 1px solid var(--nc-line); border-radius: 18px; overflow: hidden; box-shadow: var(--nc-shadow); }
@container (min-width: 620px) { .nc-vedette:not(.nc-sans-affiche) { grid-template-columns: 220px minmax(0, 1fr); } }
.nc-vedette.nc-sans-affiche { border-left: 5px solid var(--nc-gold); }
.nc-vedette > img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; }
@container (min-width: 620px) { .nc-vedette > img { max-height: none; min-height: 220px; } }
.nc-vedette-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nc-vedette-row { display: flex; gap: 18px; align-items: center; }
.nc .nc-vedette h2 { font-size: 1.45rem; margin: 0 0 4px; line-height: 1.15; }
.nc-vedette p { margin: 0; color: var(--nc-muted); }
.nc-vedette .nc-actions { margin: 0; }

/* ---------- Formulaires ---------- */
.nc-publier-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@container (min-width: 900px) { .nc-publier-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; } .nc-apercu-side { position: sticky; top: 90px; } }
@container (max-width: 899px) { .nc-apercu-side { order: -1; max-width: 300px; } }
.nc-form-col { display: grid; gap: 20px; min-width: 0; }
.nc-apercu-side { display: grid; gap: 10px; }
.nc .nc-fieldset { border: 1px solid var(--nc-line); border-radius: var(--nc-r); padding: 16px 20px 20px; margin: 0; display: grid; gap: 16px; min-width: 0; background: var(--nc-surface); }
.nc .nc-fieldset legend { font-weight: 700; font-size: 1.05rem; padding: 0 8px; margin-left: -8px; }
.nc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.nc-field > span { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--nc-muted); }
.nc-field small { color: var(--nc-muted); font-size: .84rem; }
.nc .nc-field textarea { min-height: 170px; line-height: 1.6; resize: vertical; }
.nc .nc-field textarea.nc-court-texte { min-height: 96px; }
.nc .nc-field textarea.nc-texte-simple { min-height: 130px; }
.nc .nc-field input.nc-court { max-width: 280px; }
.nc-two { display: grid; grid-template-columns: 1fr; gap: 16px; }
@container (min-width: 560px) { .nc-two { grid-template-columns: 1fr 1fr; } }
.nc-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-choix label { position: relative; cursor: pointer; margin: 0; }
.nc-choix input { position: absolute; opacity: 0; pointer-events: none; }
.nc-choix span { display: inline-block; border: 1px solid var(--nc-line); border-radius: 999px; padding: 5px 13px; font-size: .9rem; transition: background .15s, border-color .15s; }
.nc-choix label:hover span { border-color: var(--nc-accent); }
.nc-choix input:checked + span { background: var(--nc-accent); border-color: var(--nc-accent); color: var(--nc-accent-ink); }
.nc-choix input:focus-visible + span { outline: 2px solid var(--nc-gold); outline-offset: 2px; }
.nc-check { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; margin: 0; }
.nc-dropzone { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 14px; border: 2px dashed var(--nc-line); border-radius: var(--nc-r); cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.nc-dropzone:hover, .nc-dropzone:focus-within { border-color: var(--nc-accent); background: var(--nc-accent-soft); }
.nc-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nc-dropzone span { color: var(--nc-muted); font-size: .86rem; word-break: break-word; }
.nc-fichier-actuel { margin: 0; font-size: .88rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nc-affiche-drop { position: relative; display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 4; border: 2px dashed var(--nc-line); border-radius: var(--nc-r); overflow: hidden; cursor: pointer; color: var(--nc-muted); margin: 0; }
.nc-affiche-drop:hover { border-color: var(--nc-accent); }
.nc-affiche-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; width: 100%; }
.nc-affiche-drop img { width: 100%; height: 100%; object-fit: cover; }
.nc-form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nc-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nc-auth-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@container (min-width: 760px) { .nc-auth-grid { grid-template-columns: 1fr 1fr; } }
.nc-authbox { border: 1px solid var(--nc-line); border-radius: 16px; padding: 26px; display: grid; gap: 14px; background: var(--nc-surface); }
.nc-authbox .nc-h2 { margin: 0; }
.nc-authbox p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .nc *, .nc { transition: none !important; } }
