/*
Theme Name: SandInes
Description: Thème sur mesure pour le blog de voyage Sandrine & Inès, sur le modèle du design original Wix.
Author: IMS
Version: 1.0
Text Domain: sandines
*/

:root {
    --color-text: #2b2b2b;
    --color-muted: #767676;
    --color-bg: #ffffff;
    --color-accent: #1a1a1a;
    --color-line: #eaeaea;
    --font-main: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --max-width: 700px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    text-align: center;
    padding: 60px 20px 30px;
    border-bottom: 1px solid var(--color-line);
}

.site-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 34px;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.site-tagline {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: var(--color-muted);
    font-size: 15px;
    margin: 0;
}

.header-banner {
    position: relative;
    height: 260px;
    margin-top: 30px;
    border-top: 4px solid #e6b8d8;
    border-bottom: 4px solid #e6b8d8;
    overflow: hidden;
}

.header-banner .banner-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation: sandines-scroll 30s linear infinite;
}

.header-banner .banner-slide {
    flex: 0 0 auto;
    height: 100%;
    width: 360px;
    margin-right: 4px;
}

.header-banner .banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes sandines-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.site-nav {
    margin-top: 20px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 0;
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feed */
.post-list {
    padding: 40px 0;
}

.post-card {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-line);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card .post-thumb {
    flex: 0 0 220px;
    width: 220px;
    height: 220px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0;
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card .post-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
}

.post-card .post-excerpt {
    color: var(--color-text);
    font-size: 14px;
    margin: 0 0 14px;
}

.post-card .post-meta {
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-muted);
}

.post-meta .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.post-meta .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single post */
.single-post-header {
    padding: 50px 0 20px;
}

.single-post-header .post-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 16px;
}

.single-post-content {
    padding: 20px 0 50px;
    font-size: 16px;
}

.single-post-content img {
    border-radius: 4px;
    margin: 24px 0;
}

.single-post-content p {
    margin: 0 0 20px;
}

/* Newsletter */
.newsletter-block {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--color-line);
}

.newsletter-block h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

.newsletter-block p {
    color: var(--color-muted);
    font-size: 14px;
    margin: 0 0 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    font-size: 14px;
    min-width: 240px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
    color: var(--color-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 0 50px;
    font-size: 14px;
}

@media (max-width: 560px) {
    .post-card {
        flex-direction: column;
    }
    .post-card .post-thumb {
        width: 100%;
        height: 200px;
    }
}
