/* =========================================================
   ANAMEV — Design system 2026
   Institutionnel, lisible, rassurant, orienté santé publique.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --color-bg: #f4f7f6;
  --color-surface: #ffffff;
  --color-surface-alt: #eef5f3;
  --color-text: #12313a;
  --color-text-soft: #425d66;
  --color-border: #d9e4e2;
  --color-primary: #0d4f67;
  --color-primary-strong: #083d51;
  --color-primary-soft: #dfeef3;
  --color-accent: #1e8a75;
  --color-accent-strong: #156d5f;
  --color-accent-soft: #e4f5f1;
  --color-warm: #d98b3d;
  --color-warm-soft: #f9eedf;
  --color-success: #1f7a5b;
  --color-success-soft: #e7f4ee;
  --color-warning: #c77a1f;
  --color-warning-soft: #fff2de;
  --color-danger: #b94a48;
  --color-danger-soft: #fdebea;
  --color-shadow: rgba(12, 42, 53, 0.12);
  --color-focus: #f0b13d;

  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 22px rgba(12, 42, 53, 0.08);
  --shadow-medium: 0 14px 28px rgba(12, 42, 53, 0.12);
  --gap: clamp(1.25rem, 2vw, 2rem);
}

* { box-sizing: border-box; }

html,
body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

strong, b { font-weight: 700; }

a {
  color: var(--color-primary);
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-strong);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-text);
  letter-spacing: -0.02em;
  scroll-margin-top: 78px;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

p {
  max-width: 68ch;
  margin: 0 0 1em;
  color: var(--color-text-soft);
}

main,
.page-head,
section,
.hero,
.form-card {
  scroll-margin-top: 78px;
}

.lede {
  font-size: 1.08rem;
  color: var(--color-text-soft);
  max-width: 60ch;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

:focus-visible {
  outline: 3px solid rgba(240, 177, 61, 0.35);
  outline-offset: 2px;
}

/* ---------- Bandeau d'alertes ---------- */
.alert-banner {
  background: var(--color-bg);
  color: #a93233;
  overflow: hidden;
  contain: paint;
  transition: visibility 0s linear, opacity 0.15s ease;
}

.alert-banner.is-suppressed {
  visibility: hidden;
  opacity: 0;
}

.alert-banner__viewport {
  width: 100%;
  overflow: hidden;
  contain: paint;
  padding: 0.6rem 0;
}

.alert-banner__track {
  display: flex;
  width: max-content;
  animation: alert-ticker 32s linear infinite;
}

.alert-banner:hover .alert-banner__track,
.alert-banner:focus-within .alert-banner__track {
  animation-play-state: paused;
}

