/* =====================
   VARIABLES
===================== */
:root {
    --primary: #0F766E;
    --primary-dark: #115E59;
    --brand-rgb: 15, 118, 110;
    --brand-deep: #0B4F4A;
    --brand-deep-rgb: 6, 46, 42;
    --brand-night-rgb: 6, 22, 21;
    --brand-light: #14A091;
    --secondary: #C2410C;
    --secondary-dark: #9A3412;
    --success: #15803D;
    --hope-yellow: #F2C94C;
    --warning: var(--hope-yellow);
    --bg: #F4EBDD;
    --card: #FFFFFF;
    --text: #1F2933;
    --text-light: #5F6B73;
    --border: #DED2BF;
    --surface-muted: #EDE2D1;
    --surface-accent: #E1EFEA;
    --on-primary: #FFFFFF;
    --on-secondary: #FFFFFF;
    --success-bg: #DCFCE7;
    --success-text: #15803D;
    --warning-bg: #FEF3C7;
    --warning-text: #B45309;
    --danger-bg: #FEE2E2;
    --danger-text: #B91C1C;
    --danger-border: #FECACA;
    --white: var(--card);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --primary: #2DD4BF;
    --primary-dark: #14B8A6;
    --secondary: #FB923C;
    --secondary-dark: #EA580C;
    --success: #34D399;
    --hope-yellow: #F2C94C;
    --warning: var(--hope-yellow);
    --bg: #0E1A1A;
    --card: #162626;
    --text: #ECFDF5;
    --text-light: #94B8B3;
    --border: #27403E;
    --surface-muted: #12201F;
    --surface-accent: #1B3331;
    --on-primary: #0E1A1A;
    --on-secondary: #1F2933;
    --success-bg: #12352C;
    --success-text: #34D399;
    --warning-bg: #392B17;
    --warning-text: #FBBF24;
    --danger-bg: #3B2024;
    --danger-text: #FDA4AF;
    --danger-border: #7F3942;
    --white: var(--card);
}

/* =====================
   RESET
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================
   HEADER
===================== */
.header {
    background: #FBF5EA;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary);
}

.nav .theme-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.nav .theme-toggle:hover {
    color: var(--primary);
    background: var(--surface-accent);
    border-color: var(--primary);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
}

