:root {
  --emerald: #4ade80;
  --emerald-deep: #22c55e;
  --emerald-glow: rgba(74,222,128,0.15);
  --emerald-muted: rgba(74,222,128,0.08);
  --moon: #c8d8e8;
  --gold: #d4af6a;
  --bg-dark: #060d0f;
  --bg-card-dark: #0d1a1e;
  --bg-card2-dark: #111f24;
  --text-main-dark: #e8f4f0;
  --text-muted-dark: #7fa89a;
  --border-dark: rgba(74,222,128,0.18);
  --bg-light: #f0f7f4;
  --bg-card-light: #ffffff;
  --bg-card2-light: #e8f5ee;
  --text-main-light: #0d2a1e;
  --text-muted-light: #3d6a55;
  --border-light: rgba(34,197,94,0.3);
}
[data-theme="dark"] {
  --bg: var(--bg-dark);
  --bg-card: var(--bg-card-dark);
  --bg-card2: var(--bg-card2-dark);
  --text-main: var(--text-main-dark);
  --text-muted: var(--text-muted-dark);
  --border-c: var(--border-dark);
  --nav-bg: rgba(6,13,15,0.92);
}
[data-theme="light"] {
  --bg: var(--bg-light);
  --bg-card: var(--bg-card-light);
  --bg-card2: var(--bg-card2-light);
  --text-main: var(--text-main-light);
  --text-muted: var(--text-muted-light);
  --border-c: var(--border-light);
  --nav-bg: rgba(240,247,244,0.95);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Lato',sans-serif;
  background:var(--bg);
  color:var(--text-main);
  transition:background .4s,color .4s;
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:'Cinzel',serif;}

/* NAV */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:var(--nav-bg);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-c);
  padding:0 2rem;
  height:68px;
  display:flex;align-items:center;justify-content:space-between;
  transition:background .4s;
}
.nav-logo{
  display:flex;align-items:center;gap:.75rem;
  font-family:'Cinzel',serif;font-size:1.1rem;font-weight:700;
  color:var(--emerald);text-decoration:none;letter-spacing:.04em;
}
.nav-logo svg{width:38px;height:38px;flex-shrink:0;}
.nav-links{display:flex;gap:1.8rem;align-items:center;}
.nav-links a{
  font-family:'Lato',sans-serif;font-size:.85rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-muted);text-decoration:none;
  transition:color .2s;
}
.nav-links a:hover{color:var(--emerald);}
.theme-toggle{
  background:none;border:1px solid var(--border-c);border-radius:50%;
  width:38px;height:38px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--emerald);font-size:1.1rem;
  transition:background .2s,transform .2s;
}
.theme-toggle:hover{background:var(--emerald-muted);transform:rotate(20deg);}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;border:none;background:none;padding:6px;}
.hamburger span{display:block;width:24px;height:2px;background:var(--emerald);border-radius:2px;transition:transform .3s,opacity .3s;}

/* HERO */
#hero{
  min-height:100vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
  padding:6rem 2rem 4rem;
  text-align:center;
}
#canvas-bg{position:absolute;inset:0;width:100%;height:100%;z-index:0;}
.hero-content{position:relative;z-index:2;max-width:800px;}
.hero-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--emerald-muted);
  border:1px solid var(--border-c);
  border-radius:100px;padding:.35rem 1rem;
  font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--emerald);margin-bottom:1.8rem;
  animation:fadeUp .8s ease both;
}
.hero-title{
  font-size:clamp(2.4rem,6vw,4.2rem);
  font-weight:700;line-height:1.1;
  color:var(--text-main);
  margin-bottom:1rem;
  animation:fadeUp .9s .1s ease both;
}
.hero-title .accent{color:var(--emerald);}
.hero-sub{
  font-size:clamp(1rem,2.5vw,1.25rem);
  color:var(--text-muted);font-weight:300;
  line-height:1.65;margin-bottom:.75rem;
  animation:fadeUp 1s .2s ease both;
}
.hero-company{
  font-family:'Cinzel',serif;font-size:.9rem;font-weight:600;
  color:var(--gold);letter-spacing:.12em;margin-bottom:2.2rem;
  animation:fadeUp 1s .25s ease both;
}
.hero-cta{
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;
  animation:fadeUp 1s .35s ease both;
}
.btn-primary{
  background:var(--emerald-deep);color:#030f07;
  border:none;border-radius:6px;padding:.85rem 2.2rem;
  font-family:'Lato',sans-serif;font-size:.9rem;font-weight:700;
  letter-spacing:.06em;cursor:pointer;text-decoration:none;
  transition:transform .2s,box-shadow .2s;
  display:inline-flex;align-items:center;gap:.5rem;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(74,222,128,.35);}
