/* ===== Variables ===== */
:root {
  --navy: #0f1f5c;
  --blue: #0b5bc4;
  --blue-dark: #0848a3;
  --blue-soft: #e6f0fc;
  --blue-softer: #f3f8fe;
  --text: #1f2633;
  --muted: #4a5263;
  --border: #dde6f2;
  --white: #ffffff;
}

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

body {
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== En-tête ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f4f8fd 0%, #f7fafe 55%, #eef5fd 100%);
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48%;
  background: url("img/header-neuchatel.jpg") right 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.hero-content {
  position: relative;
  padding-top: 22px;
  padding-bottom: 28px;
}
.brand img { height: 48px; display: block; }
.hero h1 {
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  margin: 18px 0 8px;
}
.hero-sub {
  color: var(--muted);
  font-size: 19px;
}

/* ===== Bandeau d'information ===== */
.notice {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: 18px 48px;
  background: linear-gradient(90deg, var(--blue-soft) 0%, #f0f6fd 60%, var(--blue-soft) 100%);
  border: 1px solid #d5e5f8;
  border-radius: 14px;
}
.notice-icon {
  flex-shrink: 0;
  color: var(--blue);
  padding-right: 28px;
  border-right: 1px solid #b9d1ef;
}
.notice-icon svg { width: 50px; height: 50px; display: block; stroke-width: 1.7; }
.notice-text { flex: 1; }
.notice-text h2 {
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 4px;
}
.notice-text p { font-size: 16px; color: var(--text); }
.notice-illu { flex-shrink: 0; color: var(--blue); }
.notice-illu svg { width: 120px; height: 90px; display: block; stroke-width: 2.6; }

/* ===== Grille principale ===== */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.about h2 {
  color: var(--navy);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
}
.about p {
  font-size: 16.5px;
  margin-bottom: 14px;
}

.domains {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.domains li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 17px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill svg { width: 24px; height: 24px; }
.sep { color: #8a93a6; }

/* Cartes */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 26px 24px;
  background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 31, 92, .04);
}
.card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 40px; height: 40px; stroke-width: 1.9; }
.card h3 {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 2.4em;
  margin-bottom: 18px;
}
.card > p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 26px;
  flex: 1;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 16px;
  white-space: nowrap;
  background: linear-gradient(180deg, #0d63d1 0%, var(--blue-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(8, 72, 163, .25);
  transition: filter .2s, transform .1s;
}
.btn svg { width: 22px; height: 22px; stroke-width: 2.1; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }

.card-note {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
}
.card-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Séparateur ===== */
.divider {
  border: none;
  border-top: 1px solid #e3e8ef;
  margin: 26px 0;
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 24px 28px;
  background: linear-gradient(90deg, #f3f7fd 0%, #f8fbfe 100%);
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  margin-bottom: 48px;
}
.circle {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.circle svg { width: 28px; height: 28px; }

.contact-title {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 48px;
  border-right: 1px solid #cfdbea;
  align-self: stretch;
}
.contact-title .circle { width: 64px; height: 64px; }
.contact-title .circle svg { width: 32px; height: 32px; }
.contact-title h2 {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-title h2 svg { width: 20px; height: 20px; stroke-width: 2.2; color: var(--blue); transition: transform .2s; }
.contact-title:hover h2 { color: var(--blue); }
.contact-title:hover h2 svg { transform: translate(2px, -2px); }

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-item > div { display: flex; flex-direction: column; }
.contact-item strong { font-size: 17px; font-weight: 700; color: var(--text); }
.contact-item a {
  color: var(--blue);
  font-size: 21px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.contact-item a:hover { text-decoration: underline; }
.hours { font-size: 15px; color: var(--muted); white-space: nowrap; }

/* ===== Pied de page ===== */
.footer {
  background: #f6f8fb;
  border-top: 1px solid #e3e8ef;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-left { display: flex; align-items: center; gap: 30px; }
.footer img { display: block; height: auto; mix-blend-mode: multiply; }
.logo-ne { max-height: 54px; }
.logo-dffi { max-height: 40px; }
.logo-cpne { max-height: 54px; }

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .contact { grid-template-columns: auto auto 1fr; gap: 24px 40px; }
  .contact-title { grid-column: 1 / -1; border-right: none; padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid #cfdbea; }
}
@media (max-width: 1250px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .about { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-title { grid-column: 1 / -1; border-right: none; padding-right: 0; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero-bg { width: 100%; opacity: .25; }
  .hero-sub { font-size: 16px; }
  .notice { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .notice-icon { border-right: none; padding-right: 0; }
  .notice-illu { display: none; }
  .notice-text h2 { font-size: 21px; }
  .grid { grid-template-columns: 1fr; }
  .domains li { flex-wrap: wrap; }
  .hours, .card-note, .btn { white-space: normal; }
  .card h3 { min-height: 0; }
  .card { padding: 22px 20px; }
  .btn { font-size: 16px; }
  .contact { grid-template-columns: 1fr; padding: 20px; }
  .contact-title h2 { font-size: 22px; white-space: normal; }
  .contact-item a { font-size: 18px; }
  .footer-inner, .footer-left { justify-content: center; flex-wrap: wrap; }
}
