/* Section blog de la page d'accueil — Trio De Turismo */

.trio-blog-home {
    --tbh-ink: #131212;
    --tbh-body: #3F3A36;
    --tbh-muted: #8A7F76;
    --tbh-orange: #FA8862;
    --tbh-orange-dark: #E86F48;
    --tbh-peach: #FBE7CE;
    --tbh-peach-soft: #FDF3E6;
    --tbh-line: #EFE7DC;
    --tbh-white: #FFFFFF;
    --tbh-ease: cubic-bezier(0.4, 0, 0.2, 1);

    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tbh-ink);
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.trio-blog-home *,
.trio-blog-home *::before,
.trio-blog-home *::after { box-sizing: border-box; }

.trio-blog-home .tbh-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* --- En-tête --- */

.trio-blog-home .tbh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 40px;
}

.trio-blog-home .tbh-head-text { max-width: 640px; }

.trio-blog-home .tbh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: var(--tbh-peach-soft);
    color: var(--tbh-orange);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.35;
}

/* Le titre était orange par héritage : le conteneur Elementor était
   enveloppé dans un lien. On fixe la couleur explicitement. */
.trio-blog-home .tbh-title {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--tbh-ink);
}

.trio-blog-home .tbh-subtitle {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.65;
    font-weight: 450;
    color: var(--tbh-muted);
}

.trio-blog-home .tbh-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--tbh-line);
    background: var(--tbh-white);
    color: var(--tbh-ink);
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s var(--tbh-ease), border-color 0.25s var(--tbh-ease), color 0.25s var(--tbh-ease);
}

.trio-blog-home .tbh-cta:hover {
    background: var(--tbh-orange);
    border-color: var(--tbh-orange);
    color: var(--tbh-white);
}

.trio-blog-home .tbh-cta .tbh-icon { transition: transform 0.25s var(--tbh-ease); }
.trio-blog-home .tbh-cta:hover .tbh-icon { transform: translateX(3px); }

.trio-blog-home .tbh-cta-count {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--tbh-peach-soft);
    color: var(--tbh-orange);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.trio-blog-home .tbh-cta:hover .tbh-cta-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--tbh-white);
}

/* --- Métadonnées --- */

.trio-blog-home .tbh-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0;
}

.trio-blog-home .tbh-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
    color: var(--tbh-muted);
}

.trio-blog-home .tbh-meta-item .tbh-icon { color: var(--tbh-orange); }

/* --- Pastilles sur les visuels --- */

.trio-blog-home .tbh-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--tbh-white);
    color: var(--tbh-orange);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(19, 18, 18, 0.1);
}

.trio-blog-home .tbh-time {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(19, 18, 18, 0.78);
    color: var(--tbh-white);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
}

/* --- Article en vedette --- */

.trio-blog-home .tbh-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    margin: 0 0 28px;
    border: 1.5px solid var(--tbh-line);
    border-radius: 26px;
    overflow: hidden;
    background: var(--tbh-white);
    transition: border-color 0.3s var(--tbh-ease), box-shadow 0.3s var(--tbh-ease);
}

.trio-blog-home .tbh-featured:hover {
    border-color: var(--tbh-peach);
    box-shadow: 0 18px 44px rgba(19, 18, 18, 0.07);
}

.trio-blog-home .tbh-featured-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--tbh-peach-soft);
}

.trio-blog-home .tbh-featured-media img,
.trio-blog-home .tbh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--tbh-ease);
}

.trio-blog-home .tbh-featured:hover .tbh-featured-media img,
.trio-blog-home .tbh-card:hover .tbh-card-media img { transform: scale(1.05); }

.trio-blog-home .tbh-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 40px 42px;
}

.trio-blog-home .tbh-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tbh-peach-soft);
    color: var(--tbh-orange);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
}

.trio-blog-home .tbh-featured-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.trio-blog-home .tbh-featured-title a,
.trio-blog-home .tbh-card-title a {
    color: var(--tbh-ink);
    text-decoration: none;
    transition: color 0.22s var(--tbh-ease);
}

.trio-blog-home .tbh-featured-title a:hover,
.trio-blog-home .tbh-card-title a:hover { color: var(--tbh-orange); }

.trio-blog-home .tbh-featured-excerpt {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.72;
    font-weight: 450;
    color: var(--tbh-body);
}

/* --- Lien « Lire » --- */

.trio-blog-home .tbh-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--tbh-orange);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.22s var(--tbh-ease);
}

.trio-blog-home .tbh-read:hover { color: var(--tbh-orange-dark); }
.trio-blog-home .tbh-read .tbh-icon { transition: transform 0.25s var(--tbh-ease); }
.trio-blog-home .tbh-read:hover .tbh-icon { transform: translateX(4px); }
.trio-blog-home .tbh-read-sm { font-size: 13.5px; margin-top: auto; }

/* --- Rangée de cartes --- */

.trio-blog-home .tbh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.trio-blog-home .tbh-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--tbh-line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--tbh-white);
    transition: transform 0.35s var(--tbh-ease), border-color 0.3s var(--tbh-ease), box-shadow 0.3s var(--tbh-ease);
}

.trio-blog-home .tbh-card:hover {
    transform: translateY(-4px);
    border-color: var(--tbh-peach);
    box-shadow: 0 16px 38px rgba(19, 18, 18, 0.07);
}

.trio-blog-home .tbh-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tbh-peach-soft);
}

.trio-blog-home .tbh-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    padding: 24px 24px 26px;
}

.trio-blog-home .tbh-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.trio-blog-home .tbh-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 450;
    color: var(--tbh-body);
}

/* --- Adaptatif --- */

@media (max-width: 1000px) {
    .trio-blog-home .tbh-featured { grid-template-columns: 1fr; }
    .trio-blog-home .tbh-featured-media { aspect-ratio: 16 / 9; }
    .trio-blog-home .tbh-featured-body { padding: 30px 26px 34px; }
    .trio-blog-home .tbh-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 860px) {
    .trio-blog-home .tbh-head { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 30px; }
    .trio-blog-home .tbh-title { font-size: 28px; }
    .trio-blog-home .tbh-featured-title { font-size: 22px; }
}

@media (max-width: 620px) {
    .trio-blog-home .tbh-grid { grid-template-columns: 1fr; }
    .trio-blog-home .tbh-title { font-size: 25px; }
    .trio-blog-home .tbh-subtitle { font-size: 15px; }
    .trio-blog-home .tbh-featured-body { padding: 26px 20px 30px; }
    .trio-blog-home .tbh-featured-excerpt { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .trio-blog-home .tbh-card,
    .trio-blog-home .tbh-featured,
    .trio-blog-home .tbh-icon,
    .trio-blog-home .tbh-featured-media img,
    .trio-blog-home .tbh-card-media img { transition: none; }
    .trio-blog-home .tbh-card:hover { transform: none; }
    .trio-blog-home .tbh-featured:hover .tbh-featured-media img,
    .trio-blog-home .tbh-card:hover .tbh-card-media img { transform: none; }
}
