/*
Theme Name:        Ichraka Child
Theme URI:         https://www.ichraka.ma
Description:       Thème enfant Astra pour l'Association Ichraka — direction "Joyeux".
                   Palette cream/yellow/coral/mint/sky, Bricolage Grotesque + Manrope,
                   formes très arrondies, esthétique éditoriale chaleureuse.
Author:            Association Ichraka
Author URI:        https://www.ichraka.ma
Template:          astra
Version:           2.0.0
Requires at least: 6.5
Tested up to:      6.9
Requires PHP:      8.1
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       ichraka
Tags:              non-profit, education, charity, rtl-language-support, translation-ready
*/

/* ==========================================================================
   Design tokens — Joyeux
   ========================================================================== */
:root {
    --cream:        #FFF6E2;
    --cream-2:      #FFEFCC;

    --ink:          #14213D;
    --ink-soft:     #4A5577;
    --ink-mute:     #8893A8;

    --yellow:       #FFD23F;
    --yellow-deep:  #F5A623;
    --coral:        #FF6B6B;
    --coral-deep:   #E54B5C;
    --mint:         #2DD4BF;
    --mint-deep:    #0EA98D;
    --sky:          #4FB3F0;
    --sky-deep:     #2E8FD0;
    --plum:         #8E5BD9;

    --line:         rgba(20, 33, 61, 0.14);
    --line-soft:    rgba(20, 33, 61, 0.07);

    --shell-pad:    clamp(1.25rem, 4vw, 4rem);
    --section-gap:  clamp(5rem, 9vw, 9rem);

    --r-sm: 14px;
    --r:    22px;
    --r-lg: 32px;
    --r-xl: 48px;

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-sans:    "Manrope", system-ui, sans-serif;
    --font-arabic:  "Cairo", "Tajawal", system-ui, sans-serif;
}

/* ==========================================================================
   Reset & base — surcharge Astra
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body.ichraka-theme {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.ichraka-theme img {
    display: block;
    max-width: 100%;
    height: auto;
}

body.ichraka-theme a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

body.ichraka-theme button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

body.ichraka-theme h1,
body.ichraka-theme h2,
body.ichraka-theme h3,
body.ichraka-theme h4,
body.ichraka-theme h5,
body.ichraka-theme h6,
.entry-title,
.site-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
}

body.ichraka-theme p { margin: 0; }
body.ichraka-theme p + p { margin-top: 1rem; }

/* RTL — police arabe */
body.rtl,
body[dir="rtl"] {
    font-family: var(--font-arabic);
}
body.rtl h1, body.rtl h2, body.rtl h3,
body.rtl h4, body.rtl h5, body.rtl h6 {
    font-family: var(--font-arabic);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.shell {
    padding-inline: var(--shell-pad);
    max-width: 1480px;
    margin-inline: auto;
}

.display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.eyebrow {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ink);
    color: var(--cream);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
}
.eyebrow.yellow { background: var(--yellow); color: var(--ink); }
.eyebrow.coral  { background: var(--coral);  color: white; }
.eyebrow.mint   { background: var(--mint);   color: var(--ink); }
.eyebrow.sky    { background: var(--sky);    color: white; }

/* ==========================================================================
   Buttons — pill avec ombre poussée
   ========================================================================== */
.btn,
.ichraka-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(.2,0,0,1),
                background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    text-decoration: none !important;
    cursor: pointer;
}
.btn:hover,
.ichraka-btn:hover { transform: translateY(-2px); }

.btn-primary,
.ichraka-btn--primary,
.ichraka-btn--donate {
    background: var(--coral);
    color: white;
    box-shadow: 0 4px 0 0 var(--coral-deep);
}
.btn-primary:hover,
.ichraka-btn--primary:hover,
.ichraka-btn--donate:hover {
    box-shadow: 0 6px 0 0 var(--coral-deep);
    color: white;
}

.btn-yellow {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 4px 0 0 var(--yellow-deep);
}
.btn-yellow:hover { box-shadow: 0 6px 0 0 var(--yellow-deep); }

.btn-mint {
    background: var(--mint);
    color: var(--ink);
    box-shadow: 0 4px 0 0 var(--mint-deep);
}
.btn-mint:hover { box-shadow: 0 6px 0 0 var(--mint-deep); }

