/* ===========================================================
   HECK'ELEC
   style.css
   =========================================================== */


/***********************
 VARIABLES
************************/

:root{

--green:#2E7D32;
--green-light:#4CAF50;
--green-dark:#1B5E20;

--accent:#81C784;

--white:#ffffff;

--light:#f6f8f7;

--gray:#777;

--dark:#222;

--shadow:0 12px 30px rgba(0,0,0,.08);

--radius:18px;

--transition:.35s;

}


/***********************
 RESET
************************/

*{

margin:0;

padding:0;

box-sizing:border-box;

}


html{

scroll-behavior:smooth;

}


body{

font-family:'Poppins',sans-serif;

background:#fafafa;

color:var(--dark);

line-height:1.7;

overflow-x:hidden;

}


img{

max-width:100%;

display:block;

}


a{

text-decoration:none;

color:inherit;

}


ul{

list-style:none;

}


/***********************
 CONTAINER
************************/

.container{

width:min(1200px,92%);

margin:auto;

}


/***********************
 SECTION
************************/

section{

padding:110px 0;

}


.section-heading{

text-align:center;

margin-bottom:70px;

}


.subtitle{

display:inline-block;

padding:8px 18px;

background:#E8F5E9;

color:var(--green);

font-weight:600;

border-radius:40px;

letter-spacing:1px;

font-size:.85rem;

margin-bottom:18px;

}


.section-heading h2{

font-size:2.4rem;

margin-bottom:20px;

color:var(--green-dark);

}


.section-heading p{

max-width:750px;

margin:auto;

color:#666;

}


/* (ancien bloc HEADER supprimé — remplacé par le bloc HEADER final plus bas) */


/***********************
 HERO
************************/

.hero{

position:relative;

height:100vh;

display:flex;

align-items:center;

background:

linear-gradient(

rgba(24,60,30,.75),

rgba(24,60,30,.75)

),

url(images/hero.jpg);

background-size:cover;

background-position:center;

color:white;

}


.hero-content{

display:grid;

grid-template-columns:1.2fr 1fr;

align-items:center;

gap:80px;

}


.badge{

display:inline-block;

padding:12px 24px;

background:rgba(255,255,255,.15);

backdrop-filter:blur(10px);

border-radius:50px;

margin-bottom:30px;

}


.hero h1{

font-size:3.6rem;

line-height:1.15;

margin-bottom:30px;

}


.hero p{

font-size:1.2rem;

max-width:650px;

opacity:.95;

margin-bottom:40px;

}


.hero-buttons{

display:flex;

gap:20px;

flex-wrap:wrap;

}


.btn{

display:inline-block;

padding:16px 36px;

background:var(--green);

border-radius:50px;

color:white;

font-weight:600;

transition:.35s;

}


.btn:hover{

transform:translateY(-3px);

background:var(--green-light);

}


.btn-outline{

display:inline-block;

padding:16px 36px;

border:2px solid white;

border-radius:50px;

color:white;

transition:.35s;

}


.btn-outline:hover{

background:white;

color:var(--green);

}


.hero-right img{

width:420px;

margin:auto;

filter:drop-shadow(0 15px 40px rgba(0,0,0,.35));

animation:float 6s ease-in-out infinite;

}


/***********************
 ANIMATION
************************/

@keyframes float{

0%{transform:translateY(0);}

50%{transform:translateY(-15px);}

100%{transform:translateY(0);}

}

/*********************************************************
    SERVICES
**********************************************************/

.services{

background:#ffffff;

}

.services-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(270px,1fr));

gap:35px;

margin-top:50px;

}

.card{

background:white;

padding:40px 35px;

border-radius:20px;

box-shadow:0 15px 40px rgba(0,0,0,.06);

transition:.35s;

position:relative;

overflow:hidden;

border-top:5px solid transparent;

}

