.msds-alert-bar {
    max-width: 1335px;
    margin: 14px auto;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    font-size: 15px;
}

.msds-alert-label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
}

.msds-alert-icon {
  animation: msdsAlertPulse 1.2s infinite;
}

.msds-alert-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.msds-alert-text span {
  display: inline-block;
  animation: msdsTextScroll 16s linear infinite;
}

.msds-alert-link {
  padding: 9px 16px;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.alert-red {
  background: #ffe8e8;
  border-color: #ffcaca;
  color: #10264a;
}

.alert-red .msds-alert-label,
.alert-red .msds-alert-icon {
  color: #d92332;
}

.alert-red .msds-alert-link {
  background: #d92332;
}

.alert-orange {
  background: #fff3e3;
  border-color: #ffd9aa;
  color: #10264a;
}

.alert-orange .msds-alert-label,
.alert-orange .msds-alert-icon {
  color: #f97316;
}

.alert-orange .msds-alert-link {
  background: #f97316;
}

.alert-blue {
  background: #eaf3ff;
  border-color: #bfdcff;
  color: #10264a;
}

.alert-blue .msds-alert-label,
.alert-blue .msds-alert-icon {
  color: #1d4ed8;
}

.alert-blue .msds-alert-link {
  background: #1d4ed8;
}

@keyframes msdsTextScroll {
  0% {
    transform: translateX(0);
  }

  75% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-30%);
  }
}

@keyframes msdsAlertPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

@media (max-width: 768px) {
  .msds-alert-bar {
    margin: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .msds-alert-text {
    width: 100%;
  }

  .msds-alert-link {
    display: none;
  }
}
.header-actions-soft {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(6, 27, 61, 0.06);
}

/* Cartes actions rapides */

.header-actions-soft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.header-actions-soft .action {
    flex: 0 1 auto;
    min-width: auto;
    padding: 14px 18px;
}

.header-actions-soft .action:last-child {
    border-right: none;
}

.header-actions-soft .action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.header-actions-soft .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fond pastel automatique */
    background: color-mix(in srgb, var(--action-color) 12%, white);
}

/* Taille des icônes */
.header-actions-soft .action-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

/* Couleurs individuelles */

.header-actions-soft .action:nth-child(1) .action-icon {
    color: #28a745;
}

.header-actions-soft .action:nth-child(2) .action-icon {
    color: #2563eb;
}

.header-actions-soft .action:nth-child(3) .action-icon {
    color: #f97316;
}

.header-actions-soft .action:nth-child(4) .action-icon {
    color: #dc2626;
}

/* Texte */

.header-actions-soft .action p {
    margin: 0;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.2;
}

.header-actions-soft .action b {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}

/* Couleurs des textes */

.header-actions-soft .action:nth-child(1) b {
    color: #28a745;
}

.header-actions-soft .action:nth-child(2) b {
    color: #2563eb;
}

.header-actions-soft .action:nth-child(3) b {
    color: #f97316;
}

.header-actions-soft .action:nth-child(4) b {
    color: #dc2626;
}

.header-actions-soft .action-soft:last-child {
  border-right: none;
}

.header-actions-soft .action-icon {
    color: var(--action-color) !important;
    font-size: 24px !important;
    font-weight: 700;
}

.header-actions-soft .action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-actions-soft .action-text small {
  font-size: 12px;
  color: #6b7280;
}

.header-actions-soft .action-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--action-color);
}

.header-actions-soft .action-soft:hover {
  background: #f8fbff;
}
.msds-weather-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: #f8fbff;
  color: #10264a;
  text-decoration: none;
  border-left: 1px solid #e6edf5;
}

.msds-weather-card-header:hover {
  background: #eef7ff;
  text-decoration: none;
}

.msds-weather-card-header .msds-weather-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eef7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.msds-weather-card-header .msds-weather-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.msds-weather-card-header .msds-weather-info strong,
.msds-weather-card-header .msds-weather-info b {
  font-size: 15px;
  color: #061b3d;
}

