/* Page de vote Newsletter */
:root {
    --brand-green: #2C5F2E;
    --brand-bg:    #F5F0E8;
    --white:       #ffffff;
    --gray-600:    #4b5563;
    --gray-400:    #9ca3af;
    --success:     #16a34a;
    --error:       #dc2626;
    --info:        #1d4ed8;
    --radius:      12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--brand-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vote-page { width: 100%; display: flex; align-items: center; justify-content: center; }

.vote-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.vote-logo { margin-bottom: 32px; }
.vote-logo img { height: 60px; margin-bottom: 12px; }

.vote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}
.vote-icon-success { background: #dcfce7; color: var(--success); }
.vote-icon-error   { background: #fee2e2; color: var(--error); }
.vote-icon-info    { background: #eff6ff; color: var(--info); }

.vote-card h2 { font-size: 20px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }
.vote-card p  { font-size: 15px; color: var(--gray-600); line-height: 1.6; margin-bottom: 8px; }
.vote-card strong { color: var(--brand-green); }

/* ─── Zones de texte configurables ─────────────────────────────────────── */
.vote-card .vote-text-zone-1 {
    font-family: var(--vote-font1, inherit);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text, #1f2937);
    line-height: 1.1;
    margin-bottom: 20px;
}

.vote-card .vote-text-zone-2 {
    font-family: var(--vote-font2, inherit);
    font-size: 1rem;
    font-weight: 100;
    color: var(--color-text, #1f2937);
    line-height: 1.6;
    margin-bottom: 10px;
}

.vote-card .vote-text-zone-3 {
    font-family: var(--vote-font2, inherit);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text, #1f2937);
    line-height: 1.5;
    margin-bottom: 36px;
}

/* ─── Interface de sélection du score ───────────────────────────────────── */
.vote-card-select {
    max-width: 900px;
    padding: 60px 64px;
}
.vote-card-select h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
.vote-card-select > p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Honeypot : visuellement masqué mais accessible aux bots */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.score-scale { width: 100%; }

.score-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.score-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .1s, opacity .15s;
    flex-shrink: 0;
}
.score-btn:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: .9;
    text-decoration: none;
}

.score-detractor { background: #fee2e2; color: #b91c1c; }
.score-passive   { background: #fef3c7; color: #92400e; }
.score-promoter  { background: #dcfce7; color: #15803d; }

.score-legend {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 10px;
    padding: 0 2px;
}

@media (max-width: 700px) {
    .vote-card-select { padding: 40px 24px; }
    .score-buttons { gap: 4px; }
    .score-btn     { width: 40px; height: 40px; font-size: 14px; border-radius: 7px; }
}

@media (max-width: 520px) {
    .vote-card     { padding: 36px 20px; }
    .score-btn     { width: 34px; height: 34px; font-size: 13px; border-radius: 6px; }
}

/* ─── Styles spécifiques Iframe / Intégration (embed) ─────────────────────── */
body.is-embed {
    background: transparent !important;
    min-height: auto;
    padding: 0;
    display: block;
}

body.is-embed .vote-page {
    padding: 0;
    min-height: auto;
}

body.is-embed .vote-card {
    background: transparent !important;
    box-shadow: none;
    padding: 10px 0;
    max-width: 100%;
    border-radius: 0;
}

body.is-embed .vote-card-select {
    padding: 10px 0;
}
