/*
 Theme Name: Blocksy Child
 Theme URI: https://creativethemes.com/blocksy/
 Description: Blocksy Child Theme
 Author: CreativeThemes
 Template: blocksy
 Version: 1.0.0
*/



/* =========================================================
   BLOC LETTRE — EN-TÊTE (expéditeur / destinataire / date)
========================================================= */

.lf-letter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.4;
    color: #4a5568;
}

.lf-expediteur,
.lf-destinataire {
    width: 45%;
    font-size: 15px;
    line-height: 1.4;
}

.lf-expediteur div,
.lf-destinataire div {
    margin-bottom: 4px;
}

.lf-destinataire {
    text-align: right;
}

.lf-date {
    margin: 15px 0 30px;
    font-size: 15px;
    color: #4a5568;
}

/* Corps de lettre + signature */

.lf-letter-content {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.lf-signature {
    margin-top: 40px;
    font-weight: 600;
    line-height: 1.6;
    font-size: 16px;
}

/* Ancien wrapper entête (au cas où tu l’utilises encore) */

.lf-entete-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.lf-col-gauche,
.lf-col-droite {
    width: 48%;
    font-size: 15px;
    line-height: 1.5;
}

.lf-col-droite {
    text-align: right;
}

/* =========================================================
   TEMPLATE SINGLE — MODÈLE DE LETTRE (mise en page globale)
========================================================= */

/* Container principal */

.single-lettre-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Titre */

.single-lettre-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Badge "Modèle de lettre" */

.st-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e9f9e3;
    color: #1b7d2b;
    border-radius: 8px;
    font-weight: 600;
}

/* Actions (copier / PDF / envoyer) */

.lettre-actions {
    margin: 25px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lettre-actions a {
    background: #f5f8ff;
    border: 1px solid #dfe8ff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: .2s;
    text-decoration: none;
}

.lettre-actions .btn-send {
    background: #1b7d2b;
    color: #fff;
}

/* Box contenant la lettre */

.lettre-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    line-height: 1.6;
    font-size: 17px;
    margin-bottom: 40px;
}

/* Bloc "Conseils pratiques" */

.legal-advice {
    background: #f9fafc;
    border-left: 4px solid #1a4f9c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Grid pour "Autres lettres utiles" dans single-lettre */

.related-grid {
    display: grid;
    gap: 12px;
}

/* Cartes "Autres lettres utiles" */

.rel-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e3e7ee;
    transition: 0.2s;
    text-decoration: none;
}

.rel-card:hover {
    background: #eef3ff;
}

.rel-icon {
    font-size: 18px;
}

/* =========================================================
   EN-CART AMIABLE (shortcode [encart_amiable])
========================================================= */

.lf-encart-officiel {
    background: #f8f9fb;
    border: 1px solid #d8dde5;
    padding: 22px 26px;
    border-radius: 8px;
    margin: 30px 0;
}

.lf-encart-officiel h2 {
    margin-top: 0;
    font-size: 20px;
    color: #0a1a2b;
}

.lf-encart-officiel p {
    margin-bottom: 15px;
}

.lf-encart-officiel ul {
    padding-left: 18px;
    margin: 0;
}

.lf-encart-officiel li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* =========================================================
   SINGLE GUIDE — Structure & contenu
========================================================= */

.single-guide-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-guide-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-guide-content {
    font-size: 17px;
    line-height: 1.65;
}

/* Meta + badge type de contenu */

.single-guide-meta span {
    display: inline-block;
    padding: 7px 14px;
    background: #e5f0ff;
    color: #1a4f9c;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    margin-bottom: 25px;
}

/* Header inline : temps de lecture + badge */

.lf-guide-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 25px;
}

.lf-reading-time {
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Sommaire */

.lf-toc {
    background: #f5f7ff;
    border: 1px solid #d6dffe;
    padding: 22px;
    border-radius: 10px;
    margin: 30px 0 40px;
}

.lf-toc h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
}

.lf-toc-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0a1a2b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-toc ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

.lf-toc li {
    margin-bottom: 8px;
}

.lf-toc a {
    color: #1a4f9c;
    text-decoration: none;
    font-weight: 600;
}

/* Chapo */

