
/* =========================================
   STYLE GLOBAL : BLOG & SINGLE (MERGED)
   ========================================= */
body.blog,
body.archive,
body.search,
body.single-post,
body.page-template-page-blog {
    background-color: #ffffff;
    color: #1E3A8A;
}
.blog-premium-wrapper, .single-premium-wrapper { max-width: 1240px; margin: 0 auto; font-family: var(--font-head, 'Space Grotesk', sans-serif); }

/* --- 1. PAGE BLOG (VOTRE CODE STRICT) --- */
.blog-premium-wrapper {
    --blog-grid-gap-row: 60px;
    --blog-grid-gap-column: 35px;
    --blog-main-title-size: clamp(2.5rem, 5vw, 4rem);
    padding: 60px 20px;
}

/* HEADER */
.blog-header { text-align: left; padding-top: 60px; margin-bottom: 40px; }
.blog-main-title { font-size: var(--blog-main-title-size); font-weight: 900; color: #1E3A8A; line-height: 1.1; margin-bottom: 20px; font-family: 'Space Grotesk', sans-serif; }
.blog-subtitle { font-size: 1.15rem; color: #475569; max-width: 100%; line-height: 1.6; font-weight: 500; margin-bottom: 80px; }

/* HERO POST */
.blog-hero-post { margin-bottom: 60px; position: relative; display: block; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-media { display: block; width: 100%; height: 380px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 50%, #EFF6FF 100%); position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-media:hover img { transform: scale(1.03); }
.hero-details { padding: 20px 0; display: flex; flex-direction: column; align-items: flex-start; }
/* --- Titres : typographie commune --- */
.blog-premium-wrapper .blog-post-title,
.blog-card-slider-item .card-title {
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
    color: #1E3A8A;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

/* Hero : titre principal mis en avant */
.blog-hero-post .blog-post-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Cartes grille : titre compact et lisible */
.blog-card-modern .blog-post-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cartes slider (suggestions) */
.blog-card-slider-item .card-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-excerpt { font-size: 1.05rem; color: #64748B; line-height: 1.6; margin-bottom: 25px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-read-hero {
    display: inline-flex; align-items: center; gap: 12px;
    background: #1E3A8A;
    color: #fff; padding: 16px 36px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 1rem;
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
    letter-spacing: 0.01em;
    transition: all 0.35s ease;
}
.btn-read-hero::after {
    content: '\2192'; display: inline-block;
    transition: transform 0.35s ease;
}
.btn-read-hero:hover {
    background: #2563EB;
}
.btn-read-hero:hover::after { transform: translateX(5px); }
.btn-read-hero:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 3px; }

/* FILTRES */
.blog-filters-scroll { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0 20px 0; margin-bottom: 30px; border-bottom: 1px solid #E2E8F0; }
.filter-btn { background: #fff; border: 1px solid #CBD5E1; color: #64748B; padding: 10px 25px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; white-space: nowrap; font-size: 0.9rem; font-family: var(--font-head, sans-serif); }
.filter-btn:hover, .filter-btn.active { background: #1E3A8A; color: #fff; border-color: #1E3A8A; }
.filter-btn:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 2px; }

/* GRILLE */
.blog-grid-3cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--blog-grid-gap-row) var(--blog-grid-gap-column); margin-bottom: 60px; margin-top: 20px; }
.blog-card-modern { display: flex; flex-direction: column; text-decoration: none; height: 100%; cursor: pointer; transition: transform 0.35s ease; }
.card-img-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; margin-bottom: 16px; background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.card-img-placeholder { width: 100%; height: 100%; background: #f1f5f9; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card-modern:hover .card-img-wrapper img { transform: scale(1.05); }
.blog-card-modern:hover { }
.blog-card-modern:hover .blog-post-title { color: #2563EB; }
.card-badge { position: absolute; bottom: 15px; left: 15px; background: #fff; color: #1E3A8A; padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 2; }
.card-date { font-size: 0.8rem; color: #94A3B8; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.card-link { font-size: 0.9rem; color: #eb5b2b; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-top: auto; transition: gap 0.3s; min-height: 24px; }
.txt-default { display: inline-block; } .txt-hover { display: none; color: #eb5b2b; }
.blog-card-modern:hover .txt-default { display: none; } .blog-card-modern:hover .txt-hover { display: inline-block; } .blog-card-modern:hover .card-link { gap: 12px; }

/* PAGINATION */
.blog-pagination-wrapper { display: flex; justify-content: center; margin-top: 40px; }
.nav-links { display: flex; gap: 10px; }
.nav-links a, .nav-links span { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #F1F5F9; color: #1E3A8A; text-decoration: none; font-weight: 700; transition: all 0.3s ease; font-size: 0.9rem; border: 1px solid transparent; }
.nav-links a:hover { background: #DBEAFE; border-color: #BFDBFE; }
.nav-links .current { background: #1E3A8A; color: #fff; box-shadow: 0 4px 12px -2px rgba(30, 58, 138, 0.3); }
.nav-links a:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* AJAX : transition douce au chargement */
#ajax-posts-container { transition: opacity 0.3s ease; }
.ajax-fade-wrapper { animation: blogFadeIn 0.4s ease-out; }
@keyframes blogFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE BLOG (TABLETTE < 992px) --- */
@media (max-width: 992px) {
    .blog-premium-wrapper {
        --blog-grid-gap-row: 40px;
        --blog-grid-gap-column: 20px;
        --blog-main-title-size: 2.5rem;
        padding: 40px 20px;
    }

    .hero-inner { grid-template-columns: 1fr; gap: 25px; }
    .hero-media { height: 250px; }
    .blog-hero-post .blog-post-title { font-size: 2.2rem; }

    .blog-grid-3cols { grid-template-columns: repeat(2, 1fr); }
    .blog-card-modern .blog-post-title { font-size: 1.5rem; }

    .blog-subtitle { margin-bottom: 40px; }
    .blog-header { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 2px solid #E2E8F0; }
}

/* --- RESPONSIVE BLOG (MOBILE < 768px) --- */
@media (max-width: 768px) {
    .blog-premium-wrapper {
        --blog-grid-gap-row: 40px;
        --blog-grid-gap-column: 0;
    }
    .blog-grid-3cols { grid-template-columns: 1fr; }
    .blog-hero-post .blog-post-title { font-size: 1.9rem; }
    .blog-card-modern .blog-post-title { font-size: 1.45rem; }
}




/* =========================================
   STYLE SINGLE : CLEAN EDITORIAL (FINAL)
   ========================================= */

/* --- CONTAINER GLOBAL --- */
.clean-single-layout { background: #fff; width: 100%; }
.clean-container-narrow { max-width: 1100px; margin: 0 auto; padding: 160px 20px 20px; font-family: 'Space Grotesk', sans-serif; }

/* --- HEADER --- */
.clean-header { text-align: left; margin-bottom: 50px; }
.header-nav-top { margin-bottom: 0; } /* Le bouton est en haut */

/* Bouton Retour */
.btn-back-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.85rem; font-weight: 700; color: #64748B;
    text-decoration: none; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 10px 20px; border-radius: 50px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
}
.btn-back-arrow:hover { color: #1E3A8A; background: #EFF6FF; border-color: #BFDBFE; transform: translateX(-3px); }
.btn-back-arrow:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 2px; }

/* Titre Principal (DESCENDU DE 250px) */
.clean-main-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1.08; font-weight: 800; color: #1E3A8A;
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
    letter-spacing: -0.02em;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Meta (Date gauche / Cat droite) */
.header-meta-bottom { display: flex; align-items: center; gap: 15px; margin-top: 10px; margin-bottom: 50px; }
.clean-date { font-size: 0.85rem; color: #94A3B8; font-weight: 600; text-transform: uppercase; }
.clean-badge { background: #E0F2FE; color: #1E3A8A; padding: 6px 14px; border-radius: 50px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- CONTENU --- */
.clean-lead { font-size: 1.4rem; line-height: 1.5; color: #1E3A8A; font-weight: 500; margin-bottom: 50px; }
.wp-content-clean { font-size: 1.15rem; line-height: 1.8; color: #334155; }
.wp-content-clean p { margin-bottom: 30px; }
.wp-content-clean h2 { font-size: 2rem; font-weight: 800; color: #1E3A8A; margin: 60px 0 25px; }
.wp-content-clean h3 { font-size: 1.5rem; font-weight: 700; color: #1E3A8A; margin: 40px 0 20px; }
.wp-content-clean img { width: 100%; height: auto; border-radius: 20px; margin: 40px 0; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.wp-content-clean blockquote { border-left: 4px solid #1E3A8A; padding-left: 30px; margin: 50px 0; font-size: 1.3rem; font-style: italic; color: #1E3A8A; font-weight: 500; }
.wp-content-clean ul { margin-bottom: 30px; padding-left: 20px; }
.wp-content-clean li { margin-bottom: 10px; }
.wp-content-clean a:not(.wp-block-button__link) { color: #2563EB; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
.wp-content-clean a:not(.wp-block-button__link):hover { color: #1E3A8A; }

/* --- BLOCS GUTENBERG DANS LE CONTENU --- */

/* Bouton Gutenberg — style premium pill */
.wp-content-clean .wp-block-buttons {
    margin: 50px 0;
}
.wp-content-clean .wp-block-button__link,
.wp-content-clean .wp-element-button {
    display: inline-flex;
    align-items: center; gap: 10px;
    background: #eb5b2b;
    color: #fff;
    padding: 17px 40px; border-radius: 50px;
    font-weight: 700; font-size: 1.05rem;
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
    text-decoration: none; letter-spacing: 0.01em;
    transition: all 0.35s ease;
    border: none; cursor: pointer;
}
.wp-content-clean .wp-block-button__link:hover,
.wp-content-clean .wp-element-button:hover {
    background: #c2410b;
    color: #fff;
}
.wp-content-clean .wp-block-button__link:focus-visible {
    outline: 2px solid #eb5b2b; outline-offset: 3px;
}

/* Variante outline (bouton secondaire Gutenberg) */
.wp-content-clean .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #1E3A8A;
    border: 2px solid #1E3A8A;
    box-shadow: none;
}
.wp-content-clean .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #1E3A8A;
    color: #fff;
}

/* Séparateur Gutenberg */
.wp-content-clean .wp-block-separator,
.wp-content-clean hr {
    border: none; height: 2px; margin: 60px auto;
    background: linear-gradient(90deg, transparent 0%, #CBD5E1 30%, #CBD5E1 70%, transparent 100%);
    max-width: 200px; opacity: 1;
}

/* Citation Gutenberg améliorée */
.wp-content-clean .wp-block-quote,
.wp-content-clean blockquote {
    border-left: 4px solid #2563EB; padding: 25px 30px;
    margin: 50px 0; font-size: 1.3rem; font-style: italic;
    color: #1E3A8A; font-weight: 500;
    background: #F8FAFC; border-radius: 0 16px 16px 0;
}

/* --- PARTAGE --- */
.clean-share-section { margin-top: 80px; padding-top: 40px; border-top: 1px solid #F1F5F9; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.share-label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: #94A3B8; }
.share-buttons-row { display: flex; gap: 15px; }
.btn-share-circle { width: 50px; height: 50px; border-radius: 50%; background: #F1F5F9; color: #1E3A8A; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; text-decoration: none; transition: all 0.3s ease; border: 1px solid #E2E8F0; }
.btn-share-circle:hover { background: #1E3A8A; color: #fff; border-color: #1E3A8A; }
.btn-share-circle:focus-visible { outline: 2px solid #1E3A8A; outline-offset: 2px; }

/* --- CTA SPLIT (CENTRÉ + ORDRE MOBILE SPÉCIFIQUE) --- */
.clean-cta-wrapper { margin-top: 80px; margin-bottom: 40px; }
.cta-split-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 60%, #E0F2FE 100%);
    border: none; border-radius: 28px; padding: 0; overflow: hidden;
    display: flex; align-items: stretch;
    box-shadow: 0 20px 60px -15px rgba(30, 58, 138, 0.12);
}

/* Colonne Texte (Centrée) */
.cta-col-text { flex: 1; padding: 55px 50px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.cta-col-text h3 {
    font-size: 1.9rem; font-weight: 800; color: #1E3A8A;
    margin-bottom: 12px; line-height: 1.15;
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
}
.cta-col-text p { font-size: 1.05rem; color: #475569; margin-bottom: 32px; max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Elements CTA */
.rocket-icon-mini {
    width: 56px; height: 56px;
    background: #1E3A8A;
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 22px;
}
.btn-rocket-orange {
    display: inline-flex; align-items: center; gap: 10px;
    background: #eb5b2b;
    color: #fff; padding: 18px 42px; border-radius: 50px;
    font-weight: 800; font-size: 1.05rem;
    font-family: var(--font-head, 'Space Grotesk', sans-serif);
    text-decoration: none; letter-spacing: 0.01em;
    transition: all 0.35s ease;
}
.btn-rocket-orange::after {
    content: '\2192'; display: inline-block;
    transition: transform 0.35s ease;
}
.btn-rocket-orange:hover {
    background: #c2410b;
    color: #fff;
}
.btn-rocket-orange:hover::after { transform: translateX(5px); }
.btn-rocket-orange:focus-visible { outline: 2px solid #eb5b2b; outline-offset: 3px; }
.secure-line-left { margin-top: 20px; font-size: 0.85rem; color: #94A3B8; font-weight: 500; display: flex; align-items: center; gap: 8px; justify-content: center; }

/* Image Bureau (Droite) */
.cta-col-image { width: 45%; background: #DBEAFE; position: relative; overflow: hidden; min-height: 350px; }
.cta-img-visual { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-mobile-img-wrapper { display: none; } /* Caché par défaut sur PC */

/* --- RESPONSIVE MOBILE CTA (ORDRE: TITRE > IMAGE > TEXTE > BOUTON) --- */
@media (max-width: 992px) {
    .cta-split-card { flex-direction: column; height: auto; }
    
    /* On cache l'image de la colonne de droite */
    .cta-col-image.desktop-only-img { display: none; }

    /* On affiche l'image insérée dans le texte */
    .cta-mobile-img-wrapper { display: block; width: 100%; max-width: 330px; margin: 15px 0 25px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
    .cta-mobile-img-wrapper img { width: 100%; height: auto; display: block; }
    
    .cta-col-text { padding: 40px 25px; }
    .cta-col-text h3 { font-size: 1.6rem; }
    .btn-rocket-orange { padding: 16px 34px; font-size: 1rem; }
    
    /* Réduction de la marge titre mobile */
    .clean-main-title { margin-top: 30px; margin-bottom: 15px;}
    .header-meta-bottom { margin-bottom: 30px;}
    
}

/* --- SUGGESTIONS (SLIDER) --- */
.clean-related-section { background: #ffffff; padding: 0 0 120px; margin-top: 10px; border-top: 1px solid #F1F5F9; border-bottom: 4px solid #eb5b2b; }
.related-container { max-width: 1400px; margin: 0 auto; padding: 0 0 0 20px; }
.related-heading { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #1E3A8A; margin-bottom: 40px; text-align: left; max-width: 1240px; margin-left: auto; margin-right: auto; padding: 60px 20px 0; }
.related-slider-scroll { display: flex; gap: 30px; overflow-x: auto; padding: 20px 60px 40px 10px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; cursor: grab; scrollbar-width: thin; scrollbar-color: #eb5b2b transparent; }
.related-slider-scroll:active { cursor: grabbing; }
.related-slider-scroll::-webkit-scrollbar { height: 6px; display: block; }
.related-slider-scroll::-webkit-scrollbar-track { background: transparent; margin: 0 20px; }
.related-slider-scroll::-webkit-scrollbar-thumb { background-color: #E2E8F0; border-radius: 10px; transition: background 0.3s; }
.related-slider-scroll:hover::-webkit-scrollbar-thumb { background-color: #1E3A8A; }
.blog-card-slider-item { min-width: 400px; max-width: 400px; flex-shrink: 0; display: flex; flex-direction: column; text-decoration: none; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: 1px solid transparent; border-radius: 24px; padding: 10px; }
.blog-card-slider-item:hover { background: #F8FAFC; border-color: #F1F5F9; }
.blog-card-slider-item:hover .card-img-wrapper img { transform: scale(1.05); }
.blog-card-slider-item .card-date { font-size: 0.8rem; }
.blog-card-slider-item:hover .card-title { color: #eb5b2b; }
.blog-card-slider-item:hover .txt-default { display: none; } .blog-card-slider-item:hover .txt-hover { display: inline-block; } .blog-card-slider-item:hover .card-link { gap: 12px; }

@media (max-width: 768px) {
    .blog-card-slider-item { min-width: 280px; max-width: 280px; }
    .related-slider-scroll { gap: 15px; padding: 10px 40px 30px 20px; }
}