.msds-weather-card-header .msds-weather-info small {
  font-size: 12px;
  color: #6b7280;
}

.msds-weather-arrow {
  font-size: 26px;
  font-weight: 700;
}
/* DESIGN HEADER ACTIONS - VERSION SOFT PREMIUM */

.header-actions-soft {
  display: flex;
  align-items: center;
  gap: 26px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.header-actions-soft .action-soft {
  min-width: 145px;
  height: 112px;
  padding: 14px 20px;
  background: #fff !important;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.header-actions-soft .action-soft:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.header-actions-soft .action-soft:nth-child(4) {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  border-right: none;
}

.header-actions-soft .action-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--action-color) 12%, white);
}

.header-actions-soft .action-icon i {
    font-size: 22px;
    color: var(--action-color);
}
.header-actions-soft .action-text small {
  font-size: 16px;
  color: #5f6673;
}

.header-actions-soft .action-text strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--action-color);
}

/* Conteneur visuel des 4 boutons */
.header-actions-soft .action-soft:first-child {
  box-shadow: -1px 0 0 #e2e8f0, 0 8px 22px rgba(6, 27, 61, 0.06);
}

.header-actions-soft .action-soft:nth-child(2),
.header-actions-soft .action-soft:nth-child(3),
.header-actions-soft .action-soft:nth-child(4) {
  box-shadow: 0 8px 22px rgba(6, 27, 61, 0.04);
}

/* METEO SEPAREE A DROITE */

.msds-weather-card-header {
  height: 112px;
  min-width: 260px;
  padding: 0;
  margin-left: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 22px rgba(6, 27, 61, 0.06);
}

.msds-weather-card-header .msds-weather-icon {
  width: 95px;
  height: auto;
  border-radius: 0;
  background: #f1f7ff;
  font-size: 42px;
}

.msds-weather-card-header .msds-weather-info {
  padding: 18px 18px;
  justify-content: center;
}

.msds-weather-card-header .msds-weather-info strong {
  font-size: 23px;
  font-weight: 800;
}

.msds-weather-card-header .msds-weather-info b {
  font-size: 25px;
  font-weight: 900;
}

.msds-weather-card-header .msds-weather-info small {
  font-size: 18px;
  color: #4b5563;
}

.msds-weather-arrow {
  margin-left: auto;
  padding-right: 18px;
  display: flex;
  align-items: center;
  font-size: 38px;
  color: #061b3d;
}
.header-actions-soft {
  height: 70px !important;
  gap: 2px !important;
  align-items: center !important;
}

.header-actions-soft .action-soft {
  min-width: 118px !important;
  height: 72px !important;
  padding: 8px 14px !important;
}

.header-actions-soft .action-icon {
  width: 34px !important;
  height: 34px !important;
  font-size: 17px !important;
}

.header-actions-soft .action-text small {
  font-size: 13px !important;
}

.header-actions-soft .action-text strong {
  font-size: 15px !important;
}

.msds-weather-card-header {
  height: 72px !important;
  min-width: 190px !important;
  margin-left: 12px !important;
}

.msds-weather-card-header .msds-weather-icon {
  width: 66px !important;
  font-size: 28px !important;
}

.msds-weather-card-header .msds-weather-info {
  padding: 10px 12px !important;
}

.msds-weather-card-header .msds-weather-info strong,
.msds-weather-card-header .msds-weather-info b {
  font-size: 17px !important;
}

.msds-weather-card-header .msds-weather-info small {
  font-size: 13px !important;
}

.msds-weather-arrow {
  font-size: 26px !important;
  padding-right: 12px !important;
}
/* Carte vidéo style premium */
.video-card::before,
.video-card::after,
.video-title::after,
.video-play::before,
.video-play::after {
  content: none !important;
  display: none !important;
}

.video-play {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: rgba(0,31,84,.28) !important;
  box-shadow: none !important;
  animation: none !important;
}
.video-card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(
      to top,
      rgba(0, 28, 70, 0.95) 0%,
      rgba(0, 28, 70, 0.65) 35%,
      rgba(0, 28, 70, 0.10) 70%
    ),
    var(--video-image);
}

