@font-face {
  font-family: "DIN-Regular";
  src: url("/templates/default2/font/din.eot");
  src:
    url("/templates/default2/font/din.eot?#iefix") format("embedded-opentype"),
    url("/templates/default2/font/din.woff2") format("woff2"),
    url("/templates/default2/font/din.woff") format("woff"),
    url("/templates/default2/font/din.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN-Bold";
  src: url("/templates/default2/font/dinbold.eot");
  src:
    url("/templates/default2/font/dinbold.eot?#iefix")
      format("embedded-opentype"),
    url("/templates/default2/font/dinbold.woff2") format("woff2"),
    url("/templates/default2/font/dinbold.woff") format("woff"),
    url("/templates/default2/font/dinbold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b2d4a;
  --navy-mid: #0e3d62;
  --navy-light: #1a3f6f;
  --teal: #ee7203;
  --teal-lt: #e6f8fb;
  --light: #f5f8fb;
  --white: #ffffff;
  --gray: #6c7a89;
  --blue: #2563a8;
  --accent: #f97316;

  --border: #d5e3f0;
  --text: #1e2d40;
  --muted: #6b87a4;

  --head-font: "DIN-Bold", Arial, sans-serif;
  --body-font: "DIN-Regular", Arial, sans-serif;
  --bs-body-font-family: "DIN-Regular", Arial, sans-serif;
}

*,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--body-font);
  background: var(--white);
  color: #2c3e50;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0;
}
.topbar a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: 0.2s;
}
.topbar a:hover {
  color: var(--teal);
}
.topbar .sep {
  margin: 0 0.8rem;
  opacity: 0.3;
}

footer .container {
  overflow-x: hidden;
}

#content_main {
  overflow-x: hidden;
  max-width: 100%;
}

#content_main > .container > * {
  max-width: 100% !important;
}

/* NAVBAR */
.navbar-main {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11, 45, 74, 0.1);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;

  transition:
    padding 0.25s ease,
    box-shadow 0.25s ease;
}

/* Logo animé */
.navbar-main .navbar-brand img {
  height: 90px;
  width: auto;
  transition:
    height 0.25s ease,
    transform 0.25s ease;
  transform-origin: left center;
}

/* Liens (optionnel mais joli) */
.navbar-main .nav-link {
  transition:
    padding 0.25s ease,
    font-size 0.25s ease;
}

/* État "collé" */
.navbar-main.is-stuck {
  padding: 0.25rem 0;

  /* fond semi transparent obligatoire */
  background: rgba(255, 255, 255, 0.8);

  /* flou derrière */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */

  box-shadow: 0 10px 30px rgba(11, 45, 74, 0.14);

  transition:
    padding 0.25s ease,
    backdrop-filter 0.25s ease,
    background 0.25s ease;
}

/* Réduction logo + un poil le menu */
.navbar-main.is-stuck .navbar-brand img {
  height: 52px; /* ajuste */
}

/* Optionnel : rendre les liens + compacts */
@media (min-width: 992px) {
  .navbar-main.is-stuck .nav-link {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    font-size: 0.97rem;
  }
}
.navbar-nav .nav-link {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 0.87rem;
  color: var(--navy) !important;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--teal) !important;
}
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 8px 30px rgba(11, 45, 74, 0.12);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 8px 8px;
  padding: 0.6rem 0;
}
.dropdown-item {
  font-size: 0.84rem;
  color: var(--navy);
  padding: 0.45rem 1.2rem;
}
.dropdown-item:hover {
  background: var(--teal-lt);
  color: var(--teal);
}

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-mid) 55%,
    #0a4a6e 100%
  );
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="700" cy="100" r="300" fill="rgba(0,180,200,0.06)"/><circle cx="100" cy="500" r="200" fill="rgba(0,180,200,0.04)"/></svg>')
    no-repeat center/cover;
}
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-family: var(--head-font);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 180, 200, 0.15);
  border: 1px solid rgba(0, 180, 200, 0.3);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-top: 1.5rem;
}

/* Chiffres hero */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--head-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-num span {
  font-size: 1.2rem;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

/* Hero image card */
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
}

a.hero-card {
  background: rgba(0, 0, 0, 0.1) !important;
}

