/**
 * ============================================
 * SYSTÈME DE SECTIONS STANDARDISÉ - RDConnect
 * ============================================
 * 
 * Hiérarchie visuelle pour chaque section:
 * 1. Titre (H2) - Sujet principal
 * 2. Sous-titre (tagline) - Accroche
 * 3. Description (P) - Explication
 * 4. Contenu (cartes, listes, etc.)
 * 
 * Version: 1.0
 * Date: 25 janvier 2026
 */

/* ========== VARIABLES ========== */
:root {
    --section-title-color: #1a1a2e;
    --section-subtitle-color: #0891b2;
    --section-description-color: #6c757d;
    --section-bg-light: #f8f9fa;
    --section-bg-white: #ffffff;
    --section-padding-y: 80px;
    --section-padding-y-mobile: 50px;
}

/* ========== CONTENEUR DE SECTION ========== */
.section-rdconnect {
    padding: var(--section-padding-y) 0;
    position: relative;
}

.section-rdconnect.bg-light {
    background: linear-gradient(180deg, var(--section-bg-light) 0%, var(--section-bg-white) 100%);
}

.section-rdconnect.bg-gradient {
    background: linear-gradient(135deg, #0F2A44 0%, #1a3a5c 50%, #0891b2 100%);
}

/* ========== EN-TÊTE DE SECTION ========== */
.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-left {
    text-align: left;
}

/* NIVEAU 1: Titre Principal */
.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--section-title-color);
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
}

.section-header .section-emoji {
    margin-right: 10px;
    display: inline-block;
}

/* NIVEAU 2: Sous-titre / Tagline */
.section-header .section-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--section-subtitle-color);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* NIVEAU 3: Description */
.section-header .section-description {
    font-size: 1rem;
    font-weight: 400;
    color: var(--section-description-color);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== THÈME SOMBRE ========== */
.section-header-dark .section-title {
    color: #ffffff;
}

.section-header-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.section-header-dark .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== TAILLES ========== */
/* Grande section (Hero, CTA) */
.section-header.size-large .section-title {
    font-size: 2.8rem;
}

.section-header.size-large .section-subtitle {
    font-size: 1.3rem;
}

.section-header.size-large .section-description {
    font-size: 1.15rem;
}

/* Petite section (sidebar, widget) */
.section-header.size-small .section-title {
    font-size: 1.6rem;
}

.section-header.size-small .section-subtitle {
    font-size: 0.95rem;
}

.section-header.size-small .section-description {
    font-size: 0.9rem;
}

/* ========== DÉCORATEURS OPTIONNELS ========== */
/* Ligne sous le titre */
.section-header.with-line .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header.text-left.with-line .section-title::after {
    margin-left: 0;
}

/* Numéro de section */
.section-header .section-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    vertical-align: middle;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section-rdconnect {
        padding: var(--section-padding-y-mobile) 0;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-header .section-title {
        font-size: 1.8rem;
    }
    
    .section-header .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header .section-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .section-header.size-large .section-title {
        font-size: 2.2rem;
    }
    
    .section-header.size-large .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-header .section-title {
        font-size: 1.5rem;
    }
    
    .section-header .section-emoji {
        display: block;
        font-size: 2rem;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* ========== CARTES DE SECTION ========== */
.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    height: 100%;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.12);
}

.section-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-card-icon i {
    font-size: 2rem;
    color: #0891b2;
}

.section-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.section-card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ========== GRILLE DE CONTENU ========== */
.section-content {
    margin-top: 20px;
}

.section-grid {
    display: grid;
    gap: 30px;
}

.section-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.section-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.section-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .section-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section-grid.cols-4,
    .section-grid.cols-3,
    .section-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}
