:root{
  --brand-blue:#0b63c6;
  --brand-blue-2:#0a56ad;
  --brand-green:#8BC53F;
  --text:#0f172a;
  --muted:#6b7280;
  --bg:#f5f7fb;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --shadow: 0 14px 35px rgba(15,23,42,.10);
  --max:1200px; /* ✅ même largeur partout */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial; color:var(--text); background:#fff; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--max), calc(100% - 48px)); margin-inline:auto; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:800;
  border:0;
  cursor:pointer;
  transition:.2s ease;
  white-space:nowrap;
}
.btn--green{
  background:var(--brand-green);
  color:#0b1b09;
  box-shadow: 0 10px 20px rgba(139,197,63,.25);
}
.btn--green:hover{ transform: translateY(-1px); filter:brightness(.98); }

/* ===== TOPBAR ===== */
.topbar{
  background:#f8fafc;
  border-bottom:1px solid var(--line);
  font-size:12px;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}
.topbar__left{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.topbar__right{ color:var(--brand-blue); font-weight:800; }
.topbar__right i{ margin-right:8px; }
.sep{ opacity:.35; }

/* ===== HEADER / NAV ===== */
.header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  position:relative;
}
.brand__logo{ width:140px; height:auto; }

.nav-toggle{ display:none; }
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  align-items:center; justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.burger span{ width:18px; height:2px; background:#111827; border-radius:999px; display:block; }

.nav{ display:flex; gap:22px; align-items:center; }
.nav__link{ font-size:12px; font-weight:700; color:#111827; opacity:.9; }
.nav__link:hover{ color:var(--brand-blue); }
.nav__link.is-active{ color:var(--brand-blue); }

/* ===== FOOTER (style index) ===== */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
}
.footer__top{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap:18px;
  padding:34px 0 22px;
}
.footer__logo{ width:150px; margin-bottom:10px; }
.footer__brand p{ margin:0 0 14px; color:#64748b; font-size:12px; }

.social{ display:flex; gap:10px; }
.social a{
  width:34px; height:34px;
  border-radius:10px;
  display:grid; place-items:center;
  background:rgba(11,99,198,.10);
  color:var(--brand-blue-2);
}

.footer__col h4{
  margin:0 0 10px;
  font-size:14px;
  font-weight:900;
}
.footer__col a{
  display:block;
  color:#64748b;
  font-size:12px;
  padding:6px 0;
}
.footer__col a:hover{ color:var(--brand-blue); }

.contactline{
  display:flex;
  align-items:center;
  gap:10px;
  color:#64748b;
  font-size:12px;
  padding:6px 0;
}
.contactline i{ color:var(--brand-green); }

.footer__bottom{
  border-top:1px solid var(--line);
  padding:14px 0;
  color:#64748b;
  font-size:11px;
}
.footer__bottominner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__links a:hover{ color:var(--brand-blue); }
.sep2{ opacity:.4; margin:0 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .footer__top{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .burger{ display:flex; }
  .nav{
    position:absolute;
    top:100%;
    left:0; right:0;
    background:#fff;
    border-top:1px solid var(--line);
    padding:14px 18px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .nav-toggle:checked ~ .nav{ display:flex; }
  .footer__top{ grid-template-columns:1fr; }
}
:root{
  --brand-blue:#0b63c6;
  --brand-blue-2:#0a56ad;
  --brand-green:#8BC53F;

  --text:#0f172a;
  --muted:#6b7280;
  --bg:#f5f7fb;
  --card:#fff;

  --line:rgba(15,23,42,.10);
  --shadow: 0 14px 35px rgba(15,23,42,.10);

  --radius:18px;        /* ✅ même arrondi partout */
  --max:1200px;         /* ✅ même largeur partout */
}

*{ box-sizing:border-box; }
html{ font-size:16px; }
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  font-size:14px;       /* ✅ base commune */
  color:var(--text);
  background:#fff;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(var(--max), calc(100% - 48px)); margin-inline:auto; }

/* NAV taille identique à l’accueil */
.nav__link{
  font-size:14px;
  font-weight:700;
}

/* Footer identique accueil */
.footer__top{ border-radius:0; } /* rien de spécial, juste pour rappeler : footer dans global */

/* Sous-menus sous "Nos Services" */
.services-tabs{
  background: #f3f6fb; /* même fond gris clair */
  padding: 18px 0 0;
}
.services-tabs__wrap{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.stab{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  color:#0f172a;
  transition:.15s ease;
}

.stab:hover{
  border-color: rgba(11,99,198,.35);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transform: translateY(-1px);
}

/* Optionnel : sur mobile */
@media (max-width: 640px){
  .stab{ width: 100%; text-align:center; }
}

/* ============ NAV LIST (propre) ============ */
.nav{ position: relative; }
.nav__list{
  display:flex;
  align-items:center;
  gap: 26px;
  list-style:none;
  margin:0;
  padding:0;
}

/* Pour éviter que le mega menu soit coupé */
.header, .header__inner{ overflow: visible; }

/* ============ MEGA MENU (comme ta capture) ============ */
.nav__item--mega{
  position: relative; /* ancre du menu */
}

/* conteneur mega (invisible par défaut) */
.mega{
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;          /* prend toute la largeur écran */
  transform: translateX(calc(-1 * (50vw - 50%))); /* aligne au viewport même si container centré */
  display: none;
  z-index: 9999;
}

/* Affichage au survol + focus (clavier) */
.nav__item--mega:hover .mega,
.nav__item--mega:focus-within .mega{
  display: block;
}

/* overlay gris derrière (comme ton exemple) */
.mega__overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.32);
  z-index: 1;
}

/* panneau blanc en haut */
.mega__panel{
  position: relative;
  z-index: 2;
  background:#fff;
  border-top: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 18px 46px rgba(15,23,42,.12);
}

/* zone interne */
.mega__container{
  padding: 0; /* on veut un rendu bien carré */
}

/* ✅ menu vertical centré (colonne blanche) */
.mega__menu{
  width: 320px;
  max-width: 90%;
  margin: 0 auto; /* centre la colonne */
  background:#fff;
  border-left: 1px solid rgba(15,23,42,.10);
  border-right: 1px solid rgba(15,23,42,.10);
}

/* items verticaux */
.mega__item{
  display:block;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(15,23,42,.10);
  color:#0f172a;
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.25;
  background:#fff;
}
.mega__item:hover{
  background: rgba(11,99,198,.06);
  color: var(--brand-blue);
}
.mega__item.is-active{
  background: rgba(11,99,198,.10);
  color: var(--brand-blue);
}

/* Petit style du chevron */
.nav__link--mega i{
  font-size: 12px;
  margin-left: 6px;
  opacity: .75;
}
.nav__item--mega:hover .nav__link--mega i{
  transform: rotate(180deg);
  transition: .18s ease;
}

/* ============ MOBILE (simple) ============ */
@media (max-width: 900px){
  /* sur mobile, on désactive le mega overlay et on peut garder un menu simple */
  .mega{ display:none !important; }
}