.card::before{

content:"";

position:absolute;

top:0;

left:-100%;

width:100%;

height:5px;

background:linear-gradient(90deg,#2E7D32,#81C784);

transition:.4s;

}

.card:hover::before{

left:0;

}

.card:hover{

transform:translateY(-12px);

box-shadow:0 25px 50px rgba(0,0,0,.12);

}

.card .icon{

width:75px;

height:75px;

border-radius:50%;

background:#E8F5E9;

display:flex;

align-items:center;

justify-content:center;

font-size:2rem;

color:#2E7D32;

margin-bottom:25px;

transition:.3s;

}

.card:hover .icon{

background:#2E7D32;

color:white;

transform:rotate(8deg);

}

.card h3{

margin-bottom:20px;

font-size:1.4rem;

color:#1B5E20;

}

.card ul li{

margin-bottom:12px;

padding-left:24px;

position:relative;

color:#555;

}

.card ul li::before{

content:"✓";

position:absolute;

left:0;

color:#4CAF50;

font-weight:bold;

}

.eco{

background:#F5FFF6;

}

/*********************************************************
    POURQUOI NOUS CHOISIR
**********************************************************/

.advantages{

background:#f7faf8;

}

.advantages-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:30px;

margin-top:60px;

}

.advantage-card{

background:white;

padding:35px;

border-radius:18px;

text-align:center;

box-shadow:0 10px 35px rgba(0,0,0,.05);

transition:.35s;

}

.advantage-card:hover{

transform:translateY(-10px);

}

.advantage-card i{

font-size:2.5rem;

margin-bottom:20px;

color:#2E7D32;

}

.advantage-card h3{

margin-bottom:15px;

color:#1B5E20;

}

.advantage-card p{

color:#666;

}

/*********************************************************
    SECTION ECO
**********************************************************/

.eco-section{

background:linear-gradient(135deg,#1B5E20,#2E7D32);

color:white;

}

.eco-section .section-heading h2{

color:white;

}

.eco-section .section-heading p{

color:rgba(255,255,255,.9);

}

.eco-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

gap:30px;

margin-top:50px;

}

.eco-card{

background:rgba(255,255,255,.08);

backdrop-filter:blur(10px);

padding:35px;

border-radius:18px;

text-align:center;

transition:.35s;

border:1px solid rgba(255,255,255,.15);

}

.eco-card:hover{

transform:translateY(-10px);

background:rgba(255,255,255,.15);

}

.eco-card i{

font-size:3rem;

margin-bottom:20px;

color:#C8E6C9;

}

.eco-card h3{

margin-bottom:15px;

}

/*********************************************************
    GALERIE
**********************************************************/

.gallery{

background:white;

}

.gallery-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:25px;

}

.gallery-item{

overflow:hidden;

border-radius:18px;

box-shadow:0 15px 30px rgba(0,0,0,.08);

position:relative;

cursor:pointer;

}

.gallery-item img{

width:100%;

height:280px;

object-fit:cover;

transition:.5s;

display:block;

}

.gallery-item:hover img{

transform:scale(1.08);

}

.gallery-item::after{

content:"Voir la réalisation";

position:absolute;

left:0;

right:0;

bottom:0;

padding:18px;

text-align:center;

background:linear-gradient(transparent,rgba(0,0,0,.75));

color:white;

opacity:0;

transition:.35s;

font-weight:600;

}

.gallery-item:hover::after{

opacity:1;

}

/*********************************************************
    ZONES D'INTERVENTION
**********************************************************/

.zones{

background:#F7FAF8;

}

.zones-list{

display:flex;

flex-wrap:wrap;

justify-content:center;

gap:18px;

margin-top:40px;

}

.zones-list span{

background:white;

padding:12px 22px;

border-radius:40px;

box-shadow:0 5px 15px rgba(0,0,0,.08);

font-weight:500;

transition:.3s;

}

.zones-list span:hover{

background:#2E7D32;

color:white;

transform:translateY(-3px);

}
/*********************************************************
    CTA (Bandeau avant le footer)
**********************************************************/

