/* ==========================================================================
   Canalisation Assainissement 64/40 — Styles globaux
   Mobile-first, bleu foncé #0D3B66, turquoise #2EC4B6
   ========================================================================== */

/* Variables */
:root {
  --primary: #0D3B66;
  --primary-dark: #082a4d;
  --primary-light: #1a5296;
  --secondary: #2EC4B6;
  --secondary-dark: #23a99c;
  --secondary-light: #4dd4c8;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --danger: #e63946;
  --success: #2dc653;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(13,59,102,.12);
  --shadow-lg: 0 8px 32px rgba(13,59,102,.18);
  --transition: .22s ease;
  --max-w: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout helpers */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.section { padding: 3.5rem 0; }
.section-lg { padding: 5rem 0; }
.section-sm { padding: 2rem 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-light { background: var(--gray-50); }
.bg-white { background: var(--white); }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* Section titles */
.section-label {
  display: inline-block;
  background: rgba(46,196,182,.12);
  color: var(--secondary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: .85rem;
}
.section-title { margin-bottom: .75rem; }
.section-subtitle { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--secondary-light);
}
.card-body { padding: 1.5rem; }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(46,196,182,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--secondary-dark);
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; }

/* Service cards */
.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover { color: inherit; }
.service-card .card-title { font-size: 1.1rem; margin-bottom: .5rem; color: var(--primary); }
.service-card .card-desc { font-size: .9rem; color: var(--gray-500); flex: 1; }
.service-card .card-link {
  margin-top: 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--secondary-dark);
  display: flex; align-items: center; gap: .35rem;
}

/* Nav */
.site-header {
  background: var(--primary);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white) !important;
  line-height: 1.2;
}
.nav-logo span { color: var(--secondary); }
.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--secondary); }
.nav-cta {
  display: none;
}
.nav-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--white); padding: .4rem;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  background: var(--primary-dark);
  padding: 1rem;
  flex-direction: column;
  gap: .5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85);
  padding: .6rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  display: block;
  transition: all var(--transition);
}
.mobile-menu a:hover { background: rgba(46,196,182,.15); color: var(--secondary); }
.mobile-cta {
  margin-top: .5rem;
  background: var(--secondary);
  color: var(--white) !important;
  text-align: center;
  font-weight: 700 !important;
  border-radius: var(--radius);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2540 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("https://images.pexels.com/photos/6419128/pexels-photo-6419128.jpeg?auto=compress&cs=tinysrgb&h=650&w=940") center/cover no-repeat;
  opacity: .08;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(46,196,182,.18);
  border: 1px solid rgba(46,196,182,.3);
  color: var(--secondary-light);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero-subtitle { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 580px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-trust {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.75); font-size: .85rem;
}
.trust-item svg { color: var(--secondary); width: 18px; height: 18px; flex-shrink: 0; }

/* Zones strip */
.zones-strip { background: var(--secondary); padding: 1rem 0; }
.zones-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center;
}
.zones-inner a {
  color: var(--white); font-size: .88rem; font-weight: 600;
  padding: .35rem .85rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.35);
  transition: all var(--transition);
}
.zones-inner a:hover { background: rgba(255,255,255,.2); color: var(--white); }

/* Breadcrumb */
.breadcrumb {
  padding: .9rem 0;
  font-size: .83rem;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--gray-300); }
.breadcrumb a { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--gray-500); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: none;
  border: none; cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .95rem; color: var(--primary);
  transition: background var(--transition);
  gap: .75rem;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question.open { background: var(--gray-50); color: var(--secondary-dark); }
.faq-icon { flex-shrink: 0; transition: transform var(--transition); }
.faq-question.open .faq-icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.25rem 1.1rem; font-size: .92rem; color: var(--gray-700); line-height: 1.7; }
.faq-answer.open { display: block; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .88rem; color: var(--primary); margin-bottom: .4rem; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46,196,182,.15);
}
.form-control::placeholder { color: var(--gray-500); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-check { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; }
.form-check input { margin-top: .2rem; accent-color: var(--secondary); width: 18px; height: 18px; flex-shrink: 0; }
.form-check label { font-size: .88rem; color: var(--gray-700); line-height: 1.5; }
.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.form-steps { display: flex; gap: .5rem; margin-bottom: 2rem; }
.step-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--gray-200); transition: background var(--transition);
}
.step-dot.active { background: var(--secondary); }
.step-dot.done { background: var(--primary); }
.step-label { font-size: .8rem; color: var(--gray-500); margin-bottom: .3rem; }
.step-label.active { color: var(--secondary-dark); font-weight: 700; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }

