/* ========================================
   Reseau Radis CSS Variables
   Design System tokens
   ======================================== */

:root {
    /* Colors */
    --aubergine: #3c163e;
    --aubergine-light: #5a2a5e;
    --aubergine-dark: #2a0e2c;
    --cream: #f5f0e8;
    --cream-dark: #ebe4d8;
    --gold: #e3b236;
    --green: #6fc29d;
    --orange: #ea6741;
    --white: #ffffff;
    --text: #2d1f2e;
    --text-light: #6b5a6d;

    /* Typography */
    --font-heading: 'atrament-web', serif;
    --font-accent: 'smoothy', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-subtitle: 'DM Serif Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-small: 12px;
    --radius-medium: 14px;
    --radius-large: 20px;
    --radius-card: 24px;
    --radius-pill: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Layout */
    --content-width: 1400px;
    --wide-width: 1500px;
    --header-height: 80px;
    --section-padding: 3rem;
}

/* ========================================
   Global list style with icone-positif
   ======================================== */

/* All feature/check lists across blocks */
.gratuite-list li,
.interactive-map__features li,
.member-types__feature,
.free-service__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    list-style: none;
}

.gratuite-list li::before,
.interactive-map__features li::before,
.member-types__feature::before,
.free-service__feature::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background: url('../svg/icone-positif.svg') no-repeat center / contain;
}

/* Remove old SVG icons inside list items */
.gratuite-list li svg,
.member-types__feature svg,
.free-service__feature svg {
    display: none;
}

/* Reset list padding/margin */
.gratuite-list,
.interactive-map__features,
.member-types__features {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ========================================
   Global resets for Gutenberg blocks
   ======================================== */

/* Section label + title: no margin-top on title after label */
.section-label + .section-title,
.section-label + h2 {
    margin-top: 0;
}

/* Collectifs citoyens section */
.collectifs-section {
    background: var(--gold, #e3b236);
    padding: 6rem 3rem;
    position: relative;
    margin-top: 60px;
}

.collectifs-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C360,60 720,60 1440,0 L1440,60 L0,60 Z' fill='%23e3b236'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.collectifs-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.collectifs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.collectifs-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 1rem;
}

.collectifs-title {
    font-family: "atrament-web", serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.collectifs-title strong {
    font-family: "smoothy", sans-serif;
    font-style: italic;
    color: var(--aubergine);
    font-weight: 400;
}

.collectifs-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.collectifs-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.collectifs-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
}

.collectifs-card h3 {
    font-family: "atrament-web", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--aubergine);
    margin: 0 0 0.5rem;
}

.collectifs-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .collectifs-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Rejoignez le mouvement section (inline HTML block) */
.rejoignez-section {
    background: var(--cream, #f5f0e8);
    padding: 6rem 3rem;
    text-align: center;
}

.rejoignez-inner {
    max-width: 900px;
    margin: 0 auto;
}

.rejoignez-title {
    font-family: "atrament-web", serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--aubergine);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.rejoignez-title strong {
    font-family: "smoothy", sans-serif;
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.rejoignez-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.rejoignez-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reset WP default heading margins inside blocks */
.wp-block-alpaga-section-wrapper h2,
.wp-block-alpaga-mission-block h2,
.wp-block-alpaga-key-figures h2,
.wp-block-alpaga-testimonials h2,
.wp-block-alpaga-numbered-steps h2,
.wp-block-alpaga-interactive-map h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ========================================
   Editor: Post title centered
   ======================================== */
.editor-visual-editor__post-title-wrapper,
.edit-post-visual-editor__post-title-wrapper {
    text-align: center;
}