.cta-section{

background:linear-gradient(135deg,#2E7D32,#1B5E20);

color:white;

text-align:center;

padding:80px 20px;

}

.cta-section h2{

font-size:2.4rem;

margin-bottom:20px;

}

.cta-section p{

max-width:700px;

margin:0 auto 35px;

font-size:1.1rem;

opacity:.95;

}

.cta-section .btn{

background:white;

color:#2E7D32;

font-weight:600;

}

.cta-section .btn:hover{

background:#E8F5E9;

}


/*********************************************************
    CONTACT
**********************************************************/

.contact{

background:white;

}

.contact-wrapper{

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:start;

}

.contact-card{

background:#F7FAF8;

padding:40px;

border-radius:20px;

box-shadow:0 10px 30px rgba(0,0,0,.06);

}

.contact-card h3{

color:#1B5E20;

margin-bottom:20px;

}

.contact-card p{

margin-bottom:20px;

}

.contact-card i{

width:30px;

color:#2E7D32;

}

.contact-form{

display:flex;

flex-direction:column;

gap:18px;

}

.contact-form input,

.contact-form textarea{

padding:16px;

border:1px solid #DDD;

border-radius:12px;

font-family:inherit;

font-size:1rem;

}

.contact-form textarea{

resize:vertical;

min-height:180px;

}

.contact-form input:focus,

.contact-form textarea:focus{

outline:none;

border-color:#2E7D32;

}


/*********************************************************
    FOOTER
**********************************************************/

.footer{

background:#143A1C;

color:white;

padding-top:70px;

}

.footer-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

gap:45px;

margin-bottom:50px;

}

.footer-logo{

width:120px;

margin-bottom:20px;

}

.footer h3,

.footer h4{

margin-bottom:18px;

}

.footer p{

opacity:.9;

margin-bottom:12px;

}

.footer ul li{

margin-bottom:12px;

}

.footer a{

transition:.3s;

}

.footer a:hover{

color:#A5D6A7;

}

.footer hr{

border:none;

border-top:1px solid rgba(255,255,255,.15);

margin:30px 0;

}

.footer-bottom{

text-align:center;

padding-bottom:30px;

font-size:.95rem;

opacity:.8;

}

.footer i{

margin-right:10px;

color:#81C784;

}


/*********************************************************
    PETITE ANIMATION D'APPARITION
**********************************************************/

.fade{

opacity:0;

transform:translateY(40px);

transition:all .8s ease;

}

.fade.show{

opacity:1;

transform:none;

}


/*********************************************************
    BOUTON RETOUR EN HAUT
**********************************************************/

.to-top{

position:fixed;

bottom:30px;

right:30px;

width:55px;

height:55px;

border-radius:50%;

background:#2E7D32;

display:flex;

align-items:center;

justify-content:center;

color:white;

font-size:1.3rem;

box-shadow:0 10px 25px rgba(0,0,0,.2);

opacity:0;

pointer-events:none;

transition:.3s;

z-index:999;

}

.to-top.show{

opacity:1;

pointer-events:auto;

}

.to-top:hover{

background:#4CAF50;

transform:translateY(-4px);

}


/*********************************************************
    RESPONSIVE
**********************************************************/

@media(max-width:992px){

.hero-content{

grid-template-columns:1fr;

text-align:center;

}

.hero-right{

order:-1;

}

.hero-right img{

width:280px;

margin-bottom:40px;

}

.contact-wrapper{

grid-template-columns:1fr;

}

}


@media(max-width:768px){

nav{

flex-direction:column;

height:auto;

padding:20px 0;

}

nav ul{

flex-direction:column;

gap:15px;

margin:20px 0;

}

.hero{

padding-top:140px;

height:auto;

padding-bottom:100px;

}

.hero h1{

font-size:2.3rem;

}

.section-heading h2{

font-size:2rem;

}

.hero-buttons{

justify-content:center;

}

.services-grid,

.advantages-grid,

.eco-grid,

.gallery-grid{

grid-template-columns:1fr;

}

.footer{

text-align:center;

}

.footer-logo{

margin:auto auto 20px;

}

}