.video-title {
  left: 24px;
  right: 24px;
  bottom: 30px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
}

.video-play {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.video-card.video-attention .video-play {
  animation: videoAttention 2s ease-out 1;
}

@keyframes videoAttention {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  }

  35% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 0 18px rgba(255,255,255,.25);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 30px rgba(255,255,255,0);
  }
}
.video-play {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 31, 84, 0.55);
  z-index: 5;
}

.video-play::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

/* Effet halo au scroll */
.video-card.video-attention .video-play {
  animation: videoAttention 2s ease-out 1;
}

@keyframes videoAttention {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  }
  35% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 0 18px rgba(255,255,255,.25);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 30px rgba(255,255,255,0);
  }
}
.video-card .video-play {
  position: absolute !important;
  top: 45% !important;
  left: 50% !important;
  width: 64px !important;
  height: 64px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: rgba(0, 31, 84, 0.55) !important;
  z-index: 10 !important;
  display: block !important;
  font-size: 0 !important;
}

.video-card .video-play::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 25px !important;
  top: 18px !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 20px solid #fff !important;
  border-top: 13px solid transparent !important;
  border-bottom: 13px solid transparent !important;
}
.msds-featured-news,
.featured-news,
.news-slider,
.actualites-slider {
  min-height: 760px;
}
.msds-featured-title,
.featured-news h2 {
  min-height: 90px;
}

.msds-featured-excerpt,
.featured-news p {
  min-height: 70px;
}
.actualites-a-la-une {
  min-height: 850px;
  overflow: hidden;
}
/* Limiter le texte introductif à 2 lignes */
.msds-featured-excerpt,
.featured-news p,
.news-slider p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 58px;
}
.msds-featured-title,
.featured-news h2,
.news-slider h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 86px;
}
/* Titre du grand article : limiter à 2 lignes */
.news-slide-copy h4 {
  min-height: 10px !important;
  max-height: 82px !important;
  overflow: hidden !important;
}

.news-slide-copy h4 a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.15 !important;
}
.news-slide-copy p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
/* ================================
   PAGE DOCUMENTATION - STYLE PREMIUM
   ================================ */

/* Conteneur général */
.com-content-category,
.view-category {
  padding: 35px 45px;
  background: #f6f8fb;
}

/* Masquer l'en-tête du tableau */
.com-content-category table.category thead,
.view-category table.category thead,
.com-content-category table thead,
.view-category table thead {
  display: none;
}

/* Table en mode cartes */
.com-content-category table.category,
.view-category table.category,
.com-content-category table,
.view-category table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 22px !important;
}

/* Chaque ligne devient une carte */
.com-content-category table.category tbody tr,
.view-category table.category tbody tr,
.com-content-category table tbody tr,
.view-category table tbody tr {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 25px;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 30px 26px 86px;
  box-shadow: 0 12px 34px rgba(6, 43, 95, 0.08);
  border: 1px solid rgba(6, 43, 95, 0.06);
  transition: all 0.25s ease;
}

/* Effet au survol */
.com-content-category table.category tbody tr:hover,
.view-category table.category tbody tr:hover,
.com-content-category table tbody tr:hover,
.view-category table tbody tr:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(6, 43, 95, 0.14);
}

/* Icône document à gauche */
.com-content-category table.category tbody tr::before,
.view-category table.category tbody tr::before,
.com-content-category table tbody tr::before,
.view-category table tbody tr::before {
  content: "📄";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf3ff;
  color: #062b5f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Cellules */
.com-content-category table.category tbody td,
.view-category table.category tbody td,
.com-content-category table tbody td,
.view-category table tbody td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  vertical-align: middle;
}

/* Titre document */
.com-content-category table.category tbody td:first-child,
.view-category table.category tbody td:first-child,
.com-content-category table tbody td:first-child,
.view-category table tbody td:first-child {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #12213f;
}

