/* ═══════════════════════════════════════════════════════════════
   ChapChap — Landing pages design system
   Composants réutilisables pour les pages publiques
   ═══════════════════════════════════════════════════════════════ */

/* ─── Héros / page headers ─── */
.chap-hero {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8A3C 100%);
    color: #fff;
    padding: 64px 0 80px;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}
.chap-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}
.chap-hero > .container {
    position: relative;
    z-index: 2;
}

/* Hero background slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroFade 15s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, rgba(26,26,26,0.78) 0%, rgba(26,26,26,0.42) 55%, rgba(255,107,0,0.25) 100%);
    border-radius: 0 0 40px 40px;
}

@keyframes heroFade {
    0%   { opacity: 0; transform: scale(1.05); }
    6%   { opacity: 1; transform: scale(1); }
    27%  { opacity: 1; transform: scale(1); }
    33%  { opacity: 0; transform: scale(1.03); }
    100% { opacity: 0; transform: scale(1.05); }
}

.chap-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.chap-hero-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    line-height: 1.7;
}

.chap-page-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 48px 0 56px;
    border-radius: 0 0 32px 32px;
    text-align: center;
}
.chap-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
}
.chap-page-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Sections ─── */
.chap-section {
    padding: 72px 0;
}
.chap-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.chap-section-subtitle {
    color: #6b7280;
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ─── Cards ─── */
.chap-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.chap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.chap-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    background: #fff7ed;
    color: #FF6B00;
}
.chap-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}
.chap-card-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ─── Icon tiles ─── */
.chap-icon-tile {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #fff7ed;
    margin-bottom: 18px;
}
.chap-icon-tile.blue { background: #eff6ff; }
.chap-icon-tile.green { background: #f0fdf4; }
.chap-icon-tile.purple { background: #f3e8ff; }
.chap-icon-tile.dark { background: #1A1A1A; color: #fff; }

/* ─── Buttons ─── */
.chap-btn-primary,
.btn-chap-primary {
    background: #FF6B00;
    border: 1px solid #FF6B00;
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}
.chap-btn-primary:hover,
.btn-chap-primary:hover {
    background: #E66000;
    border-color: #E66000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.32);
}

.chap-btn-outline,
.btn-chap-outline {
    background: transparent;
    border: 1.5px solid #FF6B00;
    color: #FF6B00;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.chap-btn-outline:hover,
.btn-chap-outline:hover {
    background: #FF6B00;
    color: #fff;
}

/* ─── Feature rows ─── */
.chap-feature {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}
.chap-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.chap-feature-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.chap-feature-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ─── Values / team cards ─── */
.chap-value-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chap-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

/* ─── FAQs ─── */
.chap-faq-category {
    margin-bottom: 40px;
}
.chap-faq-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1A1A1A;
}
.chap-faq-question {
    font-weight: 600;
    color: #1A1A1A;
}
.chap-faq-answer {
    color: #6b7280;
    line-height: 1.7;
}

/* ─── Contact info list ─── */
.chap-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chap-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.chap-contact-list li:last-child {
    border-bottom: none;
}
.chap-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 991.98px) {
    .chap-hero { padding: 48px 0 60px; border-radius: 0 0 28px 28px; }
    .chap-section { padding: 52px 0; }
    .chap-card { padding: 22px; }
}
