:root{
  --navy: #17233d;
  --navy-light: #22335a;
  --navy-dark: #0f1729;
  --green: #8cc63f;
  --green-dark: #74ab2c;
  --white: #ffffff;
  --off-white: #f6f8f4;
  --grey-text: #5b6472;
  --border: #e4e8e0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(23,35,61,0.18);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{box-sizing:border-box;}
.visually-hidden{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--navy);
  background:var(--white);
  line-height:1.55;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:var(--font-head);margin:0 0 .5em;line-height:1.2;color:var(--navy);}
p{margin:0 0 1em;color:var(--grey-text);}
ul{margin:0;padding:0;list-style:none;}
.container{
  max-width:1160px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  color:var(--green-dark);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:.6em;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--green);
  color:var(--navy-dark);
}
.btn-primary:hover{background:var(--green-dark); transform:translateY(-1px); box-shadow:0 8px 18px -6px rgba(140,198,63,.55);}
.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.5);
  color:inherit;
}
.btn-ghost:hover{border-color:var(--green); color:var(--green-dark);}
.btn-lg{padding:14px 28px; font-size:1rem;}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--navy);
  border-bottom:3px solid var(--green);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  height:78px;
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--white);
}
.logo-mark-img{
  height:44px;
  width:auto;
  display:block;
}
.logo-text{display:flex; flex-direction:column; line-height:1.15;}
.logo-text strong{font-family:var(--font-head); font-size:.85rem; letter-spacing:.04em; color:var(--white);}
.logo-text .logo-accent{color:var(--green);}
.logo-text small{font-size:.68rem; color:#aeb7c8; letter-spacing:.05em;}

.main-nav{display:flex; gap:28px;}
.main-nav a{color:#cfd6e4; font-weight:500; font-size:.95rem; transition:color .15s ease;}
.main-nav a:hover{color:var(--green);}

.header-actions{display:flex; align-items:center; gap:18px;}
.header-phone{
  display:flex; align-items:center; gap:8px;
  color:var(--white); font-weight:600; font-size:.92rem;
}
.header-phone:hover{color:var(--green);}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px; height:36px;
  background:transparent;
  border:none;
  cursor:pointer;
}
.nav-toggle span{display:block; height:2px; background:var(--white); border-radius:2px;}

/* Hero */
.hero{
  background:linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color:var(--white);
  padding:80px 0 90px;
  position:relative;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
  align-items:center;
}
.hero .eyebrow{color:var(--green);}
.hero h1{
  font-size:2.6rem;
  color:var(--white);
  max-width:640px;
}
.hero-sub{
  color:#c6cede;
  max-width:520px;
  font-size:1.05rem;
}
.hero-sub strong{color:var(--white);}
.hero-cta{display:flex; flex-wrap:wrap; gap:16px; margin:28px 0 30px;}
.hero .btn-ghost{border-color:rgba(255,255,255,.35); color:var(--white);}
.hero-badges{
  display:flex; flex-wrap:wrap; gap:12px 22px;
}
.hero-badges li{
  font-size:.85rem;
  color:#dfe4ee;
  padding-left:22px;
  position:relative;
}
.hero-badges li::before{
  content:"";
  position:absolute; left:0; top:.4em;
  width:10px; height:10px;
  background:var(--green);
  clip-path:polygon(50% 0%, 0% 100%, 100% 100%);
}
.hero-visual{display:flex; justify-content:center; align-items:center;}
.hero-visual-card{
  width:100%;
  max-width:340px;
  aspect-ratio:1/1;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius);
  padding:24px;
  backdrop-filter:blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-visual-logo{
  width:100%;
  max-width:260px;
  height:auto;
}

/* Services */
.services{padding:90px 0; background:var(--off-white);}
.section-head{text-align:center; max-width:640px; margin:0 auto 50px;}
.section-head h2{font-size:2rem;}
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.service-card{
  background:var(--white);
  border-radius:var(--radius);
  padding:32px 28px;
  box-shadow:var(--shadow);
  border-top:4px solid var(--green);
}
.service-icon{
  width:54px; height:54px;
  border-radius:14px;
  background:var(--navy);
  color:var(--green);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.service-card h3{font-size:1.15rem;}
.service-desc{font-size:.92rem;}
.service-list{display:flex; flex-wrap:wrap; gap:8px 10px;}
.service-list li{
  font-size:.8rem;
  font-weight:600;
  color:var(--navy);
  background:var(--off-white);
  border:1px solid var(--border);
  padding:5px 12px;
  border-radius:999px;
}

/* Pourquoi */
.pourquoi{padding:90px 0; background:var(--navy);}
.section-head-dark h2{color:var(--white);}
.pourquoi-sub{
  max-width:480px;
  margin:0 auto;
  color:#aeb7c8;
  font-size:.95rem;
}
.pourquoi-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.pourquoi-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:26px 24px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}
.pourquoi-item:hover{
  border-color:rgba(140,198,63,.4);
  background:rgba(255,255,255,.05);
  transform:translateY(-2px);
}
.pourquoi-icon{
  width:48px; height:48px;
  border-radius:12px;
  background:rgba(140,198,63,.12);
  color:var(--green);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:10px;
}
.pourquoi-item h3{color:var(--white); font-size:1.05rem; margin-bottom:.35em;}
.pourquoi-item p{color:#aeb7c8; font-size:.88rem; margin:0;}
.pourquoi-cta{text-align:center; margin-top:44px;}

/* Obligations (frise) */
.obligations{padding:90px 0 70px; background:var(--white);}
.obligations-strip{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:10px 4px 20px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:var(--green) var(--off-white);
}
.obligations-strip::-webkit-scrollbar{height:6px;}
.obligations-strip::-webkit-scrollbar-track{background:var(--off-white); border-radius:99px;}
.obligations-strip::-webkit-scrollbar-thumb{background:var(--green); border-radius:99px;}
.obligation-item{
  flex:0 0 150px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--off-white);
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.obligation-item:hover{
  border-color:var(--green);
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.obligation-photo{
  display:block;
  aspect-ratio:4/5;
  background:var(--navy);
  overflow:hidden;
}
.obligation-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.obligation-body{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:12px 14px 16px;
}
.obligation-cat{
  font-size:.66rem;
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--grey-text);
}
.obligation-title{
  font-family:var(--font-head);
  font-weight:700;
  font-size:.95rem;
  color:var(--navy);
}

/* Devis */
.devis{padding:90px 0; background:var(--off-white);}
.devis-sub{text-align:center;}
.devis-card{
  max-width:680px;
  margin:0 auto;
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:38px 36px 30px;
}
.devis-progress{
  height:6px;
  background:var(--border);
  border-radius:999px;
  overflow:hidden;
  margin-bottom:10px;
}
.devis-progress-bar{
  height:100%;
  width:33.33%;
  background:var(--green);
  transition:width .3s ease;
}
.devis-steps-label{
  font-size:.78rem;
  color:var(--grey-text);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:24px;
}
.devis-step{display:none;}
.devis-step.is-active{display:block; animation:fadeIn .25s ease;}
@keyframes fadeIn{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;}}
.devis-step h3{font-size:1.25rem; margin-bottom:20px;}

.option-group{margin-bottom:26px;}
.field-label{
  font-weight:600;
  font-size:.9rem;
  color:var(--navy);
  margin-bottom:10px;
}
.option-row{display:flex; flex-wrap:wrap; gap:10px;}
.option-btn{
  padding:11px 18px;
  border-radius:10px;
  border:2px solid var(--border);
  background:var(--white);
  font-family:var(--font-body);
  font-weight:600;
  font-size:.88rem;
  color:var(--navy);
  cursor:pointer;
  transition:all .15s ease;
}
.option-btn:hover{border-color:var(--green);}
.option-btn.is-selected{
  border-color:var(--green);
  background:var(--green);
  color:var(--navy-dark);
}

.checkbox-grid{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-bottom:24px;
}
.checkbox-pill{
  position:relative;
}
.checkbox-pill input{
  position:absolute;
  opacity:0;
  width:100%; height:100%;
  cursor:pointer;
  margin:0;
}
.checkbox-pill span{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  border:2px solid var(--border);
  font-size:.85rem;
  font-weight:600;
  color:var(--navy);
  transition:all .15s ease;
}
.checkbox-pill input:checked + span{
  background:var(--green);
  border-color:var(--green);
  color:var(--navy-dark);
}

/* Param grid (step 2 characteristics) — cards size to their own content, not a fixed equal column */
.param-grid{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:8px;
}
.param-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:2px solid var(--border);
  border-radius:12px;
  background:var(--off-white);
  cursor:pointer;
  flex:0 1 auto;
  max-width:100%;
}
.param-icon{
  flex:0 0 auto;
  width:34px; height:34px;
  border-radius:9px;
  background:var(--navy);
  color:var(--green);
  display:flex; align-items:center; justify-content:center;
}
.param-text{display:flex; flex-direction:column; gap:3px; min-width:0;}
.param-label{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--navy);
  white-space:nowrap;
}
.param-text select{
  border:none;
  background:transparent;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.9rem;
  color:var(--grey-text);
  padding:0;
  cursor:pointer;
  max-width:100%;
}
.param-text select:focus{outline:none; color:var(--navy);}