/* Lien titre */
.com-content-category table.category tbody td:first-child a,
.view-category table.category tbody td:first-child a,
.com-content-category table tbody td:first-child a,
.view-category table tbody td:first-child a {
  color: #062b5f;
  text-decoration: none;
}

.com-content-category table.category tbody td:first-child a:hover,
.view-category table.category tbody td:first-child a:hover,
.com-content-category table tbody td:first-child a:hover,
.view-category table tbody td:first-child a:hover {
  color: #0b7fc3;
}

/* Auteur */
.com-content-category table.category tbody td:nth-child(2),
.view-category table.category tbody td:nth-child(2),
.com-content-category table tbody td:nth-child(2),
.view-category table tbody td:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

/* Ajouter libellé Auteur */
.com-content-category table.category tbody td:nth-child(2)::before,
.view-category table.category tbody td:nth-child(2)::before,
.com-content-category table tbody td:nth-child(2)::before,
.view-category table tbody td:nth-child(2)::before {
  content: "Auteur : ";
  font-weight: 600;
  color: #94a3b8;
}

/* Clics transformés en badge */
.com-content-category table.category tbody td:nth-child(3),
.view-category table.category tbody td:nth-child(3),
.com-content-category table tbody td:nth-child(3),
.view-category table tbody td:nth-child(3) {
  min-width: 54px;
  height: 36px;
  padding: 0 14px !important;
  border-radius: 999px;
  background: #eaf7ff !important;
  color: #0b7fc3;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ajouter libellé vues */
.com-content-category table.category tbody td:nth-child(3)::after,
.view-category table.category tbody td:nth-child(3)::after,
.com-content-category table tbody td:nth-child(3)::after,
.view-category table tbody td:nth-child(3)::after {
  content: " vues";
  margin-left: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* Select nombre d'éléments */
.com-content-category select,
.view-category select {
  border: 1px solid #d7dee8;
  border-radius: 10px;
  padding: 9px 14px;
  background: #ffffff;
  color: #062b5f;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(6, 43, 95, 0.06);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .com-content-category,
  .view-category {
    padding: 20px 15px;
  }

  .com-content-category table.category tbody tr,
  .view-category table.category tbody tr,
  .com-content-category table tbody tr,
  .view-category table tbody tr {
    display: block;
    padding: 24px 22px 24px 78px;
  }

  .com-content-category table.category tbody td,
  .view-category table.category tbody td,
  .com-content-category table tbody td,
  .view-category table tbody td {
    display: block;
    margin-bottom: 10px;
  }

  .com-content-category table.category tbody td:nth-child(3),
  .view-category table.category tbody td:nth-child(3),
  .com-content-category table tbody td:nth-child(3),
  .view-category table tbody td:nth-child(3) {
    width: fit-content;
    margin-top: 12px;
  }
}
/* Couleur par rubrique documentaire */

/* Documents administratifs : bleu */
.docs-admin .documents-list .pdf-icon,
.docs-admin .document-card .pdf-icon,
.docs-admin .pdf-badge {
  background: #0b4ea2 !important;
}

/* Lois et règlements : vert */
.docs-lois .documents-list .pdf-icon,
.docs-lois .document-card .pdf-icon,
.docs-lois .pdf-badge {
  background: #198754 !important;
}

/* Textes stratégiques : rouge */
.docs-strategiques .documents-list .pdf-icon,
.docs-strategiques .document-card .pdf-icon,
.docs-strategiques .pdf-badge {
  background: #dc3545 !important;
}

/* Rapports et autres : violet */
.docs-rapports .documents-list .pdf-icon,
.docs-rapports .document-card .pdf-icon,
.docs-rapports .pdf-badge {
  background: #6f42c1 !important;
}
/* Style commun à toutes les pages Documentation */
.docs-page table.category,
.docs-page table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 18px !important;
}

.docs-page table thead {
  display: none !important;
}

.docs-page table tbody tr {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 25px;
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 30px 26px 100px;
  box-shadow: 0 12px 34px rgba(6, 43, 95, 0.08);
  border: 1px solid rgba(6, 43, 95, 0.06);
}

.docs-page table tbody tr::before {
  content: "PDF";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #0b4ea2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.docs-page table tbody td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.docs-page table tbody td:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #12213f;
}

.docs-page table tbody td:first-child a {
  color: #062b5f;
  text-decoration: none;
}

.docs-page table tbody td:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.docs-page table tbody td:nth-child(2)::before {
  content: "Auteur : ";
  color: #94a3b8;
}

.docs-page table tbody td:nth-child(3) {
  min-width: 70px;
  height: 38px;
  padding: 0 16px !important;
  border-radius: 999px;
  background: #eaf7ff !important;
  color: #0b7fc3;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.docs-page table tbody td:nth-child(3)::after {
  content: " vues";
  margin-left: 4px;
  font-size: 12px;
}
.doc-page {
  padding: 10px 0 30px;
}

.doc-intro {
  max-width: 900px;
  margin: 0 0 28px;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.doc-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover,
.doc-card:focus {
  transform: translateY(-4px);
  border-color: #b6d900;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

.doc-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #f1f5f9;
  font-size: 28px;
}

.doc-card h2 {
  margin: 0 0 10px;
  color: #002b66;
  font-size: 1.35rem;
  line-height: 1.3;
}

.doc-card p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.6;
}

.doc-card strong {
  color: #0072bc;
  font-weight: 800;
}

@media (max-width: 768px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .doc-card {
    padding: 22px;
  }
}
/* Champs formulaires services citoyen : meilleure visibilité */
.service-request-form input,
.service-request-form select,
.service-request-form textarea,
.appointment-form input,
.appointment-form select,
.appointment-form textarea,
form input,
form select,
form textarea {
  border: 2px solid #0b4a8b !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0b1f3a !important;
}

/* Effet quand le visiteur clique dans un champ */
.service-request-form input:focus,
.service-request-form select:focus,
.service-request-form textarea:focus,
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #003b7a !important;
  box-shadow: 0 0 0 4px rgba(0, 59, 122, 0.14) !important;
  outline: none !important;
}

