/* ═══════════════════════════════════════════════════════════════════
   CCBLA — Formulaire Proposer un article (passe 4, 2026-04-23)
   ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS (Figma, images 1-5 Nic) :
   • H2 form title  : Agrandir Wide Medium 40px / 55px line-height
   • H3 section     : Agrandir Tight Bold   25px / 120%
   • Group label    : Agrandir Wide Medium  18px / 120%
   • Field label    : Instrument Sans Semibold 16px
   • Input          : border 1px solid #000, bg #fff, height 50px
                      padding 0 16px, font-size 16px Instr Semibold #000
   • Spacing        : 15px label→input, 33px entre fields, 40px entre sections
   • Palette        : strict noir/blanc (pas d'orange/vert/rouge saturé)
                      Exceptions : messages d'erreur discrets, astérisques *

   BOUTONS submit/reset : style UM register
   • bg:transparent, color:#111, border:1.5px solid #111, radius:0
   • uppercase, font-size:.85rem, padding:14px 40px 12px
   • hover : bg:#111, color:#fff
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --font-heading:      var(--wp--preset--font-family--agrandir-wide-medium, 'Agrandir Wide Medium', sans-serif);
    --font-heading-tight:var(--wp--preset--font-family--agrandir-tight-bold,  'Agrandir Tight Bold',  sans-serif);
    --font-body:         var(--wp--preset--font-family--instrument-sans,      'Instrument Sans',      sans-serif);
    --color-dark:        var(--wp--preset--color--pop-dark, #111);
}

/* ── Preview Gutenberg (éditeur back-office) ─────────────────────── */
.ccbla-block-preview {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 2.5rem; background: #fff; border: 1px dashed #111;
    border-radius: 0; text-align: center;
}
.ccbla-block-preview strong { color: #111; }
.ccbla-block-preview p { color: #555; margin: 0; font-size: .85rem; }

/* ── Wrapper global ──────────────────────────────────────────────── */
.ccbla-event-form-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: var(--font-body);
    color: #000;
    background: #fff;
}

/* FORCE WHITE BG + NOIR TEXT — SCOPE STRICT au form wrapper v3 (2026-04-24): bulletproof. La 3e passe essaie d'enfin régler les cas résiduels (autofill Chrome, Kadence overrides, UM styles). Scope: uniquement descendants de.ccbla-event-form-wrap. Exclusions: checkbox/radio (fond custom), submit/button, file. Aucun impact en dehors du form. */
.ccbla-event-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"]),
.ccbla-event-form-wrap textarea,
.ccbla-event-form-wrap select {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--wp--preset--color--pop-dark, #111) !important;
    border-color: var(--wp--preset--color--pop-dark, #111) !important;
}
.ccbla-event-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"])::placeholder,
.ccbla-event-form-wrap textarea::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}
/* Exception propre : les inputs avec aria-invalid restent rouges (erreur) */
.ccbla-event-form-wrap input[aria-invalid="true"],
.ccbla-event-form-wrap textarea[aria-invalid="true"],
.ccbla-event-form-wrap select[aria-invalid="true"] {
    border-color: #c62828 !important;
}

/* NOTICES (succès / erreur en haut de page après submit/redirect) */
.ccbla-notice {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    border-radius: 0;
    font-size: .95rem; line-height: 1.55;
    flex-wrap: wrap;
}
.ccbla-notice--error { border-color: #000; }
.ccbla-notice__icon {
    flex-shrink: 0; width: 26px; height: 26px;
    border: 1px solid #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.ccbla-notice__icon svg { width: 14px; height: 14px; }
.ccbla-notice__body { flex: 1 1 300px; }
.ccbla-notice__body strong {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.2;
    display: block;
    margin-bottom: .25rem;
}
.ccbla-notice__body span {
    font-family: var(--font-body);
    font-size: .9rem;
    color: #000;
    display: block;
}
.ccbla-notice__actions {
    display: flex; gap: .75rem; flex-wrap: wrap;
    margin-left: auto; align-self: center;
}
.ccbla-notice__btn {
    /* 2026-05-13 (passe 4 — specs Nic): parité proposer-evenement. - padding 14px 40px 12px → 12px 10px - border 1.5px → 1px - text-decoration:none réintroduit explicitement */
    display: inline-block;
    padding: 12px 10px;
    background: transparent;
    color: #111;
    border: 1px solid #111;
    border-radius: 0;
    font-family: var(--wp--preset--font-family--agrandir-wide-medium, 'Agrandir Wide Medium', sans-serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
.ccbla-notice__btn:hover,
.ccbla-notice__btn:focus-visible {
    background: #111; color: #fff;
}
.ccbla-notice__btn--secondary {
    /* même style — cohérence */
}
.ccbla-warn {
    display: block;
    margin-top: .5rem;
    font-size: .85rem;
    color: #000;
    font-style: italic;
}

/* HEADER (titre page + intro) */
.ccbla-event-form__header {
    margin-bottom: 2.5rem;
}
.ccbla-event-form__title {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 55px;
    font-weight: 400;
    color: #000;
    margin: 0 0 .75rem;
    letter-spacing: 0;
}
.ccbla-event-form__intro {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}
.ccbla-event-form__intro strong { font-weight: 600; }

/* SECTIONS (regroupement logique de champs) */
.ccbla-event-form { display: flex; flex-direction: column; gap: 40px; }
.ccbla-form-section {
    margin-top: 0;
    margin-bottom: 0;            /* ⚡ 2026-04-24 : gap du .ccbla-event-form gère l'espacement */
    border-left: 1px solid var(--wp--preset--color--pop-dark, #111);  /* ⚡ 2026-05-13 (demande Nic) — 2px → 1px */
    padding-left: 24px;
}
.ccbla-form-section:last-of-type {
    margin-bottom: 0;
}
.ccbla-form-section__title {
    font-family: var(--font-heading-tight);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    letter-spacing: 0;
}
.ccbla-form-section__title-suffix {
    margin-left: .35rem;
    color: #000;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
}
.ccbla-form-section__intro {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: #000;
    margin: -.5rem 0 1.25rem;
}
.ccbla-form-section__intro strong { font-weight: 600; }

/* CHAMPS (field = wrapper label + input + hint + error) */
.ccbla-field {
    display: flex;
    flex-direction: column;
    gap: 15px;               /* ⚡ spec Nic : 15px label → input */
    margin-bottom: 33px;     /* ⚡ spec Nic : 33px entre champs */
}
.ccbla-field:last-child { margin-bottom: 0; }
.ccbla-field > .ccbla-field__hint-top,
.ccbla-field > .ccbla-field__hint {
    /* hints ne consomment pas le gap:15px — on les remet en flux avec des marges faibles */
    margin: 0;
}

/* Labels champ (16px Instr Semibold) */
.ccbla-field__label {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
    letter-spacing: 0;
}
.ccbla-req { color: #000; margin-left: 2px; font-weight: 600; }
.ccbla-field__optional {
    color: #000;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
    font-style: italic;
}

/* Hints (texte d'aide) */
.ccbla-field__hint-top,
.ccbla-field__hint {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}
.ccbla-field__hint-top { margin: -5px 0 0; }
.ccbla-field__hint     { margin: 0; }

/* INPUTS (text, email, url, tel, date, select) Specs Nic (2026-04-23): • placeholder gris foncé (#666 opacity 1, pas de semi-transparence) • fond #fff (kill browser autofill yellow via -webkit-autofill) • color #111 (var --pop-dark, pas #000) • border-radius 0 • border 1px solid var(--pop-dark, #111) */
.ccbla-field__input,
.ccbla-field__select {
    width: 100%;
    box-sizing: border-box;
    height: 50px;                                                /* ⚡ spec Nic */
    padding: 0 16px;
    border: 1px solid var(--wp--preset--color--pop-dark, #111);  /* ⚡ var thème */
    background: #fff;
    color: var(--wp--preset--color--pop-dark, #111);             /* ⚡ #111 */
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;                                             /* ⚡ 2026-04-24 : Regular (Instrument Sans 400), pas Semibold */
    line-height: 1.2;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: outline-color .12s, outline-offset .12s, border-color .12s;
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.ccbla-field__input::placeholder,
.ccbla-field__select::placeholder {
    color: #666;              /* ⚡ spec Nic : placeholder gris foncé */
    opacity: 1;
    font-weight: 400;
}
.ccbla-field__input:focus,
.ccbla-field__select:focus,
.ccbla-field__input:focus-visible,
.ccbla-field__select:focus-visible {
    /* 2026-05-14 — Spec Nic : outline 2px pop-dark sur :focus (et :focus-visible).
       Symétrique avec proposer-evenement/style.css. */
    outline: 2px solid var(--wp--preset--color--pop-dark, #111);
    outline-offset: 2px;
}
/* 2026-05-14 — Ajout : textarea hérite du même focus 2px pop-dark. */
.ccbla-field textarea:focus,
.ccbla-field textarea:focus-visible,
.ccbla-field textarea.wp-editor-area:focus,
.ccbla-field textarea.wp-editor-area:focus-visible {
    outline: 2px solid var(--wp--preset--color--pop-dark, #111);
    outline-offset: 2px;
}

/* ── Override browser autofill (Chrome/Safari) ─────────────────── */
.ccbla-field__input:-webkit-autofill,
.ccbla-field__input:-webkit-autofill:hover,
.ccbla-field__input:-webkit-autofill:focus,
.ccbla-field__input:-webkit-autofill:active,
.ccbla-field__select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--wp--preset--color--pop-dark, #111) !important;
    caret-color: var(--wp--preset--color--pop-dark, #111) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* Textarea non-TinyMCE (fallback) — hauteur libre */
.ccbla-field textarea.ccbla-field__input {
    height: auto;
    min-height: 140px;
    padding: 12px 16px;
    line-height: 1.55;
    resize: vertical;
}

/* Select : flèche custom en SVG inline (noir) */
.ccbla-field__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 10px 6px;
    padding-right: 44px;
}

/* Datetime-local : supprimer le scarabée WebKit qui casse la visu */
.ccbla-field__input--date {
    font-variant-numeric: tabular-nums;
}
.ccbla-field__input--date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0); /* noir */
}

/* CHECKBOX / RADIO — style custom noir/blanc */
.ccbla-field__check-inline,
.ccbla-field__check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    color: #000;
}
.ccbla-field__check-inline input[type="checkbox"],
.ccbla-field__check input[type="checkbox"] {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    background: #fff;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: background .12s;
}
.ccbla-field__check-inline input[type="checkbox"]:checked::after,
.ccbla-field__check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #000;
}
.ccbla-field__check-inline input[type="checkbox"]:focus-visible,
.ccbla-field__check input[type="checkbox"]:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Groupes hiérarchiques (catégories, publics) */
.ccbla-field__checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ccbla-field__checks--hierarchical { gap: 10px; }
.ccbla-field__check--parent {
    font-weight: 600;
}
.ccbla-field__check--child {
    padding-left: 28px;
    font-weight: 400;
}
.ccbla-field__check--all {
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    margin-bottom: 4px;
}

/* FIELDSETS (email OU téléphone, catégories, publics) */
.ccbla-field__fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ccbla-field__fieldset legend {
    padding: 0;
    margin: 0 0 5px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
.ccbla-field__hint-top {
    /* déjà défini, mais quand dans un fieldset il se colle juste sous legend */
}

/* UPLOADS — file input stylé + preview + progress par slot */
.ccbla-field__file-label {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    width: fit-content;
    transition: background .15s, color .15s;
}
.ccbla-field__file-label:hover,
.ccbla-field__file-label:focus-within {
    background: #000;
    color: #fff;
}
.ccbla-field__file {
    /* Visible pour SR mais masqué visuellement */
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.ccbla-field__file:focus-visible + .ccbla-field__file-icon,
.ccbla-field__file-label:has(.ccbla-field__file:focus-visible) {
    outline: 2px solid #000;
    outline-offset: 2px;
}
.ccbla-field__file-label.has-file {
    background: #000;
    color: #fff;
}

.ccbla-field__thumb-current {
    display: flex; align-items: center; gap: 16px;
    padding: 12px;
    border: 1px solid #000;
    background: #fff;
}
.ccbla-field__thumb-current img {
    max-width: 120px; max-height: 80px;
    object-fit: cover;
    border: 1px solid #000;
}
.ccbla-field__thumb-current span {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
}

/* Preview aperçu image/fichier après sélection */
.ccbla-field__img-preview {
    display: flex; align-items: center; gap: 16px;
    padding: 12px;
    border: 1px solid #000;
    background: #fff;
    margin-top: 4px;
}
.ccbla-field__img-preview img {
    max-width: 120px; max-height: 80px;
    object-fit: cover;
    border: 1px solid #000;
    display: block;
}
.ccbla-field__preview-meta {
    font-family: var(--font-body);
    font-size: 13px;
    color: #000;
    line-height: 1.5;
}
.ccbla-field__preview-meta strong { display: block; font-weight: 600; }
.ccbla-field__preview-meta em { font-style: normal; color: #555; }
.ccbla-field__preview-error { color: #000; font-size: 14px; }

/* 2026-05-14 — T6: alt-block intégré DANS le cadre thumb-current/preview. Symétrique de proposer-evenement/style.css. Le JS déplace via appendChild #ccbla-thumbnail-alt-block dans le cadre approprié (boot pour édition, initImagePreview pour upload). */
.ccbla-field__thumb-current,
.ccbla-field__img-preview {
    flex-wrap: wrap;
}
.ccbla-field__thumb-current > .ccbla-field--img-alt,
.ccbla-field__img-preview  > .ccbla-field--img-alt {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed #ccc;
}
.ccbla-field__thumb-current > .ccbla-field--img-alt .ccbla-field__hint-top,
.ccbla-field__img-preview  > .ccbla-field--img-alt .ccbla-field__hint-top {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #555;
}
.ccbla-field__thumb-current > .ccbla-field--img-alt .ccbla-field__label,
.ccbla-field__img-preview  > .ccbla-field--img-alt .ccbla-field__label {
    margin-top: 0;
}
.ccbla-field__thumb-current:has(> .ccbla-field--img-alt),
.ccbla-field__img-preview:has(> .ccbla-field--img-alt) {
    align-items: flex-start;
}

/* Barre de progression par slot (reste visible pendant upload) */
.ccbla-img-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.ccbla-img-progress {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.ccbla-img-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: #000;
    transition: width .2s ease;
}
.ccbla-img-progress--done .ccbla-img-progress__fill { background: #000; }
.ccbla-img-progress--error .ccbla-img-progress__fill { background: #000; }
.ccbla-img-progress__label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #000;
    min-width: 38px;
    text-align: right;
}

/* COMPTEUR DE CARACTÈRES (description min 1000) Strict noir/blanc — plus de gris/vert/orange. */
.ccbla-char-counter {
    display: inline-flex;
    align-items: baseline;
    gap: .2rem;
    margin-top: 8px;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: transparent;
    border: 1px solid #000;
    border-radius: 0;
    align-self: flex-start;
}
.ccbla-char-counter__count {
    color: #000;              /* ⚡ fix text-contrast dernière instance */
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ccbla-char-counter__sep,
.ccbla-char-counter__min,
.ccbla-char-counter__label {
    color: #000;
    opacity: 1;
    font-weight: 400;
}
.ccbla-char-counter--empty,
.ccbla-char-counter--low {
    background: transparent;
    color: #000;
}
.ccbla-char-counter--ok {
    background: #000;
    color: #fff;
    border-color: #000;
}
.ccbla-char-counter--ok .ccbla-char-counter__count,
.ccbla-char-counter--ok .ccbla-char-counter__sep,
.ccbla-char-counter--ok .ccbla-char-counter__min,
.ccbla-char-counter--ok .ccbla-char-counter__label { color: #fff; }
.ccbla-char-counter--ok::before {
    content: "✓";
    font-weight: 700;
    margin-right: 8px;
}

/* SAFETY NOTICE (description + infos sup) Strict noir/blanc, pas de fond orange. */
.ccbla-field__safety-notice {
    margin: 0;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    border-radius: 0;
}
.ccbla-field__safety-notice strong { font-weight: 700; }
.ccbla-field__safety-notice--compact {
    padding: 10px 14px;
    font-size: 13px;
}

/* HINT RICH (tarif — aide sur les formats Google) Strict noir/blanc, pas de fond orange sur le warn. */
.ccbla-field__hint-rich {
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #000;
    color: #000;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    border-radius: 0;
}
.ccbla-field__hint-rich p { margin: 0 0 8px; }
.ccbla-field__hint-rich p:last-child { margin-bottom: 0; }
.ccbla-field__hint-rich strong { font-weight: 700; color: #000; }
.ccbla-field__hint-rich em { font-style: italic; }
.ccbla-field__hint-rich__sub {
    margin-top: 12px !important;
    font-weight: 600;
}
.ccbla-field__hint-rich__list {
    margin: 6px 0 12px !important;
    padding: 0 0 0 18px;
    list-style: disc;
}
.ccbla-field__hint-rich__list li {
    margin: 6px 0;
    color: #000;
}
.ccbla-field__hint-rich__list li strong { font-weight: 700; }
.ccbla-field__hint-rich__warn {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #000;
    color: #000;
    font-size: 13px;
}
.ccbla-field__hint-rich__warn strong { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════
   VALIDATION (erreurs inline — WCAG 3.3.1)
   v2 (2026-04-24) : passage au rouge sobre #c62828 (contraste 6.36:1
   sur #fff → AAA). Plus de border-left (remplacée par l'accent couleur
   pour ne pas concurrencer la border-left 5px des sections).
   ══════════════════════════════════════════════════════════════════ */
.ccbla-field__error {
    display: block;
    margin-top: 8px;
    padding: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #c62828;                 /* ⚡ rouge accessible */
    background: transparent;
    line-height: 1.4;
}
.ccbla-field__input[aria-invalid="true"],
.ccbla-field__select[aria-invalid="true"],
.ccbla-field__check-inline input[aria-invalid="true"] {
    border-color: #c62828 !important;
    outline: 2px solid #c62828;
    outline-offset: 2px;
}

/* AUTO-SAVE DRAFT — indicateur "brouillon sauvegardé" */
.ccbla-autosave-status {
    /* 2026-05-13 (demande Nic) — Bandeau d'autosave masqué côté membre. Le contenu reste rendu pour les ARIA aria-live mais pas affiché visuellement. L'autosave continue de fonctionner en arrière-plan (le JS lit/écrit data-state, indépendant de display). Parité avec proposer-evenement/style.css L786. */
    display: none !important;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #000;
    background: transparent;
    border: 1px solid #000;
    opacity: 0;
    transition: opacity .25s ease;
}
.ccbla-autosave-status[data-state="saving"] { opacity: 1; }
.ccbla-autosave-status[data-state="saved"]  { opacity: 1; }
.ccbla-autosave-status[data-state="error"]  { opacity: 1; }
.ccbla-autosave-status::before {
    content: "";
    flex-shrink: 0;
    width: 8px; height: 8px;
    background: #000;
    border-radius: 0;
}
.ccbla-autosave-status[data-state="saving"]::before {
    /* pulse discret */
    animation: ccbla-autosave-pulse 1s ease-in-out infinite;
}
@keyframes ccbla-autosave-pulse {
    0%,100% { opacity: 1; }
    50%     { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
    .ccbla-autosave-status[data-state="saving"]::before { animation: none; }
    .ccbla-autosave-status { transition: none; }
}

/* PROGRESS UPLOAD GLOBAL (nouveau, passe 4) Une barre unique + description d'étape en dessous, qui remplace les indicateurs individuels au moment de la soumission. */
.ccbla-mf-upload-status {
    margin-top: 24px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
}
.ccbla-mf-upload-status__heading {
    display: block;
    font-family: var(--font-heading-tight);
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px;
}
.ccbla-mf-upload-status__bar {
    position: relative;
    height: 6px;
    background: #e5e5e5;
    overflow: hidden;
    margin: 0 0 10px;
}
.ccbla-mf-upload-status__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: #000;
    transition: width .35s ease;
}
.ccbla-mf-upload-status__step {
    font-family: var(--font-body);
    font-size: 14px;
    color: #000;
    margin: 0;
    line-height: 1.4;
    min-height: 1.4em;
}
.ccbla-mf-upload-status__step b { font-weight: 700; }
.ccbla-mf-upload-status__steps {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #000;
}
.ccbla-mf-upload-status__steps li {
    padding-left: 20px;
    position: relative;
    opacity: .5;
}
.ccbla-mf-upload-status__steps li[data-state="active"] { opacity: 1; font-weight: 600; }
.ccbla-mf-upload-status__steps li[data-state="done"]   { opacity: 1; }
.ccbla-mf-upload-status__steps li::before {
    content: "•";
    position: absolute;
    left: 6px;
    top: 0;
    color: #000;
}
.ccbla-mf-upload-status__steps li[data-state="done"]::before   { content: "✓"; }
.ccbla-mf-upload-status__steps li[data-state="error"]::before  { content: "✗"; }

/* ACTIONS (bouton submit) Specs exactes Nic (2026-04-23, miroir.wp-element-button du thème). EXCLUS (lignes barrées): box-shadow:none, text-box-trim, text-box-edge. */
.ccbla-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 60px;  /* 2026-05-13 (demande Nic) — espace bas avant footer/blocs suivants. Parité proposer-evenement. */
}
.ccbla-event-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    font-family: var(--wp--preset--font-family--agrandir-wide-medium, 'Agrandir Wide Medium', sans-serif);
    font-size: 20px;
    line-height: 1;
    background-color: var(--wp--preset--color--pop-white, #fff);
    color: var(--wp--preset--color--pop-dark, #111);
    border: 1px solid var(--wp--preset--color--pop-dark, #111);
    border-radius: 0;
    padding-block: 12px 10px;
    padding-inline: 10px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}
.ccbla-event-form__submit:hover,
.ccbla-event-form__submit:focus-visible {
    background-color: var(--wp--preset--color--pop-dark, #111);
    color: var(--wp--preset--color--pop-white, #fff);
    outline: 2px solid var(--wp--preset--color--pop-dark, #111);
    outline-offset: 2px;
}
.ccbla-event-form__submit.is-loading {
    cursor: wait;
    pointer-events: none;
}
.ccbla-event-form__submit.is-loading .ccbla-btn__text {
    opacity: .7;
}
/* ⚡ 2026-04-24 — spinner: plus grand, plus fin, plus net - 14→18px (meilleure lisibilité, reste compact dans le bouton) - border 2px→1.5px (allure affinée, moins « trapu ») - box-sizing:border-box pour que la border ne grossisse pas l'élément - currentColor hérité du bouton (blanc sur fond noir pendant is-loading) */
.ccbla-btn__spinner {
    display: none;
    width: 18px; height: 18px;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    margin-left: 12px;
    vertical-align: -4px;
    animation: ccbla-btn-spin .7s linear infinite;
}
.ccbla-event-form__submit.is-loading .ccbla-btn__spinner {
    display: inline-block;
}
@keyframes ccbla-btn-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .ccbla-btn__spinner { animation: none; }
}

.ccbla-event-form__cancel {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--wp--preset--color--pop-dark, #111);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ccbla-event-form__cancel:hover,
.ccbla-event-form__cancel:focus-visible {
    text-decoration-thickness: 2px;
    outline: 2px solid var(--wp--preset--color--pop-dark, #111);
    outline-offset: 2px;
}

/* WP EDITOR (TinyMCE injecté par wp_editor) — alignement visuel */
.ccbla-field .wp-editor-wrap {
    border: 1px solid #000;
    background: #fff;
}
.ccbla-field .wp-editor-wrap .mce-toolbar-grp,
.ccbla-field .wp-editor-wrap .mce-top-part,
.ccbla-field .wp-editor-wrap .mce-menubar,
.ccbla-field .wp-editor-wrap .mce-statusbar,
.ccbla-field .wp-editor-wrap .quicktags-toolbar {
    background: #fff !important;
    border-color: #000 !important;
}
.ccbla-field .wp-editor-wrap .wp-editor-tools {
    border-bottom: 1px solid #000;
    background: #fff;
    padding: 8px 12px;
}
.ccbla-field .wp-editor-wrap .mce-btn button,
.ccbla-field .wp-editor-wrap .mce-ico {
    color: #000 !important;
}

/* ── 2026-04-24: tous les éléments internes du wp_editor en fond blanc ── Le <textarea class="wp-editor-area"> hors-TinyMCE (mode Code) est désormais masqué (quicktags:false + default_editor:'tinymce') mais reste dans le DOM pour la soumission. Ceinture+bretelles: bg:#fff pour éviter le jaune Chrome autofill s'il devait apparaître. */
.ccbla-field textarea.wp-editor-area,
.ccbla-field textarea.wp-editor-area:focus,
.ccbla-field textarea.wp-editor-area:hover {
    background: #fff !important;
    color: var(--wp--preset--color--pop-dark, #111);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}
.ccbla-field textarea.wp-editor-area:-webkit-autofill,
.ccbla-field textarea.wp-editor-area:-webkit-autofill:hover,
.ccbla-field textarea.wp-editor-area:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--wp--preset--color--pop-dark, #111) !important;
}

/* ── 2026-04-24 : pictos inline monochromes (remplacent ⚠️ emoji) ── */
.ccbla-icon-inline {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    color: #000;
    flex-shrink: 0;
}

/* SR-ONLY (utilitaire a11y) */
.ccbla-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* MULTI-FICHIERS (spécifique proposer-article) Liste <div class="ccbla-mf-list"> contenant des.ccbla-mf-row, un bouton + Ajouter et un bloc statut global. Strict noir/blanc. */
.ccbla-mf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.ccbla-mf-list:empty { display: none; }

/* Ligne = un fichier (existant ou en cours d'upload) */
/* ⚡ 2026-04-24 : layout refondu avec tuile 120×80 (cohérent proposer-evenement) */
.ccbla-mf-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.3;
    color: #000;
}
.ccbla-mf-row--uploading { /* sobre : aucun fond coloré */ }
.ccbla-mf-row--done      { /* sobre */ }
.ccbla-mf-row--error     {
    /* Ligne d'erreur : juste bord gauche épais, pas de fond rouge */
    border-left-width: 4px;
}

/* ── Vignette 120×80 — image OU label icône type fichier Cohérent avec.ccbla-field__img-preview dans proposer-evenement. Variantes par kind: --image, --pdf, --doc, --sheet, --slides, --archive, --audio, --video, --text, --file (fallback). */
.ccbla-mf-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #000;
    overflow: hidden;
    position: relative;
}

/* 2026-05-08: wrapper <a> pour vignette cliquable (mode édition). Cohérent avec.ccbla-ef-thumb-link côté event. */
.ccbla-mf-thumb-link {
    display: contents;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.ccbla-mf-thumb-link:hover .ccbla-mf-thumb,
.ccbla-mf-thumb-link:focus-visible .ccbla-mf-thumb {
    box-shadow: 0 0 0 2px var(--pop-primary, #6b4796);
    transition: box-shadow 120ms ease;
}
.ccbla-mf-thumb-link:focus-visible {
    outline: none;
}

/* 2026-05-08 : champ description (libellé) par PJ — miroir .ccbla-ef-desc événement */
.ccbla-mf-desc {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ccbla-mf-desc-label {
    font-size: 12px;
    color: #5a5a5a;
    font-weight: 500;
}
.ccbla-mf-desc-optional {
    color: #8a8a8a;
    font-weight: 400;
    font-style: italic;
}
.ccbla-mf-desc-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.ccbla-mf-desc-input:focus {
    outline: 2px solid var(--pop-primary, #6b4796);
    outline-offset: 0;
    border-color: var(--pop-primary, #6b4796);
}
.ccbla-mf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ccbla-mf-thumb__label {
    font-family: var(--wp--preset--font-family--agrandir-wide-medium, var(--font-wide-medium, "Agrandir Wide Medium", sans-serif));
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0;
    color: #000;
    text-align: center;
    line-height: 1;
    text-transform: uppercase;
    padding: 0 6px;
}
/* Variantes visuelles discrètes par type de fichier (strict N&B, différencié par bande verticale à gauche) */
.ccbla-mf-thumb--pdf     { background: #f7f7f7; }
.ccbla-mf-thumb--doc     { background: #fafafa; }
.ccbla-mf-thumb--sheet   { background: #f5f5f5; }
.ccbla-mf-thumb--slides  { background: #f8f8f8; }
.ccbla-mf-thumb--archive { background: #f2f2f2; }
.ccbla-mf-thumb--audio,
.ccbla-mf-thumb--video   { background: #ededed; }
.ccbla-mf-thumb--text    { background: #fcfcfc; }
.ccbla-mf-thumb--file    { background: #fafafa; }

.ccbla-mf-status-icon { font-style: normal; }
.ccbla-mf-status-icon--ok,
.ccbla-mf-status-icon--err { font-weight: 700; }

/* Mini spinner (remplace l'emoji pendant l'upload) */
.ccbla-mini-pop-spin {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #000;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ccbla-btn-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .ccbla-mini-pop-spin { animation: none; }
}

/* Bloc info à droite de la tuile : nom + taille + badge + progression + erreur */
/* ⚡ 2026-04-24 : structure à 2 niveaux (__head : nom + dl ; __meta : taille + badge) */
.ccbla-mf-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ccbla-mf-info__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ccbla-mf-info__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ccbla-mf-name {
    font-family: var(--wp--preset--font-family--agrandir-tight-bold, var(--font-tight-bold, "Agrandir Tight Bold", sans-serif));
    font-size: 16px;
    font-weight: 700;
    color: #000;
    word-break: break-word;
    line-height: 1.25;
    letter-spacing: 0;
}
.ccbla-mf-size {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    color: #555;
}

/* Badge "Existant" pour les fichiers déjà uploadés (mode édition) */
.ccbla-mf-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    border: 1px solid #000;
    color: #000;
    background: #fff;
    vertical-align: middle;
}

/* Barre de progression par ligne */
.ccbla-mf-progress {
    display: block;
    height: 3px;
    background: #e5e5e5;
    overflow: hidden;
    border-radius: 0;
    margin-top: 4px;
}
.ccbla-mf-progress__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #000;
    transition: width .2s ease;
}

/* Message d'erreur par ligne */
.ccbla-mf-error {
    font-family: var(--font-body);
    font-size: 13px;
    color: #c62828;                 /* ⚡ 2026-04-24 : rouge harmonisé .ccbla-field__error */
    margin-top: 4px;
    line-height: 1.4;
}

/* Lien de téléchargement (fichiers existants) */
.ccbla-mf-dl {
    flex-shrink: 0;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    padding: 2px 8px;
    border: 1px solid #000;
    line-height: 1;
}
.ccbla-mf-dl:hover,
.ccbla-mf-dl:focus-visible {
    background: #000;
    color: #fff;
    outline: 0;
}

/* Bouton supprimer (× à droite) */
.ccbla-mf-remove {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-body);
    border-radius: 0;
    transition: background .15s, color .15s;
}
.ccbla-mf-remove:hover,
.ccbla-mf-remove:focus-visible {
    background: #000;
    color: #fff;
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Bouton "+ Ajouter un fichier" */
.ccbla-mf-add-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .15s, color .15s;
}
.ccbla-mf-add-btn:hover,
.ccbla-mf-add-btn:focus-visible {
    background: #000;
    color: #fff;
    outline: 2px solid #000;
    outline-offset: 2px;
}
.ccbla-mf-add-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .ccbla-event-form__title { font-size: 30px; line-height: 40px; }
    .ccbla-form-section__title { font-size: 22px; }
    .ccbla-notice { padding: 1rem 1.25rem; }
    .ccbla-notice__actions { margin-left: 0; width: 100%; }
    .ccbla-notice__btn { width: 100%; text-align: center; }
    .ccbla-form-actions { flex-direction: column; align-items: stretch; }
    .ccbla-event-form__submit { width: 100%; text-align: center; }
    .ccbla-event-form__cancel { text-align: center; }
    /* Multi-fichiers : simplifier layout sur mobile */
    .ccbla-mf-row { flex-wrap: wrap; gap: 12px; padding: 10px; }
    .ccbla-mf-thumb { width: 96px; height: 64px; }
    .ccbla-mf-thumb__label { font-size: 18px; }
    .ccbla-mf-info { flex: 1 1 calc(100% - 108px); min-width: 0; }
    .ccbla-mf-status-icon { order: 3; }
    .ccbla-mf-remove { order: 4; }
}

/* LAYOUT HINT — "Recommandations pour la mise en forme" v2 (2026-04-24): <details>/<summary> tooltip cliquable. Schéma décoratif VERTICAL dans le panel (texte haut → image → texte bas). Palette noir/blanc stricte, cohérente avec la charte du form. A11y: <summary> est focusable nativement, Enter/Space togglent, chevron indique l'état (rotate 180° quand [open]). aria-expanded est géré automatiquement par le navigateur sur <details>. */
.ccbla-layout-hint {
    margin: 0 0 16px;
    border: 1px solid #000;
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}
.ccbla-layout-hint__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    color: #000;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    list-style: none;
}
.ccbla-layout-hint__summary::-webkit-details-marker { display: none; }
.ccbla-layout-hint__summary::marker { content: ''; }
.ccbla-layout-hint__summary:hover {
    background: #f6f6f6;
}
.ccbla-layout-hint__summary:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}
.ccbla-layout-hint__icon {
    flex: 0 0 auto;
    color: #000;
}
.ccbla-layout-hint__title {
    flex: 1 1 auto;
    letter-spacing: 0;
}
.ccbla-layout-hint__chevron {
    flex: 0 0 auto;
    color: #000;
    transition: transform .18s ease;
}
.ccbla-layout-hint[open] > .ccbla-layout-hint__summary .ccbla-layout-hint__chevron {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .ccbla-layout-hint__chevron { transition: none; }
}

.ccbla-layout-hint__panel {
    padding: 0 14px 14px;
    border-top: 1px solid #000;
}

/* Schéma VERTICAL (spec Nic 2026-04-24) : les 3 blocs empilés en colonne */
.ccbla-layout-hint__schema {
    display: flex;
    flex-direction: column;        /* ⚡ vertical */
    align-items: stretch;
    gap: 10px;
    margin: 14px 0 12px;
    padding: 12px;
    background: #fff;
    border: 1px dashed #000;
}
.ccbla-layout-hint__block {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 0;
    padding: 8px 10px;
    color: #000;
}
.ccbla-layout-hint__block--img {
    width: 70%;                  /* ⚡ 2026-04-24 : plus étroit que les lignes de texte */
    align-self: center;          /*    → visualise bien une image centrée dans un article */
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    min-height: 60px;
}
.ccbla-layout-hint__line {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    opacity: .55;
    border-radius: 0;
}
.ccbla-layout-hint__line--short { width: 60%; }
.ccbla-layout-hint__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #000;
}
.ccbla-layout-hint__text strong {
    color: #000;
    font-weight: 700;
}

/* TINYMCE — hover toolbar (icône blanche sur fond noir) ⚡ 2026-04-24 Miroir du style de proposer-evenement. Scope: -.ccbla-event-form-wrap (classe partagée) -.ccbla-article-form-wrap (classe spécifique article — redondant mais robuste) État normal inchangé, état actif (.mce-active) intact. */
.ccbla-event-form-wrap .mce-btn:not(.mce-active):hover,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus-visible {
    background-color: #111 !important;
    background-image: none !important;
    border-color: #111 !important;
    box-shadow: none !important;
}
.ccbla-event-form-wrap .mce-btn:not(.mce-active):hover button,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus button,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus-visible button {
    background: transparent !important;
}
.ccbla-event-form-wrap .mce-btn:not(.mce-active):hover .mce-ico,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus .mce-ico,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus-visible .mce-ico,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):hover .mce-txt,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus .mce-txt,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus-visible .mce-txt {
    color: #fff !important;
}
.ccbla-event-form-wrap .mce-btn:not(.mce-active):hover .mce-caret,
.ccbla-event-form-wrap .mce-btn:not(.mce-active):focus .mce-caret {
    border-top-color: #fff !important;
}

/* 2026-05-09 (demande Nic) — Overlay submit (cohérence UX avec proposer-evenement) Reproduction des règles.ccbla-submit-overlay* du form événement. Scoped par bloc (CSS chargé uniquement sur la page proposer-article) → pas de collision possible avec le bloc événement (page séparée). Pas de compteur X/N: 1 article = 1 post (logique simplifiée). Cohérence visuelle stricte avec proposer-evenement (même spinner POP, mêmes paddings, même radius card, mêmes vars). */

.ccbla-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ccbla-submit-overlay[hidden] {
    display: none;
}

.ccbla-submit-overlay__card {
    max-width: 480px;
    width: 100%;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #111;
    font-family: var(--font-body, system-ui, sans-serif);
}

/* 2026-05-10 — Spinner CSS retiré (markup correspondant supprimé dans render.php). La liste verticale d'étapes (.ccbla-submit-overlay__steps) donne désormais le signe de vie via l'animation des trois points sur l'étape courante. Anciennes règles.ccbla-submit-overlay__spinner + @keyframes ccbla-article-submit-spin + bloc prefers-reduced-motion correspondant supprimés (cleanup propre, pas de CSS mort). */

.ccbla-submit-overlay__title {
    margin: 0 0 0.75em;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.ccbla-submit-overlay__estim {
    margin: 0 0 0.5em;
    font-size: 0.95rem;
    color: #444;
}

.ccbla-submit-overlay__timer {
    margin: 0 0 1em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.05em;
}

.ccbla-submit-overlay__hint {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Bouton submit désactivé pendant l'envoi (cohérent avec aria-busy). */
.ccbla-event-form__submit[aria-busy="true"] {
    opacity: 0.5;
    cursor: wait;
}

/* ════════════════════════════════════════════════════════════════════
 * 2026-05-10 — Liste verticale d'étapes (overlay détaillé) + barre de
 * progression Phase A (uploads de fichiers réels)
 * ════════════════════════════════════════════════════════════════════
 *
 * Parité visuelle stricte avec proposer-evenement (mêmes valeurs,
 * mêmes vars, mêmes animations). CSS scopé par bloc (chargé uniquement
 * sur la page proposer-un-article), pas de collision possible.
 *
 * États étapes (sans icônes — décision Nic 2026-05-10) :
 *   • is-pending : opacity 0.35, gris, weight normal
 *   • is-current : opacity 1, pop-dark, weight 600, suffix « … » pulsé
 *   • is-done    : opacity 0.55, normal weight, sans déco
 *
 * Barre de progression Phase A : sert à afficher l'avancement réel
 * de uploadAllPending() (compteur X/N fichiers envoyés). Hidden en
 * Phase B (publish simulée).
 */

/* 2026-05-11 — Refonte loader POP unifié (cascade Option C polling retirée) Bloc.ccbla-submit-overlay__steps / __step (≈ 55 LOC) supprimé. Phase B serveur (publication article) ne traque plus 8 phases — un loader POP s'affiche en remplacement. La barre de progression Phase A (uploads AJAX réels) est CONSERVÉE plus bas (tracking client légitime). */

/* Loader POP unifié Phase B (publication serveur) Réutilisation du pattern partagé (vars --ccbla-pop-loader-* dans style.css racine L1128-1140 + @keyframes ccbla-pop-loader-spin L1141). Cohérence visuelle avec agenda-int-ext / filters-* / proposer-evenement. Caché pendant Phase A (classe `.is-uploading` sur l'overlay: la barre de progression d'upload est plus pertinente comme signe de vie). */
.ccbla-submit-overlay__spinner {
    position: relative;
    width: 56px;
    height: 56px;
    aspect-ratio: 1;
    margin: 28px auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
}
.ccbla-submit-overlay__spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--ccbla-pop-loader-ring-color);
    border-top-color: var(--ccbla-pop-loader-ring-accent);
    border-radius: 50%;
    animation: ccbla-pop-loader-spin .9s linear infinite;
}
.ccbla-submit-overlay__spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--ccbla-pop-loader-badge-width);
    height: var(--ccbla-pop-loader-badge-height);
    transform: translate(-50%, -50%);
    border-radius: var(--ccbla-pop-loader-badge-radius);
    background-color: var(--ccbla-pop-loader-badge-bg);
    background-image: var(--ccbla-pop-loader-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: var(--ccbla-pop-loader-logo-size);
    box-shadow: var(--ccbla-pop-loader-shadow);
}
/* 2026-05-13 — Refonte UX modal unifiée (parité events, décision Nic) :
   l'ancienne règle ci-dessous masquait le loader POP pendant Phase A.
   Désormais le loader POP RESTE VISIBLE pendant la Phase A (en plus de la
   barre + compteur X/N). Règle conservée en commentaire pour traçabilité.

   .ccbla-submit-overlay.is-uploading .ccbla-submit-overlay__spinner {
       display: none;
   }
*/
@media (prefers-reduced-motion: reduce) {
    .ccbla-submit-overlay__spinner::before {
        animation: none;
        border-top-color: var(--ccbla-pop-loader-ring-accent);
    }
}

/* 2026-05-13 — Barre Phase A "sexy" parité events. Cf. blocs/proposer-evenement/style.css */
.ccbla-submit-overlay__progress {
    margin: 1.25rem 0 0.75rem;
}
.ccbla-submit-overlay__bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.10) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.ccbla-submit-overlay__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--wp--preset--color--pop-dark, #111) 0%,
        #2a2a2a 50%,
        var(--wp--preset--color--pop-dark, #111) 100%
    );
    background-size: 200% 100%;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    animation: ccbla-bar-shimmer 2.4s linear infinite;
}
.ccbla-submit-overlay__bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: ccbla-bar-sweep 1.8s ease-in-out infinite;
}
@keyframes ccbla-bar-shimmer {
    0%   { background-position:   0% 0; }
    100% { background-position: 200% 0; }
}
@keyframes ccbla-bar-sweep {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
    .ccbla-submit-overlay__bar-fill,
    .ccbla-submit-overlay__bar-fill::after { animation: none; }
}
.ccbla-submit-overlay__counter {
    margin: 0.5rem 0 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--wp--preset--color--pop-dark, #111);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.ccbla-submit-overlay__counter-current,
.ccbla-submit-overlay__counter-total {
    font-size: 1.25rem;
}
.ccbla-submit-overlay__counter-sep {
    margin: 0 0.15em;
    color: #777;
}
.ccbla-submit-overlay__counter-label {
    font-weight: 400;
    color: #595959;
    font-size: 0.95rem;
}
/* Pendant la Phase A, masquer le timer texte (la barre + compteur suffisent comme repère visuel et évitent le double signal). */
.ccbla-submit-overlay.is-uploading .ccbla-submit-overlay__timer {
    display: none;
}

/* ─── Mobile responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .ccbla-submit-overlay__counter {
        font-size: 0.95rem;
    }
    .ccbla-submit-overlay__counter-current,
    .ccbla-submit-overlay__counter-total {
        font-size: 1.1rem;
    }
    .ccbla-submit-overlay__bar {
        height: 12px;
    }
}

/* 2026-05-13 — Champ alt description image (inclusion numérique) + help PJ. Symétrique de proposer-evenement/style.css. */
.ccbla-field--img-alt {
    margin-top: 12px;
}
.ccbla-field--img-alt .ccbla-field__hint-top {
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.ccbla-mf-desc-help {
    margin: 4px 0 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #555;
}

/* 2026-05-13 (demande Nic) — Bouton « Ajouter au média » TinyMCE Parité avec blocs/proposer-evenement/style.css (même TinyMCE injecté). */
.wp-media-buttons .insert-media,
.wp-media-buttons .insert-media.button {
    padding-left:  5px;
    font-size:     14px;
    font-family:   var(--wp--preset--font-family--instrument-sans, 'Instrument Sans', sans-serif);
    background:    #fff;
    border-radius: 0;
    color:         #00726A;
}
.wp-media-buttons .insert-media:hover,
.wp-media-buttons .insert-media:focus-visible {
    background: #00726A;
    color:      #fff;
}