.btn-outline{
  background:transparent;
  border:1px solid var(--border-c);border-radius:6px;padding:.85rem 2.2rem;
  font-family:'Lato',sans-serif;font-size:.9rem;font-weight:700;
  letter-spacing:.06em;cursor:pointer;text-decoration:none;
  color:var(--emerald);
  transition:background .2s,transform .2s;
  display:inline-flex;align-items:center;gap:.5rem;
}
.btn-outline:hover{background:var(--emerald-muted);transform:translateY(-2px);}
.hero-stats{
  display:flex;gap:3rem;justify-content:center;flex-wrap:wrap;
  margin-top:3.5rem;
  animation:fadeUp 1s .45s ease both;
}
.hero-stat{text-align:center;}
.hero-stat .num{
  font-family:'Cinzel',serif;font-size:2rem;font-weight:700;
  color:var(--emerald);display:block;
}
.hero-stat .lbl{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);}

/* SECTIONS */
section{padding:5rem 2rem;}
.section-inner{max-width:1100px;margin:0 auto;}
.section-tag{
  font-size:.72rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--emerald);margin-bottom:.75rem;display:block;
}
.section-title{
  font-size:clamp(1.7rem,4vw,2.5rem);font-weight:600;
  line-height:1.2;margin-bottom:.75rem;
  color:var(--text-main);
}
.section-sub{
  font-size:1rem;color:var(--text-muted);font-weight:300;
  line-height:1.7;max-width:640px;margin-bottom:3rem;
}

/* SECTEURS */
#secteurs{background:var(--bg);}
.secteurs-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1.5rem;
}
.secteur-card{
  background:var(--bg-card);
  border:1px solid var(--border-c);
  border-radius:14px;padding:2rem;
  cursor:pointer;
  transition:transform .25s,box-shadow .25s,border-color .25s;
  position:relative;overflow:hidden;
}
.secteur-card::before{
  content:'';position:absolute;inset:0;
  background:var(--emerald-muted);
  opacity:0;transition:opacity .3s;border-radius:14px;
}
.secteur-card:hover{transform:translateY(-4px);border-color:var(--emerald);}
.secteur-card:hover::before{opacity:1;}
.secteur-icon{
  width:52px;height:52px;border-radius:12px;
  background:var(--emerald-muted);border:1px solid var(--border-c);
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;margin-bottom:1.2rem;position:relative;z-index:1;
}
.secteur-card h3{
  font-size:1.05rem;font-weight:600;margin-bottom:.6rem;
  position:relative;z-index:1;color:var(--text-main);
}
.secteur-card p{
  font-size:.88rem;color:var(--text-muted);line-height:1.65;
  position:relative;z-index:1;
}

