:root {
    --blue: #1E3E8C;
    --blue-dark: #12275c;
    --blue-light: #2f57b5;
    --orange: #E8622C;
    --orange-dark: #c94f1f;
    --orange-light: #f2905e;
    --gold: #F0B429;
    --cream: #FBF7F0;
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --border: #e8e2d8;
    --radius: 14px;
    --font-display: 'Cairo', sans-serif;
    --font-body: "Bungee", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
}
h1, h2, h3, h4 { 
    font-family: var(--font-display); 
    font-weight: 800; 
    margin: 0 0 0.5em; 
    color: var(--blue-dark); 
}
p { 
    margin: 0 0 1em; 
    color: var(--ink-soft); 
}
a { 
    color: inherit; 
    text-decoration: none; 
}
img { 
    max-width: 100%; 
    display: block; 
}
.container { 
    max-width: 1180px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }


    .hero-eyebrow, .hero-inner h1, .hero-inner .lead, .hero-actions, .project-card {
        opacity: 1 !important;
    }
}

/* ---------- HEADER (transparent, devient plein au scroll) ---------- */
.site-header {
    background: transparent;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
    padding: 0.4rem 0;
}
.site-header.scrolled { 
    background: rgba(18,39,92,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12); 
    backdrop-filter: blur(8px); 
}

.header-inner {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.6rem 1.5rem; gap: 1.5rem; 
}
.brand { 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; 
    font-family: var(--font-display); 
    font-weight: 800; 
    font-size: 1.1rem; 
    color: #fff; 
    transition: color .3s; 
}
.site-header.scrolled .brand { 
    color: var(--blue-dark); 
}
.brand-logo { 
    width: 42px; 
    height: 42px; 
    object-fit: contain; 
}

.main-nav { 
    display: flex; 
    align-items: center; 
    gap: 1.4rem; 
    flex-wrap: wrap; 
}
.main-nav a { 
    font-weight: 600; 
    color: #fff; 
    border-bottom: 2px solid transparent; 
    transition: color .2s, border-color .2s; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    
}
.site-header.scrolled .main-nav a { 
    color: #000000; 
    text-shadow: none; 
}
.main-nav a:hover, .main-nav a.active { 
    color: var(--ink); 
    background-color: rgba(216, 222, 239, 0.25);
    border-radius: 10px;
    padding:0.1rem 0.5rem;
    border-color:#e8e2d8;
}
.site-header.scrolled .main-nav a:hover, .site-header.scrolled .main-nav a.active { 
    color: var(--ink); 
    border-bottom-color: var(--blue-dark); 
}


.site-header.scrolled  { 
    border-color: #ffff; 
    color: var(--blue) !important; 
}


.nav-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 0.4rem; 
}
.nav-toggle span { 
    width: 24px; 
    height: 2.5px; 
    background: #fff; 
    border-radius: 2px; 
    transition: background .3s; 
}
.site-header.scrolled .nav-toggle span { 
    background: var(--blue-dark); 
}

@media (max-width: 920px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; 
        position: absolute; 
        top: 100%; right: 0; 
        left: 0; background: #fff;
        flex-direction: column; 
        align-items: stretch; 
        padding: 1rem 1.5rem; 
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        gap: 0.9rem;
    }
    .main-nav.open { display: flex; }
    .main-nav a { color: var(--ink-soft) !important; 
        text-shadow: none !important; 
    }
    .nav-cta, .nav-cta-outline { text-align: center; }
    .nav-cta-outline { 
        border-color: var(--blue) !important; 
        color: var(--blue) !important; 
    }
}

/* ---------- PAGE HERO (bandeau coloré pour les pages internes, sert de fond au navbar transparent) ---------- */
.page-hero {
    background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    padding: 8.5rem 0 3rem;
    text-align: center;
}
.page-hero.blue { 
    background: linear-gradient(120deg, var(--blue-light) 0%, var(--blue-dark) 100%); 
}
.page-hero h1 { 
    color: #fff; 
    margin-bottom: 0.4rem; 
}
.page-hero p { 
    color: rgba(255,255,255,0.85); 
    max-width: 560px; margin: 0 auto; 
}