.btn-ghost,
.ichraka-btn--outline {
    background: white;
    color: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: none;
}
.btn-ghost:hover,
.ichraka-btn--outline:hover {
    background: var(--ink);
    color: var(--cream);
}

.arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.btn:hover .arrow,
a:hover .arrow { transform: translate(3px, -3px); }

/* ==========================================================================
   Announce bar
   ========================================================================== */
.announce {
    background: var(--ink);
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.65rem var(--shell-pad);
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}
.announce .pill {
    background: var(--yellow);
    color: var(--ink);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.announce a {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
}
.announce a:hover { opacity: 1; }

/* ==========================================================================
   Nav (override Astra pour le header)
   ========================================================================== */
.ichraka-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 246, 226, 0.85);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.ichraka-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    padding: 0.75rem var(--shell-pad);
    max-width: 1600px;
    margin-inline: auto;
    gap: 1rem;
}
.ichraka-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.ichraka-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ichraka-logo-mark::before,
.ichraka-logo-mark::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: var(--ink);
    width: 5px;
    height: 5px;
    top: 14px;
}
.ichraka-logo-mark::before { left: 12px; }
.ichraka-logo-mark::after  { right: 12px; }
.ichraka-logo-mark .smile {
    position: absolute;
    bottom: 11px;
    width: 14px;
    height: 7px;
    border-bottom: 2.5px solid var(--ink);
    border-left: 2.5px solid var(--ink);
    border-right: 2.5px solid var(--ink);
    border-radius: 0 0 14px 14px;
}
.ichraka-logo-mark .ray {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}
.ichraka-logo-mark .r1 { top: -4px; left: 18px; background: var(--coral); }
.ichraka-logo-mark .r2 { top: 6px; right: -3px; background: var(--mint); }
.ichraka-logo-mark .r3 { bottom: -3px; left: 6px; background: var(--sky); }

/* Logo image (quand uploadé via Customizer ou option) */
.ichraka-logo-img {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .ichraka-logo-img { max-height: 60px; }
}
.ichraka-footer .ichraka-logo-img {
    max-height: 100px;
    background: rgba(255, 246, 226, 0.08);
    padding: 8px 14px;
    border-radius: var(--r);
}

.ichraka-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ichraka-nav-links a { color: var(--ink-soft); transition: color 0.15s; }
.ichraka-nav-links a:hover,
.ichraka-nav-links .current-menu-item > a { color: var(--coral); }

.ichraka-nav-cta {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.ichraka-nav-toggle {
    display: none;
    background: var(--ink);
    color: var(--cream);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1080px) {
    .ichraka-nav-links { display: none; }
    .ichraka-nav-toggle { display: inline-flex; }
    .ichraka-nav.menu-open .ichraka-nav-links {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--cream);
        padding: 2rem var(--shell-pad);
        border-bottom: 1px solid var(--line);
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ichraka-hero {
    position: relative;
    padding: 3rem var(--shell-pad) 5rem;
    max-width: 1480px;
    margin-inline: auto;
    overflow: visible;
    background: transparent;
    text-align: left;
}
.ichraka-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ichraka-hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-top: 1.5rem;
}
.ichraka-hero-title .yellow { color: var(--yellow-deep); }
.ichraka-hero-title .coral  { color: var(--coral); }
.ichraka-hero-title .mint   { color: var(--mint-deep); }
.ichraka-hero-title .sky    { color: var(--sky-deep); }
.ichraka-hero-title em {
    display: inline-block;
    font-style: normal;
    background: var(--yellow);
    padding: 0 0.3em;
    border-radius: 16px;
    transform: rotate(-1.5deg);
}
.ichraka-hero-lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 48ch;
    margin: 1.8rem 0 2.2rem;
}
.ichraka-hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}
.ichraka-hero-cta-note {
    margin-left: 0.4rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.ichraka-hero-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
}
.ichraka-hero-image {
    width: 100%;
    height: 100%;
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--coral), var(--yellow) 60%, var(--mint));
    overflow: hidden;
    object-fit: cover;
    display: block;
}

/* Decorative SVG shapes */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.deco-sun       { top: -40px; right: -20px; width: 110px; height: 110px; }
.deco-heart     { bottom: -30px; left: -30px; width: 80px; height: 80px; }
.deco-sparkle   { top: 30%; right: -50px; width: 50px; height: 50px; }
.deco-squiggle  { bottom: 30px; left: -30px; width: 140px; height: 35px; }

