/* =============================================
   LAPLUG ÉLECTRIQUE — Premium Electrician Site
   Color: Dark Navy + Amber/Gold Accents
   ============================================= */

:root {
    /* Primary palette */
    --navy-900: #0A1628;
    --navy-800: #0F2035;
    --navy-700: #142942;
    --navy-600: #1B3A5C;
    --navy-500: #234B76;

    /* Accent — Electric Amber */
    --amber-500: #F5A623;
    --amber-400: #FFBA42;
    --amber-600: #E8912D;
    --amber-glow: rgba(245, 166, 35, 0.15);

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFB;
    --gray-100: #F0F3F5;
    --gray-200: #E2E7EB;
    --gray-300: #C8D0D8;
    --gray-400: #9BA5B0;
    --gray-500: #6E7A88;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-py: clamp(4rem, 8vw, 7rem);
    --container-px: clamp(1.25rem, 4vw, 2rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease-out); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--amber-500);
    margin-bottom: 0.75rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}
.btn-primary {
    background: var(--amber-500);
    color: var(--navy-900);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover {
    background: var(--amber-400);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-svg {
    width: 180px;
    height: 36px;
    color: var(--white);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding: 0.25rem 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--amber-500);
    color: var(--navy-900);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
    background: var(--amber-400);
    transform: translateY(-1px);
}

.lang-toggle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--amber-500);
    border: 1.5px solid var(--amber-500);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-out);
}
.lang-toggle:hover {
    background: var(--amber-500);
    color: var(--navy-900);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.92) 0%,
        rgba(10, 22, 40, 0.75) 40%,
        rgba(10, 22, 40, 0.6) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    max-width: 700px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}
.hero-badge .stars {
    color: var(--amber-500);
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.hero-badge span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
}
.hero h1 {
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}
.hero-pre {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber-500);
    margin-bottom: 0.75rem;
}
.hero-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.7);
    margin-top: 1.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
    background: var(--navy-900);
    border-top: 1px solid rgba(245, 166, 35, 0.15);
    padding: 1.5rem 0;
}
.trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
}
.trust-item i {
    font-size: 1.3rem;
    color: var(--amber-500);
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--amber-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--amber-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s var(--ease-out);
}
.service-icon i {
    font-size: 1.5rem;
    color: var(--amber-500);
}
.service-card:hover .service-icon {
    background: var(--amber-500);
}
.service-card:hover .service-icon i {
    color: var(--navy-900);
}
.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.6rem;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    padding: var(--section-py) 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
}
.about-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--amber-500);
    color: var(--navy-900);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.4);
}
.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-content .section-tag { margin-bottom: 0.5rem; }
.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.about-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.stat { text-align: center; }
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
}
.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-500);
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    padding: var(--section-py) 0;
    background: var(--navy-900);
}
.gallery .section-tag { color: var(--amber-500); }
.gallery .section-header h2 { color: var(--white); }
.gallery .section-header p { color: rgba(255,255,255,0.5); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item.gallery-large {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--gray-50);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,22,40,0.06);
}
.testimonial-stars {
    color: var(--amber-500);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}
.testimonial-card > p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy-800);
    color: var(--amber-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-900);
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: var(--section-py) 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}
.contact-info .section-tag { margin-bottom: 0.5rem; }
.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.contact-info > p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.3s var(--ease-out);
}
.contact-method:hover { background: var(--gray-50); }
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--amber-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon i {
    font-size: 1.3rem;
    color: var(--amber-500);
}
.contact-method strong {
    display: block;
    font-size: 0.85rem;
    color: var(--navy-900);
    margin-bottom: 0.15rem;
}
.contact-method span {
    font-size: 0.9rem;
    color: var(--gray-500);
}
.contact-cta { margin-top: 2rem; }

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--gray-200);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--navy-900);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { margin-bottom: 1rem; }
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links a,
.footer-links span {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    padding: 0.3rem 0;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--amber-500); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}
.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

/* =============================================
   ANIMATIONS (scroll-triggered)
   ============================================= */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-image img { height: 350px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.gallery-large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-hamburger { display: flex; }

    .hero-content { padding-top: 5rem; }
    .hero-main { font-size: clamp(2rem, 7vw, 3rem); }

    .trust-items { gap: 1.25rem; }
    .trust-item { font-size: 0.75rem; }
    .trust-item i { font-size: 1.1rem; }

    .services-grid { grid-template-columns: 1fr; }

    .about-stats { gap: 1.5rem; }
    .stat-number { font-size: 2rem; }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { aspect-ratio: 16/10; }

    .testimonials-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .about-stats { flex-direction: column; align-items: center; }
}

/* ---- Smooth link highlighting ---- */
.nav-link.active { color: var(--white); }
.nav-link.active::after { width: 100%; }
