/* =========================================
   STYLE BLOG - VERSION PREMIUM (DREAM)
   ========================================= */

/* --- 0. CONFIGURATION & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&family=Open+Sans:wght@400;600&display=swap');

:root {
    --it-orange: #f36f2b;
    --it-blue: #007cc2;
    --it-dark: #002b45;
    --it-grey-light: #f4f7f9;
    --text-color: #4a4a4a;
}

body {
    background-color: #fff;
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* Utils */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.center { text-align: center; }

/* =========================================
   1. HERO BANNER BLOG
   ========================================= */
.blog-hero {
    /* Image de fond : Réunion / Laptop / Mains */
    background-image: url('./img/site photos-41.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    /* Arrondi en bas à gauche comme sur certaines maquettes modernes */
    border-bottom-left-radius: 50px; 
    border-bottom-right-radius: 50px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dégradé Bleu ITBELSYS semi-transparent */
    background: linear-gradient(135deg, rgba(0, 124, 194, 0.6) 0%, rgba(0, 43, 69, 0.8) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Boite "Glassmorphism" pour le texte */
.glass-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-blog-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-blog-desc {
    color: #eef8ff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================================
   2. SECTION INTRO / CATÉGORIES
   ========================================= */
.blog-intro-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.intro-text-wrapper {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.orange-upper-title {
    color: var(--it-orange);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.intro-p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}
.intro-p:first-of-type {
    font-weight: 700;
    color: var(--it-dark);
}

/* Grille 3 cibles */
.target-audience-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.target-col {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle-outline {
    width: 100px;
    height: 100px;
    border: 2px solid var(--it-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--it-blue);
    font-size: 2.5rem;
    background: white;
}

/* Effet Hover sur l'icone */
.target-col:hover .icon-circle-outline {
    background-color: var(--it-blue);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 124, 194, 0.3);
}

.target-title {
    color: var(--it-orange);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.target-col p {
    font-size: 0.9rem;
    color: #666;
    max-width: 250px;
    font-weight: 600;
}

/* Bouton Central */
.center-btn-wrapper { margin-top: 40px; }

.btn-orange-pill {
    background: linear-gradient(90deg, var(--it-orange) 0%, #ff5e00 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(243, 111, 43, 0.3);
}
.btn-orange-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(243, 111, 43, 0.5);
}


/* =========================================
   3. GRILLE BLOG (ARTICLES)
   ========================================= */
.blog-listing-section {
    padding: 80px 0 120px 0;
    background-color: var(--it-grey-light); /* Fond gris doux */
}

.orange-big-title {
    color: var(--it-orange);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

/* Grille */
.articles-grid {
    display: grid;
    /* Responsive : min 320px par carte, remplit l'espace */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Carte Article Premium */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.blog-card:hover {
    transform: translateY(-10px); /* Monte au survol */
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Placeholder Image (Orange) */
.card-img-placeholder {
    height: 220px;
    width: 100%;
    /* Dégradé Orange Luxe */
    background: linear-gradient(135deg, var(--it-orange) 0%, #ff9a66 100%);
    position: relative;
}

.category-tag {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background: white;
    color: var(--it-orange);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contenu Texte */
.card-content {
    padding: 30px;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    color: var(--it-dark);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.blog-card:hover .card-title {
    color: var(--it-orange);
}

.card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limite à 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Carte */
.card-footer {
    padding: 15px 30px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-footer span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-footer i { color: var(--it-blue); }

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--it-dark);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.page-link.active, .page-link:hover {
    background-color: var(--it-orange);
    color: white;
    transform: scale(1.1);
}
.dots { font-weight: 900; color: #ccc; }


/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-blog-title { font-size: 1.8rem; }
    .blog-hero { height: auto; padding: 80px 0; }
    
    .target-audience-row { flex-direction: column; gap: 40px; }
    
    .articles-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        padding: 0 10px;
    }
}