/* Hero pillars ribbon */
.ichraka-hero-pillars {
    margin-top: 4rem;
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    color: var(--cream);
}
.pillar {
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 246, 226, 0.15);
}
.pillar:last-child { border-right: none; }
.pillar-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}
.pillar-num .num-1 { color: var(--yellow); }
.pillar-num .num-2 { color: var(--coral); }
.pillar-num .num-3 { color: var(--mint); }
.pillar-num .num-4 { color: var(--sky); }
.pillar-num sup {
    font-size: 0.8rem;
    color: rgba(255, 246, 226, 0.55);
    top: -0.6em;
}
.pillar-label {
    font-size: 0.85rem;
    color: rgba(255, 246, 226, 0.7);
    line-height: 1.4;
}

@media (max-width: 880px) {
    .ichraka-hero-grid { grid-template-columns: 1fr; }
    .ichraka-hero-pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: none; }
}

/* ==========================================================================
   Section heads
   ========================================================================== */
.ichraka-theme section {
    padding-block: var(--section-gap);
}
.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: end;
}
.section-head h2 {
    font-size: clamp(2.5rem, 5.5vw, 4.6rem);
    max-width: 14ch;
}
.section-head .right p {
    color: var(--ink-soft);
    font-size: 1.1rem;
    max-width: 50ch;
}

@media (max-width: 760px) {
    .section-head {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

/* ==========================================================================
   Mission
   ========================================================================== */
.mission {
    background: var(--cream-2);
    border-radius: var(--r-xl);
    margin: 0 var(--shell-pad);
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
}
.mission-deco {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    opacity: 0.5;
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.mission-quote {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}
.mission-quote .hl-yellow {
    background: var(--yellow);
    padding: 0 0.2em;
    border-radius: 10px;
    display: inline-block;
    transform: rotate(-1deg);
}
.mission-quote .hl-coral {
    background: var(--coral);
    color: white;
    padding: 0 0.2em;
    border-radius: 10px;
    display: inline-block;
    transform: rotate(1deg);
}
.mission-author {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.mission-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ink);
    flex-shrink: 0;
    overflow: hidden;
}
.mission-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mission-author strong { color: var(--ink); display: block; }
.mission-body {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.7;
}
.mission-body em {
    color: var(--coral);
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 880px) {
    .mission { padding: 3rem 2rem; }
    .mission-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Operations cards
   ========================================================================== */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.op-card {
    border-radius: var(--r-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(.2,0,0,1);
    color: var(--ink);
}
.op-card:hover { transform: translateY(-8px); }
.op-card.accent-yellow { background: var(--yellow); color: var(--ink); }
.op-card.accent-coral  { background: var(--coral);  color: white; }
.op-card.accent-mint   { background: var(--mint);   color: var(--ink); }
.op-card.accent-sky    { background: var(--sky);    color: white; }

.op-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.65;
}
.op-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.op-card.accent-coral .op-icon,
.op-card.accent-sky .op-icon { background: rgba(255, 255, 255, 0.18); }

.op-card h3 {
    font-size: 2.2rem;
    line-height: 1;
    margin: 0;
}
.op-card h3 a { color: inherit; }
.op-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.85;
    flex: 1;
}
.op-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 0.5rem;
    display: block;
}
.op-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.op-card.accent-yellow .op-image { background: linear-gradient(160deg, #FFB800, #FF7E51); }
.op-card.accent-coral  .op-image { background: linear-gradient(160deg, #FF8A8A, #8E5BD9); }
.op-card.accent-mint   .op-image { background: linear-gradient(160deg, #5DEAD3, #4FB3F0); }

.op-stats {
    display: flex;
    gap: 1.4rem;
    padding-top: 1rem;
    border-top: 1.5px dashed currentColor;
    opacity: 0.85;
}
.op-stat strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.2rem;
}
.op-stat span {
    font-size: 0.78rem;
    opacity: 0.85;
}
.op-link {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--ink);
    color: var(--cream);
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    align-self: flex-start;
    transition: transform 0.2s;
    text-decoration: none !important;
}
.op-link:hover {
    transform: translateY(-2px);
    color: var(--cream);
}

@media (max-width: 880px) {
    .ops-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Impact / Counters
   ========================================================================== */
.impact {
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--r-xl);
    margin: 0 var(--shell-pad);
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
}
.impact-deco-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
}
.impact-deco-2 {
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 240px;
    height: 240px;
}
.impact h2 { color: var(--cream); }
.impact h2 .hl {
    background: var(--yellow);
    color: var(--ink);
    padding: 0 0.2em;
    border-radius: 10px;
    display: inline-block;
    transform: rotate(-1deg);
}
.impact .section-head .right p { color: rgba(255, 246, 226, 0.7); }

.counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.counter {
    background: rgba(255, 246, 226, 0.06);
    border: 1.5px solid rgba(255, 246, 226, 0.16);
    border-radius: var(--r);
    padding: 2rem;
}
.counter-emoji {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.counter:nth-child(1) .counter-emoji { background: var(--yellow); }
.counter:nth-child(2) .counter-emoji { background: var(--coral); }
.counter:nth-child(3) .counter-emoji { background: var(--mint); }
.counter:nth-child(4) .counter-emoji { background: var(--sky); }

.counter-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    line-height: 1;
    color: var(--cream);
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}
.counter-num sup {
    font-size: 0.45em;
    color: var(--yellow);
    top: -0.6em;
    font-weight: 700;
}
.counter-label {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 246, 226, 0.75);
    line-height: 1.4;
}

@media (max-width: 880px) {
    .impact { padding: 3rem 2rem; }
    .counters { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Story / Timeline
   ========================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.story-image {
    position: relative;
    transform: rotate(-1.5deg);
}
.story-image img,
.story-image-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--mint), var(--sky));
    display: block;
    object-fit: cover;
}
.story-image::after {
    content: "";
    position: absolute;
    inset: -10px;
    background: var(--yellow);
    border-radius: var(--r-lg);
    z-index: -1;
    transform: rotate(3deg);
}
.timeline {
    display: flex;
    flex-direction: column;
}
.tl-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-bottom: 2px dashed var(--line);
    align-items: start;
}
.tl-item:last-child { border-bottom: none; }
.tl-year {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
    background: var(--coral);
    border-radius: 16px;
    padding: 0.4rem 0;
    text-align: center;
    line-height: 1;
}
.tl-item:nth-child(1) .tl-year { background: var(--yellow); color: var(--ink); }
.tl-item:nth-child(2) .tl-year { background: var(--mint); color: var(--ink); }
.tl-item:nth-child(3) .tl-year { background: var(--sky); color: white; }
.tl-item:nth-child(4) .tl-year { background: var(--coral); color: white; }

.tl-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.15;
}
.tl-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