/* Placeholder plus lisible */
.service-request-form input::placeholder,
.service-request-form textarea::placeholder,
.appointment-form input::placeholder,
.appointment-form textarea::placeholder,
form input::placeholder,
form textarea::placeholder {
  color: #5f6f86 !important;
  opacity: 1 !important;
}


/* Carte Google Maps - page Contact */
.contact-map-section {
  margin: 28px 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e5edf7;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.contact-map-header {
  margin-bottom: 20px;
}

.contact-map-header span {
  display: inline-block;
  margin-bottom: 8px;
  color: #b6d900;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-map-header h2 {
  margin: 0 0 8px;
  color: #002b66;
  font-size: 1.8rem;
  font-weight: 900;
}

.contact-map-header p {
  margin: 0;
  color: #52627a;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-map-frame {
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #0b4a8b;
  background: #f8fafc;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

@media (max-width: 768px) {
  .contact-map-section {
    padding: 20px;
  }

  .contact-map-header h2 {
    font-size: 1.45rem;
  }

  .contact-map-frame iframe {
    min-height: 320px;
  }
}


/* Ajustement carte contact : plus compacte */
.contact-map-frame iframe {
  min-height: 360px !important;
  height: 360px !important;
}
/* Animation spéciale - bouton Alertes sanitaires */
.quick-action-card:has(.fa-bell),
.quick-action-card:has(i[class*="bell"]),
a:has(.fa-bell),
a:has(i[class*="bell"]) {
  position: relative;
}

/* Cercle derrière la cloche : effet respiration */
.quick-action-card:has(.fa-bell) .quick-action-icon,
.quick-action-card:has(i[class*="bell"]) .quick-action-icon,
a:has(.fa-bell) .quick-action-icon,
a:has(i[class*="bell"]) .quick-action-icon {
  animation: alertPulseSoft 2.4s ease-in-out infinite;
}

/* Cloche : petite vibration de temps en temps */
.quick-action-card:has(.fa-bell) .fa-bell,
.quick-action-card:has(i[class*="bell"]) i[class*="bell"],
a:has(.fa-bell) .fa-bell,
a:has(i[class*="bell"]) i[class*="bell"] {
  transform-origin: top center;
  animation: alertBellShake 4s ease-in-out infinite;
}

/* Respiration du cercle */
@keyframes alertPulseSoft {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.22);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.08);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Vibration légère de la cloche */
@keyframes alertBellShake {
  0%, 82%, 100% {
    transform: rotate(0deg);
  }

  85% {
    transform: rotate(12deg);
  }

  88% {
    transform: rotate(-12deg);
  }

  91% {
    transform: rotate(8deg);
  }

  94% {
    transform: rotate(-8deg);
  }

  97% {
    transform: rotate(4deg);
  }
}
/* Animation spéciale : Alertes sanitaires */
.header-actions-soft .action-soft.action-4 {
  position: relative;
  overflow: visible;
}

/* Cercle derrière la cloche : effet respiration */
.header-actions-soft .action-soft.action-4 .action-icon,
.header-actions-soft .action-soft.action-4 i,
.header-actions-soft .action-soft.action-4 svg {
  position: relative;
  z-index: 1;
}

/* Si le cercle est l'icône ou le bloc autour de l'icône */
.header-actions-soft .action-soft.action-4 .action-icon {
  animation: alertCircleBreath 2.4s ease-in-out infinite;
}

/* La cloche rouge vibre doucement de temps en temps */
.header-actions-soft .action-soft.action-4 i,
.header-actions-soft .action-soft.action-4 svg {
  transform-origin: top center;
  animation: alertBellRing 4.5s ease-in-out infinite;
}

/* Effet respiration du cercle */
@keyframes alertCircleBreath {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(214, 34, 52, 0.22);
  }

  50% {
    transform: scale(1.10);
    box-shadow: 0 0 0 9px rgba(214, 34, 52, 0.08);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(214, 34, 52, 0);
  }
}