.theme-toggle__icon--light {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--dark {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--light {
    display: block;
}

.nav .notification-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary span {
    color: var(--primary);
}

.account-dropdown {
    position: absolute;
    z-index: 120;
    top: calc(100% + .8rem);
    right: 0;
    display: grid;
    width: 230px;
    gap: .35rem;
    padding: .65rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.language-form {
    display: grid;
    gap: .35rem;
    padding: .45rem;
}

.language-form label {
    color: var(--text-light);
    font-size: .8rem;
    font-weight: 600;
}

.language-form select {
    width: 100%;
    padding: .55rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

.account-dropdown__action {
    width: 100%;
    padding: .6rem .55rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    text-align: left;
}

.account-dropdown__action:hover {
    background: var(--bg);
    color: var(--primary);
}

.account-dropdown__action--logout {
    color: var(--danger-text);
}

:root[data-theme="dark"] body {
    background-color: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .header,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .stats,
:root[data-theme="dark"] .campaigns-grid .campaign-card,
:root[data-theme="dark"] .campaign-card,
:root[data-theme="dark"] .support-card,
:root[data-theme="dark"] .material-form-card,
:root[data-theme="dark"] .material-donor-nav,
:root[data-theme="dark"] .material-side-card,
:root[data-theme="dark"] .info-box,
:root[data-theme="dark"] .about-value,
:root[data-theme="dark"] .contact-panel,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .cta-box,
:root[data-theme="dark"] .footer-cta,
:root[data-theme="dark"] .donation-card,
:root[data-theme="dark"] .support-box,
:root[data-theme="dark"] .campaign-detail-card,
:root[data-theme="dark"] .benefit-card,
:root[data-theme="dark"] .account-dropdown {
    background-color: var(--card);
    color: var(--text);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
    border-color: var(--border);
    background-color: var(--bg);
    color: var(--text);
}

:root[data-theme="dark"] .account-dropdown__action:hover {
    background: var(--border);
}

/* Mode sombre : bannière foncée (texte blanc lisible) ; les bannières avec photo gardent leur image */
:root[data-theme="dark"] .page-header:not(.image-page-header) {
    background: linear-gradient(135deg, var(--brand-deep), rgb(var(--brand-rgb)));
}

:root[data-theme="dark"] .footer {
    background: var(--bg);
    color: var(--text-light);
}

:root[data-theme="dark"] .footer a,
:root[data-theme="dark"] .footer-description {
    color: var(--text);
}


/* =====================
   BOUTONS
===================== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--on-secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
}

/* =====================
   HERO
===================== */
.hero {
    background-image:
        linear-gradient(90deg, rgba(var(--brand-deep-rgb), 0.9) 0%, rgba(var(--brand-deep-rgb), 0.72) 48%, rgba(var(--brand-deep-rgb), 0.32) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    color: white;
    padding: 5rem 1.5rem 9rem;   /* plus de padding en bas pour laisser de la place aux stats */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 520px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.3rem;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-page-hero {
    z-index: 1;
    overflow: visible;
}

.about-page-hero .hero-container {
    max-width: 1200px;
    position: static;
}

.about-page-hero .hero-content {
    flex: 0 1 540px;
}

.about-page-hero-image {
    position: absolute;
    z-index: 3;
    top: 100%;
    right: max(1.5rem, calc((100% - 1200px) / 2));
    transform: translateY(-50%);
    width: min(32%, 340px);
    min-width: 240px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.about-page-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================
   STATS (un peu plus grand)
===================== */
.stats {
    max-width: 1400px;
    margin: -2.85rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stat-card {
    padding: 1.35rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border-right: 1px solid var(--border);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-card .number {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.3;
}
/* =====================
   SECTIONS
===================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
}

.section-header h2::after,
.how-it-works h2::after,
.support-header h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 0.7rem auto 0;
    border-radius: 2px;
    background: var(--hope-yellow);
}

.section-header h2::after {
    margin-left: 0;
}

.section-header a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* =====================
   CAMPAGNES
===================== */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.campaign-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    transition: 0.25s;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.campaign-image {
    height: 190px;
    background: var(--surface-muted);
    position: relative;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.campaign-body {
    padding: 1.3rem 1.3rem 1.5rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.badge-sante { background: #ccfbf1; color: #0f766e; }
.badge-education { background: #ffedd5; color: #c2410c; }
.badge-urgence { background: #fee2e2; color: #b91c1c; }

:root[data-theme="dark"] .badge-sante { background: var(--surface-accent); color: var(--primary); }
:root[data-theme="dark"] .badge-education { background: #3A2A20; color: var(--secondary); }
:root[data-theme="dark"] .badge-urgence { background: var(--danger-bg); color: var(--danger-text); }

.campaign-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.campaign-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.progress-bar {
    height: 8px;
    background: var(--surface-muted);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1.1rem;
}

.progress-info strong {
    color: var(--text);
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
/* =====================
   COMMENT ÇA MARCHE
===================== */
.how-it-works {
    background: var(--surface-muted);
    padding: 4.5rem 1.5rem;
}

.how-it-works h2 {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 2.8rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.step-number {
    width: 58px;
    height: 58px;
    background: rgba(var(--brand-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.steps h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.steps p {
    font-size: 0.92rem;
    color: var(--text-light);
}
/* =====================
   COMMENT SOUTENIR
===================== */
.support-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.support-header {
    text-align: center;
    margin-bottom: 3rem;
}

.support-header h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.support-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}

.support-card {
    background: white;
    border-radius: 18px;
    padding: 2rem 1.7rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-icon {
    width: 74px;
    height: 74px;
    background: rgba(var(--brand-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
}

.support-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.material-donor-gate {
    position: fixed;
    inset: 0;
    width: min(480px, calc(100% - 2rem));
    max-height: min(90vh, 640px);
    margin: auto;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.material-donor-gate::backdrop {
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(3px);
}

.material-donor-gate__content {
    position: relative;
    padding: 2rem;
}

.material-donor-gate__close {
    position: absolute;
    top: .8rem;
    right: .9rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.material-donor-gate__eyebrow {
    display: block;
    margin-bottom: .6rem;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.material-donor-gate__content h2 {
    max-width: 370px;
    margin: 0 2rem .75rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.material-donor-gate__content > p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.material-donor-gate__actions {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

.material-donor-gate__actions .btn {
    text-align: center;
}

:root[data-theme="dark"] .material-donor-gate {
    border-color: var(--border);
    background: var(--white);
    color: var(--text);
}

.support-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--surface-accent);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.4rem;
    text-align: left;
    width: 100%;
}

.info-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.info-box span {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.4;
}

.support-note {
    margin-top: 1rem;
    font-size: 0.86rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 900px) {
    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-panel {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* =====================
   CTA
===================== */
.cta {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.cta-box {
    background: var(--primary);
    color: white;
    border-radius: 18px;
    padding: 3.2rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 1.8rem;
    font-size: 1.05rem;
}

/* =====================
   FOOTER
===================== */
.footer {
    background: #102A28;
    color: #C9DED9;
    padding: 4rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.8fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h2,
.footer h3 {
    color: white;
}

.footer-brand h2 {
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.footer-brand p,
.footer-description {
    line-height: 1.7;
}

.footer-description {
    color: #D9ECE8;
    margin-bottom: 1.5rem;
}

.footer-links,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
}

.footer-links {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid #2A4A46;
    margin-bottom: 1.2rem;
}

.footer-legal {
    font-size: 0.9rem;
}

.footer-socials h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3E625D;
    border-radius: 50%;
    transition: background-color 0.2s, border-color 0.2s;
}

.footer-social-link:hover {
    background: #17403C;
    border-color: white;
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.footer a {
    color: #D9ECE8;
    text-underline-offset: 3px;
}

.footer-legal a {
    color: #A8C5C0;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2A4A46;
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}
/* =====================
   PAGE HEADER
===================== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
}

.page-header-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.page-header-content p {
    font-size: 1.1rem;
    opacity: 0.92;
    max-width: 550px;
    margin: 0 auto;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    margin-top: -4rem;
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);
}

.contact-information,
.contact-form-area {
    padding: 2.25rem;
}

.contact-information {
    background: var(--bg);
}

.contact-information h2,
.contact-form-area h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.contact-intro,
.contact-detail p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.contact-detail-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
}

.contact-detail h3,
.contact-socials h3 {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-detail a {
    color: var(--primary);
}

.contact-socials {
    border-top: 1px solid var(--border);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
}

.contact-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.contact-social-list a,
.contact-social-list img {
    width: 30px;
    height: 30px;
    display: block;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-field label {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: var(--text);
    background: var(--bg);
    font: inherit;
}

.contact-field textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid rgba(var(--brand-rgb), 0.2);
    border-color: var(--primary);
}

.contact-form-note {
    color: var(--text-light);
    font-size: 0.82rem;
}

.contact-submit {
    border: 0;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    background: var(--primary);
    font: inherit;
    font-weight: 700;
}

.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.contact-map-section {
    max-width: 1200px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
}

.contact-map-heading {
    margin-bottom: 1rem;
}

.contact-map-heading h2 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.contact-map-heading p {
    color: var(--text-light);
}

.contact-map {
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface-muted);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* =====================
   FILTRES + RECHERCHE
===================== */
.filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 1.5rem 0;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.search-input {
    width: 240px;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 0.92rem;
    transition: 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-submit {
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

.campaign-filter-empty {
    padding: 1.5rem 0;
    color: var(--text-light);
}

@media (max-width: 760px) {
    .image-page-header {
        min-height: 360px;
    }

    .contact-section {
        margin-top: -2rem;
    }

    .contact-information,
    .contact-form-area {
        padding: 1.5rem;
    }

    .contact-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-map {
        height: 320px;
    }

    .filters-container {
        align-items: stretch;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .search-box {
        margin-left: 0;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}
/* Support options avec images */
.support-option-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

/* =====================
   DETAIL CAMPAGNE
===================== */
.detail-hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--surface-muted);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.detail-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2.5rem;
    align-items: start;
}

.detail-badges {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detail-status {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--success-text);
    background: var(--success-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.detail-main h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.detail-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.detail-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.detail-progress {
    margin-bottom: 1.8rem;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.progress-stats strong {
    color: var(--text);
}

.progress-stats span {
    color: var(--text-light);
    font-size: 0.87rem;
}

.progress-bar.large {
    height: 12px;
    margin-bottom: 0.5rem;
}

.impact-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.impact-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: var(--text);
    font-size: 0.98rem;
}

.impact-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.support-methods h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.support-methods-sub {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.method-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.method-card:hover,
.method-card.active {
    border-color: var(--primary);
    background: var(--surface-accent);
}

.method-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.method-icon-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 0.7rem;
}

.method-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.method-card span {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--bg);
    border-radius: 14px;
    padding: 1.2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.82rem;
    color: var(--text-light);
}

.meta-value {
    font-size: 0.98rem;
    font-weight: 700;
}

/* Sidebar */
.support-box {
    background: white;
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    position: sticky;
    top: 90px;
}

.support-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    text-align: center;
}

.donation-card {
    background: white;
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
}

.donation-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.donation-card-header p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.4rem;
}

.donation-step {
    margin-bottom: 1.4rem;
}

.donation-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.support-option:hover {
    border-color: var(--primary);
    background: var(--surface-accent);
}

.support-option-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.support-option strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.support-option span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.simulation-warning {
    margin-top: 1.1rem;
    font-size: 0.84rem;
    color: var(--warning-text);
    background: var(--warning-bg);
    border: 1px solid var(--hope-yellow);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    line-height: 1.45;
    text-align: center;
}

/* Formulaire */
.donation-form {
    background: white;
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    margin-top: 1.3rem;
}

.donation-form h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.operators {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.operator-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.operator-option img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.btn-cancel {
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.65rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
}

@media (max-width: 900px) {
    .detail-container {
        grid-template-columns: minmax(0, 1fr);
    }
    .methods-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .detail-hero {
        height: 260px;
    }
    .donation-card,
    .support-box {
        position: static;
    }
}
/* =====================
   MODAL DON
===================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: white;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-step {
    margin-bottom: 1.6rem;
}

.modal-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text);
}

/* Boutons montant */
.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.amount-btn {
    padding: 0.65rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Récapitulatif */
.recap-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.92rem;
}

.recap-row + .recap-row {
    border-top: 1px solid var(--border);
}

.recap-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.recap-label img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.recap-row strong {
    color: var(--text);
    text-align: right;
    font-size: 0.88rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}
/* =====================
   PAGES AUTH (Login / Signup)
===================== */
.auth-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--surface-muted);
}

.auth-section.login-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    padding: 3rem clamp(1.5rem, 4vw, 4rem);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.login-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(241, 245, 249, 0.24);
}

.login-background-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-promo {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

.login-promo-message {
    padding: 1.75rem 0;
}

.login-eyebrow {
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.login-promo-message h2 {
    color: var(--primary);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.login-promo-message > p:last-child {
    color: var(--text-light);
    line-height: 1.7;
}

.login-section .auth-card {
    position: relative;
    z-index: 1;
}

.auth-card.login-card {
    max-width: 420px;
    width: 100%;
    justify-self: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.auth-header h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.social-btn:hover {
    background: var(--bg);
    border-color: var(--border);
}

.social-btn:focus-visible,
.btn-submit:focus-visible,
.form-options a:focus-visible,
.auth-footer a:focus-visible {
    outline: 3px solid rgba(var(--brand-rgb), 0.3);
    outline-offset: 2px;
}

.social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.2rem;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.auth-form .form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: var(--bg);
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.auth-form .remember {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.remember input {
    accent-color: var(--primary);
}

.form-options a {
    color: var(--primary);
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--secondary-dark);
}

.auth-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-section {
        min-height: auto;
        align-items: flex-start;
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 2rem 1.25rem;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }
}

@media (max-width: 900px) {
    .auth-section.login-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .login-promo {
        max-width: 620px;
    }

    .login-promo-message {
        padding: 1rem 0;
    }

    .auth-card.login-card {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .auth-section.login-section {
        padding: 1.5rem 1rem 2.5rem;
    }
}

@media (max-height: 700px) {
    .auth-section {
        align-items: flex-start;
    }
}

.auth-section.signup-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    padding: 3rem clamp(1.5rem, 4vw, 4rem);
    background-color: var(--surface-muted);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.signup-background-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-section.signup-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(241, 245, 249, 0.24);
}

.signup-promo {
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1rem;
    align-self: stretch;
    position: relative;
    z-index: 1;
}

.signup-promo-message {
    max-width: 580px;
    padding: 1.75rem 0;
}

.signup-eyebrow {
    color: var(--secondary);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.signup-promo-message h2 {
    color: var(--primary);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.signup-promo-message > p:last-child {
    color: var(--text-light);
    line-height: 1.6;
}

.signup-image-continuation {
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.auth-card.signup-card {
    max-width: 420px;
    width: 100%;
    justify-self: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
    .auth-section.signup-section {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .signup-promo {
        min-height: 560px;
    }

    .signup-image-continuation {
        display: none;
    }
}

@media (max-width: 700px) {
    .auth-section.signup-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 1rem 2.5rem;
        background-position: 58% center;
    }

    .signup-promo {
        min-height: 0;
        padding-top: 0;
    }

    .signup-promo-message {
        padding: 1rem 0;
    }

    .auth-card.signup-card {
        width: 100%;
    }
}

/* =====================
   ACTUALITÉS - Médias
===================== */
.image-page-header {
    min-height: 500px;
    padding: 5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(135deg, rgba(var(--brand-deep-rgb), 0.78), rgba(var(--brand-deep-rgb), 0.62)),
        var(--page-header-image, var(--contact-header-image, var(--actualites-header-image, var(--campaigns-header-image, var(--blood-header-image)))));
    background-position: center;
    background-size: cover;
}

.posts-list {
    display: grid;
    gap: 2rem;
    max-width: 760px;
    margin: 0 auto;
}

.post {
    min-width: 0;
}

.about-page-hero + .about-intro {
    padding-top: 2rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.post-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.post-date {
    font-size: 0.83rem;
    color: var(--text-light);
    margin-top: 1px;
}

.post-media {
    max-width: 620px;
    margin: 1rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-muted);
}

.post-media img,
.post-media video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-media video {
    max-height: 360px;
    background: #000;
}

/* 2 images côte à côte */
.media-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.media-grid-2 img {
    height: 200px;
}

/* 3 images */
.media-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
}

.media-grid-3 img {
    height: 160px;
}

/* Responsive */
@media (max-width: 600px) {
    .media-grid-2,
    .media-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .media-grid-2 img,
    .media-grid-3 img {
        height: 180px;
    }

    .post {
        padding: 1.1rem;
    }

    .posts-list {
        gap: 1.25rem;
    }
}
/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .about-page-hero .hero-container {
        position: relative;
        gap: 2rem;
    }

    .about-page-hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: min(70%, 320px);
        min-width: 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -5.7rem;
    }

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .campaigns-grid,
    .steps,
    .footer-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-container {
        gap: 2rem;
    }
}

/* =====================
   À PROPOS ET PAGES D'INFORMATION
===================== */
.about-intro-copy p,
.about-section-heading p {
   color: var(--text-light);
}

.about-eyebrow {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-intro-image img,
.about-action-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-intro {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 4rem;
}

.about-page-hero + .about-intro {
    padding-top: clamp(15rem, 18vw, 18rem);
}

.about-carousel {
    width: min(100%, 340px);
    height: auto;
    justify-self: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 16px 16px 0 #e5d6ca;
    background: #e7e1dc;
}

.about-carousel-stage {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.about-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(2%);
    transition: opacity 450ms ease, transform 450ms ease;
    pointer-events: none;
}

.about-carousel-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.about-carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-carousel-controls {
    height: 52px;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: white;
}

.about-carousel-arrow,
.about-carousel-toggle,
.about-carousel-dots button {
    border: 0;
    cursor: pointer;
}

.about-carousel-arrow,
.about-carousel-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0e9e3;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}

.about-carousel-toggle {
    font-size: 0.9rem;
}

.about-carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.about-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: var(--border);
}

.about-carousel-dots button.is-active {
    width: 22px;
    border-radius: 8px;
    background: var(--primary);
}

.about-carousel-arrow:focus-visible,
.about-carousel-toggle:focus-visible,
.about-carousel-dots button:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.about-intro-copy h2,
.about-section-heading h2 {
    margin: 0.55rem 0 1rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.about-intro-copy p {
    margin-bottom: 0.9rem;
}

.about-text-link {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--primary);
    font-weight: 700;
}

.about-text-link span {
    margin-left: 0.25rem;
}

.about-values {
    padding: 2.7rem max(1.5rem, calc((100% - 1120px) / 2));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: #e5d6ca;
}

.about-values article {
    text-align: center;
}

.about-values article > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 41, 59, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
}

.about-values h2 {
    margin: 0.6rem 0 0.25rem;
    font-size: 1.1rem;
}

.about-values p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.about-actions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.about-section-heading {
    max-width: 650px;
    margin: 0 auto 2rem;
    text-align: center;
}

.about-section-heading h2 {
    color: var(--text);
}

.about-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.about-action-card {
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.about-action-card img {
    height: 220px;
}

.about-action-card div {
    padding: 1.25rem;
}

.about-action-card h3 {
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.about-action-card p {
    color: var(--text-light);
    font-size: 0.94rem;
}

.about-cta {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-radius: 16px;
    background: #f0e9e3;
}

.about-cta h2 {
    margin: 0.35rem 0;
    font-size: 1.7rem;
}

.about-cta p {
    color: var(--text-light);
}

.info-page-content,
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.info-page-intro {
    max-width: 740px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.info-page-intro h2 {
    margin: 0.55rem 0 0.9rem;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.25;
}

.info-page-intro p,
.blood-steps p,
.blood-safety-note p,
.legal-content p {
    color: var(--text-light);
}

.blood-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.blood-steps article {
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.blood-steps article > span {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 800;
}

.blood-steps h3 {
    margin: 0.55rem 0;
    color: var(--primary);
}

.blood-safety-note {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #FFF2E7;
}

.blood-safety-note strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-page-cta {
    margin-top: 3rem;
    text-align: center;
}

.info-page-cta h2 {
    margin-bottom: 0.4rem;
}

.info-page-cta p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.info-page-cta .about-text-link {
    margin-left: 0.8rem;
}

.legal-content {
    max-width: 800px;
}

.legal-content section {
    margin-top: 2rem;
}

.legal-content h2 {
    margin-bottom: 0.55rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.legal-content p + p {
    margin-top: 0.4rem;
}

.legal-notice {
    padding: 1rem 1.2rem;
    background: #FFF2E7;
}

@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .about-intro {
        max-width: 700px;
    }

    .about-values {
        padding: 2.5rem 1.5rem;
    }

    .about-action-grid,
    .blood-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-action-card img {
        height: 260px;
    }

    .about-cta {
        margin-right: 1.5rem;
        margin-left: 1.5rem;
    }
}
/* =====================
   PAGE BÉNÉVOLAT
===================== */
.volunteer-status-section {
    max-width: 800px;
    margin: -2rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.volunteer-status-card {
    background: white;
    border-radius: 16px;
    padding: 1.3rem 1.6rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.volunteer-status-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.volunteer-status-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Switch On/Off */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border);
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Missions */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 1.5rem;
}

.mission-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.mission-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--surface-muted);
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.mission-body {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mission-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.mission-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mission-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.mission-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.apply-mission-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .missions-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* =====================
   PAGE DON MATÉRIEL
===================== */
.material-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: var(--material-hero-image);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--brand-deep);
    color: white;
    min-height: 430px;
    padding: 5rem max(1.5rem, calc((100% - 1200px) / 2));
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}

.material-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.material-hero::after {
    z-index: 1;
    background: linear-gradient(90deg, rgba(var(--brand-deep-rgb), 0.88) 0%, rgba(var(--brand-deep-rgb), 0.62) 38%, rgba(var(--brand-deep-rgb), 0.2) 68%, rgba(var(--brand-deep-rgb), 0.02) 100%);
}

.material-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.material-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.material-hero-content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.material-hero-content p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.material-hero-points {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.point {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.point img {
    width: 28px;
    height: 28px;
}

.point strong {
    display: block;
    font-size: 0.9rem;
}

.point span {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Contenu principal */
.material-main {
    max-width: 1540px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.material-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.material-container.has-donor-nav {
    grid-template-columns: 235px minmax(0, 1fr) 355px;
    gap: 1.5rem;
}

.material-donor-nav {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.donor-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.donor-avatar {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-accent);
    color: var(--primary);
    font-weight: 700;
}

.donor-profile strong,
.donor-profile small {
    display: block;
    overflow: hidden;
    max-width: 165px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donor-profile strong {
    font-size: 0.88rem;
}

.donor-profile small {
    color: var(--text-light);
    font-size: 0.78rem;
}

.donor-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.donor-menu a,
.donor-menu .is-unavailable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.55rem;
    border-radius: 7px;
    color: var(--text);
    font-size: 0.84rem;
    text-decoration: none;
}

.donor-menu a:hover {
    background: var(--surface-accent);
}

.donor-menu a.is-active {
    background: var(--primary);
    color: #fff;
}

.donor-menu .is-unavailable {
    color: var(--text-light);
}

.donor-menu a > span,
.donor-menu .is-unavailable > span {
    width: 1rem;
    font-size: 1rem;
    text-align: center;
}

.donor-menu a > img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    flex: 0 0 1rem;
}

.donor-help {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem;
    border-radius: 9px;
    background: var(--surface-accent);
    font-size: 0.8rem;
}

.donor-help span {
    color: var(--text-light);
}

.donor-help a {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 700;
}

.material-form-card {
    container-type: inline-size;
    background: white;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.form-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.form-title img {
    width: 34px;
}

.form-title h2 {
    font-size: 1.45rem;
    font-weight: 700;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.2rem;
    line-height: 1.65;
}

.material-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.material-progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-light);
    font-size: 0.82rem;
    text-align: center;
}

.material-progress li:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0.7rem;
    left: calc(50% + 0.9rem);
    width: calc(100% - 1.8rem);
    height: 2px;
    background: var(--border);
}

.material-progress-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--text-light);
    color: var(--card);
    font-size: 0.7rem;
    font-weight: 700;
}

.material-progress .is-current {
    color: var(--primary);
    font-weight: 600;
}

.material-progress .is-current .material-progress-number {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.material-progress .is-complete {
    color: var(--success);
    font-weight: 600;
}

.material-progress .is-complete .material-progress-number {
    background: var(--success);
    color: var(--on-primary);
}

.material-donation-form.wizard-ready .material-wizard-step:not(.is-active) {
    display: none;
}

.material-donation-form.wizard-ready .material-wizard-step h3:focus {
    outline: none;
}

.form-step {
    margin-bottom: 2rem;
}

.form-step h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Types de dons */
.type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.type-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 150px;
    padding: 1.1rem 0.7rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.type-card:hover,
.type-card input:checked + img {
    border-color: var(--primary);
    background: var(--surface-accent);
}

.type-card input {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.type-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.65rem;
}

.type-card strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.type-card span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.type-card__description {
    display: block;
    margin-top: 0.25rem;
}

.type-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--surface-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}

.type-card input:focus-visible {
    outline: none;
}

.type-card:has(input:focus-visible) {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Upload */
.upload-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 2px dashed var(--border);
    border-radius: 12px;
    height: 420px;
    min-height: 420px;
    padding: 1rem;
    text-align: center;
    transition: 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--surface-accent);
}

.upload-box:focus-within {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.upload-box__picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem 1rem;
    cursor: pointer;
}

.upload-box__picker:hover span {
    color: var(--primary);
}

.upload-box__picker-input,
.upload-box__payload {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.upload-box__files {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: 0.5rem;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.upload-box__files[data-count]:not([data-count="0"]) {
    grid-template-columns: minmax(0, 1.7fr) minmax(74px, 0.8fr);
}

.upload-preview {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #101820;
}

.upload-preview:first-child {
    grid-row: 1 / -1;
}

.upload-box__files[data-count="1"] .upload-preview:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
}

.upload-box__files[data-count="2"] {
    grid-template-rows: minmax(0, 1fr);
}

.upload-box__files[data-count="3"] {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.upload-box__files[data-count="4"] {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.upload-box__files[data-count="5"] {
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

.upload-preview__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow: hidden;
    padding: 1.25rem 0.5rem 0.4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-box .upload-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview__remove {
    position: absolute;
    z-index: 1;
    top: 0.35rem;
    right: 0.35rem;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.upload-preview__remove:hover,
.upload-preview__remove:focus-visible {
    background: #b91c1c;
    color: #fff;
}

.upload-box__error {
    margin: 0.75rem 0 0;
    color: var(--danger-text);
    font-size: 0.82rem;
}

.upload-box img {
    width: 32px;
    margin-bottom: 0.5rem;
}

.upload-box__picker span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.upload-box__picker small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.upload-box__picker:focus-within {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-message {
        transition: none;
    }
}

@container (max-width: 500px) {
    .upload-zone {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .upload-box {
        height: 380px;
        min-height: 380px;
    }

    .upload-box__files[data-count]:not([data-count="0"]) {
        grid-template-columns: minmax(0, 1.4fr) minmax(72px, 0.8fr);
    }
}

/* Coordonnées */
.coords-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.material-donation-form__description textarea {
    width: 100%;
}

.material-donation-form__field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.material-donation-form__submit {
    margin-left: auto;
}

.material-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.material-wizard-actions--end {
    justify-content: flex-end;
}

.material-review {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.material-review p {
    overflow-wrap: anywhere;
}

.material-review p strong {
    color: var(--primary);
}

.material-login-note,
.recent-empty {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* Sidebar */
.material-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.impact-image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center 42%;
}

.impact-content {
    padding: 1.25rem 1.4rem 1.4rem;
}

.sidebar-card h3 {
    font-size: 1.18rem;
    margin: 0 1.25rem 0.8rem;
}

.sidebar-card p {
    font-size: 0.96rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.impact-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.impact-item img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.impact-item > span {
    display: flex;
    flex-direction: column;
}

.impact-item strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
}

.impact-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.examples-list {
    list-style: none;
    margin: 0 1.25rem 1.25rem;
    font-size: 0.94rem;
    color: var(--text);
}

.examples-list li {
    padding: 0.5rem 0;
    padding-left: 1.3rem;
    position: relative;
}

.examples-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.donation-activity {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.generosity-banner {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    background: linear-gradient(115deg, var(--brand-deep), #0F766E 62%, var(--brand-deep));
    color: #fff;
}

.generosity-banner::after {
    content: "♡";
    position: absolute;
    right: 0.6rem;
    bottom: -2.2rem;
    color: rgba(255, 255, 255, 0.14);
    font-size: 8rem;
    line-height: 1;
}

.generosity-banner h3,
.generosity-banner p {
    position: relative;
    z-index: 1;
    max-width: 90%;
}

.generosity-banner h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.generosity-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.5;
}

.recent-donations {
    padding: 1.2rem;
}

.recent-donations-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.recent-donations-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.recent-donations-heading a {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.recent-note {
    color: var(--text-light);
    font-size: 0.68rem;
}

.recent-donation {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
}

.recent-donation__icon {
    display: grid;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-accent);
    color: var(--primary);
    font-size: 1.3rem;
}

.recent-donation + .recent-donation {
    border-top: 1px solid var(--border);
}

.recent-donation img {
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 8px;
    object-fit: cover;
}

.recent-donation div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.15rem;
}

.recent-donation strong {
    color: var(--text);
    font-size: 0.75rem;
}

.recent-donation span {
    color: var(--text-light);
    font-size: 0.68rem;
}

.recent-donation b {
    color: var(--primary);
    font-size: 0.75rem;
}

.site-messages {
    position: fixed;
    z-index: 200;
    top: 5.5rem;
    right: 1rem;
    display: grid;
    gap: 0.5rem;
    width: min(440px, calc(100% - 2rem));
    list-style: none;
}

.site-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-message.is-dismissing {
    opacity: 0;
    transform: translateY(-0.5rem);
}

.site-message__close {
    display: grid;
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.site-message__close:hover,
.site-message__close:focus-visible {
    background: var(--surface-muted);
}

.site-message--success {
    border-color: var(--success);
}

.site-message--error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
}

.donor-records-page {
    width: min(1200px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.donor-records-page__header {
    margin-bottom: 2rem;
}

.donor-records-page__eyebrow {
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.donor-records-page__header h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.donor-records-page__header > p:last-child {
    color: var(--text-light);
}

.donor-records-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
}

.donor-records-section__heading,
.donor-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.donor-records-section__heading {
    margin-bottom: 1rem;
}

.donor-records-section h2 {
    font-size: 1.25rem;
}

.donor-record {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.donor-record h3 {
    margin-bottom: 0.3rem;
}

.donor-record p,
.donor-record > div:first-child > span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.donor-record__status {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
    white-space: nowrap;
}

.donor-record__status a {
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 600;
}

.donor-record__pill {
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-accent);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.donor-record__pill--declined {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.donor-records-empty {
    padding: 0.8rem 0;
    color: var(--text-light);
}

.donor-records-empty--large {
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
    text-align: center;
}

.donor-records-empty--large h2 {
    margin-bottom: 0.5rem;
}

.donor-records-empty--large p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

@media (max-width: 1100px) and (min-width: 901px) {
    .material-container.has-donor-nav {
        grid-template-columns: 205px minmax(0, 1fr) 300px;
        gap: 1rem;
    }

    .material-form-card {
        min-width: 0;
        padding: 1.5rem;
    }

    .type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .material-container {
        grid-template-columns: minmax(0, 1fr);
    }
    .material-container.has-donor-nav {
        grid-template-columns: minmax(0, 1fr);
    }
    .material-donor-nav {
        position: static;
        grid-column: 1 / -1;
    }
    .material-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .donation-activity {
        grid-column: 1 / -1;
    }
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .coords-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .material-hero {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .material-container.has-donor-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .material-wizard-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .material-wizard-actions .btn {
        width: 100%;
    }

    .material-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .donor-records-page {
        width: min(100% - 2rem, 1200px);
        padding: 2rem 0 3rem;
    }

    .donor-records-section__heading,
    .donor-record {
        align-items: flex-start;
        flex-direction: column;
    }

    .donor-record__status {
        justify-items: start;
    }

    .about-carousel {
        width: min(100%, 340px);
    }

    .about-values {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .about-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.6rem;
    }

    .about-carousel-controls {
        padding: 0 0.6rem;
        gap: 0.4rem;
    }

    .info-page-content,
    .legal-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .info-page-cta .about-text-link {
        display: block;
        margin: 0.8rem 0 0;
    }
}

/* Shared theme layer for every page that extends base.html. */
:root {
    color-scheme: light;
}

.stats,
.campaigns-grid .campaign-card,
.how-it-works,
.support-card,
.contact-panel,
.contact-information,
.contact-form-area,
.search-input,
.filter-btn,
.method-card,
.support-box,
.donation-card,
.donation-form,
.modal,
.amount-btn,
.recap-box,
.auth-card,
.social-btn,
.about-carousel,
.about-carousel-controls,
.about-action-card,
.blood-steps article,
.volunteer-status-card,
.mission-card,
.material-donor-nav,
.material-form-card,
.sidebar-card,
.donation-activity {
    background-color: var(--card);
    color: var(--text);
}

.auth-section,
.auth-section.signup-section {
    background-color: var(--bg);
}

.contact-information,
.detail-meta,
.about-values,
.about-cta,
.blood-safety-note,
.legal-notice,
.donor-help,
.donor-menu a:hover,
.method-card:hover,
.method-card.active,
.type-card:hover,
.type-card:focus-within,
.upload-box:hover,
.info-box {
    background-color: var(--surface-accent);
    color: var(--text);
}

.contact-field input,
.contact-field textarea,
.auth-form .form-input,
.form-input,
.account-dropdown input,
.account-dropdown textarea {
    background-color: var(--card);
    color: var(--text);
}

.badge-urgence,
.auth-error {
    color: var(--danger-text);
    background-color: var(--danger-bg);
    border-color: var(--danger-border);
}

.detail-status {
    color: var(--success-text);
    background-color: var(--success-bg);
}

.simulation-warning {
    color: var(--warning-text);
    background-color: var(--warning-bg);
    border-color: var(--hope-yellow);
}

.footer {
    background-color: #102A28;
}

:root[data-theme="dark"] .footer {
    background-color: var(--bg);
}

:root[data-theme="dark"] .contact-information,
:root[data-theme="dark"] .detail-meta,
:root[data-theme="dark"] .about-values,
:root[data-theme="dark"] .about-cta,
:root[data-theme="dark"] .blood-safety-note,
:root[data-theme="dark"] .legal-notice,
:root[data-theme="dark"] .donor-help,
:root[data-theme="dark"] .donor-menu a:hover,
:root[data-theme="dark"] .method-card:hover,
:root[data-theme="dark"] .method-card.active,
:root[data-theme="dark"] .type-card:hover,
:root[data-theme="dark"] .type-card:focus-within,
:root[data-theme="dark"] .upload-box:hover,
:root[data-theme="dark"] .info-box {
    background-color: var(--surface-accent);
    color: var(--text);
}

:root[data-theme="dark"] .auth-section,
:root[data-theme="dark"] .auth-section.signup-section {
    background-color: var(--bg);
}

:root[data-theme="dark"] .auth-section.login-section::before,
:root[data-theme="dark"] .auth-section.signup-section::before {
    background: rgba(15, 23, 25, 0.58);
}

:root[data-theme="dark"] .auth-card.login-card,
:root[data-theme="dark"] .auth-card.signup-card {
    border-color: var(--border);
    background: color-mix(in srgb, var(--card) 94%, transparent);
}

:root[data-theme="dark"] .social-btn:hover {
    background-color: var(--surface-muted);
    border-color: var(--border);
}

:root[data-theme="dark"] .about-values p {
    color: var(--text-light);
}

:root[data-theme="dark"] .about-carousel {
    box-shadow: 16px 16px 0 var(--border);
}

:root[data-theme="dark"] .about-carousel-arrow,
:root[data-theme="dark"] .about-carousel-toggle {
    background-color: var(--surface-muted);
}

:root[data-theme="dark"] .slider {
    background-color: var(--border);
}

:root[data-theme="dark"] .slider:before {
    background-color: var(--card);
}

:root[data-theme="dark"] .material-progress li,
:root[data-theme="dark"] .donor-menu .is-unavailable {
    color: var(--text-light);
}

:root[data-theme="dark"] .material-progress li:not(:last-child)::after {
    background-color: var(--border);
}

:root[data-theme="dark"] .material-progress-number {
    background-color: var(--text-light);
    color: var(--bg);
}

:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .cta-box,
:root[data-theme="dark"] .contact-submit,
:root[data-theme="dark"] .contact-detail-icon,
:root[data-theme="dark"] .filter-btn:hover,
:root[data-theme="dark"] .filter-btn.active,
:root[data-theme="dark"] .amount-btn:hover,
:root[data-theme="dark"] .amount-btn.active,
:root[data-theme="dark"] .donor-menu a.is-active {
    color: var(--on-primary);
}

:root[data-theme="dark"] .btn-secondary,
:root[data-theme="dark"] .btn-submit,
:root[data-theme="dark"] .mission-badge {
    color: var(--on-secondary);
}
/* ---- Bascule de langue FR / EN (en-tête, pour tout le monde) ---- */
.nav .lang-switch { display: inline-flex; flex: 0 0 auto; margin: 0; }
.lang-switch__btn {
    display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 0.7rem;
    border: 1px solid var(--border); border-radius: 999px; background: transparent; color: inherit;
    font: inherit; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.lang-switch__btn:hover, .lang-switch__btn:focus-visible { color: var(--primary); background: var(--surface-accent); border-color: var(--primary); }

/* ---- Connexion avec Google ---- */
.auth-social { margin: 0; }
.social-btn--google { min-height: 48px; font-weight: 600; color: #1F1F1F; border-color: #DADCE0; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12); }
.social-btn--google:hover { background: #F8FAFF; border-color: #C6CAD2; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0; color: var(--text-light); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
:root[data-theme="dark"] .social-btn--google { background: #FFFFFF; color: #1F1F1F; }
.social-btn--google:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.auth-setup-note { margin: 0.5rem 0 0; padding: 0.55rem 0.75rem; border-radius: 10px; background: var(--warning-bg, #FEF0C7); color: var(--warning-text, #93370D); font-size: 0.78rem; line-height: 1.45; }

/* Champ piège anti-robots (formulaires de contact et d'inscription) : hors écran, jamais visible */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Pages de compte génériques d'allauth (déconnexion, confirmation d'e-mail…) : même carte que la connexion */
main.allauth-page {
    width: min(460px, calc(100% - 32px));
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
:root[data-theme="dark"] main.allauth-page { background: var(--card); }
main.allauth-page h1 { font-size: 1.6rem; text-align: center; margin: 0; }
main.allauth-page form { display: flex; flex-direction: column; gap: .9rem; }
main.allauth-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-size: .95rem;
}
main.allauth-page button, main.allauth-page .button {
    display: block; width: 100%; padding: .9rem; border: none; border-radius: 10px; cursor: pointer;
    background: var(--secondary); color: white; font-size: 1rem; font-weight: 600; text-align: center;
}
main.allauth-page a { color: var(--primary); }
.auth-link-button { text-align: center; text-decoration: none; margin-top: 1rem; }

/* Confirmation de l'adresse e-mail */
.auth-mail-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-accent); color: var(--primary); }
.auth-steps { margin: 0 0 1.2rem; padding-left: 1.1rem; display: grid; gap: .45rem; color: var(--text-light); font-size: .92rem; }

/* Lien « don sans campagne » sous la liste des campagnes */
.campaigns-general {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 16px;
    text-align: center;
    color: var(--text-light);
}
.campaigns-general a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================
   CAMPAGNES : BARRE DE RECHERCHE + PANNEAU « FILTRES »
   (remplace les rangées de boutons état / catégorie)
===================== */
.cf-bar {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    position: relative;
}
.cf-search {
    flex: 1;
    position: relative;
    min-width: 0;
}
.cf-search__icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--text-light);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}
.cf-search__input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-size: 0.95rem;
}
.cf-search__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.15);
}
.cf-panel { position: static; }
.cf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.cf-toggle::-webkit-details-marker { display: none; }
.cf-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.cf-toggle:hover,
.cf-panel[open] .cf-toggle { border-color: var(--primary); color: var(--primary); }
.cf-toggle:focus-visible { outline: 3px solid rgba(var(--brand-rgb), 0.35); outline-offset: 2px; }
.cf-toggle__count {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--on-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}
.cf-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    width: min(440px, 100%);
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 18px 40px rgba(var(--brand-night-rgb), 0.16);
}
.cf-group {
    border: 0;
    margin: 0 0 1.1rem;
    padding: 0;
    min-width: 0;
}
.cf-group legend {
    margin-bottom: 0.55rem;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}
.cf-options { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cf-option { position: relative; cursor: pointer; }
.cf-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.cf-option span {
    display: inline-block;
    padding: 0.42rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.15s, border-color 0.15s;
}
.cf-option:hover span { border-color: var(--primary); }
.cf-option input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}
.cf-option input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), 0.35); outline-offset: 2px; }
.cf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.cf-reset { color: var(--text-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cf-reset:hover { color: var(--primary); }
.cf-submit { height: 48px; padding: 0 1.4rem; border-radius: 12px; }
.cf-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
}
.cf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.55rem 0.32rem 0.85rem;
    border-radius: 999px;
    background: var(--surface-accent);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}
.cf-chip span { font-size: 1.05rem; line-height: 1; opacity: 0.7; }
.cf-chip:hover span { opacity: 1; }
.cf-clear { margin-left: 0.3rem; color: var(--text-light); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.cf-empty-reset { display: inline-block; margin-top: 0.6rem; color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .cf-chip { color: var(--primary); }

@media (max-width: 760px) {
    .cf-bar { flex-wrap: wrap; }
    .cf-search { flex-basis: 100%; }
    .cf-panel { flex: 1; }
    .cf-toggle { width: 100%; justify-content: center; }
    .cf-submit { flex: 1; }
    .cf-popover { left: 0; right: 0; width: auto; }
}

/* Signature du développeur (pied de page) */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.35rem 1.1rem; }
.dev-credit { opacity: 0.85; letter-spacing: 0.01em; }
.dev-credit strong { color: var(--secondary); font-weight: 700; }
:root[data-theme="dark"] .dev-credit strong { color: var(--secondary); }

/* Double authentification : saisie du code à 6 chiffres */
.otp-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.otp-resend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; margin-top: 1rem;
    font-size: 0.9rem; color: var(--text-light); text-align: center; }
.link-button { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
