:root {
  --blue: #022f54;
  --accent: #f6af33;
  --mon-espace-reclamation: var(--accent);
  --mon-espace-suggestion: var(--blue);
  --mon-espace-service: #1a8f55;
  --footer-bg: #111727;
  --topbar-gradient: linear-gradient(90deg, #043d6e 0%, var(--blue) 60%, #012543 100%);
  --topbar-height: 40px;
  --navbar-height: 82px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding-top: calc(var(--topbar-height) + var(--navbar-height));
}

.top-contact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1045;
  background: var(--topbar-gradient);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-contact-bar__inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.top-contact-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
}

.top-contact-bar__item i {
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
}

a.top-contact-bar__item:hover,
a.top-contact-bar__item:focus-visible {
  color: #fff;
  text-decoration: none;
  opacity: 0.88;
}

.top-contact-bar__item--address {
  min-width: 0;
  flex: 1;
  justify-content: center;
  text-align: center;
}

.top-contact-bar__item--address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar.fixed-top {
  top: var(--topbar-height);
}

.site-navbar .navbar-brand img {
  width: 74px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.site-navbar.navbar-light .navbar-nav > .nav-item > .nav-link:not(.nav-link--login):not(.nav-link--logout) {
  color: var(--blue);
}

* {
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.2px;
}

img,
picture,
video,
svg {
  max-width: 100%;
  height: auto;
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.site-footer__brand-col {
  max-width: none;
}

.site-footer__brand {
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #fff;
}

.site-footer__heading {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  line-height: 1.3;
  text-transform: none;
}

.site-footer__text {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  max-width: 100%;
}

.site-footer__brand-col .site-footer__text {
  max-width: 100%;
  font-size: 0.95rem;
  text-wrap: pretty;
}

.site-footer__text--muted {
  color: rgba(255, 255, 255, 0.72);
  max-width: none;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.site-footer__contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contact-item a:hover,
.site-footer__contact-item a:focus-visible {
  color: var(--accent);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link::before {
  font-family: bootstrap-icons;
  content: '\f285';
  font-size: 0.72rem;
  color: var(--accent);
  flex-shrink: 0;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--accent);
  outline: none;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.site-footer__copyright {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.site-footer__credit {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.text-color {
  color: var(--blue);
}

/* Couleur accent (jaune / or) — icônes, liens décoratifs */
.text-accent {
  color: var(--accent) !important;
  font-weight: inherit;
  font-size: inherit;
}

.bg-color {
  background-color: var(--blue);
  color: white;
}

/* Hero accueil : image fixe, overlay sombre et vague de transition */
.hero-home {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * (var(--topbar-height) + var(--navbar-height)));
  min-height: 90vh;
  overflow: hidden;
  background-color: #021c32;
  background-image: linear-gradient(115deg, rgba(2, 21, 39, 0.72) 14%, rgba(2, 47, 84, 0.52) 48%, rgba(2, 47, 84, 0.24) 100%), url('../images/hero.png');
  background-position: center 24%;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(246, 175, 51, 0.14), transparent 30%), linear-gradient(180deg, rgba(2, 47, 84, 0.02) 0%, rgba(2, 47, 84, 0.2) 100%);
  z-index: -1;
}

.hero-home__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 2.5rem);
  padding-bottom: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-home__message {
  width: 100%;
  max-width: min(70rem, 96vw);
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.hero-home__title {
  font-size: clamp(1.85rem, 4.8vw + 0.35rem, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
  text-wrap: balance;
}

@media (min-width: 1200px) {
  .hero-home__title {
    font-size: 3.15rem;
  }
}

.hero-home__lead {
  font-size: clamp(0.95rem, 1.05vw + 0.85rem, 1.125rem);
  line-height: 1.65;
  max-width: 46rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-home__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.hero-home__cta--primary {
  border: 2px solid var(--accent);
  background-color: var(--accent);
  color: var(--blue) !important;
  box-shadow:
    0 10px 32px rgba(246, 175, 51, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.hero-home__cta--secondary {
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 8px 24px rgba(2, 47, 84, 0.25);
}

.hero-home__cta i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.hero-home__cta--primary:hover,
.hero-home__cta--primary:focus-visible {
  background-color: #ffd078 !important;
  border-color: #ffd078 !important;
  color: var(--blue) !important;
  box-shadow: 0 14px 40px rgba(246, 175, 51, 0.5);
  transform: translateY(-2px);
}

.hero-home__cta--secondary:hover,
.hero-home__cta--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(2, 47, 84, 0.32);
  transform: translateY(-2px);
}

.hero-home__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-home__cta--primary:hover i,
.hero-home__cta--primary:focus-visible i,
.hero-home__cta--secondary:hover i,
.hero-home__cta--secondary:focus-visible i {
  transform: translateX(4px);
}

.hero-home__cta:active {
  transform: translateY(0);
}

.hero-home__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  font-size: 0;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  transform: translateZ(0);
}

.hero-home__wave-svg {
  display: block;
  width: 100%;
  height: clamp(52px, 7vw, 92px);
  transform: translate3d(0, 1px, 0);
  will-change: transform;
}

/* Style spécial pour le lien Se connecter */

/* Style bouton jaune discret pour Se connecter */
.navbar .navbar-nav > .nav-item > .nav-link.nav-link--login {
  background-color: var(--accent) !important;
  color: #222 !important;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 1.1rem;
  margin-left: 0.5rem;
  box-shadow: none;
  border: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.navbar .navbar-nav > .nav-item > .site-navbar__logout-form > .nav-link--logout {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 1.1rem;
  margin-left: 0.5rem;
  box-shadow: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.navbar .navbar-nav > .nav-item > .nav-link.nav-link--login:hover,
.navbar .navbar-nav > .nav-item > .nav-link.nav-link--login:focus-visible {
  background-color: #ffd078 !important;
  color: #222 !important;
}

.navbar .navbar-nav > .nav-item > .site-navbar__logout-form > .nav-link--logout:hover,
.navbar .navbar-nav > .nav-item > .site-navbar__logout-form > .nav-link--logout:focus-visible {
  background-color: #bb2d3b !important;
  color: #fff !important;
}

.navbar .navbar-nav > .nav-item > .nav-link:hover,
.navbar .navbar-nav > .nav-item > .nav-link:focus-visible {
  background-color: transparent !important;
  color: var(--accent) !important;
}

/* Lien actif en jaune */
.navbar .navbar-nav > .nav-item > .nav-link.active-link {
  color: var(--accent) !important;
  background: transparent !important;
  font-weight: 600;
}

/* Dropdown « À propos » — même logique */
.navbar .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition:
    color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background: linear-gradient(90deg, rgba(246, 175, 51, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
  color: var(--accent) !important;
  font-weight: 600;
  transform: translateX(4px) scale(1.04);
  box-shadow: 0 2px 12px rgba(246, 175, 51, 0.08);
  text-decoration: none;
}

.navbar .dropdown-menu.navbar-about-menu {
  min-width: 16.5rem;
  background-color: #fff;
  border: 1px solid rgba(2, 47, 84, 0.14) !important;
  box-shadow: 0 12px 30px rgba(2, 47, 84, 0.14) !important;
}

.navbar .dropdown-menu.navbar-about-menu .navbar-about-item {
  color: #1f2937;
  font-weight: 500;
  padding-left: 1.5rem;
  position: relative;
  transition:
    background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .dropdown-menu.navbar-about-menu .navbar-about-item:hover,
.navbar .dropdown-menu.navbar-about-menu .navbar-about-item:focus {
  background-color: rgba(246, 175, 51, 0.13) !important;
  color: var(--blue) !important;
  transform: translateX(7px) scale(1.045);
}

@media (min-width: 992px) {
  .site-navbar .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .site-navbar .nav-item.dropdown:hover .dropdown-menu,
  .site-navbar .nav-item.dropdown:focus-within .dropdown-menu,
  .site-navbar .nav-item.dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-navbar .nav-item.dropdown:hover .dropdown-toggle::after,
  .site-navbar .nav-item.dropdown:focus-within .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .site-navbar .dropdown-toggle::after {
    transition: transform 0.24s ease;
  }
}

@media (max-width: 991.98px) {
  .site-navbar__panel {
    background-color: rgba(10, 28, 41, 0.97);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .site-navbar__panel .offcanvas-body .navbar-nav {
    text-align: left;
  }

  .site-navbar__panel .navbar-nav > .nav-item > .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    background: transparent !important;
    text-align: left;
  }

  .site-navbar__panel .navbar-nav > .nav-item > .nav-link:hover,
  .site-navbar__panel .navbar-nav > .nav-item > .nav-link:focus-visible,
  .site-navbar__panel .navbar-nav > .nav-item > .nav-link.active-link {
    background: transparent !important;
    color: var(--accent) !important;
    font-weight: 600;
  }

  .site-navbar__panel .navbar-nav > .nav-item {
    margin-bottom: 0.5rem;
  }

  .site-navbar__panel .dropdown-menu,
  .site-navbar__panel .dropdown-menu.navbar-about-menu {
    position: static !important;
    float: none;
    width: auto;
    min-width: 0 !important;
    margin: 0.25rem 0 0 1.75rem !important;
    padding: 0 !important;
    border: none !important;
    border-width: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    --bs-dropdown-bg: transparent;
    --bs-dropdown-border-color: transparent;
    --bs-dropdown-box-shadow: none;
  }

  .site-navbar__panel .dropdown-menu > li + li {
    margin-top: 0.15rem;
  }

  .site-navbar__panel .dropdown-menu.navbar-about-menu .navbar-about-item {
    padding-left: 0 !important;
  }

  .site-navbar__panel .navbar-mobile-sublink {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    padding: 0.35rem 0 0.35rem 0.65rem !important;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .site-navbar__panel .navbar-mobile-sublink__icon {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.62rem;
    line-height: 1;
    color: rgba(246, 175, 51, 0.85);
    transition: color 0.2s ease;
  }

  .site-navbar__panel .dropdown-menu .navbar-about-item.navbar-mobile-sublink:hover,
  .site-navbar__panel .dropdown-menu .navbar-about-item.navbar-mobile-sublink:focus-visible,
  .site-navbar__panel .dropdown-menu .navbar-about-item.navbar-mobile-sublink:active,
  .site-navbar__panel .dropdown-menu .navbar-mobile-sublink:hover,
  .site-navbar__panel .dropdown-menu .navbar-mobile-sublink:focus-visible,
  .site-navbar__panel .dropdown-menu .navbar-mobile-sublink:active {
    color: var(--accent) !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .site-navbar__panel .navbar-mobile-sublink:hover .navbar-mobile-sublink__icon,
  .site-navbar__panel .navbar-mobile-sublink:focus-visible .navbar-mobile-sublink__icon,
  .site-navbar__panel .navbar-mobile-sublink:active .navbar-mobile-sublink__icon {
    color: var(--accent);
  }
}

.navbar-mobile-sublink__icon {
  display: none;
}

/* Footer — sélecteur de langue FR · EN */
.site-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-footer__lang-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.site-footer__lang-btn:hover,
.site-footer__lang-btn:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.site-footer__lang-btn.is-active {
  color: var(--accent);
  font-weight: 600;
  cursor: default;
}

.site-footer__lang-btn.is-active:hover,
.site-footer__lang-btn.is-active:focus-visible {
  color: var(--accent);
}

.site-footer__lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
  line-height: 1;
  user-select: none;
}

/* Réseaux sociaux (footer) — glass + accent au survol */
.social-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
}

.social-links li {
  flex-shrink: 0;
}

/* Footer : icônes coordonnées en accent */
.site-footer__contact-item i.bi {
  color: var(--accent) !important;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Footer : réseaux sociaux (même style que la page contact) */
.site-footer__contact-col .site-footer__social.social-links {
  padding: 0;
  margin: 1.15rem 0 0;
}

.site-footer__social .site-footer__social-link.contact-page__social-link {
  width: 2rem;
  height: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .site-footer__links {
    columns: 2;
    column-gap: 1.5rem;
  }

  .site-footer__links li {
    break-inside: avoid;
  }
}

#services {
  scroll-margin-top: 80px;
}

/* Nos Activités — carousel */
.activities-section {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.section-eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.activities-section__title {
  letter-spacing: -0.02em;
}

.activities-section__lead {
  max-width: 40rem;
}

.activities-carousel {
  position: relative;
  max-width: 100%;
  padding-inline: 2.5rem;
}

.activities-carousel .carousel-inner {
  overflow: visible;
}

.activities-carousel__control.carousel-control-prev {
  left: 0;
}

.activities-carousel__control.carousel-control-next {
  right: 0;
}

.activities-carousel__indicators {
  position: static;
  margin: 0 0 0.85rem;
  gap: 0.45rem;
}

.activities-carousel__indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 0.2rem;
  border: none;
  border-radius: 50%;
  background-color: rgba(2, 47, 84, 0.22);
  opacity: 1;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.activities-carousel__indicators .active {
  background-color: var(--accent);
  transform: scale(1.2);
}

.activities-carousel__control {
  width: 2.65rem;
  height: 2.65rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.activities-carousel__control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--blue);
  font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(246, 175, 51, 0.35);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.activities-carousel__control:hover .activities-carousel__control-icon,
.activities-carousel__control:focus-visible .activities-carousel__control-icon {
  background-color: #ffd078;
  border-color: #ffd078;
  color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(246, 175, 51, 0.45);
}

.activities-carousel__control:focus-visible .activities-carousel__control-icon {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.activity-card {
  position: relative;
  width: 100%;
  background: #f4f7fb;
  box-shadow: 0 12px 36px rgba(2, 47, 84, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(2, 47, 84, 0.14);
}

.activity-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.activity-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.activity-card:hover .activity-card__img {
  transform: scale(1.06);
}

.activity-card__media--reclamation,
.activity-card__media--suggestion,
.activity-card__media--service {
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card__media--reclamation {
  background: linear-gradient(145deg, var(--mon-espace-reclamation) 0%, #ffd078 100%);
}

.activity-card__media--suggestion {
  background: linear-gradient(145deg, var(--mon-espace-suggestion) 0%, #063a6b 100%);
}

.activity-card__media--service {
  background: linear-gradient(145deg, var(--mon-espace-service) 0%, #23a868 100%);
}

.activity-card__media-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 10vw, 4.5rem);
  height: clamp(3.5rem, 10vw, 4.5rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1;
}

.activity-card__media--reclamation .activity-card__media-icon {
  background: rgba(2, 47, 84, 0.12);
  color: var(--blue);
}

.activity-card__title {
  font-weight: 700;
  line-height: 1.3;
}

.activity-card__text {
  font-size: 0.92rem;
  line-height: 1.6;
}

.activity-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 600;
  color: var(--blue);
  background-color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 14px rgba(246, 175, 51, 0.3);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.activity-card__btn:hover,
.activity-card__btn:focus-visible {
  background-color: #ffd078;
  border-color: #ffd078;
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(246, 175, 51, 0.4);
  transform: translateX(3px);
}

.activity-card__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.activity-card__btn i {
  transition: transform 0.25s ease;
}

.activity-card__btn:hover i,
.activity-card__btn:focus-visible i {
  transform: translateX(3px);
}

.activity-card__btn--no-icon:hover,
.activity-card__btn--no-icon:focus-visible {
  transform: none;
}

.activities-carousel__control::before {
  display: none;
}

@media (max-width: 991.98px) {
  .activities-carousel {
    padding-inline: 2.75rem;
  }

  .activities-carousel__control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    opacity: 1;
    z-index: 5;
  }

  .activities-carousel__control-icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .activities-carousel {
    padding-inline: 2.35rem;
  }

  .activities-carousel__control {
    width: 2.15rem;
    height: 2.15rem;
  }

  .activities-carousel__control-icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.95rem;
  }
}

/* Pourquoi choisir Twiga Power — accueil (fond noir, texte blanc) */
.why-twiga {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  color: #fff;
}

.why-twiga__title {
  letter-spacing: -0.02em;
  color: #fff;
}

.why-twiga__lead {
  max-width: 38rem;
  line-height: 1.65;
  color: #fff;
}

.why-twiga__list {
  --bs-gutter-x: 1.25rem;
}

.why-twiga__message {
  padding: 0 0.35rem;
}

.why-twiga__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  line-height: 1;
}

.why-twiga__icon .bi {
  display: block;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1;
}

.why-twiga__item-title {
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.why-twiga__item-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 16rem;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .why-twiga__icon .bi {
    font-size: 2.15rem;
  }

  .why-twiga__item-text {
    font-size: 0.85rem;
  }
}

#partners {
  scroll-margin-top: 80px;
}

.project-card img {
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
  /* léger zoom au survol */
}

/* CTA carte projet (remplace le bouton rond clair) */
.project-footer p {
  min-width: 0;
  flex: 1;
  padding-right: 0.5rem;
}

a.project-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.project-card__link i {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

a.project-card__link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(246, 175, 51, 0.35);
  transform: translateX(2px);
}

a.project-card__link:hover i {
  transform: translateX(4px);
}

a.project-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Section Nos partenaires (accueil) — collée au footer */
.partners-section {
  margin-top: 0;
  margin-bottom: 0;
  background: linear-gradient(
    165deg,
    #dce9f5 0%,
    #edf4fa 38%,
    #fff8ee 72%,
    #ffffff 100%
  );
  border-top: none;
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(246, 175, 51, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 20%, rgba(2, 47, 84, 0.08), transparent 50%);
  pointer-events: none;
}

.partners-section > .container {
  position: relative;
  z-index: 1;
}

.partners-section__title {
  letter-spacing: -0.02em;
  color: var(--blue);
}

.partners-section__lead {
  max-width: 36rem;
  color: rgba(2, 47, 84, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.partners-section__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
}

.partners-section__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-section__link {
  display: block;
  text-decoration: none;
  outline-offset: 4px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.partners-section__link:hover,
.partners-section__link:focus-visible {
  transform: translateY(-2px);
}

.partners-section__link:focus-visible {
  outline: 2px solid var(--accent);
  border-radius: 0.25rem;
}

.partners-section__logo {
  display: block;
  max-height: 4.25rem;
  max-width: 11rem;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.22s ease;
}

.partners-section__link:hover .partners-section__logo,
.partners-section__link:focus-visible .partners-section__logo {
  opacity: 0.88;
}

/* partner5 (SNEL) — 1er affiché */
.partners-section__item:first-child .partners-section__logo {
  max-height: 4.25rem;
  max-width: 12.5rem;
}

/* 4e partenaire (partner1) — taille réduite */
.partners-section__item:nth-child(4) .partners-section__logo {
  max-height: 3.5rem;
  max-width: 9rem;
}

/* partner6 — dernier, logo le plus grand */
.partners-section__item:last-child .partners-section__logo {
  max-height: 5.5rem;
  max-width: 17rem;
}

@media (min-width: 992px) {
  .partners-section__logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 1.75rem;
  }

  .partners-section__logo {
    max-height: 4.75rem;
    max-width: 12rem;
  }

  .partners-section__item:first-child .partners-section__logo {
    max-height: 4.75rem;
    max-width: 14rem;
  }

  .partners-section__item:nth-child(4) .partners-section__logo {
    max-height: 3.75rem;
    max-width: 9.5rem;
  }

  .partners-section__item:last-child .partners-section__logo {
    max-height: 6rem;
    max-width: 18.5rem;
  }
}

@media (min-width: 1200px) {
  .partners-section__logos {
    flex-wrap: nowrap;
    gap: 1.5rem 2rem;
  }

  .partners-section__item:first-child .partners-section__logo {
    max-height: 5rem;
    max-width: 15rem;
  }

  .partners-section__item:nth-child(4) .partners-section__logo {
    max-height: 4rem;
    max-width: 10rem;
  }

  .partners-section__item:last-child .partners-section__logo {
    max-height: 6.25rem;
    max-width: 20rem;
  }
}

@media (max-width: 575.98px) {
  .partners-section__logos {
    gap: 0.85rem 1.1rem;
  }

  .partners-section__logo {
    max-height: 3.35rem;
    max-width: 9rem;
  }

  .partners-section__item:first-child .partners-section__logo {
    max-height: 3.5rem;
    max-width: 10rem;
  }

  .partners-section__item:nth-child(4) .partners-section__logo {
    max-height: 2.85rem;
    max-width: 7.5rem;
  }

  .partners-section__item:last-child .partners-section__logo {
    max-height: 4.25rem;
    max-width: 13rem;
  }
}

/* Compense body padding-top → bandeau bleu collé sous la navbar fixe */
.header-contact {
  margin-top: calc(-1 * (var(--topbar-height) + var(--navbar-height)));
  padding-top: calc(var(--topbar-height) + var(--navbar-height));
  box-sizing: border-box;
  min-height: 50vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 86%);
}

/* Page Recrutement */
.recruitment-page-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

/* État vide partagé (recrutement, alertes, etc.) */
.section-empty {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.section-empty__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-empty__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #6b7280;
}

.recruitment-offre-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(1, 54, 92, 0.1) !important;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 14px rgba(2, 47, 84, 0.06);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.recruitment-offre-card:hover {
  border-color: rgba(246, 175, 51, 0.35) !important;
  box-shadow: 0 14px 32px rgba(2, 47, 84, 0.12) !important;
  transform: translateY(-4px);
}

.recruitment-offre-card__accent {
  flex-shrink: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%);
}

.recruitment-offre-card__body {
  flex: 1 1 auto;
  padding: 1.35rem 1.35rem 0.5rem;
}

.recruitment-offre-card__title {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.recruitment-offre-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 0.35rem;
}

.recruitment-offre-card__tag i {
  color: var(--accent);
  font-size: 0.85rem;
}

.recruitment-offre-card__detail {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(2, 47, 84, 0.04);
  border: 1px solid rgba(1, 54, 92, 0.07);
}

.recruitment-offre-card__detail-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: rgba(246, 175, 51, 0.15);
  color: var(--accent);
  font-size: 0.9rem;
}

.recruitment-offre-card__detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.recruitment-offre-card__detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}

.recruitment-offre-card__detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blue);
}

.recruitment-offre-card__footer {
  padding: 0.75rem 1.35rem 1.35rem;
  margin-top: auto;
  border-top: 1px solid rgba(1, 54, 92, 0.06);
}

.recruitment-offre-card__published {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0;
}

.recruitment-offre-card__published .recruitment-offre-card__detail-label {
  margin-bottom: 0;
}

.recruitment-offre-card__published time {
  font-variant-numeric: tabular-nums;
}

/* Type de contrat */
.recruitment-offre-card__contract {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  background: rgba(246, 175, 51, 0.2);
  color: var(--blue);
}

/* Description offre */
.recruitment-offre-card__description {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5a6c7d;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chevron profils : toujours visible */
.recruitment-profiles__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.2rem;
  border: none;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: color 0.2s ease;
}

.recruitment-profiles__icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.recruitment-profiles__icon-btn:hover {
  color: var(--accent);
}

.recruitment-profiles__icon-btn .recruitment-profiles__chevron {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.recruitment-profiles__icon-btn[aria-expanded='true'] .recruitment-profiles__chevron {
  transform: rotate(180deg);
}

/* Liste profils : aucun cadre ni fond */
.recruitment-profiles__panel {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.recruitment-profiles__heading {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.recruitment-profiles__list {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5a6c7d;
}

.recruitment-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--blue);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(246, 175, 51, 0.35);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.recruitment-offer__cta:hover {
  background: #ffd078;
  border-color: #ffd078;
  color: var(--blue);
  box-shadow: 0 6px 22px rgba(246, 175, 51, 0.45);
  transform: translateY(-2px);
}

.recruitment-offer__cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* En-tête page détail projet — collé navbar + espace titre */
.header-contact--project {
  margin-top: calc(-1 * (var(--topbar-height) + var(--navbar-height)));
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 1.25rem);
  padding-bottom: 3rem;
  min-height: 42vh;
  height: auto;
  box-sizing: border-box;
  background: linear-gradient(145deg, #021a2e 0%, var(--blue) 42%, #01365c 100%);
  border-bottom: 3px solid var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 88%);
}

.project-detail__hero-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-detail__title-accent {
  width: 3.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(246, 175, 51, 0.2));
}

/* Page postuler (candidature) */
.recruitment-apply-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .recruitment-apply-section {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
}

.recruitment-apply .contact-page__field {
  margin-top: 0.75rem;
  margin-bottom: 1.1rem;
}

.recruitment-apply .contact-page__field-label.h5 {
  margin-bottom: 0.75rem;
}

.recruitment-apply__recap .recruitment-offre-card__body {
  padding: 1rem 1.1rem 0.65rem;
}

.recruitment-apply__recap .recruitment-offre-card__title {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.recruitment-apply__recap {
  position: sticky;
  top: calc(var(--topbar-height) + var(--navbar-height) + 1.5rem);
}

.recruitment-apply__recap .recruitment-offre-card__description,
.recruitment-apply__offer-body {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #5a6c7d;
}

.recruitment-apply__profiles {
  border-color: rgba(2, 47, 84, 0.1) !important;
}

.recruitment-apply__recap:hover {
  transform: none;
  box-shadow: 0 2px 14px rgba(2, 47, 84, 0.06) !important;
  border-color: rgba(1, 54, 92, 0.1) !important;
}

.recruitment-offre-card__effectif {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  background: rgba(2, 47, 84, 0.06);
  border: 1px solid rgba(1, 54, 92, 0.08);
  border-radius: 0.35rem;
}

.recruitment-apply__recap-footer {
  padding: 0.65rem 1.1rem 1rem;
}

.recruitment-apply__deadline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.recruitment-apply__deadline .recruitment-offre-card__detail-label {
  margin-bottom: 0;
}

.recruitment-apply__deadline time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
  :root {
    --topbar-height: 72px;
  }

  .top-contact-bar__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .top-contact-bar__item--address {
    order: 3;
    width: 100%;
    justify-content: center;
    font-size: 0.74rem;
  }

  .top-contact-bar__item {
    font-size: 0.8rem;
  }

  .recruitment-apply__recap {
    position: static;
  }
}

@media (max-width: 575.98px) {
  :root {
    --topbar-height: 64px;
  }

  .top-contact-bar__item--address {
    display: none;
  }
}

/* Zone upload CV (page postuler) — fond blanc, contour dentelé type billet */
.cv-upload {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  transition: filter 0.25s ease;
}

.cv-upload__input:focus {
  outline: none;
}

.cv-upload__input:focus-visible + .invalid-feedback + .cv-upload__drop,
.cv-upload:focus-within .cv-upload__drop {
  filter: drop-shadow(0 0 0 2px rgba(246, 175, 51, 0.55)) drop-shadow(0 10px 28px rgba(2, 47, 84, 0.12));
}

.cv-upload__drop {
  --cv-border: rgba(2, 47, 84, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 7.25rem;
  margin: 0;
  padding: 0.85rem 1rem;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(2, 47, 84, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

/* Contour dentelé (SVG zigzag haut + bas, côtés droits) */
.cv-upload__drop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23022f54' stroke-width='1.35' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M0 6 L6 0 L12 6 L18 0 L24 6 L30 0 L36 6 L42 0 L48 6 L54 0 L60 6 L66 0 L72 6 L78 0 L84 6 L90 0 L96 6 L100 6 L100 94 L94 100 L88 94 L82 100 L76 94 L70 100 L64 94 L58 100 L52 94 L46 100 L40 94 L34 100 L28 94 L22 100 L16 94 L10 100 L4 94 L0 94 L0 6 Z'/%3E%3C/svg%3E");
  opacity: 0.92;
}

.cv-upload__drop > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cv-upload__drop {
    transition: none;
  }
}

.cv-upload:hover .cv-upload__drop {
  box-shadow: 0 14px 40px rgba(2, 47, 84, 0.12);
  transform: translateY(-2px);
}

.cv-upload:hover .cv-upload__drop::before {
  opacity: 1;
  filter: drop-shadow(0 0 1px rgba(246, 175, 51, 0.35));
}

.cv-upload--error .cv-upload__drop,
.cv-upload.is-invalid .cv-upload__drop {
  box-shadow: 0 6px 24px rgba(132, 32, 41, 0.12);
}

.cv-upload--error .cv-upload__drop::before,
.cv-upload.is-invalid .cv-upload__drop::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23b02a37' stroke-width='1.5' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M0 6 L6 0 L12 6 L18 0 L24 6 L30 0 L36 6 L42 0 L48 6 L54 0 L60 6 L66 0 L72 6 L78 0 L84 6 L90 0 L96 6 L100 6 L100 94 L94 100 L88 94 L82 100 L76 94 L70 100 L64 94 L58 100 L52 94 L46 100 L40 94 L34 100 L28 94 L22 100 L16 94 L10 100 L4 94 L0 94 L0 6 Z'/%3E%3C/svg%3E");
  opacity: 1;
}

.cv-upload--error .cv-upload__drop:hover,
.cv-upload.is-invalid .cv-upload__drop:hover {
  transform: none;
}

.cv-upload--drag .cv-upload__drop {
  box-shadow:
    0 0 0 2px rgba(246, 175, 51, 0.45),
    0 12px 36px rgba(2, 47, 84, 0.14);
  transform: scale(1.008);
}

.cv-upload--drag .cv-upload__drop::before {
  filter: drop-shadow(0 0 2px rgba(246, 175, 51, 0.5));
}

.cv-upload__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cv-upload__drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  max-width: 24rem;
}

/* Flèche montante seule (pas de cercle) */
.cv-upload__arrow {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.92;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease;
}

.cv-upload:hover .cv-upload__arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.cv-upload--error .cv-upload__arrow {
  color: #9a2530;
  opacity: 1;
}

.cv-upload--error:hover .cv-upload__arrow {
  transform: none;
}

/* Fichier choisi */
.cv-upload.has-file .cv-upload__drop {
  min-height: 7.25rem;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.cv-upload.has-file .cv-upload__drop::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%23198754' stroke-width='1.45' stroke-linejoin='round' vector-effect='non-scaling-stroke' d='M0 6 L6 0 L12 6 L18 0 L24 6 L30 0 L36 6 L42 0 L48 6 L54 0 L60 6 L66 0 L72 6 L78 0 L84 6 L90 0 L96 6 L100 6 L100 94 L94 100 L88 94 L82 100 L76 94 L70 100 L64 94 L58 100 L52 94 L46 100 L40 94 L34 100 L28 94 L22 100 L16 94 L10 100 L4 94 L0 94 L0 6 Z'/%3E%3C/svg%3E");
  opacity: 1;
}

.cv-upload.has-file:hover .cv-upload__drop::before {
  filter: none;
}

.cv-upload__filename {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #146c43;
  font-size: 0.8125rem;
  font-weight: 600;
  word-break: break-all;
  border: 1px solid rgba(25, 135, 84, 0.2);
  box-shadow: 0 4px 14px rgba(25, 135, 84, 0.12);
}

.cv-upload__filename i {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #198754;
}

.cv-upload__placeholder.is-hidden,
.cv-upload.has-file .cv-upload__placeholder {
  display: none;
}

.cv-upload.has-file .cv-upload__picked {
  display: flex !important;
}

.cv-upload__picked {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.cv-upload__change-hint {
  font-size: 0.75rem;
  color: #5c6c7d;
  font-weight: 500;
}

.cv-upload__intro-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Contenu page détail projet */
.project-detail {
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 45%, #ffffff 100%);
  border-top: 1px solid rgba(2, 47, 84, 0.06);
}

.project-detail__back {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.project-detail__back:hover {
  color: var(--accent);
}

.project-detail__back:hover i {
  transform: translateX(-3px);
}

.project-detail__back i {
  transition: transform 0.2s ease;
}

.project-detail__figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 18px 45px rgba(2, 47, 84, 0.14),
    0 0 0 1px rgba(2, 47, 84, 0.06);
}

.project-detail__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(246, 175, 51, 0.22);
  pointer-events: none;
}

.project-detail__img {
  display: block;
  border-radius: 14px;
}

.project-detail__accent-line {
  width: 2.75rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(246, 175, 51, 0.35));
}

.project-detail__body {
  font-size: 1rem;
  line-height: 1.7;
}

.project-detail__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-detail__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  /* Même arrondi que le bouton CTA / devis */
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(2, 47, 84, 0.06);
  border: 1px solid rgba(2, 47, 84, 0.1);
}

/* CTA contact — même esprit que le bouton devis (accent / thème) */
.project-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  /* Même arrondi que .btn-quote-accent (bloc devis) */
  border-radius: 0.375rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(246, 175, 51, 0.38);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-detail__btn:hover {
  background: #ffd078;
  border-color: #ffd078;
  color: var(--blue);
  box-shadow: 0 6px 22px rgba(246, 175, 51, 0.45);
  transform: translateY(-2px);
}

.project-detail__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.project-detail__btn i {
  transition: transform 0.25s ease;
}

.project-detail__btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 991.98px) {
  .header-contact--project {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 92%);
  }
}

.service-card {
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--blue);
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 78px;
  }

  .site-navbar .navbar-brand img {
    width: 68px;
    max-height: 48px;
  }

  .hero-home {
    min-height: 58svh;
    background-position: 60% center;
  }

  .hero-home__content {
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
    padding-bottom: 4rem;
  }

  .hero-home__message {
    max-width: 100%;
  }

  .hero-home__title {
    font-size: clamp(1.75rem, 6.5vw, 2.75rem);
    line-height: 1.16;
  }

  .hero-home__lead {
    font-size: 1.05rem !important;
    line-height: 1.65;
  }

  .header-contact {
    min-height: 40vh;
    height: auto;
    padding-top: var(--navbar-height);
    padding-bottom: 2rem;
  }

  .header-contact--project {
    padding-top: calc(var(--navbar-height) + 1rem);
  }

  .hero-home__wave-svg {
    height: clamp(44px, 10vw, 64px);
    transform: translate3d(0, 2px, 0);
  }
}

