/* style.css */
:root{
  --green:#005f43;
  --green2:#00a86b;
  --dark:#0b1f1a;
  --dark2:#071612;
  --yellow:#FFD700;
  --text:#333;
  --muted:#ccc;
  --bg:#f7f9fa;
}

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Segoe UI',sans-serif;color:var(--text);background:#fff}

/* ===== HEADER PRO (global) ===== */
header.header{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  padding:15px 40px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  border-bottom:4px solid var(--green);
}
header.header .left{justify-self:start}
header.header .center{text-align:center}
header.header .right{justify-self:end}

header.header .logo{height:55px;width:auto}
header.header .center h1{margin:0;font-size:24px;color:var(--green)}

header.header nav.right a{
  margin-left:20px;
  text-decoration:none;
  font-weight:500;
  color:var(--text);
  transition:0.3s;
  padding:8px 12px;
  border-radius:8px;
}
header.header nav.right a:hover{
  color:var(--green);
  background:#f3f6f5;
}
header.header nav.right a.active{
  background:var(--green);
  color:#fff;
}

/* ===== MOBILE HEADER ===== */
@media (max-width:768px){
  header.header{
    grid-template-columns:1fr;
    gap:10px;
    padding:12px 15px;
    text-align:center;
  }
  header.header .left,
  header.header .center,
  header.header .right{justify-self:center}
  header.header .logo{height:48px}
  header.header .center h1{font-size:20px}

  header.header nav.right{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
  }
  header.header nav.right a{margin-left:0}
}

/* ===== INTRO SECTION ===== */
.intro{
  max-width:1000px;
  margin:40px auto;
  text-align:center;
  padding:0 20px;
}
.intro h2{
  color:var(--green);
  margin-bottom:15px;
  font-size:1.8em;
}
.intro p{
  font-size:1.1em;
  line-height:1.6em;
}

/* ===== CAROUSEL (home) ===== */
.carousel{
  position:relative;
  width:100%;
  max-width:1200px;
  height:500px;
  margin:30px auto;
  overflow:hidden;
  border-radius:15px;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}
.carousel img{
  width:100%;
  height:500px;
  object-fit:cover;
  display:none;
  transition:opacity 0.5s ease-in-out;
}
.carousel img.active{display:block}

.carousel .controls{
  position:absolute;
  top:50%;
  width:100%;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
}
.carousel button{
  background:rgba(0,0,0,0.5);
  border:none;
  color:#fff;
  font-size:2em;
  padding:10px 15px;
  cursor:pointer;
  border-radius:50%;
  transition:0.3s;
}
.carousel button:hover{background:rgba(0,0,0,0.8)}

.dots{text-align:center;margin-top:10px}
.dot{
  display:inline-block;
  height:12px;
  width:12px;
  margin:0 5px;
  background-color:#bbb;
  border-radius:50%;
  cursor:pointer;
}
.dot.active{background-color:var(--green)}