@media (max-width: 880px) {
    .story-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    background: var(--sky);
    border-radius: var(--r-xl);
    margin: 0 var(--shell-pad);
    padding: 5rem 4rem;
    color: var(--ink);
    position: relative;
    overflow: hidden;
}
.testimonials .section-head h2 { color: var(--ink); }
.testimonials .section-head .right p { color: rgba(20, 33, 61, 0.7); }

.t-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.t-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}
.t-card::before {
    content: "\201C";
    font-family: var(--font-display);
    position: absolute;
    top: 1rem;
    right: 1.6rem;
    font-size: 5rem;
    line-height: 0.6;
    color: var(--yellow);
}
.t-quote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    text-wrap: pretty;
    margin: 0;
}
.t-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.t-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ink);
    flex-shrink: 0;
    overflow: hidden;
}
.t-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.t-author strong {
    color: var(--ink);
    display: block;
    font-weight: 700;
}

@media (max-width: 760px) {
    .testimonials { padding: 3rem 2rem; }
    .t-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Donate CTA
   ========================================================================== */
.donate {
    background: var(--coral);
    color: white;
    border-radius: var(--r-xl);
    margin: 0 var(--shell-pad);
    padding: 5rem 4rem;
    position: relative;
    overflow: hidden;
}
.donate-deco-1 {
    position: absolute;
    top: -40px;
    right: 8%;
    width: 130px;
    height: 130px;
}
.donate-deco-2 {
    position: absolute;
    bottom: -60px;
    left: -50px;
    width: 200px;
    height: 200px;
    opacity: 0.7;
}
.donate-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.donate h2 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    color: white;
    line-height: 0.98;
}
.donate h2 .hl-yellow {
    background: var(--yellow);
    color: var(--ink);
    padding: 0 0.2em;
    border-radius: 14px;
    display: inline-block;
    transform: rotate(-2deg);
}
.donate-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 50ch;
    margin: 1.6rem 0 2rem;
}
.donate-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.tier {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r);
    padding: 1.2rem;
    color: white;
    text-align: left;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.tier:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
}
.tier.active {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}
.tier-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.tier-amount small {
    font-size: 0.9rem;
    opacity: 0.85;
}
.tier-impact {
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0.9;
}
.donate-cta-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.donate-trust {
    margin-top: 2rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}
