/* ==========================================================================
   COMPONENTS.CSS — Composants pages Swiss Charity
   Hero, Services, Stats, Testimonials, Blog, Events, Forms, Programs, FAQ
   ========================================================================== */

/* ── HOME HERO ─────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-h) - 4px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(26,26,26,.85) 45%, rgba(26,26,26,.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-7) 0;
}
.hero-cross {
    font-size: 3rem;
    color: var(--red);
    display: block;
    margin-bottom: var(--space-2);
    line-height: 1;
}
.hero-title {
    color: var(--white) !important;
    margin-bottom: var(--space-3);
}
.hero-title em {
    font-style: normal;
    color: var(--red);
}
.hero-desc {
    color: rgba(255,255,255,.8) !important;
    font-size: 1.2rem;
    max-width: 560px;
    margin-bottom: var(--space-4);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Hero slider dots */
.hero-dots {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.hero-dot.active { background: var(--red); transform: scale(1.4); }

/* Parallax graphic cross */
.hero-graphic {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: rgba(227,6,19,.12);
    font-size: clamp(200px, 40vw, 500px);
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
}

/* ── SERVICES GRID ─────────────────────────────────────────────────────────── */
.services-section { background: var(--white); }
.services-grid { margin-top: var(--space-5); }

/* ── MISSION SECTION ───────────────────────────────────────────────────────── */
.mission-section { background: var(--grey-bg); }
.mission-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: var(--border) solid var(--grey-border);
}
.mission-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }
.mission-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    font-size: .75rem;
    font-weight: 600;
    color: var(--grey);
}
.mission-tag i { color: var(--red); }

/* ── IMPACT STATS ──────────────────────────────────────────────────────────── */
.stats-section { background: var(--dark); }
.stats-section .stat-value { color: var(--red); }
.stats-section .stat-label { color: rgba(255,255,255,.6); }
.stats-section .stat-icon  { color: var(--red); }
.stats-divider { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; }

/* ── TESTIMONIALS ──────────────────────────────────────────────────────────── */
.testimonials-section { background: var(--white); }

.testimonial-carousel { position: relative; overflow: hidden; }
.testimonial-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.testimonial-item {
    min-width: 100%;
    padding: var(--space-3);
}
.testimonial-card {
    background: var(--grey-bg);
    border: var(--border) solid var(--grey-border);
    border-radius: var(--radius);
    padding: var(--space-5);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: var(--space-3);
    left: var(--space-4);
    font-size: 6rem;
    color: var(--red);
    opacity: .15;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-text {
    font-size: 1.1rem;
    color: var(--grey);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
    background: var(--grey-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--dark); display: block; }
.testimonial-role { font-size: .8rem; color: var(--grey-mid); }

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
}
.carousel-btn {
    width: 40px; height: 40px;
    border: 2px solid var(--grey-border);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: all var(--transition);
}
.carousel-btn:hover { border-color: var(--red); color: var(--red); }

/* ── BLOG / ACTUALITES ─────────────────────────────────────────────────────── */
.blog-card {
    background: var(--white);
    border: var(--border) solid var(--grey-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-light);
    font-size: 3rem;
}
.blog-card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}
.blog-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(227,6,19,.08);
    color: var(--red);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius);
}
.blog-date { font-size: .75rem; color: var(--grey-mid); }
.blog-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: var(--space-1); line-height: 1.3; }
.blog-card-excerpt { font-size: .875rem; color: var(--grey-mid); flex: 1; }
.blog-card-footer { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--grey-border); }
.blog-read-more {
    font-size: .8rem;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}
.blog-read-more:hover { gap: 12px; color: var(--red); }

/* ── EVENTS ────────────────────────────────────────────────────────────────── */
.event-card {
    display: flex;
    gap: var(--space-3);
    background: var(--white);
    border: var(--border) solid var(--grey-border);
    border-radius: var(--radius);
    padding: var(--space-3);
    transition: border-color var(--transition), box-shadow var(--transition);
    align-items: flex-start;
}
.event-card:hover { border-color: var(--red); box-shadow: var(--shadow); }