/*********************************************************
    PETITES FINITIONS
**********************************************************/

::selection{

background:#2E7D32;

color:white;

}

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-thumb{

background:#2E7D32;

border-radius:20px;

}

::-webkit-scrollbar-track{

background:#F1F1F1;

}

.contact-form button{

    width:100%;

    padding:16px;

    border:none;

    border-radius:50px;

    background:#2E7D32;

    color:white;

    font-size:1rem;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.contact-form button:hover{

    background:#4CAF50;

}
.contact-form button i {
    margin-right: 8px;
}
.about-content{
    max-width:650px;
}

.about-content .subtitle{
    margin-bottom:20px;
}

.about-content h2{
    color:var(--green-dark);
    margin-bottom:25px;
    line-height:1.2;
}

.about-content .intro{
    margin-bottom:40px;
    font-size:1.08rem;
    line-height:1.8;
    color:#555;
}

.values{
    display:flex;
    flex-direction:column;
    gap:30px;
    margin-bottom:45px;
}


.value-text h4{
    margin:0;
    padding:0;
    color:var(--green-dark);
    font-size:1.15rem;
    font-weight:700;
    line-height:1.2;
}

.value-text p{
    margin:6px 0 0;
    color:#666;
    line-height:1.6;
}
.value{
    display:grid;
    grid-template-columns:48px 1fr;
    column-gap:18px;
    align-items:start;
}

.value i{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#E8F5E9;
    color:var(--green);
    border-radius:50%;

    font-size:20px;

    margin-top:2px;
}

.value-text h4{
    margin:0;
    padding:0;
    line-height:1;
}

.value-text p{
    margin-top:8px;
}

/*==========================
TOP BAR
==========================*/

.topbar{

    background:#0f1724;

    color:#fff;

    font-size:.9rem;

}

.topbar-content{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:35px;

    min-height:40px;

}

.topbar a,
.topbar span{

    color:#fff;

    text-decoration:none;

}

.topbar i{

    color:var(--green);

    margin-right:8px;

}

/*==========================
HEADER
==========================*/

#header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:rgba(255,255,255,.97);

    backdrop-filter:blur(12px);

    z-index:1000;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

}

.navbar{

    display:flex;

    flex-wrap:wrap;

    justify-content:space-between;

    align-items:center;

    gap:14px 30px;

    padding:14px 0;

    min-height:85px;

}

/* Le logo ne rétrécit jamais et reste toujours en premier, à gauche */
.logo{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

    flex-shrink:0;

    order:1;

}

.logo img{

    height:70px;

    width:auto;

}

/* Le menu peut s'étirer, se centrer, et passer sur une 2e ligne si besoin */
.nav-links{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    align-items:center;

    gap:10px 28px;

    list-style:none;

    margin:0;

    padding:0;

    flex:1 1 320px;

    order:3;

}

.nav-links a{

    text-decoration:none;

    font-weight:600;

    color:#1f2937;

    white-space:nowrap;

    transition:.25s;

}

.nav-links a:hover{

    color:var(--green);

}

.nav-actions{

    display:flex;

    align-items:center;

    gap:18px;

    flex-shrink:0;

    order:2;

}

.phone{

    text-decoration:none;

    color:var(--dark);

    font-weight:600;

    white-space:nowrap;

    flex-shrink:0;

}

.phone i{

    color:var(--green);

    margin-right:8px;

}

.btn-nav{

    background:var(--green);

    color:#fff;

    padding:14px 22px;

    border-radius:40px;

    text-decoration:none;

    font-weight:700;

    white-space:nowrap;

    flex-shrink:0;

    display:inline-block;

    line-height:1.1;

    transition:.3s;

}

.btn-nav:hover{

    transform:translateY(-2px);

}

body{

    padding-top:125px;

}

@media(max-width:600px){

    .phone span{

        display:none;

    }

    .navbar{

        justify-content:flex-start;

    }

    .nav-links,
    .nav-actions{

        justify-content:center;

        width:100%;

    }

}