/* ═══════════════════════════════════════════════════════
   ALB'ELEC — Shared Styles for Sub-Pages
   ═══════════════════════════════════════════════════════ */

:root {
    --red: #F07929;
    --orange: #F07929;
    --yellow: #FFB366;
    --gold: #FF8C42;
    --white: #1B1B2F;
    --off-white: #2D2926;
    --gray-light: #5C5650;
    --gray: #8A8480;
    --bg-dark: #F5F0EB;
    --bg-card: #FFFFFF;
    --bg-elevated: #EDE8E1;
    --border: rgba(0,0,0,0.08);
    --brand-gradient: linear-gradient(160deg, #D46820 0%, #F07929 40%, #FFB366 100%);
    --brand-gradient-h: linear-gradient(90deg, #D46820 0%, #F07929 40%, #FFB366 100%);
    --glow-red: rgba(240, 121, 41, 0.4);
    --glow-orange: rgba(240, 121, 41, 0.3);
    --glow-yellow: rgba(255, 179, 102, 0.25);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(240, 121, 41, 0.3); color: #fff; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--off-white);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
    padding: 0.8rem 3rem;
    background: rgba(245,240,235,0.95);
    backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; transition: transform 0.4s; }
.logo-icon img { width:100%; height:100%; object-fit:contain; }
.logo:hover .logo-icon { transform: rotate(10deg) scale(1.08); }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 1.3rem; font-weight: 800; letter-spacing: 2px; background: var(--brand-gradient-h); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-sub { font-size: 0.5rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-menu a { color: #6B6560; text-decoration: none; font-size: 0.75rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; position: relative; transition: color 0.3s; }
.nav-menu a:hover { color: #F07929; }
.nav-menu a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--brand-gradient-h); border-radius: 1px; transition: width 0.4s cubic-bezier(.4,0,.2,1); }
.nav-menu a:hover::after { width: 100%; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 0.6rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    z-index: 6000;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { padding: 0; }
.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.72rem !important;
    font-weight: 500;
    letter-spacing: 0.5px !important;
    color: var(--off-white) !important;
    text-transform: none !important;
    white-space: nowrap;
    transition: all 0.2s;
}
.dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover {
    background: rgba(240,121,41,0.06);
    color: var(--orange) !important;
    padding-left: 1.5rem;
}

.nav-cta { padding: 0.6rem 1.4rem; background: var(--brand-gradient); color: var(--bg-dark); font-weight: 700; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border-radius: 6px; border: none; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow-orange); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 24px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--off-white); border-radius: 2px; transition: all 0.35s; }
.menu-toggle span:nth-child(1){top:0} .menu-toggle span:nth-child(2){top:50%;transform:translateY(-50%)} .menu-toggle span:nth-child(3){bottom:0}
.menu-toggle.active span:nth-child(1){top:50%;transform:translateY(-50%) rotate(45deg)} .menu-toggle.active span:nth-child(2){opacity:0} .menu-toggle.active span:nth-child(3){bottom:50%;transform:translateY(50%) rotate(-45deg)}
.mobile-overlay { position:fixed; inset:0; background:rgba(245,240,235,0.98); backdrop-filter:blur(30px); z-index:4999; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:all .4s; }
.mobile-overlay.open{opacity:1;visibility:visible}
.mobile-nav{text-align:center;display:flex;flex-direction:column;gap:2rem}
.mobile-nav a{color:var(--off-white);text-decoration:none;font-size:1.6rem;font-weight:700;letter-spacing:3px;text-transform:uppercase;opacity:0;transform:translateY(20px);transition:all .4s ease}
.mobile-overlay.open .mobile-nav a{opacity:1;transform:translateY(0)}

/* PAGE HERO BANNER */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 10rem 3rem 5rem;
    color: #f0ebe3;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 20% 40%, rgba(240,121,41,0.12) 0%, transparent 70%);
}
.page-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; z-index: 2;
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #f0ebe3;
}
.page-hero h1 .accent {
    background: var(--brand-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #9a958c;
    max-width: 600px;
    line-height: 1.7;
}

/* BREADCRUMBS */
.breadcrumbs {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: #8a8480;
}
.breadcrumbs a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs span { color: #6a655e; }

/* CONTENT SECTIONS */
.page-section {
    padding: 5rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.page-section.wide {
    max-width: 1200px;
}
.page-section.bg-white {
    background: var(--bg-card);
    max-width: 100%;
}
.page-section.bg-white .section-inner {
    max-width: 900px;
    margin: 0 auto;
}
.page-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--white);
    line-height: 1.2;
}
.page-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
    color: var(--off-white);
}
.page-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 1rem;
}
.page-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.page-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.7;
}
.page-section ul li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--orange);
}

