/* ============================================================
   WattWise — Styles partagés : navbar + footer
   À charger sur toutes les pages :
   <link rel="stylesheet" href="/includes/layout.css">
   ============================================================ */
:root {
    --navy:   #0d1b2e;
    --navy2:  #122340;
    --orange: #E8971F;
    --orange2:#c97a10;
    --white:  #ffffff;
    --light:  #f4f6f9;
    --text:   #1a2b3c;
    --muted:  #6b7e93;
    --border: rgba(232,151,31,0.18);
}

/* ── HEADER ── */
.ww-header { background: var(--navy); padding: 0 5%; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(232,151,31,0.15); }
.ww-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; height: 70px; position: relative; }
.ww-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.ww-logo img { height: 38px; width: auto; }
.ww-logo-text { font-family: sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }
.ww-logo-text span { color: var(--orange); }
.ww-nav-links { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.ww-nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.ww-nav-links a:hover, .ww-nav-links a.active { color: var(--orange); }
.ww-nav-cta { display: flex; gap: 0.8rem; align-items: center; }
.ww-btn-ghost { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.ww-btn-ghost:hover { color: var(--white); }
.ww-btn-primary { background: var(--orange); color: var(--white); padding: 0.65rem 1.6rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.25s; white-space: nowrap; }
.ww-btn-primary:hover { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,151,31,0.35); }
.ww-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1100; }
.ww-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.ww-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ww-menu-toggle.open span:nth-child(2) { opacity: 0; }
.ww-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── FOOTER ── */
.ww-footer { background: #080f1c; color: white; padding: 4rem 5% 2rem; font-family: 'DM Sans', sans-serif; }
.ww-footer-inner { max-width: 1400px; margin: 0 auto; }
.ww-footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ww-footer-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-bottom: 1rem; }
.ww-footer-brand img { height: 36px; }
.ww-footer-brand-name { font-size: 1.3rem; font-weight: 700; color: var(--white); font-family: sans-serif; }
.ww-footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 280px; }
.ww-footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.2rem; }
.ww-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ww-footer-col li { margin-bottom: 0.7rem; }
.ww-footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.ww-footer-col a:hover { color: var(--orange); }
.ww-footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ww-footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.3); margin: 0; }
.ww-linkedin-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #0077b5; color: white; padding: 0.55rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: all 0.25s; }
.ww-linkedin-btn:hover { background: #005885; transform: translateY(-1px); }
.ww-linkedin-btn svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .ww-nav-links { display: none; }
    .ww-menu-toggle { display: flex; }
    .ww-nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 70px; left: -5.6%; width: 111.2%;
        background: var(--navy); padding: 1.5rem 5%; gap: 1.2rem; border-bottom: 1px solid rgba(232,151,31,0.15);
    }
}
@media (max-width: 600px) {
    .ww-nav-cta { display: none; }
}