@media (max-width: 575.98px) {
  .hero-home {
    min-height: 52svh;
  }

  .hero-home__content {
    padding-bottom: 3.25rem;
  }

  .hero-home__wave-svg {
    height: clamp(38px, 12vw, 52px);
    transform: translate3d(0, 3px, 0);
  }
}

/* Mot du Directeur Général — accueil */
.dg-message {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.dg-message__card {
  box-shadow: 0 22px 55px rgba(2, 47, 84, 0.1) !important;
}

.dg-message__media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.dg-message__img {
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.dg-message__media:hover .dg-message__img {
  transform: scale(1.03);
}

.dg-message__title {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dg-message__signature {
  border-top: 1px solid rgba(2, 47, 84, 0.12);
}

.dg-message__signature-name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.dg-message__signature-role {
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .dg-message__media {
    min-height: 260px;
    max-height: 340px;
  }

  .dg-message__content {
    padding-top: 1.75rem !important;
  }
}

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

.btn-primary:hover {
  background-color: var(--blue);
  border-color: var(--blue);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-arrow i {
  transition: transform 0.3s ease;
}

.btn-arrow:hover i {
  transform: translateX(5px);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.loading-dots__dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--accent);
  animation: loading-dot-pulse 1.2s ease-in-out infinite;
  will-change: transform, opacity;
}

.loading-dots__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-dot-pulse {
  0%,
  80%,
  100% {
    transform: scale(0.65);
    opacity: 0.45;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-dots__dot {
    animation: none;
    opacity: 1;
  }
}

/* Styles pour les pages d'erreur */
.error-page-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.error-content {
  padding: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.error-number {
  margin-bottom: 2rem;
}

.error-number h1 {
  font-size: 8rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue) 0%, #0a4d7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(2, 47, 84, 0.2);
}

.error-icon {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.error-actions {
  margin-top: 2rem;
}

.error-actions .btn {
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 200px;
}

.error-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(2, 47, 84, 0.3);
}

@media (max-width: 768px) {
  .error-page-section {
    padding: 50px 0;
    min-height: calc(100vh - 76px);
  }

  .error-content {
    padding: 2rem 1.5rem;
  }

  .error-number h1 {
    font-size: 5rem;
  }

  .error-icon i {
    font-size: 3.5rem !important;
  }

  .error-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .error-actions .btn {
    width: 100%;
    min-width: auto;
    margin: 0 !important;
  }
}

/* Page Historique */
.header-contact--historique {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * (var(--topbar-height) + var(--navbar-height)));
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 2.25rem);
  padding-bottom: clamp(5.5rem, 12vw, 7.75rem);
  min-height: 52vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient(145deg, #021a2e 0%, var(--blue) 45%, #01365c 100%);
  border-bottom: none;
  clip-path: none;
}

.historique-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(246, 175, 51, 0.2) 0%, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.08) 0%, transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    48px 48px,
    48px 48px;
}

.historique-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.historique-hero__breadcrumb {
  margin-bottom: 2rem;
}

.historique-hero__breadcrumb-list {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.historique-hero__breadcrumb-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.historique-hero__breadcrumb-link:hover,
.historique-hero__breadcrumb-link:focus-visible {
  color: var(--accent);
}

.historique-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
}

.historique-hero__breadcrumb-current {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.historique-hero__content {
  width: 100%;
  max-width: min(70rem, 96vw);
  color: #fff;
}

.historique-hero__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(246, 175, 51, 0.45);
  background: linear-gradient(120deg, rgba(246, 175, 51, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 4px 18px rgba(246, 175, 51, 0.18);
}

.historique-hero__title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.historique-hero__lead {
  max-width: 420px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}

.historique-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(246, 175, 51, 0.35);
}

.historique-hero__meta i {
  font-size: 1rem;
}

.historique-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
  color: #fff;
}

.historique-hero__wave-svg {
  display: block;
  width: 100%;
  height: clamp(52px, 7vw, 88px);
  transform: translate3d(0, 1px, 0);
}

.header-contact--historique--compact {
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 1.25rem);
  padding-bottom: clamp(3rem, 7vw, 4.25rem);
  min-height: 0;
}

