/* =========================================================
   RESET + BASE
========================================================= */
*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;max-width:100%;overflow-x:hidden}

body{
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  line-height:1.6;
  color:#222;
  background:#f9f9f9;
}

img,video{max-width:100%;height:auto;display:block}

a{color:inherit}
a:visited{color:inherit}

/* =========================================================
   CONTAINER
========================================================= */
.container{
  width:100%;
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

/* =========================================================
   TOPBAR
========================================================= */
.topbar{
  background:#111;
  color:#fff;
  text-align:center;
  font-weight:800;
  padding:8px 10px;
  font-size:.9rem;
}

/* =========================================================
   HEADER PRO (compatible avec ton HTML .site-header)
========================================================= */
.site-header{
  position:sticky;
  top:0;
  z-index:2000;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
  width:100%;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  min-width:0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#111;
  min-width:240px;
  flex:1 1 auto;
  min-width:0;
}
.brand-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#111;
  color:#fff;
  font-weight:900;
  letter-spacing:.5px;
  flex:0 0 auto;
}
.brand-text{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.brand-name{font-size:18px;font-weight:900}
.brand-tagline{font-size:12px;color:#666;margin-top:3px}

/* Desktop nav */
.site-nav{
  display:flex;
  align-items:center;
  gap:22px;
}
.nav-link{
  position:relative;
  text-decoration:none;
  color:#222;
  font-weight:700;
  font-size:14px;
  padding:10px 2px;
  opacity:.9;
  transition:opacity .2s,color .2s;
}
.nav-link:hover{opacity:1;color:#000}
.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:4px;
  width:0%;
  height:2px;
  background:#111;
  border-radius:999px;
  transition:width .2s;
}
.nav-link:hover::after{width:100%}

/* Actions */
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  min-width:0;
}

/* Phone pill */
.header-phone{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  transition:transform .15s, box-shadow .15s;
  min-width:0;
}
.header-phone:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.phone-dot{
  width:9px;height:9px;border-radius:999px;
  background:#33d17a;
  box-shadow:0 0 0 4px rgba(51,209,122,.18);
  flex:0 0 auto;
}
.phone-text{font-size:13px;opacity:.9}
.phone-number{font-size:14px}

/* Hamburger */
.menu-btn{
  display:none;
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  flex:0 0 auto;
}
.menu-bars{
  display:block;
  width:20px;height:2px;
  background:#111;
  margin:0 auto;
  position:relative;
  border-radius:999px;
}
.menu-bars::before,
.menu-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;height:2px;
  background:#111;
  border-radius:999px;
}
.menu-bars::before{top:-6px}
.menu-bars::after{top:6px}

/* Mobile menu panel */
.mobile-menu{
  display:none;
  border-top:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.98);
  width:100%;
  max-width:100%;
}
.mobile-menu.open{display:block}

.mobile-menu-inner{
  padding:14px 0 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-link{
  text-decoration:none;
  color:#111;
  font-weight:900;
  padding:12px 12px;
  border-radius:12px;
  background:#f3f3f3;
}
.mobile-call{
  margin-top:6px;
  text-decoration:none;
  color:#fff;
  background:#111;
  padding:12px 12px;
  border-radius:12px;
  font-weight:900;
  text-align:center;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display:inline-block;
  text-decoration:none;
  padding:10px 20px;
  border-radius:12px;
  font-weight:900;
  transition:.2s;
  cursor:pointer;
  border:none;
}
.btn-primary{
  background:#111;
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(0,0,0,.16)}

/* =========================================================
   HERO
========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:110px 20px 70px;
  overflow:hidden;
  width:100%;
  max-width:100%;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:-2;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:-1;
}
.hero-content{position:relative;z-index:1;max-width:950px}
.hero h1{
  font-size:2.6rem;
  margin-bottom:14px;
  color:#fff;
  text-shadow:1px 1px 10px rgba(0,0,0,.55);
}
.hero p{
  font-size:1.15rem;
  margin-bottom:22px;
  color:#fff;
  text-shadow:1px 1px 8px rgba(0,0,0,.55);
}
.hero-features{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-bottom:22px;
}
.hero-features span{
  background:rgba(0,0,0,.55);
  padding:8px 14px;
  border-radius:999px;
  font-size:.92rem;
  color:#fff;
}

/* =========================================================
   SECTIONS
========================================================= */
.section{padding:80px 0}
.section-light{background:#f2f2f2}
.section h2{font-size:1.85rem;margin-bottom:12px;color:#111}
.services-intro{margin-top:10px;color:#333;max-width:950px}

/* =========================================================
   SERVICES GRID
========================================================= */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:22px;
  margin-top:28px;
}
.service-box{
  background:#fff;
  padding:24px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:transform .2s, box-shadow .2s;
}
.service-box:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px rgba(0,0,0,.12);
}
.service-box h3{margin-bottom:8px}

/* =========================================================
   ABOUT GRID
========================================================= */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.about-grid img{
  width:100%;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
}

/* =========================================================
   CONTACT
========================================================= */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding:12px 12px;
  margin-bottom:14px;
  border:1px solid #ddd;
  border-radius:12px;
  font-size:1rem;
  outline:none;
}
.contact-form input:focus,
.contact-form textarea:focus{border-color:#999}
.contact-form button{width:100%}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  background:#111;
  color:#fff;
  text-align:center;
  padding:40px 20px;
  font-size:.9rem;
}
.footer a{color:#ccc;text-decoration:none}
.footer a:hover{text-decoration:underline}

/* =========================================================
   CALL FIXED (mobile)
========================================================= */
.call-fixed{
  display:none;
  position:fixed;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  z-index:3000;
  width:calc(100% - 24px);
  max-width:420px;
}
.call-fixed a{
  display:block;
  width:100%;
  text-align:center;
  background:#111;
  color:#fff;
  padding:14px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 992px){
  .about-grid,
  .contact-grid{grid-template-columns:1fr}
  .hero h1{font-size:2.1rem}
  .hero p{font-size:1rem}
}

@media (max-width: 900px){
  .site-nav{display:none}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center}

  /* ✅ garde le bouton tel mais limite sa place */
  .header-phone{
    max-width:62vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  /* ✅ on enlève le “Urgence” texte si besoin */
  .header-phone .phone-text{display:none}
}

/* ✅ MOBILE : on cache le numéro pour laisser place au burger */
@media (max-width: 600px){
  .brand-tagline{display:none}
  body{padding-bottom:90px}

  /* ✅ ici la vraie solution : le numéro disparaît (le bouton reste) */
  .header-phone{
    max-width:52vw;
    padding:10px 12px;
    gap:8px;
  }
  .header-phone .phone-number{display:none}  /* ✅ libère l’espace */
  .header-phone .phone-text{display:inline}  /* ✅ affiche “Urgence” */
  
  .hero{padding-top:130px}
  .hero h1{font-size:1.7rem}
  .hero p{font-size:.95rem}
  .call-fixed{display:block}
}