/* CTA BOX */
.cta-box {
    background: var(--brand-gradient);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: var(--bg-dark);
}
.cta-box h2 {
    color: var(--bg-dark);
    margin-bottom: 0.8rem;
}
.cta-box p {
    color: rgba(45,41,38,0.7);
    margin-bottom: 1.5rem;
}
.cta-box .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    background: var(--bg-dark);
    color: var(--orange);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.cta-box .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* FAQ */
.faq-list { max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:0.8rem; }
.faq-item { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; overflow:hidden; transition:all 0.4s; }
.faq-item:hover { border-color:rgba(240,121,41,0.15); }
.faq-q { display:flex; align-items:center; justify-content:space-between; padding:1.3rem 1.8rem; cursor:pointer; gap:1rem; font-weight:600; font-size:0.95rem; color:var(--white); transition:color 0.3s; }
.faq-q:hover { color:var(--orange); }
.faq-chevron { width:20px; height:20px; flex-shrink:0; transition:transform 0.4s; stroke:var(--gray); stroke-width:2.5; fill:none; }
.faq-item.open .faq-chevron { transform:rotate(180deg); stroke:var(--orange); }
.faq-a { max-height:0; overflow:hidden; transition:max-height 0.5s; }
.faq-item.open .faq-a { max-height:300px; }
.faq-a-inner { padding:0 1.8rem 1.5rem; font-size:0.9rem; color:var(--gray-light); line-height:1.8; }

/* SERVICES GRID (for cross-links) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
    text-decoration: none;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240,121,41,0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.service-card .sc-icon {
    font-size: 2rem;
}
.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.service-card p {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin: 0;
    line-height: 1.6;
}

/* BLOG CARDS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.blog-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.blog-card-body {
    padding: 1.5rem;
}
.blog-card-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(240,121,41,0.1);
    color: var(--orange);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}
.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.blog-card p {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin: 0;
    line-height: 1.6;
}
.blog-card-date {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.8rem;
}

/* CITY LINKS */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}
.city-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--off-white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.city-link:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateX(4px);
}
.city-link::before {
    content: '📍';
    font-size: 0.8rem;
}

/* FOOTER */
footer {
    background: #1a1a2e;
    color: #8a8480;
    padding: 4rem 3rem 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.footer-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--brand-gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.footer-nav a {
    color: #8a8480;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-services a {
    color: #6a655e;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s;
}
.footer-services a:hover { color: var(--orange); }
.footer-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.footer-cities a {
    color: #5a5550;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}
.footer-cities a:hover { color: var(--orange); }
.footer-copy {
    font-size: 0.75rem;
    color: #5a5550;
    margin-bottom: 0.8rem;
}
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer-legal a {
    color: #5a5550;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}
.footer-legal a:hover { color: var(--orange); }

/* FAB */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4000;
}
.fab {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.fab:hover { transform: scale(1.1); }
.fab-phone { background: var(--brand-gradient); }
.fab-phone svg { width: 22px; height: 22px; stroke: var(--bg-dark); fill: none; stroke-width: 2; }
.fab-whatsapp { background: #25D366; }
.fab-whatsapp svg { width: 24px; height: 24px; fill: #fff; }
.fab-devis { background: #fff; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.fab-devis:hover { background: var(--orange); border-color: var(--orange); box-shadow: 0 6px 30px rgba(240,121,41,0.4); }
.fab-devis:hover svg { stroke: white; }
.fab-devis svg { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; transition: stroke 0.3s; }

/* ARTICLE CONTENT */
.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-light);
}
.article-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin: 2.5rem 0 1rem;
}
.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--off-white);
    margin: 2rem 0 0.8rem;
}
.article-content p {
    margin-bottom: 1.2rem;
}
.article-content strong {
    color: var(--off-white);
}
.article-content a {
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px solid rgba(240,121,41,0.3);
    transition: border-color 0.3s;
}
.article-content a:hover {
    border-color: var(--orange);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--gray);
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* TABLE */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}
.price-table th {
    background: var(--brand-gradient);
    color: var(--bg-dark);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.price-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--gray-light);
}
.price-table tr:nth-child(even) td {
    background: var(--bg-elevated);
}
.price-table tr:hover td {
    background: rgba(240,121,41,0.04);
}