.single-guide-chapo {
    font-size: 18px;
    line-height: 1.6;
    background: #fafafa;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Titres H2 / H3 dans les guides */

.single-guide-content h2 {
    font-size: 28px;
    margin-top: 55px;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 4px solid #1a4f9c;
    font-weight: 700;
}

.single-guide-content h3 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e4e4e4;
    font-weight: 700;
}

/* =========================================================
   BLOC AUTEUR EAAT
========================================================= */

.lf-author-box {
    display: flex;
    gap: 22px;
    padding: 28px;
    background: #f8f9fb;
    border: 1px solid #e2e6ec;
    border-radius: 12px;
    margin: 50px 0;
    align-items: flex-start;
}

.lf-author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.lf-author-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.lf-author-role {
    margin: 4px 0 10px;
    color: #777;
    font-size: 15px;
}

.lf-author-desc {
    margin-bottom: 8px;
    line-height: 1.55;
}

.lf-author-link {
    color: #1a4f9c;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================================
   BLOC LETTRES ASSOCIÉES (sur les guides)
========================================================= */

.lf-letter-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.lf-letter-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e3e7ee;
    padding: 22px;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.25s ease;
    position: relative;
}

.lf-letter-card:hover {
    border-color: #c7d4e8;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.lf-letter-icon {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.lf-letter-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0a1a2b;
    line-height: 1.3;
}

.lf-letter-tag {
    display: inline-block;
    font-size: 13px;
    padding: 5px 10px;
    background: #eef4ff;
    color: #1a4f9c;
    border-radius: 6px;
    font-weight: 600;
}

/* =========================================================
   BADGES / TYPES DE CONTENU (catégorie + cartes)
========================================================= */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-guide {
    background: #e5f0ff;
    color: #1a4f9c;
    border: 1px solid #c4dcff;
}

.badge-lettre {
    background: #e9f9e3;
    color: #1b7d2b;
    border: 1px solid #b6ecb6;
}

/* Style différencié pour les cartes */

.card-guide {
    border-left: 4px solid #1a4f9c;
    background: #f6f9ff;
}

.card-lettre {
    border-left: 4px solid #1b7d2b;
    background: #f7fcf7;
}

/* Icône devant le titre */

.card-guide h3::before {
    content: "📘 ";
}

.card-lettre h3::before {
    content: "✉️ ";
}

/* Hover premium */

.card-guide:hover,
.card-lettre:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    border-color: #ccd2da;
}


/* =========================================================
   PAGES CATÉGORIES — HERO + TUILES + LISTE
========================================================= */

/* HERO catégorie (nouvelle version encadrée) */

/* ---------------------------------------------------
   HERO CATÉGORIE — version corrigée (1100px + responsive)
--------------------------------------------------- */
.category-hero {
    max-width: 1100px;
    margin: 40px auto 50px;
    padding: 40px 50px;
    text-align: center;
    background: #f9fafc;
    border: 1px solid #e5e8f0;
    border-radius: 14px;
    box-sizing: border-box;
}

.category-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: #0a1a2b;
    margin-bottom: 15px;
}

.category-hero p {
    font-size: 17px;
    color: #4c5566;
    line-height: 1.6;
    margin: 0;
}

/* MOBILE FIX → éviter collage aux bords */
@media (max-width: 768px) {
    .category-hero {
        margin: 20px 15px 30px;   /* MARGE G/D sur mobile */
        padding: 25px 22px;       /* padding adapté */
    }

    .category-hero h1 {
        font-size: 28px;
    }

    .category-hero p {
        font-size: 16px;
    }
}

/* Tuiles sous-thèmes (version compacte) */

.sous-theme-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px auto 45px;
    max-width: 960px;
}

.sous-theme-tiles .tile {
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #1a2e4a;
    transition: all .2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.sous-theme-tiles .tile:hover {
    background: #eef4ff;
    border-color: #c8d7ff;
}

/* Sections sous-thèmes */

.section-sous-theme {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.section-sous-theme h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0a1a2b;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e8ee;
}

/* Grid des articles / lettres */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cat-card {
    display: block;
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e6e8ec;
    transition: all .25s ease;
    text-decoration: none;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    border-color: #ccd2da;
}

.cat-card h3 {
    font-size: 19px;
    font-weight: 600;
    color: #0a1a2b;
    margin-top: 0;
}

.cat-card p {
    color: #5b6775;
    font-size: 15px;
}

/* Texte "aucun contenu" */

.section-sous-theme p {
    color: #7a8694;
    font-style: italic;
}

/* =========================================================
   ALIGNEMENT GLOBAL DES SECTIONS CATÉGORIES
   (H2 + cartes alignées au hero + marge mobile)
========================================================= */

.category-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;   /* évite collage sur mobile */
    box-sizing: border-box;
}

