/* =========================================================
   KELISEGROUP — MAIN.CSS (COMPLET, NETTOYE, UNIFIE)
   ========================================================= */

/* =========================
   VARIABLES
========================= */
:root{
  --blue:#0b2c5f;
  --blue2:#143c7b;

  --red:#e10600;
  --red-soft:#ffe5e5;

  --green:#6aa84f;

  --bg:#eaf0fb;
  --card:#ffffff;
  --soft:#f7f9fe;
  --line:#e5e7eb;

  --muted:#6b7280;
  --text:#0f172a;

  --shadow:0 18px 40px rgba(8,23,48,.18);
  --radius:16px;
  --max:1120px;
}

/* =========================
   RESET / BASE
========================= */
*{box-sizing:border-box}

html,body{
  margin:0;
  padding-top:86px;
  overflow-x:hidden;
}

body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

button,
input,
select,
textarea{
  font-family:inherit;
}

.wrap{
  width:100%;
  margin:0;
}

.shell{
  width:100%;
  background:#fff;
}

/* =========================
   LANG
========================= */
.lang-switch{
  display:flex;
  gap:6px;
}

.lang-switch button{
  border:1px solid var(--blue);
  background:#fff;
  color:var(--blue);
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}

.lang-switch button:hover{
  background:#f8fbff;
}

.lang-switch button.active{
  background:var(--blue);
  color:#fff;
}

body[data-lang="en"] .lang-fr{display:none}
body[data-lang="fr"] .lang-en{display:none}

/* =========================
   NAVBAR
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:9999;
  background:#ffffff;
  color:var(--blue);
  border-bottom:1px solid var(--line);
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.topbar .inner{
  max-width:1400px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.topbar .brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  flex:0 0 auto;
  padding:0;
  margin:0;
  background:transparent;
  color:var(--blue);
  clip-path:none;
}

.logo-wrap{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
}

.topbar .brand .logo{
  height:50px;
  width:auto;
  max-width:none;
}

.brand-tagline{
  display:block;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  color:#64748b;
  letter-spacing:.3px;
  text-transform:uppercase;
  white-space:nowrap;
}

.topbar .nav{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
}

.topbar .nav a{
  padding:6px 10px;
  font-size:13px;
  font-weight:800;
  border-radius:10px;
  color:var(--blue);
  white-space:nowrap;
  transition:.2s ease;
}

.topbar .nav a:hover{
  background:#f1f5f9;
  color:var(--blue2);
}

.topbar .nav .pill{
  border:1px solid var(--blue);
  background:#fff;
  color:var(--blue);
}

.topbar .nav .pill:hover{
  background:var(--blue);
  color:#fff;
}

.topbar .lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0;
}

.topbar .menu-toggle{
  display:none;
  background:transparent;
  border:0;
  color:var(--blue);
  font-size:22px;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}

.topbar .menu-toggle:hover{
  background:#f1f5f9;
}

.mobile-nav{
  display:none;
  background:#ffffff;
  border-top:1px solid var(--line);
  padding:12px 16px;
}

.mobile-nav a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 10px;
  border-radius:12px;
  font-size:14px;
  font-weight:800;
  color:var(--blue);
}

.mobile-nav a:hover{
  background:#f1f5f9;
}

.mobile-nav .pill{
  border:1px solid var(--blue);
}

.mobile-nav.open{
  display:block;
}

/* =========================
   HERO
========================= */
.hero{
  position:relative;
  z-index:1;
  min-height:auto;
  padding:78px 60px 56px;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(8,23,48,.78), rgba(8,23,48,.42)),
    url("/static/img/hero-kelise.png") center / cover no-repeat;
}

.hero .max{
  max-width:var(--max);
  margin:0 auto;
}

.hero h1{
  margin:0 0 14px;
  font-size:40px;
  font-weight:1000;
  line-height:1.1;
  max-width:760px;
}

.hero .sub,
.hero p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  opacity:.95;
  max-width:620px;
}

.route-banner{
  margin-top:20px;
  max-width:760px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter:blur(8px);
}

.route-banner .kicker{
  font-weight:1000;
  letter-spacing:.4px;
  text-transform:uppercase;
  font-size:13px;
}

