/* =========================================================
   Cheghlek.com – Landing page styles
   Branded with Deep Navy & Precision Teal (sampled from logo)
   ========================================================= */
:root {
  --navy: #0e2138;
  --navy-2: #13264e;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #e6f7f5;
  --gold: #f59e0b;
  --text: #1d2939;
  --muted: #667085;
  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 33, 56, 0.08);
  --shadow-lg: 0 25px 50px rgba(14, 33, 56, 0.18);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.6rem; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .35); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Navbar ---------- */
.navbar { position: fixed; inset: 0 0 auto; z-index: 100; padding: 1rem 0; transition: background .3s, box-shadow .3s, padding .3s; }
.navbar.scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.06); padding: .6rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .01em; color: #fff; }
.logo-mark { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: width .3s, height .3s; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.navbar.scrolled .logo-mark { width: 42px; height: 42px; box-shadow: none; }
.logo-text span { color: var(--teal); font-weight: 700; font-size: .85em; }
.navbar.scrolled .logo { color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: #fff; font-weight: 500; position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--teal); transition: width .25s; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--text); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 26px; height: 3px; border-radius: 3px; background: #fff; transition: .3s; }
.navbar.scrolled .burger span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 8rem 0 5rem; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,33,56,.95) 0%, rgba(14,33,56,.84) 45%, rgba(14,33,56,.38) 100%); }
.hero-content { position: relative; max-width: 1180px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; margin-bottom: 1.2rem; }
.highlight { color: #2dd4bf; }
.hero-sub { font-size: 1.15rem; color: #d0d8e4; max-width: 600px; margin-bottom: 2.2rem; }

.search-box { display: flex; gap: .6rem; background: #fff; padding: .6rem; border-radius: 18px; max-width: 760px; box-shadow: var(--shadow-lg); }
.field { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border-radius: 12px; background: var(--bg-alt); }
.field-icon { font-size: 1.1rem; }
.field input, .field select { flex: 1; border: none; background: transparent; font: inherit; font-size: 1rem; padding: .85rem 0; color: var(--text); outline: none; min-width: 0; }
.quick-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.4rem; font-size: .92rem; color: #b8c3d3; }
.quick-tags button { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: .4rem .9rem; border-radius: 99px; cursor: pointer; font: inherit; font-size: .88rem; transition: background .2s, border-color .2s; }
.quick-tags button:hover { background: var(--teal); border-color: var(--teal); }

/* ---------- Results ---------- */
.results { padding: 3rem 0 1rem; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; }
.link-btn:hover { color: var(--teal); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.pro-card { background: #fff; border: 1px solid #eaecf0; border-radius: var(--radius); padding: 1.3rem; display: flex; gap: 1rem; align-items: center; box-shadow: var(--shadow); animation: fadeUp .4s ease both; }
.pro-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.pro-card h4 { font-size: 1.05rem; }
.pro-meta { font-size: .88rem; color: var(--muted); }
.pro-rating { color: var(--gold); font-weight: 600; font-size: .9rem; }
.pro-card .btn { margin-left: auto; padding: .55rem .9rem; font-size: .85rem; }
.empty { color: var(--muted); grid-column: 1 / -1; padding: 1rem 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats { background: var(--navy); padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: #2dd4bf; font-weight: 800; }
.stat span { color: #b8c3d3; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; margin-bottom: .7rem; }
.section-head h2, .why-text h2, .request-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,33,56,.35), transparent 50%); }
.service-body { padding: 1.5rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.service-link { margin-top: 1rem; color: var(--teal); font-weight: 600; transition: letter-spacing .2s; }
.service-link:hover { letter-spacing: .02em; color: var(--teal-dark); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 38px; left: 16%; right: 16%; border-top: 2px dashed #99f6e4; z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 1rem; }
.step-num { width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 50%; background: #fff; border: 3px solid var(--teal); color: var(--teal); font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.why-img { position: relative; }
.why-img img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% center; }
.why-img::before { content: ''; position: absolute; inset: -18px auto auto -18px; width: 120px; height: 120px; border-radius: 24px; background: var(--teal-soft); z-index: -1; }
.why-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.4rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list li > span { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; font-size: 1.4rem; }
.why-list h4 { font-size: 1.08rem; margin-bottom: .2rem; }
.why-list p { color: var(--muted); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.1rem; border-top: 4px solid var(--teal); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; }
.testimonial blockquote { color: var(--text); font-size: 1rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.testimonial small { display: block; color: var(--muted); }

/* ---------- Request form ---------- */
.request { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.request-text p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; margin-top: 1.5rem; display: grid; gap: .6rem; font-weight: 500; color: var(--navy); }
.card-form { background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow-lg); display: grid; gap: 1.1rem; border: 1px solid #eef0f4; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.card-form input, .card-form select, .card-form textarea {
  font: inherit; font-weight: 400; font-size: .98rem; padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid #e4e7ec; background: var(--bg-alt); color: var(--text); transition: border .2s, background .2s; resize: vertical;
}
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form-msg { font-size: .92rem; min-height: 1.2em; }
.form-msg.ok { color: #12a150; }
.form-msg.err { color: #d92d20; }

/* ---------- Pro CTA ---------- */
.pro-cta { background: linear-gradient(120deg, var(--teal) 0%, var(--teal-dark) 100%); padding: 4.5rem 0; color: #fff; position: relative; overflow: hidden; }
.pro-cta::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; top: -160px; }
.pro-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.pro-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.pro-cta p { color: #e6f7f5; }
.pro-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pro-form input, .pro-form select { font: inherit; padding: .85rem 1rem; border-radius: 12px; border: none; background: rgba(255,255,255,.95); color: var(--text); }
.pro-form input:focus, .pro-form select:focus { outline: 3px solid rgba(14,33,56,.35); }
.pro-form .btn { grid-column: 1 / -1; }
.pro-form .form-msg { grid-column: 1 / -1; color: #fff; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b8c3d3; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-grid a:not(.footer-logo) { display: block; margin-bottom: .5rem; font-size: .95rem; transition: color .2s; }
.footer-grid a:not(.footer-logo):hover { color: #2dd4bf; }
.footer-about { margin-top: 1rem; max-width: 300px; font-size: .95rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 18px; padding: .8rem 1.1rem; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.footer-logo img { width: 170px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 1rem 1.5rem; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform .35s; z-index: 200; max-width: 90%; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff; white-space: nowrap; }
.navbar.scrolled .nav-phone { color: var(--navy); }
.nav-phone:hover { color: var(--teal) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .why, .request, .pro-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 75%; max-width: 320px; background: #fff; flex-direction: column; align-items: flex-start; padding: 6rem 2rem 2rem; gap: 1.6rem; transform: translateX(100%); transition: transform .35s; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { color: var(--text) !important; font-size: 1.1rem; }
  .nav-phone { color: var(--navy) !important; font-size: 1.1rem; }
  .burger { z-index: 101; }
  .burger.open span { background: var(--navy); }
  .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .search-box { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .form-row, .pro-form { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Localisation de l'intervention ---------- */
.location-group {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.1rem;
  display: grid;
  gap: .6rem;
}
.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.location-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}
.location-badge-req {
  font-size: 11px;
  background: #E0F2FE;
  color: #0284C7;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.location-hint {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .2rem;
}
.btn-loc {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFF;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}
.btn-loc:hover {
  border-color: var(--teal);
  background: #F0FDFA;
}
.btn-loc.active {
  border-color: var(--teal);
  background: #F0FDFA;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}
.btn-loc-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}
.btn-loc-text strong {
  display: block;
  font-size: .85rem;
  color: var(--navy);
  font-weight: 600;
}
.btn-loc-text small {
  display: block;
  font-size: .73rem;
  color: var(--muted);
}

.location-preview {
  margin-top: .3rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.loc-preview-content {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.loc-check {
  font-size: 1.15rem;
  color: #16A34A;
}
.loc-text-group strong {
  display: block;
  font-size: .85rem;
  color: #166534;
}
.loc-subtext {
  font-size: .78rem;
  color: #15803D;
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}
.loc-subtext a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}
.btn-remove-loc {
  background: transparent;
  border: none;
  color: #991B1B;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-remove-loc:hover {
  background: #FEE2E2;
}

.address-input-wrap {
  margin-top: .3rem;
}
.address-input-wrap label {
  font-size: .85rem;
  color: var(--navy);
}

/* Modale Carte Interactive / Google Maps */
.map-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 33, 56, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}
.map-modal-backdrop.open {
  display: flex;
}
.map-modal-card {
  background: #FFF;
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}
.map-modal-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-modal-header h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .2rem;
}
.map-modal-header p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}
.map-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}
.map-modal-close:hover {
  color: var(--navy);
  background: #F1F5F9;
}
.map-quick-cities {
  padding: .6rem 1.4rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.btn-quick-city {
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFF;
  cursor: pointer;
  transition: all .15s;
}
.btn-quick-city:hover {
  border-color: var(--teal);
  color: var(--teal);
}
#interactiveMap {
  height: 360px;
  width: 100%;
  background: #E2E8F0;
  position: relative;
}
.map-modal-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.map-selected-info {
  font-size: .83rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
}
.map-selected-info a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  font-size: .78rem;
  margin-top: 2px;
}
.map-modal-actions {
  display: flex;
  gap: .6rem;
}

@media (max-width: 600px) {
  .location-actions {
    grid-template-columns: 1fr;
  }
  #interactiveMap {
    height: 280px;
  }
  .map-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .map-modal-actions {
    justify-content: stretch;
  }
  .map-modal-actions .btn {
    flex: 1;
  }
}