/* DOUBLE PROFIL */
#profil{background:var(--bg-card2);}
.profil-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;}
@media(max-width:700px){.profil-grid{grid-template-columns:1fr;}}
.profil-col{
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:14px;padding:2.2rem;
}
.profil-col.social{border-top:3px solid var(--emerald);}
.profil-col.securite{border-top:3px solid #ef4444;}
.profil-col-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.8rem;}
.profil-dot{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;}
.profil-dot.green{background:rgba(74,222,128,.12);border:1px solid rgba(74,222,128,.3);}
.profil-dot.red{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);}
.profil-col h3{font-size:1.1rem;font-weight:600;}
.profil-list{list-style:none;}
.profil-list li{
  display:flex;gap:.75rem;align-items:flex-start;
  padding:.75rem 0;border-bottom:1px solid var(--border-c);
  font-size:.9rem;line-height:1.55;color:var(--text-muted);
}
.profil-list li:last-child{border-bottom:none;}
.profil-list li span.tag{
  flex-shrink:0;font-size:.7rem;font-weight:700;letter-spacing:.07em;
  padding:.2rem .55rem;border-radius:100px;margin-top:1px;
}
.profil-list li span.tag.g{background:rgba(74,222,128,.12);color:var(--emerald);}
.profil-list li span.tag.r{background:rgba(239,68,68,.12);color:#f87171;}

/* POURQUOI */
#pourquoi{background:var(--bg);}
.pourquoi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;}
.pourquoi-card{
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:14px;padding:1.8rem;
  transition:transform .25s,border-color .25s;
}
.pourquoi-card:hover{transform:translateY(-3px);border-color:var(--emerald);}
.pourquoi-icon{font-size:1.8rem;margin-bottom:1rem;}
.pourquoi-card h4{font-size:.95rem;font-weight:600;margin-bottom:.5rem;color:var(--text-main);}
.pourquoi-card p{font-size:.85rem;color:var(--text-muted);line-height:1.6;}

/* ZONE */
#zone{background:var(--bg-card2);}
.zone-wrap{display:grid;grid-template-columns:1fr 1.2fr;gap:3rem;align-items:center;}
@media(max-width:800px){.zone-wrap{grid-template-columns:1fr;}}
.zone-map{
  position:relative;border-radius:16px;overflow:hidden;
  border:1px solid var(--border-c);min-height:360px;
  background:var(--bg-card);display:flex;align-items:center;justify-content:center;
}
.zone-map svg{width:100%;max-height:380px;}
.zone-cities{list-style:none;}
.zone-cities li{
  display:flex;align-items:center;gap:.75rem;
  padding:.75rem 0;border-bottom:1px solid var(--border-c);
  font-size:.92rem;color:var(--text-main);
}
.zone-cities li:last-child{border-bottom:none;}
.zone-dot{width:8px;height:8px;border-radius:50%;background:var(--emerald);flex-shrink:0;}

/* MAINTENANCE */
#maintenance{background:var(--bg);}
.maintenance-inner{
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:16px;padding:3rem;
  display:flex;gap:2.5rem;align-items:center;flex-wrap:wrap;
}
.maintenance-text{flex:1;min-width:260px;}
.maintenance-text h2{font-size:1.6rem;margin-bottom:.75rem;}
.maintenance-text p{font-size:.95rem;color:var(--text-muted);line-height:1.7;}

/* CONTACT */
#contact{background:var(--bg-card2);}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;}
@media(max-width:700px){.contact-grid{grid-template-columns:1fr;}}
.contact-info{display:flex;flex-direction:column;gap:1.2rem;}
.contact-item{
  display:flex;align-items:flex-start;gap:1rem;
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:12px;padding:1.2rem 1.5rem;
}
.contact-item-icon{
  font-size:1.3rem;width:44px;height:44px;
  background:var(--emerald-muted);border-radius:10px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.contact-item-text .lbl{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.25rem;}
.contact-item-text .val{font-size:.95rem;color:var(--text-main);}
.contact-form{
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:14px;padding:2rem;
}
.contact-form h3{font-size:1.15rem;margin-bottom:1.5rem;color:var(--text-main);}
.form-group{margin-bottom:1.1rem;}
.form-group label{display:block;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.4rem;}
.form-group input,.form-group select,.form-group textarea{
  width:100%;background:var(--bg-card2);
  border:1px solid var(--border-c);border-radius:8px;
  padding:.7rem 1rem;font-family:'Lato',sans-serif;font-size:.9rem;
  color:var(--text-main);outline:none;transition:border-color .2s;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--emerald);}