/* HERO */
.hero {
    background: var(--blue-dark);
    color: #fff;
    padding: 8.5rem 0 0;
    position: relative;
    overflow: hidden;
}
.hero-bg-slider { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
}
.hero-bg-slider img {
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out;
}
.hero-bg-slider img.active { 
    opacity: 1; 
}
.hero-overlay {
    position: absolute; 
    inset: 0; 
    z-index: 1;
    background: linear-gradient(135deg, rgba(241, 144, 25, 0.637) 0%, rgba(58, 100, 208, 0.79) 100%);
}
.hero-inner { 
    position: relative; 
    z-index: 2; 
    display: block; 
    max-width: 640px; 
    padding-bottom: 3.5rem; 
}
.hero-eyebrow { 
    display: inline-block; 
    background: rgba(255,255,255,0.28); 
    padding: 0.35rem 1rem; 
    border-radius: 30px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-bottom: 1rem; 
}
.hero h1 { 
    color: #fff; 
    font-size: 2.6rem; 
    line-height: 1.3; 
    margin-bottom: 0.6rem; 
}
.hero p.lead { 
    color: rgba(255,255,255,0.92); 
    font-size: 1.1rem; 
    max-width: 480px; 
    font-style: bold;
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1.5rem; 
    flex-wrap: wrap; 
}
.btn-white { 
    background: #fff; 
    color: var(--orange-dark); 
    padding: 0.8rem 1.8rem; 
    border-radius: 30px; 
    font-weight: 700; 
    display: inline-block; 
}
.btn-outline-white { 
    border: 2px solid #fff; 
    color: #fff; 
    padding: 0.75rem 1.7rem; 
    border-radius: 30px; 
    font-weight: 700; 
    display: inline-block; 
}
.btn-white:hover { 
    background: var(--orange); 
    color: #fff; 
}
.btn-outline-white:hover { 
    background: #fff; 
    color: var(--orange-dark); 
}
.hero-image { 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.25); 
    aspect-ratio: 4/3; 
    object-fit: cover; 
}


.torn-edge { 
    height: 60px; 
    width: 100%; 
    display: block; 
    margin-top: -1px; 
}
.torn-edge path { fill: var(--cream); }

@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero p.lead { margin: 0 auto; }
    .hero h1 { font-size: 2rem; }
}

/* ---------- STATS BAR ---------- */
.stats-bar { 
    background: var(--blue); 
    padding: 2.2rem 0; 
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.5rem; 
    text-align: center; 
}
.stat-item .stat-number { 
    font-family: var(--font-display); 
    font-size: 2.4rem; 
    font-weight: 800; 
    color: var(--gold); 
}
.stat-item .stat-label { 
    color: #fff; 
    font-size: 0.95rem; 
    margin-top: 0.2rem; 
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTIONS ---------- */
.section { padding: 4rem 0; }
.section-header { 
    text-align: center; 
    max-width: 640px; 
    margin: 0 auto 2.5rem; 
}
.section-header .eyebrow { 
    color: var(--orange); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.8rem; 
}
.section-header h2 { 
    font-size: 2rem; 
    margin-top: 0.4rem; 
}
.section-alt { background: #fff; }

/* ---------- PROJECT CARDS ---------- */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.6rem; 
}
.project-card {
    background: #fff; 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: 0 4px 18px rgba(30,62,140,0.08);
    transition: transform .25s, box-shadow .25s;
    display: flex; 
    flex-direction: column;
}
.project-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 14px 30px rgba(67, 112, 227, 0.623); 
}
.project-card-img { 
    height: 190px; 
    object-fit: cover; 
    width: 100%; 
}
.project-card-img.placeholder { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--border); 
    color: #999; 
}
.project-card-body { 
    padding: 1.3rem; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}
