/* ==========================================================================
   Club de la Paix — Feuille de style principale
   ========================================================================== */

/* --- Reset léger + variables --- */
:root {
    --color-night: #0a1929;
    --color-deep-blue: #1e3a8a;
    --color-cyan: #38bdf8;
    --color-yellow: #FFD60A;
    --color-coral: #E63946;
    --color-cream: #FFF8E7;
    --color-cream-border: #f3e9c8;
    --color-warm-red: #B85042;
    --color-blue-accent: #2563eb;

    --color-text: #1a1a1a;
    --color-text-muted: #4b5563;
    --color-text-light: #6b7280;
    --color-border-light: #eef0f3;
    --color-bg-light: #f8fafc;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --content-max: 1180px;
    --section-padding: 60px;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-blue-accent);
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* --- Accessibilité --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #fff;
    clip: auto !important;
    clip-path: none;
    color: var(--color-night);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Header (navigation principale)
   ========================================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
}

.site-logo-img,
.custom-logo {
    height: 48px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

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

.btn-donate-header {
    background: var(--color-coral);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-donate-header:hover {
    background: #c92e3c;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    color: var(--color-text);
}

/* ==========================================================================
   Layout commun aux sections
   ========================================================================== */
.cdlp-section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--section-padding);
    padding-right: var(--section-padding);
}

.cdlp-text-center {
    text-align: center;
}

/* Eyebrows (petits surtitres en majuscules) */
.cdlp-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cdlp-eyebrow-yellow {
    color: var(--color-yellow);
    padding: 7px 14px;
    border: 1px solid rgba(255, 214, 10, 0.35);
    border-radius: 4px;
}

.cdlp-eyebrow-warm { color: var(--color-warm-red); }
.cdlp-eyebrow-blue { color: var(--color-blue-accent); }
.cdlp-eyebrow-red { color: var(--color-coral); }
.cdlp-eyebrow-neutral { color: var(--color-text-light); }

/* Titres */
.cdlp-h2 {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 18px;
    color: var(--color-text);
}

.cdlp-h2-white {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
}

.cdlp-h1 {
    font-size: 38px;
    font-weight: 600;
    margin: 0 0 20px;
}

/* Boutons */
.cdlp-btn-primary {
    display: inline-block;
    background: var(--color-coral);
    color: #fff !important;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.cdlp-btn-primary:hover {
    background: #c92e3c;
    text-decoration: none;
    transform: translateY(-1px);
}

.cdlp-btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: background 0.2s;
}

.cdlp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.cdlp-hero {
    padding: 80px var(--section-padding) 70px;
    background: linear-gradient(135deg, var(--color-night) 0%, var(--color-deep-blue) 100%);
    color: #fff;
    overflow: hidden;
}

.cdlp-hero-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.cdlp-hero-title {
    font-size: 54px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 22px;
    color: #fff;
}

.cdlp-accent {
    color: var(--color-cyan);
}

.cdlp-hero-text {
    font-size: 17px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 32px;
    max-width: 480px;
}

.cdlp-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.cdlp-hero-image {
    position: relative;
}

.cdlp-hero-image img {
    width: 100%;
    max-width: 340px;
    border-radius: 8px;
    transform: rotate(3deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: block;
    margin-left: auto;
}

.cdlp-badge-corner {
    position: absolute;
    bottom: -10px;
    right: 20px;
    background: var(--color-yellow);
    color: var(--color-night);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    transform: rotate(3deg);
}

/* ==========================================================================
   Conviction
   ========================================================================== */
.cdlp-conviction {
    padding: 50px 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-cream-border);
}

.cdlp-quote-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 26px;
    line-height: 1.5;
    max-width: 880px;
    margin: 0;
    color: var(--color-text);
}

/* ==========================================================================
   La BD
   ========================================================================== */
.cdlp-bd-section {
    padding: 70px 0;
    background: #fff;
}

.cdlp-bd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.cdlp-bd-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 22px;
}

.cdlp-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cdlp-tag {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 500;
}

