/* =====================================================
   MARTIN ÉLECTRICITÉ - Split-Screen Diagonal Design
   Bold asymmetric compositions with dynamic angles
   ===================================================== */

:root {
    --primary: #FBBF24;
    --primary-dark: #F59E0B;
    --primary-light: #FEF3C7;
    --dark: #1F2937;
    --darker: #111827;
    --text: #374151;
    --text-light: #6B7280;
    --light: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }

a { color: inherit; text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   NAVBAR - Diagonal Accent
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    transform: skewX(-15deg);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--dark); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    color: var(--white);
    padding: 14px 28px;
    font-weight: 700;
    position: relative;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateX(4px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--dark);
    transform: skewX(-10deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 32px 24px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.mobile-menu.active { display: flex; }

.mobile-link {
    font-weight: 600;
    padding: 16px 12px;
    color: var(--white);
    border-left: 4px solid transparent;
    transform: skewX(-2deg);
    transition: all 0.3s ease;
}

.mobile-link:hover {
    border-left-color: var(--primary);
    padding-left: 20px;
}

.mobile-cta {
    background: var(--primary);
    color: var(--dark);
    padding: 18px;
    text-align: center;
    font-weight: 700;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* =====================================================
   HERO - Diagonal Split Screen
   ===================================================== */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: var(--dark);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.1;
    transform: rotate(45deg);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 10px 24px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transform: skewX(-5deg);
}

.hero-badge span {
    display: inline-block;
    transform: skewX(5deg);
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--primary);
    opacity: 0.2;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    transform: skewX(-15deg);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary);
    color: var(--primary);
    clip-path: polygon(0% 0%, 95% 0%, 100% 100%, 5% 100%);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.trust-item svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--dark);
    position: relative;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 3px solid var(--dark);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    opacity: 0.3;
}

/* =====================================================
   SECTIONS - Angled Backgrounds
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-tag {
    display: inline-block;
    background: var(--dark);
    color: var(--primary);
    padding: 8px 24px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transform: skewX(-5deg);
}

.section-tag span {
    display: inline-block;
    transform: skewX(5deg);
}

.section-header h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) skewX(-15deg);
    width: 80px;
    height: 6px;
    background: var(--primary);
}

/* =====================================================
   SERVICES - Overlapping Cards
   ===================================================== */
.services {
    padding: 120px 0;
    position: relative;
    background: var(--white);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: var(--light);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--border);
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0;
    transition: all 0.4s ease;
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px) rotate(-1deg);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:nth-child(even) {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}

.service-card:nth-child(even):hover {
    transform: translateY(-12px) rotate(1deg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    transform: rotate(-3deg);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
    background: var(--primary);
    color: var(--dark);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* =====================================================
   RÉALISATIONS - Stacked & Skewed
   ===================================================== */
.realisations {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    margin: 80px 0;
}

.realisations .section-tag {
    background: var(--primary);
    color: var(--dark);
}

.realisations .section-header h2 {
    color: var(--white);
}

.realisations .section-header h2::after {
    background: var(--primary);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.realisation-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.realisation-card:hover {
    transform: translateY(-16px) scale(1.03);
    z-index: 10;
}

.realisation-card:nth-child(2) {
    transform: translateY(20px);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
}

.realisation-card:nth-child(2):hover {
    transform: translateY(0) scale(1.03);
}

.realisation-image .image-placeholder {
    aspect-ratio: 16/10;
    border-radius: 0;
    background: var(--primary);
    clip-path: none;
    position: relative;
    overflow: hidden;
}

.realisation-image .image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(31, 41, 55, 0.4) 100%);
}

.realisation-info {
    padding: 28px;
    background: var(--white);
    position: relative;
}

.realisation-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    transform: skewX(-15deg);
}

.realisation-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    margin-top: 8px;
}

.realisation-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =====================================================
   AVIS - Floating Cards
   ===================================================== */
.avis {
    padding: 120px 0;
    background: var(--light);
    position: relative;
}

.rating-global {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.stars {
    color: var(--primary);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.avis-card {
    background: var(--white);
    padding: 36px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.avis-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.avis-card:hover {
    transform: translateY(-12px) rotate(-2deg);
    box-shadow: var(--shadow-lg);
}

.avis-card:hover::before {
    opacity: 1;
}

.avis-card:nth-child(even):hover {
    transform: translateY(-12px) rotate(2deg);
}

.avis-card:nth-child(2) {
    transform: translateY(-20px);
}

.avis-card:nth-child(2):hover {
    transform: translateY(-32px) rotate(2deg);
}

.avis-stars {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.avis-card p {
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text);
}

.avis-author strong {
    display: block;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.avis-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* =====================================================
   CONTACT - Split Layout
   ===================================================== */
.contact {
    padding: 120px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--dark);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-tag {
    background: var(--primary);
    color: var(--dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--light);
    clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    background: var(--primary-light);
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.contact-item strong {
    display: block;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
    border: 3px solid var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 99% 100%, 0 100%);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: -4px 4px 0 var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER - Angled Design
   ===================================================== */
.footer {
    background: var(--darker);
    color: var(--white);
    padding: 80px 0 32px;
    position: relative;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    margin-top: 80px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 200px;
    height: 6px;
    background: var(--primary);
    transform: skewX(-15deg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 48px;
    border-bottom: 2px solid rgba(251, 191, 36, 0.2);
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* =====================================================
   STICKY CTA
   ===================================================== */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 20px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    gap: 16px;
    z-index: 100;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-weight: 700;
    background: var(--light);
    color: var(--dark);
    clip-path: polygon(3% 0%, 100% 0%, 97% 100%, 0% 100%);
    transition: all 0.3s ease;
}

.sticky-btn:hover {
    transform: translateY(-2px);
}

.sticky-btn.primary {
    background: var(--primary);
    color: var(--dark);
}

.sticky-btn.primary:hover {
    background: var(--primary-dark);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero::before {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0% 65%);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid,
    .realisations-grid,
    .avis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .contact::before {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0% 45%);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .realisations-grid,
    .avis-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .sticky-cta {
        display: flex;
    }

    body {
        padding-bottom: 100px;
    }

    .realisation-card:nth-child(2) {
        transform: translateY(0);
    }

    .avis-card:nth-child(2) {
        transform: translateY(0);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .service-card,
    .avis-card,
    .contact-form {
        padding: 28px;
    }

    .section-header {
        margin-bottom: 50px;
    }
}

/* Images fixes */
.project-img, .work-img, .gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}

.hero-bg-img, .about-photo {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.realisation-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}