.hero-card .icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 180, 200, 0.2);
  border: 1px solid rgba(0, 180, 200, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero-card h5 {
  font-family: var(--head-font);
  font-size: 1.3rem;
  font-weight: 600;
}
.hero-card p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ── 4 BLOCS D'ACTION ── */
.action-blocks {
  margin-top: -48px;
  position: relative;
  z-index: 10;
}
.action-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(11, 45, 74, 0.12);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  display: block;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  height: 100%;
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.action-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: 0.25s;
}
.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(11, 45, 74, 0.18);
  color: var(--navy);
}
.action-card:hover::after {
  transform: scaleX(1);
}
.action-card .action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--teal);
  margin: 0 auto 1.2rem;
  transition: background 0.25s;
}
.action-card:hover .action-icon {
  background: var(--teal);
  color: var(--white);
}
.action-card h6 {
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.action-card .action-sub {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.4;
}
.action-card .action-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.6rem;
}

/* ── SECTIONS ── */
.section-title {
  font-family: var(--head-font);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.teal-line {
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── ACTIVITÉ ── */
.activity-section {
  background: var(--light);
  padding: 80px 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.activity-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a4a5c;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy);
  padding: 60px 0;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: var(--head-font);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
}
.stat-unit {
  font-size: 1.4rem;
  color: var(--teal);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}
.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── EMPLOI ── */
.emploi-section {
  padding: 80px 0;
}
.emploi-card {
  background: var(--white);
  border: 1px solid #e2eaf2;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.emploi-card:hover {
  box-shadow: 0 4px 20px rgba(11, 45, 74, 0.08);
  border-color: var(--teal);
}
.emploi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-lt);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.emploi-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.emploi-sub {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ── MATERNITÉ BANNER ── */
.maternite-banner {
  background: linear-gradient(135deg, #0b2d4a 0%, #0e7a8a 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.maternite-banner h3 {
  font-family: var(--head-font);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
}
.maternite-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ── BTN ── */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-teal:hover {
  background: #fca251;
  color: #fff;
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 60px 0 0;
}
.footer-brand {
  font-family: var(--head-font);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.footer-address {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}
.footer h6 {
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: 0.2s;
}
.footer a:hover {
  color: var(--teal);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: 0.2s;
}
.footer-social a:hover {
  background: var(--teal);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding: 16px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── CERTIF BANNER ── */
.certif-bar {
  background: var(--teal-lt);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.certif-bar i {
  font-size: 1.4rem;
  color: var(--teal);
}
.certif-bar p {
  font-size: 0.85rem;
  color: var(--navy-mid);
  margin: 0;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fade-up {
  animation: fadeUp 0.6s ease both;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

/* Responsive */
@media (max-width: 768px) {
  .action-blocks {
    margin-top: 0;
    padding-top: 2rem;
  }
  .hero {
    padding: 50px 0 80px;
  }
  .stat-divider {
    display: none;
  }
}

.jsd {
  display: none;
}

.bloc_esmwork {
  margin: 0 auto -50px !important;
  position: relative;
  width: 95%;
  text-align: center;
  background: url(/logoesmwork.jpg) center center no-repeat;
  background-size: contain;
  height: 260px;
}

.bloc_esmwork strong {
  font-size: 18px;
  margin-top: 162px;
  display: inline-block;
}

.bloc_esmwork i {
  font-size: 12px;
  transform: rotate(-3.7deg);
  display: inline-block;
  margin-top: 7px;
}

/* =============================================
       HERO BANNER PAGE INTÉRIEURE
       (bonus inclus — donne le contexte visuel)
       ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 28px 0 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  right: -80px;
  top: -100px;
}
.page-hero__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.page-hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

/* Breadcrumb dans le hero */
.page-hero .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero .breadcrumb-item a:hover {
  color: #fff;
}
.page-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
  content: "›";
}

/* =============================================
       BARRE RÉSEAUX SOCIAUX FIXE SUR LE CÔTÉ
       Visible uniquement sur desktop (≥992px)
       ============================================= */
.rs_side {
  /* Position fixe sur le côté gauche */
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  z-index: 1050;
}

.rs_side .rs-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background-color: #ffffff; /* Couleur principale – à adapter */
  border-radius: 8px 0px 0px 8px;
  overflow: hidden;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.rs_side .rs-inner a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #0d3a5d;
  font-size: 25px;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.rs_side .rs-inner a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.15);
  color: #ffffff;
}

/* Séparateur entre les icônes */
.rs_side .rs-inner a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Couleurs spécifiques au survol par réseau */
.rs_side .rs-inner a.rs-facebook:hover {
  background-color: #1877f2;
}
.rs_side .rs-inner a.rs-twitter:hover {
  background-color: #1da1f2;
}
.rs_side .rs-inner a.rs-instagram:hover {
  background-color: #e1306c;
}
.rs_side .rs-inner a.rs-linkedin:hover {
  background-color: #0a66c2;
}
.rs_side .rs-inner a.rs-youtube:hover {
  background-color: #ff0000;
}

@media (max-width: 768px) {
  .rs_side {
    position: static !important;
    transform: none !important;
    top: auto !important;
    right: auto !important;
    width: 100%;
    box-shadow: none !important;
  }

  .rs_side .rs-inner {
    flex-direction: row;
    justify-content: center;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
  }

  .rs_side .rs-inner a + a {
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* =========================================================
   POPUP PRO — CSS COMPLET
   - Image entière (contain)
   - Padding blanc autour de l’image
   - Modal qui anime sa taille quand le slide change
   - Responsive + anti-flou
   ========================================================= */

/* ====== Root popup (caché par défaut) ====== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  visibility: hidden;
  pointer-events: none;
}

.popup.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* ====== Overlay (séparé de la carte) ====== */
.popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  transition: opacity 0.22s ease;
}

.popup.is-open .popup__overlay {
  opacity: 1;
}

/* ====== Carte modale ====== */
.popup__inner {
  position: fixed;
  left: 50%;
  height: auto !important;
  top: 50%;
  transform: translate(-50%, -50%) translateY(18px) scale(0.98);
  transition:
    transform 0.28s cubic-bezier(0.2, 1.2, 0.2, 1),
    width 0.3s ease,
    height 0.3s ease;

  min-width: 0;
  min-height: 0;

  overflow: hidden;
  border-radius: 7px;
  background: #fff;

  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.45);

  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  will-change: transform, width, height;
}

.popup.is-open .popup__inner {
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

/* Bouton fermer */
.popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

/* ====== Slides container ====== */
.popup__slides {
  position: relative;
  display: block;
}

/* On n'utilise plus display:none => on anime seulement le slide */
/* IMPORTANT : le slide actif définit la taille */
.popup__slide {
  display: none;
  position: relative;
  width: 100%;
}

.popup__slide.is-active {
  display: block;
}

/* les autres slides restent cachés */
.popup__slide:not(.is-active) {
  display: none;
}

/* ====== Image (ENTIERE + padding blanc visible) ====== */
.popup__image {
  display: flex;
  align-items: center;
  justify-content: center;

  /* padding blanc pour voir le fond de la modale */
  padding: 14px 14px 0;
  background: #fff;
}

.popup__image img {
  display: block;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 350px);

  object-fit: contain;
}

/* ====== Titre + actions ====== */
.popup__title {
  margin: 14px 18px 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2d52;
  line-height: 1.2;
}

.popup__actions {
  padding: 8px 18px 18px;
  display: grid;
  gap: 10px;
}

/* ====== Boutons ====== */
.popup__btn {
  appearance: none;
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  user-select: none;

  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.popup__btn--info {
  background: #0f2d52;
  color: #fff;
}
.popup__btn--info:hover {
  box-shadow: 0 10px 26px rgba(15, 45, 82, 0.28);
}

.popup__btn--go {
  background: #f97316;
  color: #fff;
}
.popup__btn--go:hover {
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.3);
}

/* ====== Dots ====== */
.popup__dots {
  padding: 0 18px 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.popup__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 45, 82, 0.25);
  cursor: pointer;
}
.popup__dot.is-active {
  background: rgba(15, 45, 82, 0.95);
}

/* ====== Bloquer le scroll page quand ouvert ====== */
html.popup-lock,
body.popup-lock {
  overflow: hidden !important;
}

/* ====== Responsive mobile (modale depuis le bas) ====== */
@media (max-width: 576px) {
  .popup__inner {
    left: 50%;
    top: auto;
    bottom: 10px;
    height: auto !important;
    transform: translateX(-50%) translateY(18px) scale(0.98);
    width: min(520px, calc(100vw - 16px));
    border-radius: 18px;
  }

  .popup.is-open .popup__inner {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .popup__image {
    padding: 12px 12px 0;
  }

  .popup__image img {
    max-height: min(52vh, 520px);
    border-radius: 12px;
  }

  .popup__title {
    font-size: 1.05rem;
    margin: 12px 14px 6px;
  }

  .popup__actions {
    padding: 8px 14px 14px;
  }
}

/* ====== Accessibilité : réduire animations ====== */
@media (prefers-reduced-motion: reduce) {
  .popup__overlay,
  .popup__inner,
  .popup__slide,
  .popup__btn {
    transition: none !important;
  }
}

.custom-marker {
  background: none;
  border: none;
  overflow: visible !important;
}
.marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(
    -50%,
    -100%
  ); /* centre horizontal, remonte au-dessus du point */
  animation: bounce 0.6s ease;
}
.marker-circle {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.marker-circle img {
  display: block;
  width: 40px;
  height: auto;
}
.marker-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid #fff;
  margin-top: -1px;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.2));
}
@keyframes bounce {
  0% {
    transform: translate(-50%, calc(-100% - 20px));
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -100%);
    opacity: 1;
  }
}