.header-contact--historique--compact .historique-hero__breadcrumb {
  margin-bottom: 1.15rem;
}

.header-contact--historique--compact .historique-hero__title {
  font-size: clamp(1.65rem, 3.5vw + 0.4rem, 2.35rem);
}

.header-contact--historique--compact .historique-hero__wave-svg {
  height: clamp(36px, 4.5vw, 56px);
}

.historique-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
  margin-top: 0;
  padding-top: 2.75rem !important;
  background: #fff;
}

.historique-story__content {
  padding-top: 0.25rem;
}

.historique-story__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  height: auto;
}

.historique-story__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 20rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
}

@media (min-width: 992px) {
  .historique-story__img {
    max-height: 22rem;
  }
}

.historique-story__eyebrow {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.historique-story__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.historique-story__text {
  font-size: 1.02rem;
  line-height: 1.78;
  text-align: left;
  text-wrap: pretty;
}

.historique-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: transparent;
  color: var(--accent) !important;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.historique-story__cta i {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.historique-story__cta:hover,
.historique-story__cta:focus-visible {
  background: transparent;
  border: none;
  color: #ffd078 !important;
  box-shadow: none;
  transform: translateY(-1px);
}

.historique-story__cta:hover i,
.historique-story__cta:focus-visible i {
  color: #ffd078;
}

.historique-story__cta:hover i,
.historique-story__cta:focus-visible i {
  transform: translateX(4px);
}

.historique-story__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .header-contact--historique {
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 1.5rem);
    padding-bottom: clamp(4.5rem, 14vw, 6rem);
    min-height: 46vh;
  }

  .header-contact--historique--compact {
    padding-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
    padding-bottom: clamp(2.5rem, 10vw, 3.5rem);
    min-height: 0;
  }

  .header-contact--historique--compact .historique-hero__breadcrumb {
    margin-bottom: 0.85rem;
  }

  .historique-hero__breadcrumb {
    margin-bottom: 1rem;
  }

  .historique-hero__tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
  }

  .historique-story__text {
    font-size: 1rem;
  }

  .historique-story__img {
    max-height: 16rem;
    aspect-ratio: 16 / 10;
  }
}

