/*
Theme Name: Plomberie Sanitaires
Theme URI: https://plomberie-et-sanitaires.fr
Description: Theme maison pour Plomberie et Sanitaires - guides de pannes et entretien
Version: 1.1
Author: La Redaction Plomberie
Text Domain: plomberie-san
*/

/* ===== POLICES ===== */
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow/barlow-condensed-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/barlow/barlow-condensed-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('fonts/barlow/barlow-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow';
    src: url('fonts/barlow/barlow-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
    --bg:         #F4F7F5;
    --bg-white:   #FFFFFF;
    --text:       #1F3A33;
    --text-mid:   #3D5C51;
    --text-muted: #6B897E;
    --green:      #3F7A63;
    --green-dk:   #2E5C49;
    --forest:     #1F3A33;
    --border:     #CFDDD5;
    --font-title: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:  'Barlow', system-ui, sans-serif;
    --radius:     4px;
    --max-w:      1168px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); text-decoration: underline; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0;
    width: calc(100% - 48px);
    box-sizing: border-box;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--forest);
    padding: 0.85rem 0;
    position: static;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}
.site-logo span { color: #A8D4C4; }
.site-logo:hover { text-decoration: none; color: #fff; }

.main-nav ul { display: flex; gap: 1.6rem; }
.main-nav a {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}
.main-nav a:hover { color: #fff; text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.3rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ===== HERO DIAGNOSTIC ===== */
.hero {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--border);
    padding: 64px 0;
    text-align: left;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}
.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(40px, 6.4vw, 78px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--forest);
    line-height: .98;
    margin: 0;
    max-width: 860px;
    background: var(--bg-white);
    padding: 6px 0;
}
.hero p {
    font-size: 20px;
    line-height: 1.5;
    max-width: 620px;
    color: var(--text-mid);
    margin: 0;
    text-align: left;
    background: var(--bg-white);
    margin-left: 0;
}

/* Boutons symptomes */
.symptomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    width: 100%;
    margin: 8px 0 0;
    justify-content: stretch;
}
.symptome-btn {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 26px 22px;
    min-height: 84px;
    background: var(--bg-white);
    border: 2px solid var(--forest);
    border-radius: 0;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--forest);
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    transition: background .15s, color .15s;
}
.symptome-btn:hover { background: var(--forest); color: #fff; text-decoration: none; }
.symptome-btn .symptome-titre { display: block; font-size: 24px; }
.symptome-btn .symptome-sous-titre {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-mid);
    opacity: .85;
    line-height: 1.3;
}
.symptome-btn:hover .symptome-sous-titre { color: rgba(255,255,255,.75); opacity: 1; }

/* ===== GUIDES ===== */
.guides-section { background: transparent; padding: 56px 0 0; }
.section-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--forest);
    margin-bottom: 0.4rem;
    border-bottom: 3px solid var(--forest);
    padding-bottom: 12px;
    margin-bottom: 32px;
}
.section-sub { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; }
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.guide-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover { box-shadow: 0 4px 16px rgba(31,58,51,0.1); transform: translateY(-2px); }
.guide-card .thumb {
    aspect-ratio: 16/9;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 2rem;
}
.guide-card .thumb img { width: 100%; height: 200px; object-fit: cover; }
.guide-card .body { padding: 1.1rem; }
.guide-card .cat {
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 0.35rem;
    display: block;
}
.guide-card h3 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--forest);
    margin-bottom: 0.4rem;
    line-height: 1.1;
}
.guide-card p { font-size: 0.87rem; color: var(--text-muted); }
.guide-card .lire { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--green); }
.guides-grid a { color: var(--forest); text-decoration: none; }
.guides-grid a:hover { color: var(--green); }

/* ===== BANDEAU CTA ===== */
.cta-resobain {
    background: transparent;
    padding: 64px 0;
}
.cta-resobain .container {
    background: var(--forest);
    color: #fff;
    padding: 48px;
    max-width: var(--max-w);
    width: calc(100% - 48px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    box-sizing: border-box;
}
.cta-resobain h2 {
    flex: 1 1 100%;
    font-family: var(--font-title);
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    line-height: 1.02;
    text-align: left;
}
.cta-resobain p {
    flex: 1 1 420px;
    color: #D5E3DB;
    margin: 0;
    text-align: left;
    max-width: 560px;
}
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.btn-white { background: #E5F0EA; color: var(--forest); border-radius: 0; padding: 16px 28px; font-weight: 700; }
.btn-white:hover { background: #fff; color: var(--forest); text-decoration: none; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dk); color: #fff; text-decoration: none; }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* ===== ENCADRE ARTICLE ===== */
.article-cta-box {
    background: #EEF6F2;
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2.5rem 0;
}

/* ===== CONTENU ===== */
.post-header { background: var(--bg-white); padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.post-header .cat { font-family: var(--font-title); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 0.5rem; display: block; }
.post-header h1 { font-family: var(--font-title); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--forest); line-height: 1.2; }
.post-meta { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }
.entry-content { max-width: 720px; margin: 2rem auto; padding: 0 1.25rem; }
.entry-content h2 { font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin: 2rem 0 0.75rem; color: var(--forest); }
.entry-content h3 { font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin: 1.5rem 0 0.5rem; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content li { margin-bottom: 0.4rem; list-style: disc; }

/* ===== PAGE ===== */
.page-content { padding: 3rem 0; max-width: 780px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.page-content h1 { font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--forest); }

/* ===== FOOTER ===== */
.site-footer {
    background: transparent;
    border-top: 2px solid var(--border);
    color: var(--forest);
    padding: 36px 0;
    font-size: 0.88rem;
}
.site-footer .container { padding: 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--forest); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--green); }
.footer-copy { color: #5E7268; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--forest); padding: 1rem 1.25rem; z-index: 200; }
    .main-nav.open ul { flex-direction: column; gap: 0.75rem; }
    .nav-toggle { display: block; }
    .site-header { position: relative; }
    .guides-grid { grid-template-columns: 1fr; }
    .symptomes { gap: 10px; }
}
@media (max-width: 640px) {
    .cta-resobain .container { padding: 32px 24px; }
    .hero { padding: 40px 0; }
    .container { width: calc(100% - 32px); }
}