.project-tag { 
    align-self: flex-start; 
    background: rgba(30,62,140,0.08); 
    color: var(--blue); 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 0.25rem 0.7rem; 
    border-radius: 20px; 
    margin-bottom: 0.6rem; 
}
.project-card-body h3 { 
    font-size: 1.15rem; 
    margin-bottom: 0.5rem; 
}
.project-card-body p { 
    font-size: 0.9rem; 
    flex: 1; 
}
.project-progress { 
    background: var(--border); 
    height: 8px; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-top: 0.8rem; 
}
.project-progress-fill { 
    background: var(--gold); 
    height: 100%; 
}
.project-progress-label { 
    font-size: 0.8rem; 
    color: var(--ink-soft); 
    margin-top: 0.4rem; 
}
.project-card-link { 
    margin-top: 1rem; 
    color: var(--orange); 
    font-weight: 700; 
}

/* ---------- FILTERS ---------- */
.filter-bar { 
    display: flex; 
    gap: 0.6rem; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-bottom: 2.5rem; 
}
.filter-chip { 
    padding: 0.5rem 1.2rem; 
    border-radius: 30px; 
    border: 2px solid var(--border); 
    font-weight: 600; 
    font-size: 0.9rem; 
    background: #fff; 
}
.filter-chip.active, .filter-chip:hover { 
    border-color: var(--orange); 
    color: var(--orange); 
}

/* ---------- PROJECT DETAIL ---------- */
.projet-detail-hero { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem; align-items: start; 
}
@media (max-width: 800px) {
    .projet-detail-hero {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .projet-gallery-thumbs img {
        width: 60px;
        height: 60px;
    }
}
.projet-gallery-main { 
    border-radius: var(--radius); 
    overflow: hidden; 
    aspect-ratio: 4/3; 
    object-fit: cover; 
    width: 100%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.projet-gallery-thumbs { 
    display: flex; 
    gap: 0.6rem; 
    margin-top: 0.8rem; 
    flex-wrap: wrap; 
}
.projet-gallery-thumbs img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    opacity: 0.7; 
}
.projet-gallery-thumbs img:hover { opacity: 1; }
.projet-info-card { 
    background: #fff; 
    border-radius: var(--radius); 
    padding: 1.8rem; 
    box-shadow: 0 4px 18px rgba(30,62,140,0.08); 
}
.projet-info-card .budget-figures { 
    display: flex; 
    justify-content: space-between; 
    font-family: var(--font-display); 
    font-weight: 800; 
    color: var(--blue-dark); 
    margin: 1rem 0 0.4rem; 
}
.projet-meta-list { 
    list-style: none; 
    padding: 0; 
    margin: 1.2rem 0; 
}
.projet-meta-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 0.6rem 0; 
    border-bottom: 1px solid var(--border); 
    font-size: 0.92rem; 
}
.projet-meta-list li span:first-child { color: var(--ink-soft); }
.projet-meta-list li span:last-child { 
    font-weight: 700; 
    color: var(--blue-dark); 
}
.btn-donate-full { 
    display: block; 
    text-align: center; 
    background: var(--orange); 
    color: #fff; 
    padding: 0.9rem; 
    border-radius: 30px; 
    font-weight: 700; 
    margin-top: 1.2rem;
}
.btn-donate-full:hover { 
    background: var(--orange-dark); 
}

.projet-description { 
    margin-top: 3rem; 
    max-width: 800px; 
}

/* ---------- COMMENTAIRES ---------- */
.comments-section { 
    margin-top: 3.5rem; 
    max-width: 750px; 
}
.comment-form { 
    background: #fff; 
    border-radius: var(--radius); 
    padding: 1.4rem; 
    box-shadow: 0 4px 18px rgba(30,62,140,0.08); 
    margin-bottom: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
}
.comment-form input, .comment-form textarea {
    width: 100%; 
    padding: 0.7rem; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    font-family: var(--font-body); 
    font-size: 0.95rem;
}
.comment-form button { 
    align-self: flex-start; 
    background: var(--orange); 
    color: #fff; 
    border: none; 
    padding: 0.7rem 1.6rem; 
    border-radius: 30px; 
    font-weight: 700; 
    cursor: pointer; 
}
.comment-form button:hover { background: var(--orange-dark); }