.form-group textarea{resize:vertical;min-height:100px;}
/* POPUP SUCCESS */
.success-popup-overlay{
  display:none;position:fixed;inset:0;z-index:3000;
  background:rgba(0,0,0,.65);backdrop-filter:blur(8px);
  align-items:center;justify-content:center;padding:1.5rem;
  animation:fadeInOverlay .3s ease;
}
.success-popup-overlay.open{display:flex;}
@keyframes fadeInOverlay{from{opacity:0}to{opacity:1}}
.success-popup{
  background:var(--bg-card);
  border:1px solid rgba(74,222,128,.4);
  border-radius:20px;
  max-width:460px;width:100%;
  padding:3rem 2.5rem;
  text-align:center;
  position:relative;
  animation:popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn{
  from{opacity:0;transform:scale(.8) translateY(20px)}
  to{opacity:1;transform:scale(1) translateY(0)}
}
.success-popup-icon{
  width:80px;height:80px;
  background:rgba(74,222,128,.1);
  border:2px solid rgba(74,222,128,.35);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:2.2rem;
  margin:0 auto 1.5rem;
  animation:checkPop .5s .2s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes checkPop{from{transform:scale(0)}to{transform:scale(1)}}
.success-popup h3{
  font-family:'Cinzel',serif;
  font-size:1.4rem;
  color:var(--emerald);
  margin-bottom:.75rem;
}
.success-popup p{
  font-size:.92rem;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:1.8rem;
}
.success-popup p strong{color:var(--text-main);}
.success-popup-close{
  background:var(--emerald-deep);color:#030f07;
  border:none;border-radius:8px;
  padding:.75rem 2.2rem;
  font-family:'Lato',sans-serif;font-size:.9rem;font-weight:700;
  cursor:pointer;letter-spacing:.04em;
  transition:transform .2s,box-shadow .2s;
}
.success-popup-close:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(74,222,128,.35);}
.success-popup-dots{
  display:flex;justify-content:center;gap:.5rem;margin-bottom:1.5rem;
}
.success-popup-dots span{
  width:8px;height:8px;border-radius:50%;
  background:rgba(74,222,128,.25);
  animation:dotPulse 1.5s ease-in-out infinite;
}
.success-popup-dots span:nth-child(2){animation-delay:.2s;}
.success-popup-dots span:nth-child(3){animation-delay:.4s;background:var(--emerald);}
@keyframes dotPulse{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}

.form-success{
  display:none;text-align:center;padding:2rem;
  color:var(--emerald);font-family:'Cinzel',serif;font-size:1.1rem;
}

/* FOOTER */
footer{
  background:var(--bg-card);border-top:1px solid var(--border-c);
  padding:2.5rem 2rem;text-align:center;
}
.footer-logo{font-family:'Cinzel',serif;font-size:1.4rem;color:var(--emerald);margin-bottom:.5rem;}
.footer-slogan{font-size:.85rem;color:var(--text-muted);font-style:italic;margin-bottom:1.2rem;}
.footer-pillars{
  display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin-bottom:1.5rem;
}
.footer-pill{
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:.3rem .85rem;border-radius:100px;
  border:1px solid var(--border-c);color:var(--text-muted);
}
.footer-copy{font-size:.78rem;color:var(--text-muted);}

/* ANIMATIONS */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease;}
.reveal.visible{opacity:1;transform:none;}