.cdlp-tag-blue   { background: #DBEAFE; color: #1e40af; }
.cdlp-tag-red    { background: #FEE2E2; color: #991B1B; }
.cdlp-tag-amber  { background: #FEF3C7; color: #92400E; }
.cdlp-tag-green  { background: #DCFCE7; color: #166534; }
.cdlp-tag-pink   { background: #FCE7F3; color: #9D174D; }
.cdlp-tag-indigo { background: #E0E7FF; color: #3730A3; }

.cdlp-planches-image img {
    width: 100%;
    border-radius: 6px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cdlp-planches-caption {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* ==========================================================================
   Impact
   ========================================================================== */
.cdlp-impact {
    padding: 70px 0;
    background: var(--color-night);
    color: #fff;
}

.cdlp-impact-header {
    text-align: center;
    margin-bottom: 40px;
}

.cdlp-subtitle-light {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

.cdlp-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}

.cdlp-impact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
}

.cdlp-impact-num {
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
}

.cdlp-yellow { color: var(--color-yellow); }
.cdlp-blue   { color: var(--color-cyan); }
.cdlp-red    { color: var(--color-coral); }

.cdlp-impact-label {
    font-size: 14px;
    color: #cbd5e1;
    margin-top: 14px;
}

/* ==========================================================================
   Section don
   ========================================================================== */
.cdlp-donate-section {
    padding: 70px 0;
    background: #fff;
}

.cdlp-donate-header {
    text-align: center;
    margin-bottom: 40px;
}

.cdlp-donate-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.cdlp-donate-header p {
    color: var(--color-text-light);
    font-size: 15px;
    margin: 0;
}

.cdlp-donation-form {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    padding: 34px;
}

.cdlp-admin-notice {
    background: #FEF3C7;
    border-left: 4px solid var(--color-yellow);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #92400E;
    border-radius: 4px;
}

.cdlp-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-night);
    margin-bottom: 16px;
}

.cdlp-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cdlp-amount-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, transform 0.1s;
}

.cdlp-amount-card:hover {
    border-color: var(--color-yellow);
    transform: translateY(-1px);
}

.cdlp-amount-active {
    background: #FEF3C7;
    border: 2px solid var(--color-yellow);
    padding: 19px 11px;
}

.cdlp-amount {
    font-size: 18px;
    font-weight: 600;
}

.cdlp-amount-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.cdlp-amount-active .cdlp-amount-desc {
    color: #92400E;
}

.cdlp-popular-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-yellow);
    color: var(--color-night);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.cdlp-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #F9FAFB;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.cdlp-toggle-icon {
    color: var(--color-blue-accent);
    font-weight: bold;
}

.cdlp-toggle-switch {
    margin-left: auto;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.cdlp-toggle-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}

.cdlp-toggle-switch[aria-checked="true"] {
    background: var(--color-blue-accent);
}

.cdlp-toggle-switch[aria-checked="true"]::after {
    left: 21px;
}

.cdlp-btn-donate-main {
    display: block;
    width: 100%;
    background: var(--color-coral);
    color: #fff;
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.cdlp-btn-donate-main:hover:not(:disabled) {
    background: #c92e3c;
}

.cdlp-btn-donate-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cdlp-tax-info {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Mot du président
   ========================================================================== */
.cdlp-president {
    padding: 60px 0;
    background: var(--color-cream);
    border-top: 1px solid var(--color-cream-border);
    border-bottom: 1px solid var(--color-cream-border);
}

.cdlp-president-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.cdlp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-night);
    font-size: 22px;
}

.cdlp-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.cdlp-president-name {
    font-size: 15px;
    font-weight: 600;
}

.cdlp-president-role {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Partenaires
   ========================================================================== */
.cdlp-partners {
    padding: 60px 0;
    background: #fff;
}

.cdlp-partners h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.cdlp-partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cdlp-partner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    background: var(--color-bg-light);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.cdlp-partner-card img {
    height: 54px;
    width: auto;
}

.cdlp-partner-info {
    text-align: left;
}

.cdlp-partner-name {
    font-size: 15px;
    font-weight: 600;
}

.cdlp-partner-sub {
    font-size: 13px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-night);
    color: #94a3b8;
}

.site-footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 50px var(--section-padding);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}

.footer-widget a {
    color: #cbd5e1;
}

.site-footer-bottom {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px var(--section-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.footer-brand-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

/* ==========================================================================
   Pages internes (article, page, archive, 404)
   ========================================================================== */
.cdlp-content-area {
    padding-top: 60px;
    padding-bottom: 80px;
}

.cdlp-page-content,
.cdlp-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}

.cdlp-page-content p,
.cdlp-post-content p {
    margin: 0 0 1.2em;
}

.cdlp-page-content h2,
.cdlp-post-content h2 {
    font-size: 26px;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.cdlp-page-content h3,
.cdlp-post-content h3 {
    font-size: 20px;
    margin-top: 1.2em;
}

.cdlp-post-meta {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 24px;
}

.cdlp-post-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
}

.cdlp-post-card:last-child {
    border-bottom: none;
}

.cdlp-post-thumb img {
    border-radius: 6px;
}

.cdlp-post-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
}

.cdlp-post-title a {
    color: var(--color-text);
    text-decoration: none;
}

.cdlp-post-title a:hover {
    color: var(--color-coral);
}

.cdlp-404 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Pagination */
.pagination,
.nav-links {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    background: var(--color-bg-light);
    color: var(--color-text);
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-night);
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    :root {
        --section-padding: 24px;
    }

    .site-header-inner {
        padding: 14px 24px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 16px 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--color-border-light);
    }

    .primary-menu.is-open {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .primary-menu li:last-child {
        border-bottom: none;
    }

    .cdlp-hero {
        padding: 50px 24px;
    }

    .cdlp-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cdlp-hero-title {
        font-size: 36px;
    }

    .cdlp-hero-image img {
        margin-left: 0;
        max-width: 280px;
    }

    .cdlp-bd-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cdlp-impact-grid {
        grid-template-columns: 1fr;
    }

    .cdlp-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdlp-h2 {
        font-size: 26px;
    }

    .cdlp-h2-white {
        font-size: 24px;
    }

    .cdlp-quote-lead {
        font-size: 20px;
    }

    .cdlp-quote {
        font-size: 18px;
    }

    .cdlp-president-grid {
        grid-template-columns: 60px 1fr;
        gap: 16px;
    }

    .cdlp-avatar {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .site-footer-widgets {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .cdlp-post-card {
        grid-template-columns: 1fr;
    }

    .cdlp-donation-form {
        padding: 24px 18px;
    }
}

@media (max-width: 480px) {
    .cdlp-hero-title {
        font-size: 30px;
    }

    .cdlp-amount-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cdlp-amount-card {
        padding: 16px 8px;
    }

    .cdlp-impact-num {
        font-size: 44px;
    }
}
