/* =============================================
   HOPE BEARERS — CSS Global Centralisé
   Remplace tous les styles inline des pages
   ============================================= */

:root {
    --primary:   #0071BD;
    --primary-dk:#005a97;
    --accent:    #F28F2A;
    --accent-dk: #d4781f;
    --green:     #23B574;
    --green-dk:  #1a8f5a;
    --dark:      #1a1a2e;
    --light:     #f4f8fc;
    --text-muted:#6c7a8d;
    --radius:    14px;
    --shadow:    0 4px 20px rgba(0,113,189,0.10);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { 
    font-family: 'Segoe UI', sans-serif; 
    color: #2c3345;
    width: 100%;
    overflow-x: hidden;
}
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
video { max-width: 100%; height: auto; }
.container { width: 100%; overflow-x: hidden; }

/* ── Navbar ── */
.hb-navbar {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow-x: hidden;
}
.hb-navbar .container { overflow-x: visible; }
.hb-navbar .navbar-brand img { height: 48px; width: auto; max-width: 100%; }
.hb-navbar .nav-link { color: #2c3345 !important; font-weight: 500; transition: color .2s; white-space: nowrap; }
.hb-navbar .nav-link:hover,
.hb-navbar .nav-link.active { color: var(--primary) !important; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.hb-navbar .navbar-toggler { border-color: rgba(0,0,0,0.15); }
.hb-navbar .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><circle cx="500" cy="500" r="300" fill="white"/></svg>') center/250px;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.2; }
.hero-section .lead { font-size: 1.1rem; opacity: .88; word-wrap: break-word; }
.btn-hero-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .25s;
    display: inline-block;
}
.btn-hero-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .25s;
    display: inline-block;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Carrousel ── */
#mainCarousel { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,0.22); }
#mainCarousel .carousel-inner { height: 360px; }
#mainCarousel .carousel-inner img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption-custom {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    padding: 20px 16px 14px;
    color: #fff;
}
.carousel-caption-custom h6 { margin: 0; font-weight: 600; font-size: 14px; }

/* ── Section titles ── */
.section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--dark); }
.section-divider {
    width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ── Feature cards ── */
.feature-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .3s ease;
    background: #fff;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,113,189,0.18); }
.feature-card .card-img-top { height: 200px; object-fit: cover; }
.feature-card .card-body { padding: 20px; }

/* ── Stats cards ── */
.stats-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: transform .3s ease;
}
.stats-card:hover { transform: translateY(-5px); }
.stats-card .counter-num { font-size: 2.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stats-card h5 { font-size: 1rem; font-weight: 600; margin: 8px 0 4px; }
.stats-card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ── Activity highlight ── */
.activity-section { background: var(--light); padding: 80px 0; }
.recent-activity-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: all .3s ease;
    background: #fff;
}
.recent-activity-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.15); }
.recent-activity-img { height: 260px; object-fit: cover; width: 100%; }

/* ── Mission / CTA section ── */
.mission-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
    color: white;
    padding: 80px 0;
}
.mission-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 28px;
}
.mission-card .icon-wrap {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* ── Partner badge ── */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,143,42,0.12);
    border: 1px solid rgba(242,143,42,0.35);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dk);
    margin-top: 14px;
}

/* ── Page heroes (intérieures) ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: #fff;
    padding: 60px 0 44px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400" opacity="0.04"><circle cx="700" cy="50" r="220" fill="white"/><circle cx="100" cy="350" r="180" fill="white"/></svg>') cover;
    pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.page-hero .lead { opacity: .88; word-wrap: break-word; }

/* ── About cards ── */
.about-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.about-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }

/* ── Partner cards ── */
.partner-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    height: 100%;
    border: 1px solid #e8edf4;
    transition: transform .3s ease, box-shadow .3s ease;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.partner-card.highlight { border: 2px solid var(--accent); }