.alert-banner__item {
  display: inline-flex;
  align-items: center;
  padding: 0 3rem;
  color: #a93233;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.alert-banner__item:hover,
.alert-banner__item:focus-visible {
  text-decoration: none;
  color: #7e2426;
}

@keyframes alert-ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

/* ---------- En-tête ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1100;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--color-text);
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-text-soft);
}

.main-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.38rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  border-color: var(--color-warm);
}

.nav-dropdown {
  position: relative;
  z-index: 1300;
}

.nav-dropdown__toggle {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.38rem 0.15rem;
}

.nav-dropdown__toggle:hover,
.nav-dropdown.active .nav-dropdown__toggle,
.nav-dropdown:focus-within .nav-dropdown__toggle {
  color: var(--color-primary);
  border-color: var(--color-warm);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: -0.6rem;
  min-width: 10rem;
  padding: 0.45rem;
  background: #ffffff;
  opacity: 1;
  z-index: 1400;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-medium);
  display: none;
}

.nav-dropdown--departments .nav-dropdown__menu {
  min-width: 20rem;
}

.nav-dropdown.open .nav-dropdown__menu,
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: grid;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.55rem 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #f4fbff;
  box-shadow: var(--shadow-soft);
}

.main-nav a.btn.btn-primary,
.main-nav a.btn.btn-primary:visited,
.main-nav a.btn.btn-primary:hover,
.main-nav a.btn.btn-primary:focus,
.main-nav a.btn.btn-primary:focus-visible,
.btn.btn-primary,
.btn.btn-primary:visited,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:focus-visible {
  color: #f4fbff !important;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-primary-strong) 0%, #062d3d 100%);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255,255,255,0.7);
  color: var(--color-primary);
  border: 1px solid rgba(13, 79, 103, 0.25);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border-color: rgba(13, 79, 103, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.btn-accent {
  background: var(--color-warm);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
  background: #c67a2b;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
}

.btn__icon,
.alert-banner__icon,
.glance-item__icon,
.contact-item__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.alert-banner__icon {
  width: 0.9rem;
  height: 0.9rem;
}

.nav-toggle {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem;
  color: var(--color-text);
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.8rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(223, 238, 243, 0.35) 0%, rgba(244, 247, 246, 0.6) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -8%;
  right: -4%;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: url('../img/logo-icon.png') center / contain no-repeat;
  opacity: 0.06;
  transform: rotate(12deg);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.glance {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 0 1.2rem;
  box-shadow: var(--shadow-soft);
}

.glance h3 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: none;
  margin: 1.2rem 0 0.2rem;
  font-family: var(--font-sans);
}

.glance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.glance-item:last-child { border-bottom: none; }

.glance-item__icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glance-item .num {
  font-family: var(--font-display);
  color: var(--color-warm);
  font-weight: 800;
}

.glance-item > span:last-child {
  color: var(--color-text);
  font-size: 0.95rem;
  flex: 1;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.9);
}

.contact-list a {
  color: #fff;
}

.contact-item__icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: rgba(228, 245, 241, 0.7);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.9rem;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head .link-more {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Liste éditoriale ---------- */
.entry-list { display: flex; flex-direction: column; }

.entry-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0.9rem;
  margin: 0 -0.7rem;
  border: 1px solid rgba(13, 79, 103, 0.06);
  border-bottom-color: var(--color-border);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.entry-row:hover {
  background: var(--color-primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(13, 79, 103, 0.08);
  border-color: rgba(13, 79, 103, 0.12);
}

.entry-row:hover .entry-title {
  color: var(--color-primary);
  text-decoration: none;
}

.entry-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

.entry-date {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  display: block;
  margin-bottom: 0.25rem;
}

.entry-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--color-text);
  margin: 0;
}

.entry-arrow {
  color: var(--color-primary);
  font-size: 1.3rem;
  justify-self: end;
}

.badge-urgent {
  display: inline-block;
  background: var(--color-danger-soft);
  color: var(--color-danger);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* ---------- Départements ---------- */
.dept-list { border-top: 1px solid var(--color-border); }

.dept-row {
  color: inherit;
  text-decoration: none;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0.6rem;
  margin: 0 -0.6rem;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.dept-row:hover { background: rgba(255,255,255,0.7); }

.dept-row:hover h3 { color: var(--color-primary); }

.dept-row .mark {
  font-family: var(--font-display);
  color: var(--color-warm);
  font-size: 1.1rem;
  font-weight: 800;
}

.dept-row h3 { margin-bottom: 0.3rem; }

.dept-row p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 720px;
  box-shadow: var(--shadow-soft);
}

.form-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.38rem;
  color: var(--color-text);
}

.field .hint {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin-top: 0.3rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 79, 103, 0.12);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.alert-box {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-box.success {
  background: var(--color-success-soft);
  border-color: rgba(31, 122, 91, 0.35);
  color: #1a5c43;
}

.alert-box.error {
  background: var(--color-danger-soft);
  border-color: rgba(185, 74, 72, 0.35);
  color: #8a2e2d;
}

.alert-box.info {
  background: var(--color-primary-soft);
  border-color: rgba(13, 79, 103, 0.2);
  color: var(--color-primary);
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--color-primary-strong);
  color: #ebf3f1;
  margin-top: 3rem;
}

.site-footer .container {
  padding: 3rem var(--gap) 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #d2e5e8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  font-size: 0.94rem;
}

.site-footer p {
  color: #d2e5e8;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1rem var(--gap);
  font-size: 0.82rem;
  color: #c4d7d1;
  text-align: center;
}