/* Vibration légère de la cloche */
@keyframes alertBellRing {
  0%, 78%, 100% {
    transform: rotate(0deg);
  }

  82% {
    transform: rotate(12deg);
  }

  85% {
    transform: rotate(-12deg);
  }

  88% {
    transform: rotate(8deg);
  }

  91% {
    transform: rotate(-8deg);
  }

  94% {
    transform: rotate(4deg);
  }
}



/* Correction finale météo mobile/tablette : afficher la météo sous les 4 boutons */
@media (max-width: 1024px) {
  .header-actions-soft {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 8px 12px 12px !important;
    background: #ffffff !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .header-actions-soft .action-soft {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 76px !important;
    min-height: 76px !important;
    padding: 6px 4px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-actions-soft .msds-weather-card-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 72px !important;
    margin: 8px 0 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f5 !important;
  }

  .header-actions-soft .msds-weather-card-header .msds-weather-icon,
  .msds-weather-card-header .msds-weather-icon,
  #msdsWeatherIcon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 92px !important;
    min-width: 92px !important;
    min-height: 72px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eef6ff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    filter: none !important;
  }

  .header-actions-soft .msds-weather-card-header .msds-weather-info {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .header-actions-soft .msds-weather-card-header .msds-weather-info strong,
  .header-actions-soft .msds-weather-card-header .msds-weather-info b {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  .header-actions-soft .msds-weather-card-header .msds-weather-info small {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

/* Finition météo nuit : lune élégante + nuage doux */
.msds-night-weather-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.msds-night-weather-icon .night-moon {
  color: #233b63 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 5px rgba(15, 23, 42, 0.18) !important;
}

.msds-night-weather-icon .night-cloud {
  font-size: 24px !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
  filter: saturate(0.8) brightness(1.08) !important;
}

@media (max-width: 768px) {
  .msds-night-weather-icon .night-moon {
    font-size: 28px !important;
  }

  .msds-night-weather-icon .night-cloud {
    font-size: 22px !important;
  }
}

/* Correction finale icône météo nuit simple */
#msdsWeatherIcon,
.msds-weather-icon {
  filter: none !important;
  opacity: 1 !important;
}

#msdsWeatherIcon.weather-night-icon,
.msds-weather-icon.weather-night-icon {
  color: #64748b !important;
  filter: none !important;
  opacity: 1 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 700 !important;
}

/* Recherche interne - pages Documentation */
.docs-search-panel {
  margin: 0 0 28px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.docs-search-panel label {
  display: block;
  margin-bottom: 10px;
  color: #061b3d;
  font-size: 0.95rem;
  font-weight: 800;
}

.docs-search-box {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 2px solid #0b4a8b;
  border-radius: 10px;
  background: #ffffff;
  color: #061b3d;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.docs-search-box:focus {
  border-color: #003b7a;
  box-shadow: 0 0 0 4px rgba(0, 59, 122, 0.12);
}

.docs-search-count {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.docs-no-result {
  display: none;
  margin: 18px 0;
  padding: 18px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.docs-no-result.is-visible {
  display: block;
}

.docs-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .docs-search-panel {
    padding: 16px;
    margin-bottom: 20px;
  }

  .docs-search-box {
    height: 50px;
    font-size: 0.95rem;
  }
}

/* Sécurité : le moteur documents est caché par défaut */
.docs-search-panel {
  display: none !important;
}

/* Il s'affiche seulement sur les vraies sous-rubriques Documentation */
body.docs-search-allowed .docs-search-panel {
  display: block !important;
}
/* Page Numéros d'urgence */
.msds-urgence-page {
  font-size: 16px;
  line-height: 1.75;
}

.msds-urgence-intro {
  background: #f5f8ff;
  border-left: 5px solid #0b5ed7;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.msds-urgence-page h2 {
  color: #06285f;
  font-size: 24px;
  margin: 30px 0 18px;
}

.msds-urgence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.msds-urgence-card {
  background: #ffffff;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(3, 35, 84, 0.06);
}

.msds-urgence-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(3, 35, 84, 0.12);
  transition: all 0.25s ease;
}

.msds-urgence-label {
  font-weight: 800;
  color: #06285f;
  margin-bottom: 8px;
}

.msds-urgence-number {
  display: inline-block;
  background: #0aa84f;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.msds-urgence-card p {
  margin: 0;
  color: #172b4d;
}

.msds-urgence-list {
  background: #ffffff;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.msds-urgence-list p {
  margin: 8px 0;
}

.msds-urgence-conseil {
  background: #fff8ec;
  border-left: 5px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 14px;
  margin-top: 25px;
}

.msds-urgence-conseil h2 {
  margin-top: 0;
}

.msds-urgence-final {
  font-weight: 800;
  color: #06285f;
  margin-top: 26px;
}

.msds-urgence-note {
  font-style: italic;
  color: #42526e;
}

/* Mobile */
@media (max-width: 768px) {
  .msds-urgence-grid {
    grid-template-columns: 1fr;
  }

  .msds-urgence-number {
    font-size: 26px;
  }

  .msds-urgence-card,
  .msds-urgence-intro,
  .msds-urgence-conseil,
  .msds-urgence-list {
    padding: 16px;
  }
}
/* Correction accents mobile - titres actualités */
@media (max-width: 768px) {
  .featured-news h2,
  .featured-news h3,
  .featured-news .newsflash-title,
  .featured-news .msds-featured-title,
  .msds-featured-title,
  .news-slider h2,
  .news-slider h3,
  .news-blog-entry h2,
  .news-blog-entry h3,
  .newsflash-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif !important;
    font-variant-ligatures: normal !important;
    letter-spacing: normal !important;
    text-rendering: optimizeLegibility;
  }
}
/* Icône météo nuit : lune grise sobre */
#msdsWeatherIcon,
.msds-weather-icon,
.weather-icon {
  font-size: 40px !important;
  line-height: 1 !important;
  color: #7f8896 !important;
  font-weight: 600 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}