.donate-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}
.donate-image,
.donate-image img {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--yellow), var(--mint));
    object-fit: cover;
    display: block;
    overflow: hidden;
}

@media (max-width: 880px) {
    .donate { padding: 3rem 2rem; }
    .donate-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .donate-tiers { grid-template-columns: 1fr; }
}

/* ==========================================================================
   News
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.news-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(.2,0,0,1);
    color: var(--ink);
    text-decoration: none !important;
}
.news-card:hover { transform: translateY(-6px); }
.news-image {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-card:nth-child(3n+1) .news-image { background: linear-gradient(160deg, var(--yellow), var(--coral)); }
.news-card:nth-child(3n+2) .news-image { background: linear-gradient(160deg, var(--sky), var(--mint)); }
.news-card:nth-child(3n+3) .news-image { background: linear-gradient(160deg, var(--coral), var(--plum)); }
.news-body {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.news-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.news-tag {
    background: var(--yellow);
    color: var(--ink);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.news-card:nth-child(3n+2) .news-tag { background: var(--mint); }
.news-card:nth-child(3n+3) .news-tag { background: var(--coral); color: white; }
.news-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}
.news-card:hover .news-title { color: var(--coral); }
.news-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 880px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
    background: var(--mint);
    border-radius: var(--r-xl);
    margin: 0 var(--shell-pad);
    padding: 4.5rem 4rem;
    color: var(--ink);
    position: relative;
    overflow: hidden;
}
.nl-deco {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    opacity: 0.5;
}
.nl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.newsletter h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
    font-weight: 700;
}
.newsletter h3 .hl-coral {
    background: var(--coral);
    color: white;
    padding: 0 0.2em;
    border-radius: 10px;
    display: inline-block;
    transform: rotate(-1.5deg);
}
.nl-form {
    display: flex;
    gap: 0.5rem;
    background: white;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.4rem 0.4rem 1.6rem;
    align-items: center;
}
.nl-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.6rem 0;
}
.nl-form input::placeholder { color: var(--ink-mute); }

@media (max-width: 760px) {
    .newsletter { padding: 3rem 2rem; }
    .nl-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ichraka-footer {
    background: var(--ink);
    color: rgba(255, 246, 226, 0.75);
    padding: 5rem var(--shell-pad) 2rem;
    margin-top: var(--section-gap);
}
.ichraka-footer-grid {
    max-width: 1480px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 246, 226, 0.12);
}
.ichraka-footer .ichraka-logo { color: var(--cream); }
.ichraka-footer-tagline {
    margin-top: 1.4rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.2;
    color: rgba(255, 246, 226, 0.95);
    max-width: 28ch;
    font-weight: 600;
}
.ichraka-footer-tagline .hl {
    background: var(--yellow);
    color: var(--ink);
    padding: 0 0.2em;
    border-radius: 8px;
    display: inline-block;
    transform: rotate(-1deg);
}
.ichraka-footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--yellow);
    margin: 0 0 1.2rem;
    font-weight: 700;
}
.ichraka-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.95rem;
}
.ichraka-footer-col a:hover { color: var(--cream); }
.ichraka-footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.ichraka-footer-bottom {
    max-width: 1480px;
    margin-inline: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 246, 226, 0.5);
}
.ichraka-footer-bottom .links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 880px) {
    .ichraka-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ichraka-footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WordPress quirks override (Astra header masquage si on prend le contrôle)
   ========================================================================== */
body.ichraka-theme #masthead.site-header,
body.ichraka-theme .site-header {
    display: none;
}
body.ichraka-theme .site-content {
    padding: 0;
}
body.ichraka-theme #colophon.site-footer,
body.ichraka-theme .site-footer:not(.ichraka-footer) {
    display: none;
}

/* ==========================================================================
   Accessibilité
   ========================================================================== */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
*:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