.genie-civil-picker{margin:10px 0 24px;}

/* Diagnostics result panel */
.diag-result{
  margin:26px 0 8px;
  padding:24px 20px 20px;
  border:1px dashed var(--green);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(140,198,63,.06), transparent);
}
.diag-result-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  justify-content:center;
  text-align:center;
  flex-direction:column;
  align-items:center;
  margin-bottom:18px;
}
.diag-result-head svg{color:var(--green-dark);}
.diag-result-head h4{
  font-size:.95rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0;
  color:var(--navy);
}
.diag-result-head p{
  margin:2px 0 0;
  font-size:.78rem;
  color:var(--grey-text);
}
.diag-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.diag-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--white);
  transition:opacity .15s ease, border-color .15s ease;
}
.diag-item.is-not-required{opacity:.5;}
.diag-item.is-required{border-color:var(--green);}
.diag-status{flex:0 0 auto; color:#d64545;}
.diag-item.is-required .diag-status{color:var(--green-dark);}
.diag-item .icon-check{display:none;}
.diag-item.is-required .icon-check{display:block;}
.diag-item.is-not-required .icon-cross{display:block;}
.diag-item.is-required .icon-cross{display:none;}
.diag-icon{
  flex:0 0 auto;
  width:26px; height:26px;
  border-radius:7px;
  background:var(--navy);
  color:var(--green);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.75rem;
  display:flex; align-items:center; justify-content:center;
}
.diag-label{font-size:.85rem; font-weight:600; color:var(--navy);}

.field{margin-bottom:18px;}
.field label{
  display:block;
  font-weight:600;
  font-size:.85rem;
  color:var(--navy);
  margin-bottom:6px;
}
.field input, .field textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:2px solid var(--border);
  font-family:var(--font-body);
  font-size:.95rem;
  color:var(--navy);
  background:var(--off-white);
  transition:border-color .15s ease;
}
.field input:focus, .field textarea:focus{
  outline:none;
  border-color:var(--green);
  background:var(--white);
}
.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.devis-note{font-size:.78rem; color:var(--grey-text); margin-bottom:20px;}