.route-banner .lines{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  font-size:13px;
  font-weight:900;
}

.route-banner .tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(11,44,95,.45);
  border:1px solid rgba(255,255,255,.14);
}

.route-banner .tag b{
  color:#ffd6d6;
}

.cta-plate{
  margin-top:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.hero-metrics{
  margin-top:24px;
  display:grid;
  gap:12px;
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:920px;
}

.metric{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  padding:12px 14px;
}

.metric strong{
  display:block;
  font-size:18px;
  margin-bottom:4px;
}

.metric span{
  font-size:12px;
  line-height:1.45;
  opacity:.92;
}

/* =========================
   SECTIONS / LAYOUT
========================= */
.section{
  position:relative;
  z-index:2;
  padding:30px 26px;
  background:#fff;
}

.section .max{
  max-width:var(--max);
  margin:0 auto;
}

.title{
  font-weight:1000;
  color:var(--blue);
  margin:0 0 6px;
  font-size:20px;
  line-height:1.2;
}

.hint{
  font-size:12px;
  color:var(--muted);
  margin:0 0 14px;
  line-height:1.5;
}

.split{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

#services,
#estimer{
  padding:56px 26px;
  background:#fff;
}
#contact{
  margin-top:5px !important;
  padding:56px 26px !important;
  background:#fff !important;
  border-top:1px solid #f1f5f9;
}
/* =========================
   CARDS
========================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.mini-services{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.mini{
  background:var(--soft);
  border:1px solid #e8eefb;
  border-radius:18px;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}

.mini:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(15,23,42,.08);
}

.mini img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.mini .body{
  padding:12px 14px 14px;
}

.mini .name{
  font-weight:900;
  color:var(--blue);
  font-size:12px;
  margin-bottom:4px;
}

.mini .desc{
  font-size:11px;
  color:var(--muted);
  line-height:1.4;
}

/* =========================
   FORMS
========================= */
.form-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  min-width:0;
  max-width:100%;
}

.field input,
.field select,
.field textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-size:13px;
  background:#fff;
  color:var(--text);
}

.field textarea{
  min-height:80px;
  resize:vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,44,95,.08);
}

.form-grid .field[style*="grid-column:1/-1"],
.form-grid .field.full,
.form-grid .full{
  grid-column:1 / -1 !important;
}

.form-grid .full{
  grid-column:1 / -1;
}

.door-fields{
  display:none;
}