.custom-marker-img {
  background: none;
  border: none;
  overflow: visible !important;
}
.custom-marker-img img {
  display: block;
  width: 40px !important;
  height: auto;
  transform: translate(-50%, -100%);
}

/* Popup Leaflet custom */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0;
}
.leaflet-popup-content {
  margin: 0;
}
.leaflet-popup-tip-container {
  display: none; /* on garde un look épuré sans flèche Leaflet */
}
.map-popup {
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.4;
}
.map-popup-fixed {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 12px 14px;
  width: 260px;
  font-size: 0.875rem;
  line-height: 1.4;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translate(
    -50%,
    calc(-100% - 16px)
  ); /* centré au-dessus du marker */
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}
.map-popup-fixed.visible {
  opacity: 1;
  visibility: visible;
}
.map-popup-fixed .t {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.map-popup-fixed .e {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.map-popup-fixed .b {
  display: inline-block;
  background: #0b2d4a;
  color: #fff;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.map-popup-fixed .d {
  margin-bottom: 6px;
}
.map-popup-fixed .c {
  color: #555;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.map-popup-fixed a {
  color: #0b2d4a;
  font-weight: 600;
  text-decoration: none;
}
.map-popup-fixed a:hover {
  text-decoration: underline;
}

.popup-block + .popup-block {
  /* géré par le séparateur */
}
.popup-sep {
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.map-popup-fixed .p-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.map-popup-fixed .p-logo img {
  display: block;
  max-width: 260px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* .logoLogin{ position: absolute; left: 50%; transform: translateX(-50%); top: 0;} */
.body-login {
  margin: 0;
  min-height: 100vh;
  background: var(--border);

  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;

  background-image:
    radial-gradient(
      ellipse 70% 50% at 80% 10%,
      rgba(37, 99, 168, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 10% 90%,
      rgba(26, 58, 92, 0.08) 0%,
      transparent 55%
    );
}

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 550px;
  background: #fff;
  border-radius: 7px;
  box-shadow:
    0 4px 32px rgba(26, 58, 92, 0.13),
    0 1px 4px rgba(26, 58, 92, 0.06);
  overflow: hidden;
}

/* ── Header stripe ── */
.login-header {
  background: var(--navy);
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-header img {
  height: 86px;
  width: auto;
}
.login-header-text {
  color: #fff;
  line-height: 1.25;
}
.login-header-text strong {
  display: block;

  font-size: 15px;
  letter-spacing: 0.02em;
}
.login-header-text span {
  font-size: 11.5px;
  opacity: 0.72;
  font-weight: 300;
}

/* ── Body ── */
.login-body {
  padding: 24px 28px 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ── Fields ── */
.field-wrap {
  position: relative;
  margin-bottom: 14px;
}
.field-wrap .field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}
.field-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px 10px 38px;

  font-size: 14px;
  color: var(--text);
  background: var(--light);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  outline: none;
}
.field-wrap input::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.field-wrap input:focus + .field-icon,
.field-wrap:focus-within .field-icon {
  color: var(--blue);
}

/* ── Button ── */
.btn-login {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 6px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}
.btn-login:hover {
  background: #ea6b0a;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}
.btn-login:active {
  transform: translateY(0);
}

/* ── Error ── */
.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.login-error i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Divider ── */
.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0 14px;
}

/* ── Links ── */
.login-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-links li a {
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}
.login-links li a:hover {
  color: var(--accent);
}
.login-links li a i {
  font-size: 11px;
  width: 14px;
  text-align: center;
  opacity: 0.75;
}
.login-links .link-separator {
  color: var(--border);
  font-size: 11px;
  padding: 2px 0;
}

/* ── Portal info ── */
.portal-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}
.portal-note a {
  color: var(--blue);
  text-decoration: none;
}
.portal-note a:hover {
  color: var(--accent);
}

/* ── Footer ── */
.login-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.login-footer a {
  color: var(--muted);
  text-decoration: none;
}
.login-footer a:hover {
  color: var(--blue);
}