/* =========================================================
   PAGE AUTEUR JEREMY
========================================================= */
.author-hero {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 40px 30px;
    background: #f9fafc;
    border-radius: 14px;
    border: 1px solid #e5e8f0;
}

.author-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.author-hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.author-sub {
    font-size: 18px;
    color: #556;
    line-height: 1.6;
}

.author-body {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    line-height: 1.7;
}

.author-body h2 {
    margin-top: 40px;
    font-size: 26px;
    border-left: 4px solid #1a4f9c;
    padding-left: 12px;
}

.lf-author-mini {
    margin: 50px auto;
    max-width: 820px;
    padding: 18px 20px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #dde3eb;
    display: flex;
    gap: 15px;
    align-items: center;
}

.lf-author-mini img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* box auteur */
.lf-author-snippet {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: #f8f9fb;
    border: 1px solid #e2e6ec;
    border-radius: 12px;
    margin: 40px 0 20px;
    align-items: flex-start;
}

.lf-author-snippet-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.lf-author-snippet-name {
    font-size: 15px;
    margin: 0 0 3px;
    color: #0a1a2b;
}

.lf-author-snippet-text {
    margin: 0 0 6px;
    font-size: 14px;
    color: #445066;
    line-height: 1.45;
}

.lf-author-snippet-link {
    color: #1a4f9c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.lf-guide-header-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6c7280;
}

.lf-guide-header-inline > div {
    display: flex;
    align-items: center;
}


/* ================================================
   BLOC LOI OFFICIEL — STYLE
================================================ */
.lf-bloc-loi {
    background: #f6f9ff;
    border: 1px solid #cdd9f0;
    border-left: 5px solid #1a4f9c;
    padding: 25px 28px;
    margin: 35px 0;
    border-radius: 10px;
}

.lf-bloc-loi h2,
.lf-bloc-loi h3 {
    margin-top: 0;
    color: #0a1a2b;
    font-weight: 700;
}

.lf-bloc-loi ul {
    margin-top: 15px;
    padding-left: 22px;
}

.lf-bloc-loi li {
    margin-bottom: 10px;
    line-height: 1.55;
    color: #2f3b4c;
}

.lf-bloc-loi strong {
    color: #1a4f9c;
}


/* =========================================================
   PAGE D'ACCUEIL 
========================================================= */

/* =========================================================
   GLOBAL
========================================================= */

.lf-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Placeholder images */
.lf-image-placeholder {
    background: #eef3fb;
    border: 2px dashed #b8c6df;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6f7b91;
    font-size: 14px;
    text-align: center;
}

.lf-image-placeholder.small {
    width: 100%;
    height: 120px;
}

.lf-image-placeholder.medium {
    width: 240px;
    height: 240px;
}

.lf-image-placeholder.large {
    width: 100%;
    height: 300px;
}


/* =========================================================
   HERO
========================================================= */

.lf-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.lf-hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0c1b33;
}

.lf-hero-subtitle {
    font-size: 18px;
    color: #4e5a6e;
    margin-bottom: 25px;
}

.lf-hero-actions {
    display: flex;
    gap: 15px;
}

.lf-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.lf-btn-primary {
    background: #1a4f9c;
    color: #fff;
}

.lf-btn-primary:hover {
    background: #163f7b;
}

.lf-btn-secondary {
    background: #eef3fb;
    color: #1a4f9c;
}

.lf-btn-secondary:hover {
    background: #dde5f4;
}

@media(max-width:768px){
  .lf-hero { flex-direction: column; text-align:center; }
}


/* =========================================================
   SEARCH BLOCK
========================================================= */

.lf-search-block {
    text-align: center;
    margin: 60px 0;
}

.lf-search-block h2 {
    margin-bottom: 20px;
}

.lf-search-block form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: auto;
}