/* City & service tiles */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--gray-100);
  color: var(--primary);
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .83rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid var(--gray-200);
}
.tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.tag-primary {
  background: rgba(13,59,102,.08);
  border-color: rgba(13,59,102,.15);
  color: var(--primary);
}

/* Info box */
.info-box {
  background: rgba(46,196,182,.08);
  border: 1px solid rgba(46,196,182,.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.info-box.warning {
  background: rgba(230,57,70,.06);
  border-color: rgba(230,57,70,.2);
}
.info-box-title {
  font-weight: 700; color: var(--primary);
  margin-bottom: .4rem; font-size: .95rem;
}

/* Table */
.simple-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.simple-table th {
  background: var(--primary); color: var(--white);
  padding: .75rem 1rem; text-align: left; font-weight: 600;
}
.simple-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-200); }
.simple-table tr:nth-child(even) td { background: var(--gray-50); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }

/* Zone card */
.zone-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.zone-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--secondary);
  transform: translateY(-3px);
}
.zone-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.zone-card-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.zone-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.zone-card p { font-size: .85rem; color: var(--gray-500); margin: 0; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--secondary); }
.footer-col p { font-size: .85rem; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--secondary); }
.footer-logo { font-family: var(--font-heading); font-weight: 800; color: var(--white); font-size: 1rem; }
.footer-logo span { color: var(--secondary); }

/* Sticky mobile CTA */
.mobile-cta-bar {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--primary);
  padding: .75rem 1rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.mobile-cta-bar a {
  flex: 1; text-align: center;
  background: var(--secondary);
  color: var(--white) !important;
  font-weight: 700; font-size: .95rem;
  padding: .7rem 1rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}

/* Reveal on scroll */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .65rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.badge-primary { background: rgba(13,59,102,.1); color: var(--primary); }
.badge-secondary { background: rgba(46,196,182,.12); color: var(--secondary-dark); }
.badge-success { background: rgba(45,198,83,.1); color: var(--success); }

/* Inline icon with text */
.icon-text { display: flex; align-items: center; gap: .5rem; }
.icon-text svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 2.5rem 0;
  color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom: .6rem; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1rem; margin: 0; }

/* Sidebar layout */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.sidebar-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-box ul { display: flex; flex-direction: column; gap: .4rem; }
.sidebar-box ul a { font-size: .88rem; color: var(--primary); padding: .3rem 0; display: block; border-bottom: 1px solid var(--gray-200); }
.sidebar-box ul a:hover { color: var(--secondary); }
.sidebar-cta-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sidebar-cta-box h3 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.sidebar-cta-box p { color: rgba(255,255,255,.75); font-size: .85rem; margin-bottom: 1.25rem; }

/* Alert / notice */
.notice {
  background: rgba(46,196,182,.08);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: var(--gray-700);
  margin: 1.5rem 0;
}
.notice strong { color: var(--primary); }

/* Step process */
.steps-list { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step-item {
  display: flex; gap: 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 19px; top: 44px;
  width: 2px; bottom: 0;
  background: var(--gray-200);
}
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  z-index: 1;
}
.step-content h4 { margin-bottom: .35rem; font-size: 1rem; }
.step-content p { font-size: .9rem; color: var(--gray-500); margin: 0; }

/* Responsive: md (768px) */
@media (min-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 5rem 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .page-with-sidebar { grid-template-columns: 1fr 300px; }
  .mobile-cta-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Responsive: lg (1024px) */
@media (min-width: 1024px) {
  .hero { padding: 6rem 0; }
  .section { padding: 5rem 0; }
  .section-lg { padding: 6.5rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bottom padding for CTA bar */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