/* Page Alertes / actualités */
.alertes-page {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.alerte-card {
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.alerte-card:hover,
.alerte-card:focus-visible {
  color: inherit;
}

.alerte-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(2, 47, 84, 0.12) !important;
}

.alerte-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.alerte-card__media {
  position: relative;
}

.alerte-date-badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  min-height: 6rem;
  padding: 0.85rem 0.4rem 0.7rem;
  border: none;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
  line-height: 1;
  box-shadow: none;
}

.alerte-date-day {
  font-size: 2.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 0.1rem;
  text-align: center;
}

.alerte-date-rest {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.alerte-detail {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.alerte-detail__body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.alerte-detail__figure {
  margin: 0;
}

.alerte-detail__media {
  position: relative;
}

.alerte-detail__media .alerte-date-badge {
  right: 1rem;
  bottom: 1rem;
}

.alerte-detail__featured-img {
  display: block;
  width: 100%;
  max-height: min(70vh, 28rem);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.alerte-detail-sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.alerte-detail-sidebar__title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.alerte-detail-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alerte-card--horizontal {
  display: block;
}

.alerte-card--horizontal > .row {
  min-height: 7.75rem;
}

.alerte-card--horizontal .alerte-card__col-media,
.alerte-card--horizontal .alerte-card__col-body {
  display: flex;
  flex-direction: column;
}

.alerte-card--horizontal .activity-card__media,
.alerte-card--horizontal .alerte-card__media {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 7.75rem;
}

.alerte-card--horizontal .activity-card__img {
  height: 100%;
  min-height: 7.75rem;
  object-fit: cover;
}

.alerte-card--horizontal .alerte-card__body--horizontal {
  flex: 1 1 auto;
  min-width: 0;
}

.alerte-card--horizontal .activity-card__title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem !important;
}

.alerte-card--horizontal .activity-card__text {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.5rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.alerte-card--horizontal .activity-card__btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

@media (max-width: 991.98px) {
  .alerte-detail-sidebar {
    position: static;
  }
}

/* Page Galerie — boutons cartes (même rendu que .activity-card accueil) */
.gallery-page {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.gallery-pagination .pagination {
  --bs-pagination-border-radius: 0.5rem;
  --bs-pagination-padding-x: 0.85rem;
  --bs-pagination-padding-y: 0.45rem;
}

.gallery-pagination__link {
  color: var(--blue);
  border-color: rgba(2, 47, 84, 0.15);
  font-weight: 600;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.gallery-pagination__link:hover,
.gallery-pagination__link:focus-visible {
  color: var(--blue);
  background-color: rgba(246, 175, 51, 0.2);
  border-color: var(--accent);
}

.gallery-pagination .page-item.active .gallery-pagination__link {
  color: var(--blue);
  background-color: var(--accent);
  border-color: var(--accent);
}

.gallery-pagination .page-item.disabled .gallery-pagination__link {
  color: rgba(2, 47, 84, 0.4);
  background-color: #f4f7fb;
}

button.gallery-card.activity-card {
  display: flex;
  flex-direction: column;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button.gallery-card.activity-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 22, 48, 0.92);
}

.gallery-lightbox,
.gallery-lightbox * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 52rem);
  max-height: 92vh;
}

.gallery-lightbox__figure {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  width: 100%;
  min-height: 0;
  max-height: 92vh;
}

.gallery-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 0;
}

.gallery-lightbox__image {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  max-height: min(58vh, 36rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.gallery-lightbox .gallery-lightbox__caption {
  flex-shrink: 0;
  margin: 0.75rem 0 0;
  padding: 0 0.5rem;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: min(28vh, 12rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.gallery-lightbox__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 1;
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: var(--accent);
  color: var(--blue);
  outline: none;
}

@media (max-width: 575.98px) {
  .gallery-lightbox {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .gallery-lightbox__content {
    width: 100%;
    max-height: 96vh;
  }

  .gallery-lightbox__figure {
    max-height: 96vh;
  }

  .gallery-lightbox__image {
    max-height: min(48vh, 22rem);
  }

  .gallery-lightbox .gallery-lightbox__caption {
    color: #ffffff !important;
    font-size: 0.92rem;
    padding: 0 0.35rem;
    max-height: min(32vh, 10rem);
  }

  .gallery-lightbox__nav {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }

  .gallery-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Page Vision et mission — bloc Vision (transparent, blobs bleu / or) */
@keyframes vision-mission-blob-drift-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(-8deg) scale(1);
  }
  50% {
    transform: translate(8px, -6px) rotate(-5deg) scale(1.02);
  }
}

@keyframes vision-mission-blob-drift-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(10deg) scale(1);
  }
  50% {
    transform: translate(-6px, 6px) rotate(12deg) scale(1.02);
  }
}

.vision-mission-vision {
  position: relative;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4vw, 2.75rem);
  background: transparent;
}

.vision-mission-vision__blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.vision-mission-vision__blob {
  position: absolute;
  width: clamp(7rem, 14vw, 10.5rem);
  height: auto;
  will-change: transform;
}

.vision-mission-vision__blob--blue {
  top: -6%;
  left: -3%;
  color: var(--blue);
  opacity: 0.2;
  transform: rotate(-8deg);
}

.vision-mission-vision__blob--gold {
  top: 8%;
  right: -2%;
  width: clamp(6.5rem, 13vw, 10rem);
  color: var(--accent);
  opacity: 0.22;
  transform: rotate(10deg);
}

@media (prefers-reduced-motion: no-preference) {
  .vision-mission-vision__blob--blue {
    animation: vision-mission-blob-drift-a 22s ease-in-out infinite;
  }

  .vision-mission-vision__blob--gold {
    animation: vision-mission-blob-drift-b 26s ease-in-out infinite;
  }
}

.vision-mission-vision .container {
  position: relative;
  z-index: 1;
}

.vision-mission-vision__header {
  max-width: 36rem;
}

.vision-mission-vision__eyebrow,
.vision-mission-missions__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.vision-mission-vision__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.vision-mission-vision__quote {
  position: relative;
  max-width: 36rem;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.vision-mission-vision__quote-body {
  margin: 0;
  border: 0;
}

.vision-mission-vision__statement {
  max-width: 32rem;
  margin-inline: auto;
  font-size: clamp(0.88rem, 0.3vw + 0.8rem, 0.98rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(2, 47, 84, 0.82);
  text-wrap: pretty;
}

.vision-mission-vision__statement::before {
  content: '\201C';
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

/* Page Vision et mission — bloc Missions (fond sombre) */
.vision-mission-missions-section,
.vision-mission-section {
  position: relative;
  z-index: 1;
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: calc(2.75rem + clamp(0.75rem, 2vw, 1.25rem)) !important;
  padding-bottom: 3.5rem !important;
  background: #0a0a0a;
}

.vision-mission-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vision-mission-missions-section .container,
.vision-mission-section .container {
  position: relative;
  z-index: 1;
}

.vision-mission-divider {
  width: 4.5rem;
  height: 3px;
  margin: 2.75rem auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%);
}

.vision-mission-missions__header {
  text-align: center;
}

.vision-mission-missions__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.vision-mission-missions__grid {
  display: grid;
  gap: 2rem 2.5rem;
  text-align: center;
  align-items: stretch;
}

@media (min-width: 992px) {
  .vision-mission-missions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
}

.vision-mission-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0.65rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(0.85rem, 1.75vw, 1.1rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .vision-mission-mission:hover,
  .vision-mission-mission:focus-within {
    transform: translateY(-8px);
    border-color: rgba(246, 175, 51, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(246, 175, 51, 0.12);
  }

  .vision-mission-mission:hover .vision-mission-mission__index,
  .vision-mission-mission:focus-within .vision-mission-mission__index {
    transform: scale(1.06);
  }
}

.vision-mission-mission__index {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.vision-mission-mission__text {
  flex: 1;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  text-wrap: pretty;
}

@media (min-width: 992px) {
  .vision-mission-mission__text {
    min-height: 0;
  }
}

.vision-mission-mission__label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Vague de transition (blanc → fond sombre) entre Ambition et Nos valeurs */
.ambition-valeurs-section__wave {
  display: block;
  width: 100%;
  line-height: 0;
  color: #0a0a0a;
}

.ambition-valeurs-section__wave-svg {
  display: block;
  width: 100%;
  height: clamp(52px, 7vw, 88px);
  transform: translate3d(0, 1px, 0);
}

#nos-valeurs.vision-mission-missions-section {
  padding-top: 2.5rem !important;
}

.vision-mission-missions__grid--four {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .vision-mission-missions__grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }
}

.vision-mission-missions__grid--four .vision-mission-mission {
  padding: clamp(1.15rem, 2.5vw, 1.5rem) clamp(0.75rem, 1.75vw, 1rem);
  gap: 0.65rem;
}

.vision-mission-missions__grid--four .vision-mission-mission__label {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.vision-mission-missions__grid--four .vision-mission-mission__text {
  max-width: none;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (min-width: 992px) {
  .vision-mission-missions__grid--four .vision-mission-mission__text {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .vision-mission-missions__grid--four {
    max-width: 22rem;
    margin-inline: auto;
  }
}

@media (max-width: 991.98px) {
  .vision-mission-vision {
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .vision-mission-vision__blob--blue {
    left: -10%;
    opacity: 0.18;
  }

  .vision-mission-vision__blob--gold {
    right: -8%;
    opacity: 0.2;
  }

  .vision-mission-divider {
    margin: 2rem 0;
  }
}

/* Sal.js — transitions fluides */
@media (prefers-reduced-motion: no-preference) {
  [data-sal] {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}

/* Page Ambition et valeurs */
.ambition-valeurs-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.ambition-valeurs-section--ambition {
  margin-bottom: 0;
  background: #fff;
}

.ambition-valeurs-section__header {
  max-width: 40rem;
}

.ambition-valeurs-section__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.ambition-valeurs-section__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ambition-valeurs-section__lead {
  max-width: 36rem;
  line-height: 1.7;
}

/* Page Équipe dirigeante */
.equipe-dirigeante-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.equipe-dirigeante-section--team {
  background: #fff;
  padding-top: 0.75rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .equipe-dirigeante-section--team {
    padding-top: 1rem;
    padding-bottom: 2.25rem;
  }
}

.equipe-dirigeante-section__header {
  max-width: 40rem;
}

.equipe-dirigeante-section__eyebrow {
  color: var(--accent);
  letter-spacing: 0.14em;
}

.equipe-dirigeante-section__title {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.equipe-dirigeante-members-wrap {
  width: fit-content;
  max-width: 100%;
}

.equipe-dirigeante-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem 2.5rem;
}

.equipe-member {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: auto;
}

.equipe-member__img {
  display: block;
  width: clamp(12rem, 22vw, 17rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem;
}

.equipe-member__role {
  margin-top: 0.35rem;
  width: clamp(12rem, 22vw, 17rem);
  max-width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue);
}

.equipe-member__name {
  width: clamp(12rem, 22vw, 17rem);
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--blue);
}

@media (min-width: 768px) {
  .equipe-dirigeante-members {
    flex-wrap: nowrap;
    gap: 0 3.75rem;
  }
}

@media (min-width: 1200px) {
  .equipe-dirigeante-members {
    gap: 0 4.5rem;
  }
}

/* Page Contact — layout type maquette (coords gauche, formulaire droite) */
.contact-page-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
  background: #fff;
}

.contact-page__layout {
  --bs-gutter-x: 0.75rem;
}

@media (min-width: 992px) {
  .contact-page__layout {
    --bs-gutter-x: 1.25rem;
  }
}

.contact-page__aside-title {
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-page__aside-lead {
  margin-bottom: 1.75rem;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-page__detail {
  margin-bottom: 1.25rem;
}

.contact-page__detail-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #9ca3af;
}

.contact-page__detail-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contact-page__detail-value:hover,
a.contact-page__detail-value:focus-visible {
  color: var(--accent);
}

.contact-page__detail-value--address {
  font-weight: 500;
  color: #374151;
  font-style: normal;
}

.contact-page__social {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e5e7eb;
}

.contact-page__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-page__social-link:hover,
.contact-page__social-link:focus-visible {
  background: var(--accent);
  color: var(--blue);
  transform: translateY(-2px);
}

.contact-page__form .row {
  margin-bottom: 0.25rem;
}

.contact-page__field {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.contact-page__field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-page__input {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: #1f2937;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-page__input::placeholder {
  color: #9ca3af;
}

.contact-page__input:focus {
  color: #1f2937;
  background: #fff;
  border-color: rgba(246, 175, 51, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 175, 51, 0.18);
}

.contact-page__input--textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-page__submit {
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  background-color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(246, 175, 51, 0.3);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-page__submit:hover,
.contact-page__submit:focus-visible {
  color: var(--blue);
  background-color: #ffd078;
  border-color: #ffd078;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(246, 175, 51, 0.4);
}

@media (min-width: 992px) {
  .contact-page__aside {
    padding-right: 0.25rem;
    padding-left: 0.5rem;
  }

  .contact-page__form {
    padding-left: 0;
    padding-right: 0.25rem;
  }
}

/* Zone CV — alignée sur les champs contact */
.contact-page__form .cv-upload__drop {
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.contact-page__form .cv-upload:hover .cv-upload__drop,
.contact-page__form .cv-upload:focus-within .cv-upload__drop {
  background: #fff;
  border-color: rgba(246, 175, 51, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 175, 51, 0.18);
}

.contact-page__form .cv-upload__drop::before {
  opacity: 0.35;
}

.contact-page__form .cv-upload.has-file .cv-upload__drop {
  background: #fff;
  border-color: rgba(1, 54, 92, 0.12);
}

/* Page Mon espace */
.mon-espace-section {
  scroll-margin-top: calc(var(--topbar-height) + var(--navbar-height) + 1rem);
}

.mon-espace-modal__dialog {
  max-width: min(480px, calc(100vw - 2rem));
}

.mon-espace-modal .modal-content {
  box-shadow: 0 18px 48px rgba(2, 47, 84, 0.18);
}

.mon-espace-modal .contact-page__form {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mon-espace-modal .contact-page__submit-wrap {
  display: flex;
  justify-content: flex-end;
}

.mon-espace-modal .contact-page__submit {
  width: auto;
}

.contact-page__form.was-validated .cv-upload:has(.cv-upload__input:invalid) + .invalid-feedback,
.contact-page__form .cv-upload.is-invalid + .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}

/* Validation — champs contact / modales Mon espace */
.contact-page__form .contact-page__input.is-invalid,
.contact-page__form.was-validated .contact-page__input:invalid,
.mon-espace-modal__form .contact-page__input.is-invalid,
.mon-espace-modal__form.was-validated .contact-page__input:invalid {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

.contact-page__form .contact-page__input.is-valid {
  border-color: #198754 !important;
  background-color: #fff !important;
}

.contact-page__form .contact-page__input.is-invalid ~ .invalid-feedback,
.contact-page__form.was-validated .contact-page__input:invalid ~ .invalid-feedback,
.contact-page__form .invalid-feedback.d-block,
.mon-espace-modal__form .contact-page__input.is-invalid ~ .invalid-feedback,
.mon-espace-modal__form.was-validated .contact-page__input:invalid ~ .invalid-feedback,
.mon-espace-modal__form .invalid-feedback.d-block {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
