/*
Theme Name: Coin Bain
Theme URI: https://mon-coin-bain.fr
Description: Theme maison pour Mon Coin Bain - conseils et inspirations salle de bain
Version: 1.0
Author: La Redaction Mon Coin Bain
Text Domain: coin-bain
*/

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

/* ========== VARIABLES ========== */
:root {
    --aqua:       #0E7C86;
    --aqua-light: #E6F5F6;
    --aqua-dark:  #095E66;
    --text:       #2C3E40;
    --text-light: #5A7275;
    --bg:         #FFFFFF;
    --bg-soft:    #F7FBFB;
    --border:     #DFF0F1;
    --font:       'Manrope', sans-serif;
    --radius:     8px;
    --max-w:      1100px;
}

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

/* ========== CONTAINER ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ========== HEADER ========== */
.site-header {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.9rem 0;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.site-logo span { color: var(--aqua); }
.site-logo:hover { text-decoration: none; color: var(--text); }

.main-nav ul { display: flex; gap: 1.8rem; }
.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--aqua); text-decoration: none; }

/* Menu mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
    background: var(--aqua-light);
    padding: 4rem 0 3.5rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    max-width: 640px;
    margin: 0 auto 1rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 2rem;
}
.btn {
    display: inline-block;
    background: var(--aqua);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.btn:hover { background: var(--aqua-dark); color: #fff; text-decoration: none; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--aqua);
    color: var(--aqua);
}
.btn-outline:hover { background: var(--aqua); color: #fff; }

/* ========== SECTION TITRES ========== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ========== GRILLE D'ARTICLES ========== */
.articles-section { padding: 3.5rem 0; }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(14,124,134,0.1); transform: translateY(-2px); }
.article-card .thumb {
    aspect-ratio: 16/9;
    background: var(--aqua-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    font-size: 2rem;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-body { padding: 1.2rem; }
.article-card .card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    display: block;
}
.article-card h2, .article-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.article-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aqua);
}

/* ========== BANDEAU CTA RESOBAIN ========== */
.cta-resobain {
    background: var(--aqua);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}
.cta-resobain h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}
.cta-resobain p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-resobain .btn {
    background: #fff;
    color: var(--aqua);
}
.cta-resobain .btn:hover { background: var(--aqua-light); }

/* ========== ENCADRE CTA FIN D'ARTICLE ========== */
.article-cta-box {
    background: var(--aqua-light);
    border-left: 4px solid var(--aqua);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2.5rem 0;
}
.article-cta-box p { margin: 0 0 1rem; font-size: 0.95rem; }

/* ========== CONTENU ARTICLE ========== */
.post-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); }
.post-header .entry-cat {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}
.post-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
.post-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}
.entry-content {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}
.entry-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.entry-content h3 { font-size: 1.1rem; font-weight: 600; 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; }

/* ========== FOOTER ========== */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0;
    font-size: 0.88rem;
}
.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: rgba(255,255,255,0.6); }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy { color: rgba(255,255,255,0.4); }

/* ========== PAGE BASIQUE ========== */
.page-content { padding: 3rem 0; max-width: 780px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.page-content h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 2px solid var(--border); padding: 1rem 1.25rem; }
    .main-nav.open ul { flex-direction: column; gap: 0.75rem; }
    .nav-toggle { display: block; }
    .site-header { position: relative; }
    .articles-grid { grid-template-columns: 1fr; }
}