/* ===== LEAD FORM SECTION (home) ===== */
.lead-form-section{
  background:linear-gradient(135deg,var(--green),var(--green2));
  padding:60px 20px;
  color:#fff;
}
.lead-container{
  max-width:900px;
  margin:auto;
  text-align:center;
}
.lead-container h2{font-size:28px;margin-bottom:10px}
.lead-subtitle{margin-bottom:30px;color:#e6f7f1}

.lead-form{
  background:#fff;
  padding:30px;
  border-radius:10px;
  box-shadow:0 5px 20px rgba(0,0,0,0.2);
}
.form-row{
  display:flex;
  gap:15px;
  margin-bottom:15px;
  flex-wrap:wrap;
}
.form-row input{
  flex:1;
  padding:12px;
  border-radius:5px;
  border:1px solid #ccc;
  font-size:14px;
}
.lead-form input:focus{
  outline:none;
  border-color:var(--green);
}
.lead-form button{
  width:100%;
  background:var(--yellow);
  border:none;
  padding:14px;
  font-size:16px;
  font-weight:bold;
  border-radius:6px;
  cursor:pointer;
  transition:0.3s;
}
.lead-form button:hover{background:#e5c100}

/* ===== CONTACT PAGE ===== */
.page-contact main{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:70vh;
  background:var(--bg);
  padding:40px 20px;
}
.contact-box{
  background:#fff;
  padding:40px;
  border-radius:10px;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
  width:100%;
  max-width:500px;
}
.contact-box h2{
  text-align:center;
  color:var(--green);
  margin-bottom:20px;
}
.page-contact label{
  display:block;
  margin-bottom:8px;
  font-weight:bold;
  color:var(--green);
}
.page-contact input[type="text"],
.page-contact input[type="email"],
.page-contact input[type="tel"]{
  width:100%;
  padding:10px;
  border-radius:5px;
  border:1px solid #ccc;
  margin-bottom:20px;
  font-size:1em;
}
.page-contact input:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 5px rgba(0,95,67,0.3);
}
.page-contact button{
  display:block;
  width:100%;
  background:var(--yellow);
  border:none;
  padding:12px;
  border-radius:5px;
  cursor:pointer;
  font-weight:bold;
  font-size:1.1em;
  transition:0.3s;
}
.page-contact button:hover{background:#e5c100}

/* liens jaunes (footer) */
.link-yellow,
.link-yellow:visited,
.link-yellow:hover,
.link-yellow:active{
  color:var(--yellow) !important;
  text-decoration:none !important;
}

/* ===== FOOTER PRO (global) ===== */
/*footer.footer{
  background:var(--dark);
  color:#fff;
  margin-top:50px;
}
.footer-container{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  max-width:1200px;
  margin:auto;
  padding:40px 20px;
}
.footer-col{
  flex:1;
  min-width:250px;
  margin:15px;
}
.footer-logo{height:60px;margin-bottom:15px}
.footer-col h3{margin-bottom:15px;color:#00b894}
.footer-col p{margin:8px 0;font-size:14px;color:var(--muted)}
.footer-col a{
  display:block;
  margin:6px 0;
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  transition:0.3s;
}
.footer-col a:hover{color:#00b894}
.footer-bottom{
  text-align:center;
  padding:15px;
  background:var(--dark2);
  font-size:13px;
  color:#aaa;
}
*/
/* ===== FOOTER BLANC PRO ===== */
footer.footer{
  background:#ffffff;
  color:#333;
  margin-top:50px;
  border-top:4px solid var(--green);
}

.footer-container{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  max-width:1200px;
  margin:auto;
  padding:50px 20px;
}

.footer-col{
  flex:1;
  min-width:250px;
  margin:15px;
}

.footer-logo{
  height:60px;
  margin-bottom:15px;
}

.footer-col h3{
  margin-bottom:15px;
  color:var(--green);
  font-weight:700;
}

.footer-col p{
  margin:8px 0;
  font-size:14px;
  color:#555;
}

.footer-col a{
  display:block;
  margin:6px 0;
  text-decoration:none;
  color:#555;
  font-size:14px;
  transition:0.3s;
}

.footer-col a:hover{
  color:var(--green);
}

.footer-bottom{
  text-align:center;
  padding:18px;
  background:#f5f7f6;
  font-size:13px;
  color:#777;
  border-top:1px solid #eaeaea;
}

/* ===== TOPBAR ===== */
.topbar{
  background:#0b1f1a;
  color:#fff;
  font-size:14px;
}
.topbar-inner{
  max-width:1200px;
  margin:auto;
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.topbar-left{display:flex; gap:14px; flex-wrap:wrap; opacity:.95;}
.topbar-cta{
  background:#FFD700;
  color:#111;
  text-decoration:none;
  font-weight:800;
  padding:10px 14px;
  border-radius:10px;
}
.topbar-cta:hover{filter:brightness(.95);}

/* ===== HERO ===== */
.hero{
  background:
    linear-gradient(90deg, rgba(0,95,67,.92), rgba(0,168,107,.75)),
    url('images/hero-solaire.jpg') center/cover no-repeat;
  color:#fff;
  padding:60px 20px;
}
.hero-inner{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:center;
}
.hero-kicker{
  display:inline-block;
  font-weight:700;
  opacity:.95;
  margin-bottom:10px;
}
.hero-title{
  font-size:42px;
  line-height:1.1;
  margin:0 0 12px 0;
}
.hero-subtitle{
  font-size:16px;
  line-height:1.6;
  opacity:.95;
  max-width:560px;
  margin-bottom:18px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.btn-primary{
  background:#FFD700;
  color:#111;
  text-decoration:none;
  font-weight:900;
  padding:12px 16px;
  border-radius:12px;
}
.btn-ghost{
  border:1px solid rgba(255,255,255,.7);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:12px 16px;
  border-radius:12px;
  background:rgba(255,255,255,.08);
}
.btn-primary:hover,.btn-ghost:hover{filter:brightness(.95);}

.hero-trust{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top:10px;
}
.hero-trust img{
  height:38px;
  width:auto;
  background:rgba(255,255,255,.9);
  border-radius:10px;
  padding:6px 10px;
}

/* Card formulaire dans le hero */
.hero-card{
  background:#fff;
  color:#111;
  border-radius:16px;
  padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.hero-card h3{margin:0 0 6px 0; color:#005f43;}
.hero-card p{margin:0 0 12px 0; color:#555; font-size:14px;}

.mini-form input{
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:10px;
  margin-bottom:10px;
  font-size:14px;
}
.mini-row{
  display:flex;
  gap:10px;
}
.mini-row input{margin-bottom:10px;}
.mini-form button{
  width:100%;
  background:#FFD700;
  border:none;
  padding:12px 14px;
  border-radius:10px;
  font-weight:900;
  cursor:pointer;
}
.mini-form button:hover{background:#e5c100;}

/* ===== STATS ===== */
.stats{
  background:#fff;
  padding:26px 20px;
}
.stats-inner{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.stat{
  border:1px solid #eee;
  border-radius:16px;
  padding:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}
.stat-num{
  font-size:28px;
  font-weight:900;
  color:#005f43;
}
.stat-label{
  margin-top:6px;
  color:#555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr; }
  .hero-title{font-size:34px;}
  .mini-row{flex-direction:column;}
  .stats-inner{grid-template-columns:1fr;}
}