.comments-list { 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
}
.comment-item { 
    display: flex; 
    gap: 0.9rem; 
}
.comment-avatar {
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    background: var(--blue); 
    color: #fff; 
    flex-shrink: 0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-family: var(--font-display); 
    font-weight: 700;
}
.comment-body { 
    background: #fff; 
    border-radius: 12px; 
    padding: 0.9rem 1.1rem; 
    flex: 1; box-shadow: 0 2px 10px rgba(30,62,140,0.06); 
}
.comment-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 0.3rem; 
    flex-wrap: wrap; 
    gap: 0.4rem; 
}
.comment-date { 
    font-size: 0.78rem; 
    color: #999; 
}
.comment-body p { 
    margin: 0; 
    font-size: 0.92rem; 
}

/* ---------- TEAM / BUREAU ---------- */
.team-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 1.8rem; 
}
.team-card { 
    background: #fff; 
    border-radius: var(--radius); 
    overflow: hidden; 
    text-align: center; 
    box-shadow: 0 4px 18px rgba(30,62,140,0.08); 
}
.team-card img { 
    width: 100%; 
    aspect-ratio: 1; 
    object-fit: cover; 
}
.team-card .team-body { padding: 1.2rem; }
.team-card h3 { 
    font-size: 1.05rem; 
    margin-bottom: 0.2rem; 
}
.team-card .team-role { 
    color: var(--orange); 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-bottom: 0.6rem; 
}
.team-card p { font-size: 0.85rem; }

/* ---------- GALLERY ---------- */
.gallery-grid { 
    columns: 4 260px; 
    gap: 1rem; }
.gallery-grid img { 
    width: 100%; 
    border-radius: 10px; 
    margin-bottom: 1rem; 
    break-inside: avoid; 
}
@media (max-width: 700px) { .gallery-grid { columns: 2 200px; } }

/* ---------- ABOUT ---------- */
.about-hero { 
    background: var(--blue); 
    color: #fff; 
    padding: 3.5rem 0; 
    text-align: center; 
}
.about-hero h1 { color: #fff; }
.values-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.6rem; 
}
.value-card { 
    background: #fff; 
    border-radius: var(--radius); 
    padding: 1.8rem; 
    box-shadow: 0 4px 18px rgba(30,62,140,0.08); 
    border-top: 4px solid var(--gold); 
}
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- CTA BAND ---------- */
.cta-band { 
    background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%); 
    color: #fff; 
    padding: 3.5rem 0; 
    text-align: center; 
}
.cta-band h2 { color: #fff; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { 
    background: var(--blue-dark); 
    color: rgba(255,255,255,0.85); 
    padding: 0 0 0; 
    margin-top: 3rem; 
}
.footer-welcome { 
    text-align: center; 
    padding: 1.4rem 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.12); 
}
.footer-welcome p { 
    color: var(--gold); 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: 1.05rem; 
    margin: 0; 
}
.footer-inner { 
    display: grid; 
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr; 
    gap: 2rem; 
    padding: 2.5rem 1.5rem; 
}
.footer-logo { 
    width: 56px; 
    margin-bottom: 0.8rem; 
    filter: brightness(0) invert(1); 
}
.footer-brand h3 { 
    color: #fff; 
    font-size: 1.1rem; 
}
.footer-col h4 { 
    color: var(--gold); 
    font-size: 0.95rem; 
    margin-bottom: 1rem; 
}
.footer-col a, .footer-col p { 
    display: block; 
    color: rgba(255,255,255,0.75); 
    font-size: 0.9rem; 
    margin-bottom: 0.6rem; 
}
.footer-col a:hover { 
    color: var(--gold); 
}
.rib { 
    direction: ltr; 
    text-align: right; 
}
.social-links { 
    display: flex; 
    gap: 0.7rem; 
    margin-top: 0.5rem; 
}
.social-links a { 
    padding: 0.7rem;
    color : #fff;
}

