/*
Theme Name: La Maison du Chat
Theme URI:
Author: Code & Data
Description: Thème sur-mesure pour location saisonnière villa dans le Gard.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lamaisonduchat
*/

/* ── Variables ──────────────────────────────────────────── */
:root {
    --bg:           #ffffff;
    --text:         #000000;
    --text-muted:   #000000;
    --accent:       #b8895a;
    --accent-light: #d4ba98;
    --border:       #e6ddd3;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --max:          1100px;
    --pad:          80px 24px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
}

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255 255 255 / 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
}
.site-header .inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.site-nav a {
    margin-left: 32px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

/* ── Lang toggle ────────────────────────────────────────── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 28px;
    border-left: 1px solid var(--border);
    padding-left: 28px;
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0;
    transition: color 0.2s;
}
.lang-btn.active { color: var(--accent); font-weight: 700; }
.lang-btn:hover  { color: var(--accent); }
.lang-toggle .sep { color: var(--border); }

/* ── Image d'illustration ───────────────────────────────── */
.hero-banner-wrap {
    width: 100%;
    overflow: hidden;
    margin: 28px 0;
}
.hero-banner {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 110px 24px 90px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    max-width: 580px;
    margin: 0 auto 28px;
    font-weight: 400;
}
.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.85;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ── Generic Section ────────────────────────────────────── */
.section { padding: var(--pad); }
.section .inner { max-width: var(--max); margin: 0 auto; }
.section-alt { background: var(--accent-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}
.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin: 14px auto 0;
}

/* ── Description ────────────────────────────────────────── */
.description-body {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 52px;
}
.feature {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ── Villa description (contenu Gutenberg) ──────────────── */
.villa-description {
    max-width: 760px;
    margin: 0 auto 52px;
}
.villa-description-content p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.2em;
}
.villa-description-content h2,
.villa-description-content h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text);
    margin: 1.6em 0 0.5em;
}
.villa-description-content h2 { font-size: 1.4rem; }
.villa-description-content h3 { font-size: 1.15rem; }
.villa-description-content ul,
.villa-description-content ol {
    color: var(--text-muted);
    padding-left: 1.4em;
    margin-bottom: 1.2em;
    line-height: 1.8;
}
.villa-description-content strong { color: var(--text); font-weight: 400; }
.villa-description-content em     { font-style: italic; }

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 10px;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: 4px; }
.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s;
}
.gallery-grid a:hover img { transform: scale(1.04); opacity: 0.9; }
.gallery-empty {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 48px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    grid-column: 1 / -1;
}
.gallery-empty small { font-size: 0.82rem; opacity: 0.75; }
.gallery-empty code  { font-size: 0.82rem; background: var(--border); padding: 1px 5px; border-radius: 3px; }

/* Show-more */
.gallery-collapsed a:nth-child(n+10) { display: none; }

.gallery-toggle-wrap {
    text-align: center;
    margin-top: 28px;
}
.gallery-toggle-btn {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 28px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.gallery-toggle-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* ── Map ────────────────────────────────────────────────── */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
}
.map-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}
.map-caption strong { color: var(--text); font-weight: 400; }

/* ── Contact ────────────────────────────────────────────── */
.contact-photo-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}
.contact-photo-wrap img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 4px 18px rgba(0 0 0 / 0.12);
}
.contact-photo-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-style: italic;
    opacity: 0.55;
    line-height: 1.6;
    padding: 24px;
}
.contact-photo-caption {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--accent);
    line-height: 1.65;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}
.contact-intro p {
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.85;
}
.form-group { margin-bottom: 20px; }
label {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.btn {
    display: inline-block;
    padding: 13px 36px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: #a07040; }
.form-success {
    background: #f1f7ee;
    border: 1px solid #c5dab8;
    color: #4a7a38;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.form-error {
    background: #fdf1f1;
    border: 1px solid #e8c0c0;
    color: #c03030;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: rgba(255 255 255 / 0.45);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
    .site-nav { display: none; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .contact-photo-row { grid-template-columns: 1fr; gap: 24px; }
    .contact-photo-wrap img { max-width: 260px; margin: 0 auto; }
    .contact-photo-placeholder { max-width: 260px; margin: 0 auto; }
    .contact-photo-caption { text-align: center; }
    :root { --pad: 60px 20px; }
    .hero { padding: 70px 20px 60px; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid img { height: 160px; }
}