.event-date-box {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    padding: 10px 8px;
}
.event-date-day   { font-size: 1.8rem; font-weight: 900; line-height: 1; display: block; }
.event-date-month { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.event-info { flex: 1; }
.event-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.event-meta  { font-size: .8rem; color: var(--grey-mid); display: flex; flex-wrap: wrap; gap: var(--space-1); }
.event-meta i { color: var(--red); }
.event-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: .7rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.event-tag.upcoming { background: rgba(227,6,19,.08); color: var(--red); }
.event-tag.past     { background: var(--grey-bg); color: var(--grey-mid); }

/* ── PROGRAMS ──────────────────────────────────────────────────────────────── */
.program-card {
    background: var(--white);
    border: var(--border) solid var(--grey-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.program-card:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.program-card-header {
    padding: var(--space-4);
    background: var(--grey-bg);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-bottom: var(--border) solid var(--grey-border);
}
.program-icon {
    width: 56px; height: 56px;
    background: var(--red);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.program-icon i { font-size: 1.5rem; color: var(--white); }
.program-card-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.program-card-body { padding: var(--space-3) var(--space-4); flex: 1; }
.program-card-footer { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--grey-border); }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--grey-border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-3) 0;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    transition: color var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-question.open  { color: var(--red); }
.faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    transition: transform var(--transition);
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-answer-inner { padding-bottom: var(--space-3); }
.faq-answer-inner p { color: var(--grey-mid); font-size: .9rem; margin: 0; }

/* ── CONTACT FORM ──────────────────────────────────────────────────────────── */
.form-swiss .form-group { margin-bottom: var(--space-3); }
.form-swiss label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-swiss .required { color: var(--red); }

.form-swiss input,
.form-swiss select,
.form-swiss textarea {
    width: 100%;
    padding: 12px var(--space-2);
    border: 2px solid var(--grey-border);
    border-radius: var(--radius);
    font-family: var(--font-base);
    font-size: .9rem;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-swiss input:focus,
.form-swiss select:focus,
.form-swiss textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227,6,19,.1);
}
.form-swiss input.error,
.form-swiss select.error,
.form-swiss textarea.error {
    border-color: var(--red);
}
.form-swiss .field-error {
    font-size: .75rem;
    color: var(--red);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.form-swiss textarea { resize: vertical; min-height: 140px; }

.contact-info-block { padding: var(--space-4); background: var(--grey-bg); border-radius: var(--radius); }
.contact-info-item {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--grey-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 40px; height: 40px;
    background: rgba(227,6,19,.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon i { color: var(--red); font-size: 1rem; }
.contact-info-label { font-size: .75rem; font-weight: 700; color: var(--dark); letter-spacing: .06em; text-transform: uppercase; }
.contact-info-value { font-size: .9rem; color: var(--grey-mid); }
.contact-info-value a { color: var(--grey-mid); }
.contact-info-value a:hover { color: var(--red); }

/* ── MAP PLACEHOLDER ───────────────────────────────────────────────────────── */
.map-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--grey-bg);
    border: var(--border) solid var(--grey-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: var(--space-3);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ── TEAM CARDS ────────────────────────────────────────────────────────────── */
.team-card { text-align: center; }
.team-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--grey-border);
    margin: 0 auto var(--space-2);
    background: var(--grey-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--grey-light);
    transition: border-color var(--transition);
}
.team-card:hover .team-avatar { border-color: var(--red); }
.team-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-role { font-size: .8rem; color: var(--red); font-weight: 600; margin-bottom: var(--space-1); }
.team-bio  { font-size: .85rem; color: var(--grey-mid); }

/* ── VALUES (About) ────────────────────────────────────────────────────────── */
.value-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.value-icon {
    width: 48px; height: 48px;
    background: rgba(227,6,19,.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.value-icon i { color: var(--red); font-size: 1.25rem; }
.value-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.value-desc  { font-size: .875rem; color: var(--grey-mid); margin: 0; }

/* ── SECTION HEADER (generic) ──────────────────────────────────────────────── */
.section-header { margin-bottom: var(--space-5); }
.section-header.centered { text-align: center; }
.section-header.centered .sep { margin: var(--space-2) auto var(--space-3); }
.section-header h2 { margin-bottom: 0; }
.section-header p { max-width: 600px; margin-top: var(--space-1); }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ── DON SECTION ───────────────────────────────────────────────────────────── */
.don-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin: var(--space-2) 0;
}
.don-btn {
    padding: 10px 20px;
    border: 2px solid var(--grey-border);
    background: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
}
.don-btn:hover,
.don-btn.selected {
    border-color: var(--red);
    color: var(--red);
    background: rgba(227,6,19,.05);
}

/* ── TIMELINE ──────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: var(--space-5); }
.timeline::before {
    content: '';
    position: absolute;
    left: 16px; top: 0; bottom: 0;
    width: 2px;
    background: var(--grey-border);
}
.timeline-item {
    position: relative;
    padding-bottom: var(--space-4);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(var(--space-5) * -1 + 8px);
    top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--red);
}
.timeline-year {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 4px;
}
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.timeline-desc  { font-size: .875rem; color: var(--grey-mid); margin: 0; }

/* ── BADGES / TAGS ─────────────────────────────────────────────────────────── */
.swiss-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.swiss-badge.red   { background: var(--red); color: var(--white); }
.swiss-badge.dark  { background: var(--dark); color: var(--white); }
.swiss-badge.grey  { background: var(--grey-bg); color: var(--grey); border: 1px solid var(--grey-border); }