.devis-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
}

.devis-confirm{
  text-align:center;
  padding:20px 0;
}
.devis-confirm h3{margin:18px 0 10px;}
.devis-confirm .btn{margin-top:14px; border-color:var(--border); color:var(--navy);}

/* Footer */
.site-footer{background:var(--navy-dark); color:#c6cede;}
.footer-inner{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr auto;
  gap:40px;
  padding:60px 0 40px;
}
.footer-col h4{color:var(--white); font-size:.95rem; margin-bottom:14px;}
.footer-list li{margin-bottom:8px; font-size:.88rem;}
.footer-list a:hover{color:var(--green);}
.logo-mark-footer-img{
  height:52px;
  width:auto;
  display:block;
  margin-bottom:12px;
}
.footer-tagline{font-size:.9rem; margin-bottom:6px;}
.footer-signature{font-size:.82rem; color:#8b94a8;}
.footer-cta{display:flex; align-items:flex-start;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0;
}
.footer-bottom p{margin:0; font-size:.8rem; color:#8b94a8; text-align:center;}

/* Responsive */
@media (max-width: 960px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{order:-1; max-width:260px; margin:0 auto;}
  .service-grid{grid-template-columns:1fr 1fr;}
  .pourquoi-grid{grid-template-columns:repeat(2,1fr);}
  .footer-inner{grid-template-columns:1fr 1fr; row-gap:32px;}
}

@media (max-width: 720px){
  .main-nav{
    position:fixed;
    top:78px; left:0; right:0;
    background:var(--navy);
    flex-direction:column;
    padding:14px 24px 24px;
    gap:0;
    border-bottom:3px solid var(--green);
    transform:translateY(-130%);
    transition:transform .25s ease;
  }
  .main-nav.is-open{transform:translateY(0);}
  .main-nav a{padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08);}
  .nav-toggle{display:flex;}
  .header-phone span, .header-phone{font-size:0;}
  .header-phone svg{font-size:initial;}
  .header-actions .btn-primary{padding:10px 16px; font-size:.85rem;}
  .hero{padding:56px 0 60px;}
  .hero h1{font-size:2rem;}
  .service-grid{grid-template-columns:1fr;}
  .pourquoi-grid{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
  .devis-card{padding:28px 20px 24px;}
  .footer-inner{grid-template-columns:1fr; text-align:left;}
}

@media (max-width: 480px){
  .header-phone{display:none;}
}