.partner-logo { height: 70px; object-fit: contain; margin-bottom: 12px; }
.vapesp-tag {
    display: inline-block;
    background: rgba(0,113,189,0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

/* ── Activity cards ── */
.activity-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s;
    border: none;
    background: #fff;
}
.activity-card:hover { transform: translateY(-5px); }
.activity-icon { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.stat-pill {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-pill h3 { font-size: 2rem; font-weight: 700; margin: 0; }

/* ── Contact ── */
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform .3s;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 16px; }
.contact-form-section {
    background: var(--light);
    border-radius: var(--radius);
    padding: 36px;
}
.btn-primary-hb {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all .25s;
}
.btn-primary-hb:hover { background: var(--primary-dk); color: #fff; transform: translateY(-2px); }
.donation-box {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px;
}

/* ── Archive / Galerie ── */
.archive-section { padding: 80px 0; background: var(--light); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.archive-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}
.archive-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.archive-item:hover img { transform: scale(1.05); }
.archive-item .overlay {
    position: absolute; inset: 0;
    background: rgba(0,113,189,0.0);
    display: flex; align-items: flex-end;
    padding: 12px;
    transition: background .3s;
}
.archive-item:hover .overlay { background: rgba(0,113,189,0.5); }
.archive-item .overlay span {
    color: #fff; font-size: 12px; font-weight: 600;
    opacity: 0; transition: opacity .3s;
}
.archive-item:hover .overlay span { opacity: 1; }
.archive-filter .btn { border-radius: 50px; font-size: 13px; }

/* ── Footer ── */
.hb-footer { background: var(--dark); color: #cfd8e8; padding: 52px 0 24px; }
.hb-footer h5, .hb-footer h6 { color: #fff; font-weight: 600; }
.hb-footer .footer-links a { color: #cfd8e8; text-decoration: none; font-size: 14px; display: block; margin-bottom: 6px; transition: color .2s; }
.hb-footer .footer-links a:hover { color: var(--accent); }
.hb-footer .social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #cfd8e8;
    transition: all .2s;
    margin: 0 4px;
}
.hb-footer .social-icons a:hover { background: var(--accent); color: #fff; }
.hb-footer hr { border-color: rgba(255,255,255,0.12); }
.hb-footer small { color: #8a96a8; }
.footer-vapesp-note {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 10px;
}

/* ── Badges Bootstrap override ── */
.badge-primary-hb { background: var(--primary) !important; }
.badge-accent-hb  { background: var(--accent) !important; }
.badge-green-hb   { background: var(--green) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent  { color: var(--accent) !important; }
.bg-primary   { background: var(--primary) !important; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .container, .container-fluid { padding-left: 15px !important; padding-right: 15px !important; }
    
    .hero-section { padding: 56px 0 36px; overflow-x: hidden; }
    .hero-section::before { display: none; }
    .hero-section h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
    .hero-section .lead { font-size: 0.95rem; }
    
    #mainCarousel { border-radius: 8px; }
    #mainCarousel .carousel-inner { height: 240px; }
    
    .recent-activity-img { height: 200px; }
    .mission-section { padding: 56px 0; overflow-x: hidden; }
    .activity-section { padding: 56px 0; overflow-x: hidden; }
    .about-section { padding: 24px 18px; }
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
    
    .stats-card { padding: 24px 16px; }
    .stats-card .counter-num { font-size: 2rem; }
    
    .partner-card { padding: 16px; }
    .partner-logo { height: 50px; }
    
    .feature-card .card-body { padding: 16px; }
    
    .section-title { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
    .page-hero { padding: 50px 0 36px; overflow-x: hidden; }
    .page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
    
    .mission-card { padding: 20px 16px; }
    .contact-form-section { padding: 24px 16px; }
    
    .navbar-brand { margin-right: auto; }
    .hb-navbar .nav-link { padding-left: 0 !important; padding-right: 0 !important; }
}

@media (max-width: 480px) {
    .container, .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
    
    .hero-section { padding: 40px 0 28px; }
    .hero-section h1 { font-size: clamp(1.2rem, 3.5vw, 1.8rem); margin-bottom: 12px; }
    .hero-section .lead { font-size: 0.9rem; margin-bottom: 16px; }
    
    #mainCarousel { border-radius: 6px; }
    #mainCarousel .carousel-inner { height: 180px; }
    
    .section-eyebrow { font-size: 11px; }
    .section-title { font-size: clamp(1.2rem, 2vw, 1.6rem); }
    .section-divider { width: 40px; }
    
    .stats-card { padding: 18px 12px; }
    .stats-card .counter-num { font-size: 1.6rem; }
    .stats-card h5 { font-size: 0.85rem; }
    .stats-card p { font-size: 0.75rem; }
    
    .feature-card { margin-bottom: 16px; }
    .feature-card .card-img-top { height: 160px; }
    .feature-card .card-body { padding: 12px; }
    .feature-card .card-title { font-size: 0.9rem; }
    
    .recent-activity-card { margin-bottom: 20px; }
    .recent-activity-img { height: 160px; }
    .recent-activity-card .p-4 { padding: 16px !important; }
    .recent-activity-card h4 { font-size: 1rem; margin-bottom: 8px; }
    
    .mission-card { padding: 16px 12px; }
    .mission-card h5 { font-size: 0.9rem; }
    .mission-card .icon-wrap { width: 44px; height: 44px; font-size: 1.2rem; }
    
    .about-section { padding: 18px 12px; margin-bottom: 16px; }
    .about-icon { font-size: 1.8rem; }
    
    .partner-card { padding: 12px; }
    .partner-card h5 { font-size: 0.9rem; }
    .partner-logo { height: 40px; margin-bottom: 8px; }
    
    .contact-form-section { padding: 16px 12px; }
    .btn-primary-hb, .btn-hero-primary, .btn-hero-outline { padding: 10px 20px; font-size: 0.9rem; }
    
    .page-hero { padding: 40px 0 28px; }
    .page-hero h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
    
    .archive-grid { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 8px; }
    
    .hb-footer { padding: 36px 0 16px; }
    .hb-footer h5, .hb-footer h6 { font-size: 0.9rem; }
    .hb-footer .footer-links a { font-size: 12px; margin-bottom: 4px; }
}