/* TABLET */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(3, 1fr); }
    .page-section { padding: 4rem 2rem; }
    .page-hero { padding: 9rem 2rem 4rem; }
}

/* MOBILE */
@media (max-width: 768px) {
    /* Nav */
    nav { padding: 0.8rem 1.2rem; }
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav a { font-size: 1.4rem; }

    /* Hero */
    .page-hero { padding: 7rem 1.2rem 2.5rem; }
    .page-hero h1 { font-size: 1.8rem; line-height: 1.15; }
    .page-hero p { font-size: 0.95rem; }
    .breadcrumbs { font-size: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }

    /* Content */
    .page-section { padding: 2.5rem 1.2rem; }
    .page-section h2 { font-size: 1.5rem; }
    .page-section h3 { font-size: 1.05rem; }
    .page-section p { font-size: 0.92rem; }
    .page-section ul li { font-size: 0.88rem; padding-left: 1.3rem; }

    /* Tables - scrollable on mobile */
    .price-table { font-size: 0.82rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .price-table th { padding: 0.7rem 0.8rem; font-size: 0.7rem; }
    .price-table td { padding: 0.7rem 0.8rem; font-size: 0.82rem; }

    /* Grids */
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-card { padding: 1.4rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
    .blog-card-img { height: 150px; }
    .city-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .city-link { padding: 0.6rem 0.8rem; font-size: 0.8rem; }

    /* CTA */
    .cta-box { padding: 2rem 1.2rem; border-radius: 14px; margin: 2rem 0; }
    .cta-box h2 { font-size: 1.4rem; }
    .cta-box p { font-size: 0.9rem; }
    .cta-box .btn-cta { padding: 0.85rem 1.8rem; font-size: 0.9rem; width: 100%; justify-content: center; }

    /* FAQ */
    .faq-q { padding: 1rem 1.2rem; font-size: 0.88rem; }
    .faq-a-inner { padding: 0 1.2rem 1.2rem; font-size: 0.85rem; }

    /* Article */
    .article-meta { flex-direction: row; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
    .article-content { font-size: 0.95rem; line-height: 1.8; }
    .article-content h2 { font-size: 1.35rem; }
    .article-content h3 { font-size: 1.05rem; }

    /* FAB - repositioned */
    .fab-container { bottom: 16px; right: 16px; gap: 8px; }
    .fab { width: 46px; height: 46px; }
    .fab-phone svg { width: 20px; height: 20px; }
    .fab-whatsapp svg { width: 20px; height: 20px; }

    /* Footer */
    footer { padding: 2.5rem 1.2rem 1.5rem; }
    .footer-inner { text-align: center; }
    .footer-nav { gap: 0.8rem; }
    .footer-nav a { font-size: 0.75rem; }
    .footer-services { gap: 0.5rem; }
    .footer-services a { font-size: 0.7rem; }
    .footer-cities { gap: 0.4rem; }
    .footer-cities a { font-size: 0.65rem; }
    .footer-copy { font-size: 0.7rem; }
    .footer-legal { flex-direction: column; align-items: center; gap: 0.4rem; }
    .footer-legal a { font-size: 0.65rem; }
}

/* SMALL MOBILE */
@media (max-width: 380px) {
    .page-hero { padding: 6.5rem 1rem 2rem; }
    .page-hero h1 { font-size: 1.55rem; }
    .page-section { padding: 2rem 1rem; }
    .city-grid { grid-template-columns: 1fr; }
    .cta-box .btn-cta { font-size: 0.85rem; padding: 0.8rem 1.4rem; }
}