/* ---------- Page intérieure générique ---------- */
.page-head {
  padding: 3rem 0 1.8rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(223, 238, 243, 0.55) 0%, rgba(244, 247, 246, 0.16) 100%);
}

.page-head .container {
  padding-top: 0.5rem;
}

.page-head h1 {
  margin-bottom: 0.7rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 0.6rem;
}

.breadcrumb a { color: var(--color-text-soft); }

.content-body {
  max-width: 74ch;
}

.content-body img {
  border-radius: var(--radius-md);
  margin: 1.2rem 0;
  box-shadow: var(--shadow-soft);
}

.content-body h2,
.content-body h3 {
  margin-top: 2rem;
}

.meta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

thead th {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
}

tbody td:last-child {
  text-align: right;
}

tbody tr:hover { background: rgba(223, 238, 243, 0.45); }

/* ---------- Aide-mémoire VigiMobile ---------- */
.vigi-overview {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.vigi-overview h2,
.vigi-section-head h2 { margin-bottom: 0; }

.vigi-facts {
  margin: 1.2rem 0 0;
}

.vigi-facts div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-border);
}

.vigi-facts dt {
  color: var(--color-primary);
  font-weight: 800;
}

.vigi-facts dd { margin: 0; color: var(--color-text-soft); }

.vigi-qr { text-align: center; }
.vigi-qr img { margin: 0 auto 0.8rem; }
.vigi-qr a { font-weight: 700; }

.vigi-notes {
  margin: 2rem 0 3rem;
  padding: 1.3rem 1.5rem;
  background: var(--color-primary-soft);
  border: 1px solid rgba(13, 79, 103, 0.16);
  border-radius: var(--radius-md);
}

.vigi-notes h2 { font-size: 1.3rem; margin-bottom: 0.65rem; }
.vigi-notes ul { margin: 0; padding-left: 1.2rem; color: var(--color-text-soft); }
.vigi-notes li + li { margin-top: 0.45rem; }

.vigi-section-head { margin-top: 2.5rem; }
.vigi-table-wrap { margin-top: 1rem; }
.vigi-table { min-width: 900px; }
.vigi-table th,
.vigi-table td { padding: 0.75rem 0.8rem; }
.vigi-table thead th { background: var(--color-primary); color: #fff; }
.vigi-table thead th:first-child { width: 4.5rem; }
.vigi-table tbody th {
  width: 4.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  text-align: center;
}
.vigi-table tbody tr:nth-child(even) { background: rgba(223, 238, 243, 0.28); }
.vigi-table tbody td:last-child { text-align: left; }

.vigi-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 1.4rem 1.5rem;
  background: var(--color-primary-soft);
  border: 1px solid rgba(13, 79, 103, 0.18);
  border-radius: var(--radius-md);
}

.vigi-download h2 { margin-bottom: 0.35rem; font-size: 1.3rem; }
.vigi-download p { margin: 0; }

.vigi-install-grid { margin-top: 1rem; }
.vigi-install-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.vigi-install-card h3 { color: var(--color-primary); }
.vigi-install-card li + li { margin-top: 0.65rem; }