.door-fields.active{
  display:grid;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.badge{
  background:var(--soft);
  border:1px dashed #cbd5f5;
  color:var(--blue);
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:800;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:12px;
  padding:10px 16px;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
  transition:.2s ease;
}

.red,
.orange{
  background: linear-gradient(135deg, #2f7bff, #1d4ed8);
  color:#fff !important;
}

.red:hover,
.orange:hover{
  background:#c70500;
}

.green{
  background:var(--green);
  color:#fff;
}

.green:hover{
  background:#5f9847;
}

.blue{
  background:var(--blue2);
  color:#fff;
}

.blue:hover{
  background:var(--blue);
}

.btn.ghost{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.24);
  color:#fff;
}

.btn.ghost:hover{
  background:rgba(255,255,255,.18);
}


.btn-primary{
  background: linear-gradient(135deg, #2f7bff, #1d4ed8);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(29,78,216,.25);
}

.btn-primary:hover{
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}


.btn-secondary{
  background:#0b57b9 !important;
  color:#ffffff !important;
  border:1px solid #0b57b9 !important;
}

.btn-secondary:hover{
  background:#08479a !important;
}

.btn-danger{
  background:#ef4444;
  color:#fff;
}

.btn-danger:hover{
  background:#dc2626;
}

.btn-sm{
  padding:6px 10px;
  font-size:13px;
  border-radius:8px;
}

/* =========================
   TRACKING / STATUS
========================= */
.status{
  display:grid;
  gap:12px;
  margin-top:16px;
}

.status-item{
  border-left:4px solid var(--green);
  background:var(--soft);
  padding:12px;
  border-radius:12px;
  font-size:13px;
}

.status-item span{
  display:block;
  color:var(--muted);
  font-size:12px;
}

.roadmap{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin:18px 0 6px;
}

.roadmap-step{
  background:var(--soft);
  border:1px solid #e1e8f8;
  border-radius:14px;
  padding:12px;
  text-align:center;
  font-size:11px;
  font-weight:800;
  color:var(--blue);
  position:relative;
}

.roadmap-icon{
  display:block;
  font-size:18px;
  line-height:1;
  margin-bottom:6px;
}

.roadmap-step::before{
  content:"";
  width:34px;
  height:34px;
  border-radius:50%;
  background:tranparent;
  display:block;
  margin:0 auto 8px;
  box-shadow:0 6px 12px rgba(225,6,0,.22);
}

.roadmap-step.active{
  border-color:rgba(106,168,79,.4);
  background:rgba(106,168,79,.12);
}

.roadmap-step.active::before{
  background:linear-gradient(135deg,var(--green),#8ccf6c);
}

.roadmap-step:not(:last-child)::after{
  content:"";
  position:absolute;
  top:28px;
  right:-8px;
  width:16px;
  height:2px;
  background:rgba(11,44,95,.35);
}

/* =========================
   BLOG
========================= */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.filter-pill{
  background:var(--soft);
  border:1px solid #dbe4f7;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:800;
  color:var(--blue);
}

.blog-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.post{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

.post img{
  height:160px;
  object-fit:cover;
  width:100%;
}

.post-body{
  padding:14px;
}

.post-body h3{
  margin:0 0 6px;
  font-size:15px;
  color:var(--blue);
}

.post-body p{
  margin:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}

.post-meta{
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
  margin-bottom:8px;
}

.callout{
  background:linear-gradient(120deg,rgba(225,6,0,.08),rgba(106,168,79,.12));
  border:1px solid rgba(225,6,0,.22);
  border-radius:16px;
  padding:16px;
}

.callout h3{
  margin:0 0 6px;
  color:var(--blue);
}

.callout p{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

/* =========================
   AUTH
========================= */
.auth-container{
  max-width:480px;
  margin:60px auto;
  padding:30px;
  background:rgba(255,255,255,.05);
  border-radius:16px;
  backdrop-filter:blur(10px);
}

.auth-container h2{
  margin-bottom:20px;
  text-align:center;
}

.auth-container input,
.auth-container select,
.auth-container textarea{
  width:100%;
  padding:14px 16px;
  font-size:16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.08);
  color:white;
  outline:none;
}

.auth-container input:focus,
.auth-container select:focus,
.auth-container textarea:focus{
  border-color:var(--red);
}

.auth-container button{
  width:100%;
  padding:14px;
  font-size:16px;
  border-radius:12px;
  border:none;
  cursor:pointer;
}

/* =========================
   ESTIMATE RESULT
========================= */
.estimate-result .line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-bottom:1px dashed rgba(15,23,42,.10);
}

.estimate-result .line:last-child{
  border-bottom:0;
}

.estimate-result .label{
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.estimate-result .value{
  font-weight:900;
  font-size:14px;
  color:var(--text);
}

.estimate-result .value.price{
  color:var(--red);
  font-size:16px;
  letter-spacing:.2px;
}

.estimate-result .price-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background:blue;
  border:1px solid rgba(225,6,0,.35);
  color:var(--red);
}

.estimate-result .total-box{
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  background:rgba(225,6,0,.10);
  border:1px solid rgba(225,6,0,.25);
}

/* =========================
   TABLES
========================= */
.table{
  width:100%;
  border-collapse:collapse;
}

.table th{
  text-align:left;
  padding:12px;
  font-weight:600;
  border-bottom:1px solid #e5e7eb;
}

.table td{
  padding:12px;
  border-bottom:1px solid #f0f0f0;
}

/* =========================
   CLIENT AREA
========================= */
.client-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:20px;
  align-items:start;
}

.client-sidebar{
  background:linear-gradient(180deg,#ffffff,#f7f9ff);
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.client-sidebar h3{
  margin-top:0;
  font-size:16px;
  font-weight:700;
  margin-bottom:14px;
  color:#0f172a;
}

.client-sidebar nav{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.client-sidebar a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:#334155;
  transition:all .2s ease;
}

.client-sidebar a:hover{
  background:#eef3ff;
  color:#0b57b9;
  transform:translateX(4px);
}

.client-sidebar a.active{
  background:#0b57b9;
  color:white;
}

.client-sidebar a.logout{
  margin-top:10px;
  border-top:1px solid #e5e7eb;
  padding-top:12px;
  color:#dc2626;
}

.client-sidebar a.logout:hover{
  background:#fee2e2;
}

/* =========================
   FOOTER
========================= */
.footer{
  background:linear-gradient(180deg,var(--blue),var(--blue2));
  color:#dbeafe;
  padding:26px 20px;
  font-size:12px;
}

.footer .inner{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  gap:12px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.footer h4{
  margin:0 0 6px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.footer a{
  color:#dbeafe;
  opacity:.9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px){
  .brand-tagline{
    white-space:normal;
    max-width:260px;
  }
}

@media (max-width: 1024px){
  .topbar .nav{
    justify-content:flex-start;
  }
}

@media (max-width: 980px){
  .hero{
    padding:64px 24px 42px;
  }

  .hero h1{
    font-size:34px;
  }

  .mini-services{
    grid-template-columns:repeat(2,1fr);
  }

  .split{
    grid-template-columns:1fr;
  }

  .blog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .topbar .nav{
    display:none;
  }

  .topbar .menu-toggle{
    display:inline-flex;
  }

  .topbar .inner{
    padding:10px 16px;
  }

  .topbar .brand .logo{
    height:54px;
    max-width:150px;
  }

  .brand-tagline{
    font-size:9px;
    white-space:normal;
    max-width:180px;
  }

  .hero-metrics{
    grid-template-columns:1fr;
  }

  .form-grid{
    grid-template-columns:1fr !important;
  }

  .form-grid .field,
  .form-grid .field[style*="grid-column"]{
    grid-column:1 / -1 !important;
  }

  .client-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  #parcels-container .card{
    border-radius:14px;
  }

  .form-grid .full{
    grid-column:1 / -1;
  }
}

@media (max-width: 560px){
  .mini-services{
    grid-template-columns:1fr;
  }

  .blog-grid{
    grid-template-columns:1fr;
  }

  .roadmap{
    grid-template-columns:1fr;
  }

  .roadmap-step:not(:last-child)::after{
    display:none;
  }

  .footer .inner{
    grid-template-columns:1fr;
  }

  .section{
    padding:18px;
  }

  .hero{
    padding:52px 18px 34px;
  }

  .hero h1{
    font-size:28px;
  }

  .hero-metrics{
    grid-template-columns:1fr;
  }
}

@media (max-width: 420px){
  .topbar .brand .logo{
    height:46px;
    max-width:130px;
  }

  .brand-tagline{
    font-size:8px;
    max-width:150px;
  }

  .topbar .lang-switch button{
    padding:6px 8px;
    font-size:10px;
  }
}

.card::before,
.card h3::before,
#estimer .card::before,
#estimer .card h3::before{
  content:none !important;
  display:none !important;
}

/* =========================
   CHECKBOX FIX
========================= */

input[type="checkbox"]{
  width:auto !important;
  height:auto !important;
  padding:0 !important;
  margin-right:8px;
  transform:scale(0.9);
  cursor:pointer;
}

/* alignement checkbox + texte */
.checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-start;
}

.checkbox label{
  font-size:13px;
  cursor:pointer;
}

.phone-group{
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.phone-prefix{
  padding:10px 12px;
  background:rgba(11,44,95,.08);
  color:var(--blue);
  font-weight:800;
  border-right:1px solid var(--line);
  white-space:nowrap;
  user-select:none;
}

.phone-group input{
  border:0 !important;
  border-radius:0 !important;
  flex:1;
  min-width:0;
  background:transparent;
}










html[data-lang="en"] .lang-fr,
body[data-lang="en"] .lang-fr{
  display:none !important;
}

html[data-lang="fr"] .lang-en,
body[data-lang="fr"] .lang-en{
  display:none !important;
}

.lang-switch{
  display:flex;
  gap:6px;
  align-items:center;
}

.lang-btn{
  border:1px solid #d0d5dd;
  background:#fff;
  color:#0b2c5f;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.lang-btn.active{
  background:#0b2c5f;
  color:#fff;
  border-color:#0b2c5f;
}