/*
Theme Name: Brit'Epur
Description: Thème custom pour britepur.fr — Installateur assainissement Bretagne
Version: 1.0.0
Author: Breizho Europe
*/

/* ═══════════ RESET & BASE ═══════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: #333; background: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ═══════════ TOPBAR ═══════════ */
.topbar { background: #0d3b6e; padding: 8px 0; font-size: 0.82em; }
.topbar-inner { max-width: 1260px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.topbar a { color: #fff; }
.topbar a:hover { color: #7ec8e3; }
.topbar-right { display: flex; gap: 20px; }

/* ═══════════ HEADER ═══════════ */
.site-header { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1260px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 48px; width: auto; }
.logo-text { font-family: 'Outfit', sans-serif; font-size: 1.35em; font-weight: 700; color: #0d3b6e; }
.logo-text span { color: #48c5d4; font-weight: 400; }

/* NAV */
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav li a { display: block; color: #4a5e6d; font-size: 0.92em; font-weight: 500; padding: 10px 18px; border-radius: 8px; transition: all 0.25s; position: relative; }
.main-nav li a::after { content: ''; position: absolute; bottom: 6px; left: 18px; right: 18px; height: 2px; background: #1a6fb5; transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.main-nav li a:hover { color: #fff; background: linear-gradient(135deg, #0d3b6e, #1a6fb5); }
.main-nav li a:hover::after { display: none; }
.main-nav li.current-menu-item a,
.main-nav li.current_page_item a { color: #fff; background: linear-gradient(135deg, #0d3b6e, #1a6fb5); }
/* CTA button */
.main-nav li:last-child a { background: linear-gradient(135deg, #0d3b6e, #1a6fb5) !important; color: #fff !important; padding: 10px 22px; font-weight: 600; box-shadow: 0 2px 8px rgba(13,59,110,0.2); }
.main-nav li:last-child a:hover { background: linear-gradient(135deg, #092c54, #0d3b6e) !important; box-shadow: 0 6px 20px rgba(13,59,110,0.3); transform: translateY(-1px); }
.main-nav li:last-child a::after { display: none; }

/* HAMBURGER */
.menu-toggle { display: none; visibility: hidden; width: 0; height: 0; overflow: hidden; padding: 0; margin: 0; border: none; background: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #0d3b6e; margin: 5px 0; transition: 0.3s; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #0d3b6e 0%, #1a6fb5 50%, #48c5d4 100%); z-index: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,59,110,0.88) 0%, rgba(13,59,110,0.5) 50%, transparent 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; max-width: 620px; padding: 60px 48px; color: #fff; }
.hero-kicker { display: inline-block; font-size: 0.82em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7ec8e3; margin-bottom: 16px; }
.hero-kicker::before { content: '——  '; color: #48c5d4; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 2.6em; font-weight: 800; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero p { font-size: 1.08em; line-height: 1.7; color: #c3ddf0; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95em; transition: all 0.3s; cursor: pointer; }
.btn-white { background: #fff; color: #0d3b6e; }
.btn-white:hover { background: #e8f4fd; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 64px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: 'Outfit', sans-serif; font-size: 2.1em; font-weight: 700; color: #0d3b6e; margin-bottom: 12px; }
.section-header p { color: #6b7a8d; font-size: 1.08em; }
.section-header .bar { display: block; width: 48px; height: 3px; background: linear-gradient(90deg, #0d3b6e, #48c5d4); margin: 18px auto 0; border-radius: 2px; }

/* ═══════════ CTA BOX ═══════════ */
.cta-box { background: linear-gradient(135deg, #0d3b6e 0%, #1a6fb5 40%, #48c5d4 100%); border-radius: 16px; padding: 48px; text-align: center; color: #fff; }
.cta-box h2 { font-family: 'Outfit', sans-serif; font-size: 2em; margin-bottom: 14px; color: #fff; }
.cta-box p { font-size: 1.05em; color: #c3ddf0; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: linear-gradient(135deg, #0d3b6e, #1a6fb5); color: #fff; padding: 40px 0 20px; }
.footer-inner { max-width: 1260px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h5 { color: #fff; font-size: 1.2em; margin-bottom: 12px; }
.site-footer h6 { color: rgba(255,255,255,0.6); font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,0.15); }
.site-footer p { color: rgba(255,255,255,0.8); line-height: 1.75; font-size: 0.9em; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: rgba(255,255,255,0.8); transition: all 0.2s; }
.site-footer li a:hover { color: #fff; padding-left: 6px; }
.footer-bottom { color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.15); margin-top: 24px; padding-top: 16px; font-size: 0.85em; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
    .menu-toggle { display: block !important; visibility: visible !important; width: auto !important; height: auto !important; overflow: visible !important; padding: 8px !important; }
    .main-nav { display: none; }
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 4px; }
    .hero h1 { font-size: 1.8em; }
    .hero-content { padding: 40px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
}
