*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --blue:       #3a6bc8;
  --blue-light: #5b8ee6;
  --red:        #d93030;
  --white:      #ffffff;
  --off:        #f4f7fc;
  --gray:       #6b7a99;
  --border:     #dde4f0;
  --shadow: 0 8px 40px rgba(26,39,68,.10);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 100px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(26,39,68,.07);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 80px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--navy); font-size: .9rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
.nav-tel {
  display: flex; align-items: center; gap: .4rem;
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9rem;
  border: 2px solid var(--border); border-radius: 8px; padding: .4rem .9rem;
  transition: border-color .2s, color .2s; white-space: nowrap;
}
.nav-tel:hover { border-color: var(--blue); color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white); text-decoration: none;
  padding: .55rem 1.2rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); transform: translateY(-1px); }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--off); padding: .9rem 5vw; font-size: .82rem; color: var(--gray); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── HERO ── */
.dept-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #243668 60%, #2d4a8a 100%);
  padding: 70px 5vw 60px; position: relative; overflow: hidden;
}
.dept-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.dept-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center; }
.dept-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(58,107,200,.25); border: 1px solid rgba(91,142,230,.4);
  color: #a9c4f5; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 100px; margin-bottom: 1.3rem;
}
.dept-hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.2; color: var(--white); margin-bottom: 1rem; letter-spacing: -.5px;
}
.dept-hero h1 .accent { color: var(--blue-light); }
.dept-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.78); line-height: 1.6; max-width: 600px; margin: 0 auto 2rem; }
.dept-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue); color: var(--white); text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(58,107,200,.5);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,255,255,.3); color: var(--white); text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); }

.dept-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.dstat-num { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.dstat-num span { color: var(--blue-light); }
.dstat-label { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .2rem; }

/* ── SECTIONS ── */
section { padding: 70px 5vw; }
.container { max-width: 900px; margin: 0 auto; }
.section-label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: .7rem; text-align: center; }
h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.2; letter-spacing: -.4px; color: var(--navy); margin-bottom: 1rem; text-align: center; }

/* Économie */
.eco-section { background: var(--off); }
.eco-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.eco-card p { font-size: 1rem; color: #3a4560; line-height: 1.8; }
.eco-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.eco-tag { background: rgba(58,107,200,.08); color: var(--blue); font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 100px; }

/* Offre rappel */
.offer-section { background: var(--white); }
.offer-card {
  background: linear-gradient(135deg, var(--navy) 0%, #243668 100%);
  border-radius: 20px; padding: 2.5rem; text-align: center;
}
.offer-card .price { font-family: 'Syne', sans-serif; font-size: 2.6rem; font-weight: 800; color: var(--white); }
.offer-card .price span { font-size: 1rem; font-weight: 400; opacity: .8; }
.offer-card .price-sub { font-size: .92rem; color: rgba(255,255,255,.75); margin: .5rem 0 1.8rem; }
.offer-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: .8rem; margin-bottom: 2rem; text-align: left; max-width: 600px; margin-left: auto; margin-right: auto; }
.offer-features li { list-style: none; display: flex; align-items: flex-start; gap: .5rem; font-size: .87rem; color: rgba(255,255,255,.85); min-width: 0; }
.offer-features li::before { content: '✓'; color: var(--blue-light); font-weight: 700; flex-shrink: 0; }

/* Autres départements */
.other-depts { background: var(--off); }
.other-depts-list { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 800px; margin: 0 auto; }
.other-depts-list a {
  font-size: .82rem; color: var(--navy); text-decoration: none;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: .5rem .9rem; transition: border-color .2s, color .2s;
}
.other-depts-list a:hover { border-color: var(--blue); color: var(--blue); }
.map-link-cta { text-align: center; margin-top: 2rem; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 40px 5vw 25px; text-align: center; }
.footer-logo-wrap { display: inline-block; background: var(--white); border-radius: 12px; padding: 8px 16px; margin-bottom: 1rem; }
.footer-logo-wrap img { height: 56px; width: auto; display: block; }
footer p { font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: .6rem; }
footer .footer-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: .8rem; }
footer .footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .82rem; }
footer .footer-links a:hover { color: var(--white); }
footer .footer-copy { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ── CARTE FRANCE ── */
.map-hero { background: linear-gradient(135deg, var(--navy) 0%, #243668 100%); padding: 60px 5vw 40px; text-align: center; }
.map-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: .8rem; letter-spacing: -.5px; }
.map-hero p { color: rgba(255,255,255,.7); font-size: 1rem; max-width: 600px; margin: 0 auto; }

.map-wrap { max-width: 1000px; margin: 0 auto; padding: 50px 5vw; }
.map-svg-container { position: relative; background: var(--off); border-radius: 20px; padding: 2rem; border: 1px solid var(--border); }
.map-svg-container svg { width: 100%; height: auto; display: block; }
.dept-path { fill: #8fb0e6; stroke: #ffffff; stroke-width: 1.2; transition: fill .15s; cursor: pointer; }
.dept-path:hover { fill: var(--blue); }
.map-tooltip {
  position: fixed; pointer-events: none; z-index: 200;
  background: var(--navy); color: var(--white); font-size: .82rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .1s; white-space: nowrap;
}
.map-tooltip.visible { opacity: 1; }

.drom-panel { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.drom-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  padding: .7rem 1.1rem; text-decoration: none; color: var(--navy); font-size: .85rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.drom-btn:hover { border-color: var(--blue); color: var(--blue); }
.drom-btn .pin { color: var(--red); }

.dept-search {
  max-width: 420px; margin: 0 auto 2rem; position: relative;
}
.dept-search input {
  width: 100%; padding: .9rem 1.2rem; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: .95rem; color: var(--navy); outline: none;
  transition: border-color .2s;
}
.dept-search input:focus { border-color: var(--blue); }

.dept-index { margin-top: 3rem; }
.dept-index h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.2rem; text-align: center; color: var(--navy); }
.dept-index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem;
}
.dept-index-grid a {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--navy); font-size: .85rem;
  padding: .6rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--white);
  transition: border-color .2s, color .2s;
}
.dept-index-grid a:hover { border-color: var(--blue); color: var(--blue); }
.dept-index-grid a .code-badge {
  background: var(--off); color: var(--gray); font-size: .72rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 5px; flex-shrink: 0; min-width: 28px; text-align: center;
}
.dept-index-grid a.hidden { display: none; }

@media (max-width: 700px) {
  .nav-links a:not(.nav-tel):not(.nav-cta) { display: none; }
  .nav-links { gap: .4rem; }
  .nav-tel { font-size: .78rem; padding: .35rem .6rem; }
  .nav-cta { padding: .5rem .8rem; font-size: .78rem; }
  nav { height: 84px; padding: 0 4vw; }
  .nav-logo img { height: 64px; }
  section { padding: 50px 4vw; }
}
@media (max-width: 480px) {
  .nav-tel { display: none; }
}