/* MODAL MENTIONS LÉGALES */
.modal-overlay{
  display:none;position:fixed;inset:0;z-index:2000;
  background:rgba(0,0,0,.75);backdrop-filter:blur(6px);
  align-items:center;justify-content:center;padding:1.5rem;
}
.modal-overlay.open{display:flex;}
.modal-box{
  background:var(--bg-card);border:1px solid var(--border-c);
  border-radius:16px;max-width:760px;width:100%;
  max-height:85vh;overflow-y:auto;padding:2.5rem 2rem;
  position:relative;
}
.modal-close{
  position:sticky;top:0;float:right;
  background:var(--emerald-muted);border:1px solid var(--border-c);
  border-radius:50%;width:36px;height:36px;cursor:pointer;
  font-size:1.2rem;color:var(--text-muted);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;margin-bottom:.5rem;
}
.modal-close:hover{background:rgba(239,68,68,.15);color:#f87171;}
.modal-box h2{font-size:1.4rem;color:var(--emerald);margin-bottom:1.5rem;}
.modal-box h3{font-size:1rem;color:var(--emerald);margin:1.5rem 0 .5rem;font-family:'Lato',sans-serif;font-weight:700;letter-spacing:.05em;text-transform:uppercase;}
.modal-box p,.modal-box li{font-size:.88rem;color:var(--text-muted);line-height:1.75;margin-bottom:.5rem;}
.modal-box ul{padding-left:1.2rem;margin-bottom:.75rem;}
.modal-box strong{color:var(--text-main);}
.modal-box a{color:var(--emerald);}

/* COOKIE BANNER */
.cookie-banner{
  position:fixed;bottom:0;left:0;right:0;z-index:1900;
  background:var(--bg-card);border-top:1px solid var(--border-c);
  padding:1.1rem 2rem;
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;
  transform:translateY(0);transition:transform .4s;
}
.cookie-banner.hidden{transform:translateY(110%);}
.cookie-banner p{font-size:.82rem;color:var(--text-muted);flex:1;min-width:200px;line-height:1.5;}
.cookie-banner p a{color:var(--emerald);cursor:pointer;}
.cookie-accept{
  background:var(--emerald-deep);color:#030f07;border:none;
  border-radius:6px;padding:.55rem 1.4rem;
  font-size:.82rem;font-weight:700;cursor:pointer;
  transition:opacity .2s;white-space:nowrap;
}
.cookie-accept:hover{opacity:.85;}

/* RGPD checkbox */
.rgpd-check{
  display:flex;align-items:flex-start;gap:.65rem;
  font-size:.78rem;color:var(--text-muted);line-height:1.55;
  margin-bottom:1.1rem;
}
.rgpd-check input[type=checkbox]{
  width:16px;height:16px;margin-top:2px;flex-shrink:0;
  accent-color:var(--emerald);cursor:pointer;
}
.rgpd-check a{color:var(--emerald);cursor:pointer;}

/* SCROLL TOP */
.scroll-top{
  position:fixed;bottom:2rem;right:2rem;z-index:999;
  width:44px;height:44px;border-radius:50%;
  background:var(--emerald-deep);color:#030f07;border:none;cursor:pointer;
  font-size:1.2rem;display:flex;align-items:center;justify-content:center;
  opacity:0;transform:translateY(12px);
  transition:opacity .3s,transform .3s;box-shadow:0 4px 20px rgba(74,222,128,.4);
}
.scroll-top.show{opacity:1;transform:none;}

/* MOBILE NAV */
.mobile-nav{
  position:fixed;top:68px;left:0;right:0;z-index:999;
  background:var(--nav-bg);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-c);
  padding:1.5rem 2rem;
  display:none;flex-direction:column;gap:1.2rem;
  transform:translateY(-10px);opacity:0;
  transition:transform .3s,opacity .3s;
}
.mobile-nav.open{display:flex;transform:none;opacity:1;}
.mobile-nav a{
  font-family:'Lato',sans-serif;font-size:1rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-muted);text-decoration:none;
  padding:.5rem 0;border-bottom:1px solid var(--border-c);
}
.mobile-nav a:last-child{border-bottom:none;}

@media(max-width:860px){
  .nav-links{display:none;}
  .hamburger{display:flex;}
}