.lf-search-block input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid #c9d4e4;
}

.lf-search-block button {
    background: #1a4f9c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.lf-categories {
    margin: 70px 0;
}

.lf-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.lf-cat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.lf-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.10);
}

.lf-cat-card h3 {
    margin-top: 15px;
}


/* =========================================================
   GUIDES GRID
========================================================= */

.lf-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.lf-guide-card {
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    box-shadow: 0px 4px 14px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.lf-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.10);
}

.lf-guide-thumb {
    margin-bottom: 15px;
}

.lf-excerpt {
    font-size: 15px;
    line-height: 1.4;
    color: #5c6575;
}


/* =========================================================
   LETTERS GRID
========================================================= */


.lf-letter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.10);
}

.lf-letter-icon {
    margin-bottom: 14px;
}


/* =========================================================
   EAAT SECTION
========================================================= */

.lf-eaat {
    margin: 80px 0;
    padding: 40px;
    background: #f7f9fc;
    border-radius: 24px;
}

.lf-eaat-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
}

.lf-eaat h2 {
    margin-bottom: 12px;
}


/* =========================================================
   CTA FINAL
========================================================= */

.lf-cta-final {
    text-align: center;
    margin: 80px 0 100px;
}

.lf-cta-final h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.lf-cta-final p {
    color: #596580;
    margin-bottom: 20px;
}


/* =============================
   TEXTE SEO
============================= */
.lf-seo-text {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 10px;
}

.lf-seo-text h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.lf-seo-text p {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.65;
    color: #4a5568;
}


/* =============================
   PARCOURS D'UN LITIGE (TIMELINE)
============================= */

.lf-flows {
    margin: 80px 0;
}

.lf-flows h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.lf-flows-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: #4a5568;
    line-height: 1.6;
}

.lf-flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.lf-flow-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lf-flow-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.lf-flow-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.lf-flow-steps li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* puce timeline */
.lf-flow-steps li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a4f9c;
}

/* petite ligne verticale pour l'effet timeline */
.lf-flow-steps li::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 18px;
    width: 2px;
    height: 18px;
    background: #d2d9e6;
}

.lf-flow-steps li:last-child::after {
    display: none;
}

.lf-flow-steps strong {
    font-weight: 600;
    color: #111827;
}

.lf-flow-link {
    margin-top: auto;
    font-size: 14px;
    color: #1a4f9c;
    text-decoration: none;
    font-weight: 600;
}

.lf-flow-link:hover {
    text-decoration: underline;
}


.lf-cat-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.lf-cat-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
}


/* Grille affinée */
.lf-letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* Carte plus fine */
.lf-letter-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    transition: all .2s ease;
    text-decoration: none;
    min-height: 80px;
}

.lf-letter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Icône plus petite */
.lf-letter-icon svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
}

/* Titre plus compact */
.lf-letter-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0A1A33;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   SECTION : Pourquoi nous faire confiance — Desktop
========================================================= */

.lf-why {
    margin-top: 60px;
}

.lf-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 50px;
    margin-top: 30px;
}

.lf-why-item {
    background: #ffffff;
    padding: 25px 28px;
    border-radius: 12px;
    border: 1px solid #E4E8EF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: 0.2s;
}

.lf-why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.lf-why-item strong {
    display: block;
    font-size: 20px;
    color: #192a3d;
    margin-bottom: 8px;
}

.lf-why-item p {
    margin: 0;
    color: #3A4F66;
}

