/* main.css — compléments minimaux au design system réel.
   Ne redéfinit AUCUN composant de l'ancien design system (hero, stat, fig,
   btn, nav, header, footer…). Fournit seulement les classes utilisées par
   les vues propres à la recréation (contribuer) et le loader SPA. */

/* Loader SPA */
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--c-or-pale);
  border-top-color: var(--c-laque); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 64px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilitaires génériques absents du design system */
.muted { color: var(--fg-soft); }
.section { padding: var(--sp-16) 0; }
.wrap-narrow { max-width: 760px; margin-inline: auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-12); }
.section-head p { color: var(--fg-soft); font-size: 1.1rem; }

/* Carte simple (vue Contribuer) */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm);
}

/* Formulaire (vue Contribuer) */
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--fg);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }

/* Bascule invité (S'inscrire / Se connecter) ↔ membre (Se déconnecter) de la
   navigation. body.hdn-authed est posée par chat.js après la sonde de session.
   Placé dans cette feuille BLOQUANTE (et non chat.css, non-bloquant) pour
   éviter tout flash des liens au chargement. */
[data-hdn-auth-only] { display: none !important; }
.hdn-authed [data-hdn-guest-only] { display: none !important; }
.hdn-authed [data-hdn-auth-only] { display: revert !important; }

/* ==========================================================================
   Styles de blocs (is-style-*) — variations choisies dans l'inspecteur de
   l'éditeur (panneau « Styles », façon WordPress). Servies au public ET
   reprises dans l'aperçu de l'éditeur (editor-content.css).
   ========================================================================== */
.is-style-plain { border: 0 !important; padding-left: 0 !important; background: none !important; font-style: normal; }
.is-style-plain::before, .is-style-plain::after { display: none !important; }
img.is-style-rounded, .is-style-rounded img { border-radius: 14px; }
img.is-style-cadre, .is-style-cadre img { border: 6px solid #f8f1e2; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.is-style-outline, .is-style-outline a { background: transparent !important; color: inherit !important; border: 2px solid currentColor !important; }
hr.is-style-wide, .is-style-wide hr, hr.is-style-wide { width: 100%; max-width: none; }
.is-style-dots { border: 0 !important; text-align: center; line-height: 1; height: auto; background: none !important; }
.is-style-dots::before { content: "···"; letter-spacing: 1.4em; padding-left: 1.4em; font-size: 1.4rem; color: #b28a3d; }
.is-style-stripes tbody tr:nth-child(odd) { background: rgba(178, 138, 61, .08); }
.is-style-ornement { position: relative; padding-bottom: .35em; }
.is-style-ornement::after { content: ""; display: block; width: 64px; height: 3px; margin-top: .35em; background: linear-gradient(90deg, #b28a3d, transparent); border-radius: 2px; }
.is-style-carte { background: rgba(248, 241, 226, .07); border: 1px solid rgba(178, 138, 61, .35); border-radius: 14px; padding: 22px !important; }
.is-style-encadre { border: 2px solid #b28a3d; border-radius: 4px; padding: 22px !important; }
.is-style-manuscrit { font-style: italic; letter-spacing: .02em; opacity: .92; }
