/* ============================================================
   Widget compteur [compteur_signatures] + Bande sociale [bande_signataires]
   Blocs de contenu : hero, quote, demands
   ============================================================ */

/* ============================================================
   Widget compteur
   ============================================================ */

.rp2027-counter {
    font-family: var(--font-text);
    max-width: 640px;
    margin: 0 auto;
}

.rp2027-counter__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-4);
}

/* Grand chiffre rouge */
.rp2027-count-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--red-600);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Label "signataires" sous le chiffre */
.rp2027-count-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: calc(-1 * var(--space-2)) 0 0;
}

/* Badge "↑ +248 aujourd'hui" — bleu (deuteranopie safe) */
.rp2027-count-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: var(--blue-600);
    color: var(--paper-0);
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
}

/* Barre de progression */
.rp2027-progress {
    width: 100%;
    max-width: 480px;
    height: 6px;
    background: var(--paper-100);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.rp2027-progress-fill {
    height: 100%;
    background: var(--red-600);
    border-radius: var(--radius-pill);
    transition: width .6s ease;
}

/* Label objectif */
.rp2027-counter__goal {
    font-size: 0.8125rem;
    color: var(--ink-500);
}

/* Section "Compléter mon profil" — collapsible CSS Grid */

.rp2027-profile-section {
    border-top: 1px solid var(--line);
    margin-top: var(--space-4);
}

.rp2027-profile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: none;
    border: none;
    font-family: var(--font-text);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-900);
    cursor: pointer;
    text-align: left;
}

.rp2027-profile-toggle:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.rp2027-profile-toggle__icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform .3s ease;
}

.rp2027-profile-section.is-open .rp2027-profile-toggle__icon {
    transform: rotate(45deg);
}

/* CSS Grid collapsible — animation fluide */
.rp2027-profile-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.rp2027-profile-section.is-open .rp2027-profile-content-wrapper {
    grid-template-rows: 1fr;
}

.rp2027-profile-content {
    overflow: hidden;
}

.rp2027-profile-content__inner {
    padding: var(--space-4) var(--space-6) var(--space-6);
    color: var(--ink-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================================
   Bande sociale [bande_signataires]
   ============================================================ */

.rp2027-band {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-family: var(--font-text);
    padding: var(--space-4) var(--space-6);
    background: var(--paper-0);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.rp2027-band__avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Avatars initiales */
.rp2027-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    border: 2px solid var(--paper-50); /* contraste sur fond blanc */
    flex-shrink: 0;
}

.rp2027-band__avatars .rp2027-avatar + .rp2027-avatar {
    margin-left: -10px;
}

.rp2027-avatar--red    { background: var(--red-600);    color: var(--paper-0); }
.rp2027-avatar--green  { background: var(--green-600);  color: var(--paper-0); }
.rp2027-avatar--blue   { background: var(--blue-600);   color: var(--paper-0); }
.rp2027-avatar--amber  { background: var(--amber-600);  color: var(--paper-0); }
.rp2027-avatar--teal   { background: var(--teal-600);   color: var(--paper-0); }
.rp2027-avatar--purple { background: var(--purple-600); color: var(--paper-0); }
.rp2027-avatar--rose   { background: var(--rose-600);   color: var(--paper-0); }
.rp2027-avatar--orange { background: var(--orange-600); color: var(--paper-0); }

.rp2027-band__text {
    font-size: 0.9375rem;
    color: var(--ink-700);
    margin: 0;
}

/* ============================================================
   Blocs Gutenberg — quote
   ============================================================ */

.rp2027-quote {
    background: var(--ink-900);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    margin: var(--space-4) 0;
}

.rp2027-quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--paper-0);
    line-height: 1.35;
    margin: 0;
    border-left: none;
    quotes: none;
}

/* ============================================================
   Blocs Gutenberg — demands
   ============================================================ */

.rp2027-demands {
    padding: var(--space-8) 0;
}

.rp2027-demands__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: var(--space-6);
}

.rp2027-demands__placeholder {
    color: var(--ink-500);
    font-style: italic;
    text-align: center;
    padding: var(--space-6);
}

.rp2027-demands__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.rp2027-demand-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--paper-0);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-6);
}

.rp2027-demand-item__icon {
    flex-shrink: 0;
    color: var(--blue-600);
    margin-top: 2px;
}

.rp2027-demand-item__content {
    flex: 1;
}

.rp2027-demand-item__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 var(--space-1);
}

.rp2027-demand-item__desc {
    font-size: 0.9375rem;
    color: var(--ink-700);
    line-height: 1.55;
    margin: 0;
}

/* Éditeur Gutenberg : mode édition */
.rp2027-demand-item--editing {
    flex-direction: column;
    gap: var(--space-2);
}

/* ============================================================
   Mobile counter
   ============================================================ */

@media (max-width: 600px) {
    .rp2027-counter__main {
        padding: var(--space-8) var(--space-4);
    }

    .rp2027-band {
        flex-direction: column;
        align-items: flex-start;
    }
}