/* Mobile — reste en 1 colonne (déjà géré en dessous) */
@media(max-width: 768px) {
    .lf-why-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* =========================================================
   MOBILE FIX — LitigeFacile Home
   (patch complet basé sur front-page.php)
========================================================= */

@media(max-width: 768px) {

    /* ---- GLOBAL ---- */
    .lf-home {
        padding: 15px;
    }
    section {
        margin-bottom: 45px !important;
    }

    /* ---- HERO ---- */
    .lf-hero {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
        gap: 25px !important;
    }
    .lf-hero-content h1 {
        font-size: 28px !important;
        line-height: 1.25;
    }
    .lf-hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 18px;
    }
    .lf-hero-actions {
        justify-content: center;
    }
    .lf-hero-img {
        max-width: 70% !important;
        margin: auto;
    }

    /* ---- SEARCH ---- */
    .lf-search-block form {
        flex-direction: column;
    }
    .lf-search-block input,
    .lf-search-block button {
        width: 100%;
    }

    /* ---- CATEGORIES ---- */
    .lf-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .lf-cat-card {
        padding: 20px !important;
    }
    .lf-cat-card h3 {
        font-size: 15px !important;
    }
    .lf-cat-img {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    /* ---- GUIDES RÉCENTS ---- */
    .lf-guides-grid {
        grid-template-columns: 1fr !important;
    }
    .lf-guide-card {
        padding: 18px !important;
    }

    /* ---- LETTRES POPULAIRES ---- */
    .lf-letters-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .lf-letter-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .lf-letter-card h3 {
        font-size: 15px !important;
    }

    /* ---- COMMENT ÇA MARCHE ---- */
    .lf-how-grid {
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
    }
    .lf-how-card {
        padding: 20px !important;
    }

    /* ---- POURQUOI NOUS FAIRE CONFIANCE ---- */
    .lf-why-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* ---- TIMELINE LITIGE ---- */
    .lf-flow-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .lf-flow-card {
        padding: 20px !important;
    }
    .lf-flow-card h3 {
        font-size: 16px !important;
    }

    /* ---- SECTION AUTEUR EAAT ---- */
    .lf-eaat-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .lf-eaat-content img {
        margin: auto;
    }

    /* ---- CTA ---- */
    .lf-cta-final h2 {
        font-size: 24px !important;
    }
}


/* Espacement badge sous-thème dans les listes de lettres */
.lf-letter-card .badge-lettre {
    margin-top: 10px;
    display: inline-block;
}

/* SECTION GUIDES — 2 colonnes */
.lf-guides-2col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Cartes verticales guides */
.lf-guide-vertical {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: .2s;
    border-left: 4px solid #1a4f9c;
}

.lf-guide-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

/* Icône livre */
.lf-guide-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

/* Titre */
.lf-guide-vertical h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a1a2b;
    margin-top: 8px;
}

/* Sous-thème bleu */
.badge-guide {
    display: inline-block;
    background: #e5f0ff;
    color: #1a4f9c;
    border: 1px solid #c4dcff;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Colonne droite image */
.lf-guides-right {
    display: flex;
    justify-content: center;
}

.lf-guide-illustration {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Responsive */
@media(max-width: 900px){
    .lf-guides-2col {
        grid-template-columns: 1fr;
    }

    .lf-guides-right {
        order: -1;
        margin-bottom: 20px;
    }
}



/* Réduction de l’espace interne en haut des cartes guide */
.lf-guide-vertical {
    padding-top: 10px !important;
}



/* =========================================================
   COMMENT ÇA MARCHE — VERSION 2 COLONNES + FLÈCHES ↓
========================================================= */

.lf-how {
    margin: 80px 0;
}

.lf-how h2 {
    text-align: center;
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 800;
}

/* ---- LAYOUT 2 COLONNES ---- */
.lf-how-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 50px;
    align-items: center; /* Centre verticalement l’image */
}

/* ---- COLONNE GAUCHE : ILLUSTRATION ---- */
.lf-how-left {
    display: flex;
    justify-content: center;
    align-items: center; /* Centre verticalement et horizontalement */
    height: 100%;
}

.lf-how-illustration {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ---- COLONNE DROITE : ÉTAPES ---- */
.lf-how-right {
    display: flex;
    flex-direction: column;
}

.lf-step {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 26px;
    border: 1px solid #e5e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.lf-step + .lf-step {
    margin-top: 18px;
}

.lf-step h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.lf-step h3 span {
    font-weight: 800;
    margin-right: 6px;
}

.lf-step p {
    margin: 0;
    font-size: 15px;
    color: #4b5565;
    line-height: 1.5;
}

/* ---- FLÈCHES ↓ ENTRE LES ÉTAPES ---- */
.lf-step-arrow {
    text-align: center;
    font-size: 28px;
    margin: 10px 0;
    opacity: .8;
}

.lf-step-arrow span {
    display: inline-block;
    line-height: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .lf-how-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .lf-how-left {
        order: -1; /* L'image passe au-dessus */
    }

    .lf-how-right .lf-step {
        text-align: left;
    }
}
