/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1A1A1A; background: #fff; font-size: 16px; line-height: 1.6; }

/* ── VARIABLES ── */
:root {
  --orange: #E86500;
  --orange-light: #FF8C2A;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-bg: #E8F5E9;
  --dark: #1A1A1A;
  --gray: #555;
  --light: #F7F7F7;
  --border: #E0E0E0;
  --white: #fff;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --radius: 8px;
}

/* ── WIREFRAME BADGE ── */
.wireframe-badge {
  position: fixed; bottom: 20px; right: 20px; background: var(--dark);
  color: #fff; font-size: 11px; padding: 6px 12px; border-radius: 20px;
  opacity: 0.7; z-index: 9999; letter-spacing: 0.5px;
}

/* ── NAV ── */
nav { background: #fff; border-bottom: none; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 0 var(--orange), 0 4px 0 var(--green), 0 6px 12px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 22px; font-weight: 800; color: var(--dark); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--orange); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-cta { background: var(--orange); color: #fff; padding: 10px 22px; border-radius: var(--radius); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; display:flex; align-items:center; gap:8px; }
.nav-cta:hover { background: var(--orange-light); }

/* ── HAMBURGER ── */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--dark); border-radius:2px; transition:all .3s; }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; width:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #1A1A1A 60%, #2d2d2d 100%); color: #fff; padding: 80px 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 18px; color: #ccc; margin-bottom: 36px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--orange); color: #fff; padding: 16px 32px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; padding: 16px 32px; border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid #fff; }
.hero-sub { margin-top: 28px; font-size: 13px; color: #999; }

/* ── SECTIONS ── */
section { padding: 64px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 30px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-title span { color: var(--orange); }
.section-sub { color: var(--gray); margin-bottom: 48px; font-size: 16px; }
.bg-light { background: var(--light); }

/* ── CARDS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); border-top: 3px solid var(--orange); }
.card-icon { font-size: 36px; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.card a { display: inline-block; margin-top: 16px; color: var(--orange); font-weight: 600; font-size: 14px; text-decoration: none; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; margin-top: 24px; }
th { background: var(--dark); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--light); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.tag-green { background: #E8F5E9; color: #2E7D32; }
.tag-orange { background: #FFF3E0; color: #E65100; }
.tag-red { background: #FFEBEE; color: #C62828; }

/* ── PROCESSUS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; position: relative; }
.step { text-align: center; padding: 32px 20px; position: relative; }
.step-num { width: 56px; height: 56px; background: var(--orange); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 16px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--gray); }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, #1a3d1c 0%, #2E7D32 100%); color: #fff; padding: 56px 24px; text-align: center; }
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 16px; margin-bottom: 28px; opacity: .9; }
.btn-white { background: #fff; color: var(--green); padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; display: inline-block; }

/* ── REASSURANCE ── */
.reassurance { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.reass-item { text-align: center; }
.reass-num { font-size: 36px; font-weight: 800; color: var(--orange); }
.reass-label { font-size: 13px; color: var(--gray); }

/* ── ZONES ── */
.zones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.zone-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.zone-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.badge-13 { background: var(--orange); }
.badge-83 { background: var(--dark); }
.badge-06 { background: #1565C0; }
.zone-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.communes { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; color: var(--dark); }
input, select, textarea { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; min-height: 100px; }
.btn-submit { background: var(--orange); color: #fff; border: none; padding: 16px 32px; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; }

/* ── CONTACT INFO ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-infos { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 24px; }
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--gray); }
.map-placeholder { background: var(--light); border-radius: var(--radius); height: 280px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 14px; border: 2px dashed var(--border); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); border-left: 3px solid var(--orange); }
.faq-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.faq-item p { font-size: 13px; color: var(--gray); }

/* ── FOOTER ── */
footer { background: var(--dark); color: #ccc; padding: 40px 24px 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #333; }
.footer-brand .logo { color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 15px; line-height: 1.7; }
footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul li a { color: #aaa; text-decoration: none; font-size: 15px; }
footer ul li a:hover { color: var(--orange); }
.footer-bottom { max-width: 1100px; margin: 16px auto 0; font-size: 13px; color: #666; display: flex; justify-content: space-between; }
.tel-footer { font-weight: 700; font-size: 18px; }
.tel-footer a { color: var(--green-light); text-decoration: none; }
.tel-footer a:hover { color: #fff; }

/* ── COUNTER ── */
@keyframes countUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.count-animate { animation: countUp .4s ease forwards; }

/* ── NAV DROPDOWN ── */
.has-dropdown { position: relative; }
.dropdown-toggle { display: flex !important; align-items: center; gap: 5px; cursor: pointer; }
.dropdown-arrow { font-size: 9px; transition: transform .2s; }
.dropdown-arrow.open { transform: rotate(180deg); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,0.13); z-index: 300;
  padding: 6px 0; list-style: none; margin-top: 0;
}
.dropdown::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown.open { display: block; }
.dropdown li { list-style: none; }
.dropdown li a {
  display: block !important; padding: 11px 20px; font-size: 13px !important;
  color: var(--dark) !important; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.dropdown li a:hover { background: var(--light); color: var(--orange) !important; }
.dropdown li:not(:last-child) { border-bottom: 1px solid #f5f5f5; }

/* ── CTA ZONE ── */
.cta-zone { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 0 8px; }
.btn-large { font-size: 17px !important; padding: 16px 40px !important; }
.cta-tel {
  display: inline-flex; align-items: center; gap: 8px; font-size: 20px;
  font-weight: 700; color: var(--dark); text-decoration: none; transition: color .2s;
}
.cta-tel:hover { color: var(--orange); }
.cta-tel svg { flex-shrink: 0; }

/* ── DEPT CARDS GRID (homepage zones) ── */
.dept-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 32px; }
.dept-card {
  background: #fff; border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow); border-left: 4px solid var(--green);
  text-decoration: none; color: var(--dark); display: flex;
  flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(46,125,50,0.18); }
.dept-card .dept-badge { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.dept-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.dept-card p { font-size: 13px; color: var(--gray); flex: 1; line-height: 1.5; }
.dept-card .dept-arrow { color: var(--green); font-weight: 700; margin-top: 14px; font-size: 13px; }

/* ── TEXT BLOCK (content sections) ── */
.text-block p { font-size: 15px; color: var(--gray); line-height: 1.9; margin-bottom: 14px; }
.text-block p:last-child { margin-bottom: 0; }
.text-block strong { color: var(--dark); font-weight: 700; }
.text-block-wide { max-width: 820px; }

/* ── ECO / GREEN accents ── */
.eco-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-bg); border: 1.5px solid rgba(46,125,50,.35);
  color: var(--green); font-size: 12px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 20px; margin-bottom: 18px;
}
.eco-badge::before { content: "♻"; font-size: 14px; }
.stat-item-green { border-left: 4px solid var(--green) !important; }
.stat-item-green .stat-num { color: var(--green) !important; }
.tag-green { background: var(--green-bg); color: var(--green); }
.section-title .green { color: var(--green); }
/* Green stripe on footer brand */
.footer-brand { border-left: 4px solid var(--green); padding-left: 16px; }
/* Green accent line in footer */
footer { border-top: 3px solid var(--green); }

/* ── COMMUNE LIST (dept pages) ── */
.commune-list { list-style: none; column-count: 2; column-gap: 48px; }
.commune-list li {
  font-size: 15px; color: var(--dark); line-height: 1;
  padding: 9px 0; border-bottom: 1px solid #f0f0f0;
  break-inside: avoid;
}
.commune-name { color: #2a7d32; font-weight: 800; letter-spacing: .01em; }
@media(max-width:640px) { .commune-list { column-count: 1; } }

/* ── DEPT PAGE HERO ── */
.dept-hero {
  background: linear-gradient(135deg,#1A1A1A 55%,#2d2d2d 100%);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.dept-hero::before {
  content: attr(data-dept);
  position: absolute; right: 4%; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px,18vw,220px);
  font-weight: 900; color: #fff; opacity: .045; line-height: 1;
  pointer-events: none; user-select: none;
}
.dept-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(46,125,50,.18); border: 1px solid rgba(46,125,50,.45);
  color: #6fcf74; font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.dept-hero h1 { font-size: clamp(24px,3.5vw,42px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 24px; }
.dept-hero h1 span { color: var(--orange); }
.dept-hero .intro-text { max-width: 680px; }
.dept-hero .intro-text p { font-size: 16px; color: rgba(255,255,255,.82); line-height: 1.85; margin-bottom: 10px; }

/* ── DEPT MID CTA ── */
.dept-mid-cta { background: #1a1a1a; padding: 48px 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hamburger { display:flex; }
  .nav-cta { display:none; }
  .nav-links {
    display:none; position:absolute; top:68px; left:0; right:0;
    background:#fff; flex-direction:column; padding:8px 0;
    border-bottom:2px solid var(--orange);
    box-shadow:0 6px 20px rgba(0,0,0,0.10); z-index:200;
  }
  .nav-links.open { display:flex; }
  .nav-links li { border-bottom:1px solid var(--border); }
  .nav-links a { display:block; padding:14px 24px; font-size:15px; }
  .contact-grid, .footer-inner, .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .dept-cards-grid { grid-template-columns: 1fr 1fr; }
  .dropdown { position: static; box-shadow: none; border: none; border-top: 1px solid var(--border); background: var(--light); padding: 0; min-width: 0; display: none; }
  .dropdown.open { display: block; }
  .dropdown li a { padding: 10px 32px !important; }
}
@media(max-width:480px) {
  .dept-cards-grid { grid-template-columns: 1fr; }
}

/* ── HOVER BOUTONS ── */
.btn-primary, .btn-secondary, .btn-white, .btn-submit {
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-primary:hover {
  background: #cc5800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,101,0,.35);
}
.btn-white:hover {
  background: #f0faf0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,50,.22);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.18);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-submit:hover {
  background: #cc5800;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,101,0,.3);
}
.nav-cta { transition: background .18s ease, transform .18s ease; }
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

/* ── RESPONSIVE COMPLÉMENTAIRE ── */
@media(max-width:768px) {
  .section-title { font-size: 22px !important; }
  .section-sub { font-size: 14px; margin-bottom: 32px; }
  .dept-hero { padding: 48px 20px 40px; }
  .dept-mid-cta { padding: 36px 20px; }
  .dept-mid-cta h2 { font-size: 20px; }
  .dept-mid-cta p { font-size: 14px; }
  iframe[src*="maps.google.com"] { height: 260px !important; }
  .btn-primary, .btn-white, .btn-secondary { padding: 14px 24px; font-size: 15px; }
  .footer-brand p { font-size: 13px; }
  .list-style-none { list-style: none; }
}
@media(max-width:480px) {
  .section-title { font-size: 19px !important; }
  .dept-hero h1 { font-size: 22px; }
  iframe[src*="maps.google.com"] { height: 200px !important; }
  .btn-primary, .btn-white { display: block; text-align: center; }
  .footer-inner { gap: 24px; }
}