.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.12); 
    padding: 1.2rem 0; 
    text-align: center; 
    font-size: 0.85rem; 
}
.footer-admin-link {
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.75rem;
}
.footer-admin-link a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}
.footer-admin-link a:hover {
    color: rgba(255,255,255,0.7);
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- MISC ---------- */
.badge-empty { 
    text-align: center; 
    padding: 3rem; 
    color: var(--ink-soft); 
    background: #fff; 
    border-radius: var(--radius); 
}
.breadcrumb { 
    color: var(--ink-soft); 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem; 
}
.breadcrumb a { 
    color: var(--blue); 
}
.editions-timeline-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.editions-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.edition-timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    align-items: center;
}
.edition-timeline-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}
.edition-timeline-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.edition-timeline-badge {
    display: inline-block;
    background: var(--blue, #1E3E8C);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
}
.edition-timeline-date {
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.edition-timeline-budget {
    font-weight: 700;
    color: var(--orange, #E8622C);
    margin-top: 0.4rem;
}
@media (max-width: 640px) {
    .edition-timeline-item { grid-template-columns: 1fr; }
}
/* ===========================================================
   Animation d'entrée du hero 
   =========================================================== */
.hero-eyebrow, .hero-inner h1, .hero-inner .lead, .hero-actions {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-inner h1 { animation-delay: 0.3s; }
.hero-inner .lead { animation-delay: 0.5s; }
.hero-actions { animation-delay: 0.7s; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   Cartes projets — apparition en cascade au chargement, 100% CSS
   =========================================================== */
.project-card {
    opacity: 0;
    animation: cardFadeUp 0.6s ease forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(n+5) { animation-delay: 0.5s; }

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.project-card:hover {
    box-shadow: 0 14px 34px rgba(18, 39, 92, 0.18);
    transform: translateY(-6px);
}
.project-card-img { transition: transform 0.5s ease; }
.project-card:hover .project-card-img { transform: scale(1.08); }
.badge-goal-reached {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 0.4rem;
}
/* contact phone*/
.contact-phone:hover {
    background: rgba(42, 42, 228, 0.333);
    color: #fff;
}
.evolution-feed {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border);
}
.evolution-feed h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}
.evolution-item {
    padding: 0.9rem 1rem;
    margin-bottom: 0.8rem;
    background: #f8fafc;
    border-radius: 10px;
    border-inline-start: 3px solid var(--gold, #F0B429);
}
.evolution-date {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
}
.evolution-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.evolution-photos img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}
/* ---------- Accordion des éditions passées ---------- */
.edition-timeline-item {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.edition-timeline-summary {
    display: grid;
    grid-template-columns: 90px 1fr 24px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}
.edition-timeline-summary::-webkit-details-marker { display: none; }
.edition-timeline-summary::marker { content: ""; }

.edition-timeline-cover {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.edition-timeline-cover.placeholder {
    display: flex; align-items: center; justify-content: center;
    background: #f4f5f7; color: var(--ink-soft); font-size: 0.75rem;
}
.edition-timeline-excerpt {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.edition-timeline-arrow {
    display: inline-block;
    width: 10px; height: 10px;
    border-right: 2px solid var(--ink-soft);
    border-bottom: 2px solid var(--ink-soft);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    justify-self: center;
}
details[open] .edition-timeline-arrow {
    transform: rotate(225deg);
}
.edition-timeline-expanded {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}
.edition-timeline-expanded-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.edition-timeline-gallery-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}
.edition-timeline-gallery-full img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .edition-timeline-expanded-grid { grid-template-columns: 1fr; }
    .edition-timeline-summary { grid-template-columns: 60px 1fr 20px; }
}