/*
Theme Name: Las Terrenas Blog
Theme URI: https://las-terrenas.fr
Author: Jeremy
Author URI: https://dccrealty.com
Description: Thème blog moderne et épuré pour Las Terrenas.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: las-terrenas-blog
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    background: #f3f4f7;
    color: #1f2933;
}

/* Liens */

a {
    color: #0f766e;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: #115e59;
    text-decoration: underline;
    text-decoration-color: rgba(17, 94, 89, 0.3);
}

/* Container global */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* HEADER */

.site-header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #22c55e 100%);
    color: #ecfdf5;
    padding: 1.2rem 0 0.7rem;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.25);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
}

.site-title a {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ecfdf5;
}

.site-description {
    font-size: 0.9rem;
    color: #d1fae5;
}

/* Menu */

.site-navigation {
    font-size: 0.95rem;
}

.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.site-navigation a {
    color: #ecfdf5;
    font-weight: 500;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
    border-bottom-color: rgba(240, 253, 250, 0.85);
}

/* HERO (page d'accueil) */

.hero {
    padding: 1.4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: center;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    max-width: 480px;
    color: #d1fae5;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.hero-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    color: #ecfdf5;
}

.hero-card {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.3);
    font-size: 0.9rem;
}

/* MAIN LAYOUT */

.site-main-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
    gap: 2.2rem;
    align-items: flex-start;
    margin-top: 1.8rem;
}

@media (max-width: 960px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .site-main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* MAIN CONTENT */

.site-main {
    background: transparent;
}

/* Grille d’articles */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.post-card-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.post-card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: #4b5563;
}

.post-card-footer {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.read-more {
    font-weight: 500;
}

/* Single article / pages */

.post,
.page {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.post-title {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.post-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 1.1rem;
}

.post-thumbnail img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 1.1rem;
}

.entry-content {
    font-size: 1rem;
    color: #374151;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.7rem;
    margin-bottom: 0.6rem;
    font-family: "Playfair Display", serif;
}

.entry-content p {
    margin-bottom: 1rem;
}

/* Sidebar */

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget {
    background: #ffffff;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: #111827;
}

/* Pagination */

.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.8rem;
    font-size: 0.9rem;
}

.pagination a,
.pagination span {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.pagination .current {
    background: #0f766e;
    color: #ecfdf5;
    border-color: #0f766e;
}

/* Footer */

.site-footer {
    margin-top: 2.5rem;
    padding: 1.7rem 0 2.2rem;
    font-size: 0.85rem;
    color: #6b7280;
    background: transparent;
    text-align: center;
}

/* Sections home "magazine" */

.home-section {
    margin-bottom: 2.2rem;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.9rem;
}

.home-section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin: 0;
    color: #0f172a;
}

.home-section-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0f766e;
}

/* Bloc à la une */

.home-featured-article {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
    gap: 1.6rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.7rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.home-featured-media img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 14px;
}

.home-featured-content .post-title a {
    font-size: 1.7rem;
}

.home-featured-content .entry-excerpt {
    margin-top: 0.6rem;
    font-size: 0.98rem;
    color: #4b5563;
}

@media (max-width: 960px) {
    .home-featured-article {
        grid-template-columns: 1fr;
        padding: 1.25rem 1.3rem;
    }
}

/* Home pleine largeur (sans sidebar) */
.home .site-main-wrapper,
.front-page .site-main-wrapper {
    grid-template-columns: minmax(0, 1fr);
}

.home .site-sidebar,
.front-page .site-sidebar {
    display: none;
}
/* Bloc "Derniers articles" en mode magazine */

.home-latest {
    margin-top: 1.8rem;
}

.home-latest-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Article principal (gros) */
.home-latest-main {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 3fr);
    gap: 1.6rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.home-latest-main-media img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
}

.home-latest-main-content .post-title a {
    font-size: 1.8rem;
}

.home-latest-main-content .entry-excerpt {
    margin-top: 0.7rem;
    font-size: 0.98rem;
    color: #4b5563;
}

/* Les 2 articles en dessous (col-6 / col-6) */

.home-latest-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Responsif */

@media (max-width: 960px) {
    .home-latest-main {
        grid-template-columns: 1fr;
        padding: 1.2rem 1.3rem;
    }

    .home-latest-main-media img {
        max-height: 260px;
    }

    .home-latest-secondary {
        grid-template-columns: 1fr;
    }
}