.document-note {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.director-message {
  max-width: 920px;
}

.director-message__intro {
  margin-bottom: 1.5rem;
}

.director-message__lead {
  color: var(--color-primary);
  font-weight: 700;
}

.director-message__portrait {
  margin: 0 0 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.director-message__portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.director-message__signature {
  margin-top: 2rem;
}

.document-tabs { margin-top: 1rem; }
.document-tabs__list {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}
.document-tabs__tab {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--color-text-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
}
.document-tabs__tab:hover,
.document-tabs__tab:focus-visible,
.document-tabs__tab[aria-selected="true"] {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-color: var(--color-border);
}
.document-tabs__panel {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-surface);
}
.document-list { list-style: none; margin: 0; padding: 0; }
.document-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}
.document-list__item:last-child { border-bottom: 0; }
.document-status {
  flex: 0 0 auto;
  color: var(--color-text-soft);
  font-size: 0.82rem;
  font-style: italic;
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-soft);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.5);
  box-shadow: inset 0 0 0 1px rgba(13, 79, 103, 0.02);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--gap) 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-medium);
    display: none;
    gap: 0.9rem;
  }

  .main-nav.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown__toggle { padding-left: 0.15rem; }
  .nav-dropdown__menu {
    position: static;
    min-width: 0;
    margin-top: 0.3rem;
    padding: 0 0 0 0.8rem;
    border: 0;
    border-left: 2px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
  }
  .nav-dropdown--departments .nav-dropdown__menu { min-width: 0; }
  .nav-dropdown:hover .nav-dropdown__menu { display: none; }
  .nav-dropdown.open .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu { display: grid; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .entry-row { grid-template-columns: 80px 1fr; }
  .entry-arrow { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .page-head h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); overflow-wrap: anywhere; }
  .page-head .lede,
  .breadcrumb { overflow-wrap: anywhere; }
  .alert-banner__item { padding: 0 1.5rem; font-size: 0.88rem; }
  .vigi-overview { display: flex; flex-direction: column; grid-template-columns: none; gap: 1.5rem; }
  .vigi-facts div { grid-template-columns: 1fr; gap: 0.15rem; }
  .vigi-facts dd,
  .vigi-notes,
  .vigi-download,
  .vigi-install-card { overflow-wrap: anywhere; }
  .vigi-download { align-items: flex-start; flex-direction: column; }
  .document-tabs__list { overflow-x: auto; }
  .document-tabs__tab { flex: 0 0 auto; }
  .document-list__item { align-items: flex-start; flex-direction: column; gap: 0.25rem; overflow-wrap: anywhere; }
  .site-footer .container { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .alert-banner__track { animation: none !important; transform: none !important; }
}
/* =========================================================
   Département — mise en page à colonnes + animation
   À ajouter à la fin de la feuille de style existante.
   ========================================================= */

/* ---------- Mise en page en colonnes ---------- */
.dept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}

.dept-layout__main {
  min-width: 0;
}

.dept-layout__aside {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dept-block {
  margin-bottom: 2.2rem;
}

.dept-block:last-child {
  margin-bottom: 0;
}

/* ---------- Cartes "Attributions" ---------- */
.dept-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.dept-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(13, 79, 103, 0.18);
}

.dept-card__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card p {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* ---------- Colonne latérale : Services / Contact ---------- */
.dept-card-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.dept-card-box h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
  color: var(--color-primary);
}

.dept-card-box--contact {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  border-color: transparent;
}

.dept-card-box--contact h3 {
  color: #fff;
}

.dept-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dept-tag-list li {
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Animation d'apparition au scroll ---------- */
/* Par défaut (sans JS ou moteur ne supportant pas IntersectionObserver) : contenu visible tout de suite */
.reveal {
  opacity: 1;
  transform: none;
}

/* Une fois le JS chargé, on active la transition et on masque avant révélation */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Décalage progressif pour les cartes d'attributions */
.js-anim .dept-cards .dept-card:nth-child(1) { transition-delay: 0.02s; }
.js-anim .dept-cards .dept-card:nth-child(2) { transition-delay: 0.08s; }
.js-anim .dept-cards .dept-card:nth-child(3) { transition-delay: 0.14s; }
.js-anim .dept-cards .dept-card:nth-child(4) { transition-delay: 0.2s; }
.js-anim .dept-cards .dept-card:nth-child(5) { transition-delay: 0.26s; }
.js-anim .dept-cards .dept-card:nth-child(6) { transition-delay: 0.32s; }
.js-anim .dept-cards .dept-card:nth-child(7) { transition-delay: 0.38s; }
.js-anim .dept-cards .dept-card:nth-child(8) { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive : tablette ---------- */
@media (max-width: 1024px) {
  .dept-layout {
    grid-template-columns: 1fr;
  }

  .dept-layout__aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dept-layout__aside .dept-card-box {
    flex: 1 1 240px;
  }
}

/* ---------- Responsive : mobile ---------- */
@media (max-width: 640px) {
  .dept-layout__aside {
    flex-direction: column;
  }

  .dept-cards {
    grid-template-columns: 1fr;
  }
}