body {
  background-color: #f9fafb;
}

* {
  touch-action: manipulation;
}

.edge-dots {
  position: relative;
  overflow: hidden;
}

.edge-dots::before,
.edge-dots::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
}

.edge-dots::before {
  top: 0;
}

.edge-dots::after {
  bottom: 0;
}

.nav-link {
  position: relative;
  transition: color 200ms ease;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-link.active-link {
  font-weight: 600;
  opacity: 1;
}

.nav-link.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #ffc0cb;
}

/* Nav pills (style boutons arrondis) */
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #E60000;
  background: #e2e8f0;
  border: 1px solid #E60000;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-pill:hover {
  background: #cbd5e1;
  color: #E60000;
}

.nav-pill-active {
  background: #E60000 !important;
  color: white !important;
  border-color: #E60000 !important;
}

.nav-pill-active:hover {
  background: #CC0000 !important;
  color: white !important;
}

/* Bloc Application (bouton + logo) - cliquable et lié */
.nav-app-block {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-app-block:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Bouton Application (fond rouge vif) */
.nav-app-block .nav-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: #E60000;
  border: none;
  border-radius: 12px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-app-block:hover .nav-app-btn {
  background: #CC0000;
}

/* Cadre image à côté du bouton Application */
.nav-app-block .nav-app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #f5ebe0;
  border-radius: 12px;
  background: #f5ebe0;
  /* hauteur image = h-20 (80px), alignée sur logo-officiel dans le header */
  min-height: 92px;
  min-width: 92px;
  transition: box-shadow 0.25s ease;
}

.nav-app-block:hover .nav-app-logo {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-app-block .nav-app-logo img {
  display: block;
}

/* Colonnes nav : vitrine vs accès Application */
.site-header-nav-public {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: inherit;
  row-gap: 0.25rem;
}

.site-header-nav-trailing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Header : nav compacte tablette (md) jusqu’à xl pour éviter le débordement */
@media (min-width: 768px) and (max-width: 1279.98px) {
  .site-header-nav {
    gap: 0.25rem !important;
  }
  .site-header-nav-trailing {
    gap: 0.35rem;
  }
  .site-header-nav .nav-pill {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .site-header-nav .nav-app-block {
    gap: 0.35rem;
  }
  .site-header-nav .nav-app-block .nav-app-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 10px;
  }
  .site-header-nav .nav-app-block .nav-app-logo {
    min-height: 78px;
    min-width: 78px;
    padding: 5px;
  }
}

/* À partir de xl : un peu plus d’air entre les pills */
@media (min-width: 1280px) {
  .site-header-nav .nav-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/*
 * Header : sticky sur téléphone uniquement (< md). Tablette et desktop : flux normal comme grand écran.
 * Mobile : au scroll, JS ajoute html.site-mobile-hide-contact-bar → bande WhatsApp masquée.
 */
@media (max-width: 767.98px) {
  .site-header-mobile-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.95);
  }

  /* Bandeau partenaires (École française) — uniquement mobile */
  .site-header-mobile-partners {
    min-width: 0;
  }
  .site-header-mobile-partners__label {
    margin: 0;
    font-size: clamp(0.45rem, 1.9vw, 0.5625rem);
    font-weight: 700;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1e3a5f;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .site-header-mobile-partners__strip {
    display: block;
    width: 100%;
    max-height: 2rem;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 767.98px) and (min-width: 380px) {
  .site-header-mobile-partners__strip {
    max-height: 2.35rem;
  }
}
/* sm–md (640–767px) : bande contact fixe (3rem), le header colle juste en dessous */
@media (min-width: 640px) and (max-width: 767.98px) {
  .site-header-mobile-sticky {
    top: 3rem;
  }
}
@media (max-width: 639.98px) {
  html.site-mobile-hide-contact-bar .site-top-contact-bar {
    display: none !important;
  }
  /* Réserve uniquement quand le header passe en fixed (évite de doubler l’espace au chargement) */
  .site-header-mobile-scroll-spacer {
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: height 0.2s ease;
    pointer-events: none;
  }
  html.site-mobile-hide-contact-bar .site-header-mobile-scroll-spacer {
    height: 5.5rem;
  }
  html.site-mobile-hide-contact-bar .site-header-mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    -webkit-backdrop-filter: blur(12px);
  }
}
@media (min-width: 768px) {
  .site-header-mobile-scroll-spacer {
    display: none !important;
  }
  .site-header-mobile-sticky {
    position: relative;
    top: auto;
    z-index: 10;
  }
}

/* Mobile : un seul CTA WhatsApp (dashboard) — pas en pleine largeur */
@media (max-width: 639.98px) {
  .site-float-cta-wrap--wa-only {
    justify-content: center;
  }
  .site-float-cta-wrap--wa-only .site-float-cta-wa {
    flex: 0 1 auto;
    width: auto;
    max-width: 14rem;
  }
}

/*
 * Hero : éviter le chevauchement du texte avec les CTA fixes (barre pleine largeur en mobile,
 * boutons empilés à droite à partir de sm — cf. .site-float-cta-wrap dans base.html).
 */
.hero-slider-content {
  padding-bottom: max(7.5rem, calc(env(safe-area-inset-bottom) + 6rem));
}
@media (min-width: 640px) {
  .hero-slider-content {
    padding-bottom: 2rem;
  }
}
@media (min-width: 768px) {
  .hero-slider-content {
    padding-bottom: 2.5rem;
  }
}
@media (max-width: 639.98px) {
  .hero-slider-section #heroSliderDots {
    bottom: 7.25rem;
  }
}

/* Bloc slogan valeur — hero sliders (charte bordeaux / rose AFS) */
.hero-slider-slogan {
  margin: 0;
  max-width: 36rem;
}
.hero-slider-slogan__inner {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    125deg,
    rgba(230, 0, 0, 0.14) 0%,
    rgba(26, 0, 8, 0.45) 45%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 1.15rem 0.85rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hero-slider-slogan__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc0cb, #e60000);
  opacity: 0.95;
}
.hero-slider-slogan__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.hero-slider-slogan__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ffc0cb;
  box-shadow: 0 0 12px rgba(255, 192, 203, 0.7);
}
.hero-slider-slogan__quote {
  margin: 0;
  padding: 0 0 0 0.35rem;
  border: none;
  quotes: none;
}
.hero-slider-slogan__quote::before,
.hero-slider-slogan__quote::after {
  content: none;
}
.hero-slider-slogan__lead {
  font-style: normal;
}
.hero-slider-slogan__note {
  margin: 0.65rem 0 0;
  padding: 0.35rem 0 0 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 767.98px) {
  .hamburger {
    border-radius: 12px;
    align-self: center;
  }
  .hamburger:focus-visible {
    outline: 2px solid rgba(230, 0, 0, 0.5);
    outline-offset: 2px;
  }
  .hamburger:active {
    background: rgba(230, 0, 0, 0.06);
  }
}

.hamburger {
  width: 44px;
  height: 44px;
  display: grid;
  gap: 6px;
  place-items: center;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #0f172a;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  /* Au-dessus de la bande contact fixe (sm+) et du header — priorité à la navigation mobile */
  z-index: 200;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  margin-left: auto;
  height: 100%;
  max-width: 300px;
  width: 75%;
  background: #ffffff;
  border-radius: 24px 0 0 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu-content {
  transform: translateX(0);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.mobile-link--app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 4px;
}
.mobile-link--app .mobile-link__label {
  flex: 1;
  min-width: 0;
}
.mobile-link__app-thumb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 12px;
  background: #f5ebe0;
  border: 1px solid rgba(227, 6, 19, 0.12);
  box-sizing: border-box;
}
.mobile-link__app-img {
  display: block;
  width: 52px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.btn-afs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #E60000;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  border: none;
  transition: all 300ms ease-in-out;
  box-shadow: 0 10px 20px rgba(230, 0, 0, 0.18);
}

.btn-afs:hover {
  filter: brightness(1.1);
  box-shadow: 0 16px 30px rgba(230, 0, 0, 0.28);
}

.btn-afs:active {
  transform: scale(0.95);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: transparent;
  color: #E60000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 2rem;
  border: 1px solid #E60000;
  transition: all 300ms ease-in-out;
}

.btn-ghost:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 24px rgba(230, 0, 0, 0.12);
}

.btn-ghost:active {
  transform: scale(0.95);
}

.video-frame {
  position: relative;
  overflow: hidden;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
}

.video-frame.is-playing::after {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-frame.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-frame.is-playing .video-poster {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.video-play-button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #E60000;
  position: relative;
}

.video-play-button::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: ping 1.6s ease-out infinite;
}

.auth-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  color: #0f172a;
}

.auth-form input:focus {
  border-color: #ff4f8b;
  outline: none;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 70vh;
  background: #f9fafb;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  max-width: 100%;
}

.dashboard-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-right: 1px solid #e2e8f0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(230, 0, 0, 0.08);
  color: #E60000;
}

.sidebar-header-icon svg {
  width: 20px;
  height: 20px;
}

.sidebar-header-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
}

.sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s;
}

.sidebar-back-link:hover {
  background: rgba(230, 0, 0, 0.06);
  color: #E60000;
}

.sidebar-back-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  color: currentColor;
}

.sidebar-project-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  padding: 0 12px 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  color: #475569;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(230, 0, 0, 0.06);
  color: #E60000;
}

.sidebar-link.active {
  background: rgba(230, 0, 0, 0.1);
  color: #E60000;
  font-weight: 600;
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #E60000;
  border-radius: 0 4px 4px 0;
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
  display: block;
  color: currentColor;
}

.sidebar-link.active .sidebar-icon {
  opacity: 1;
}

html.change-service-modal-open {
  overflow: hidden;
}

.sidebar-change-service-form {
  width: 100%;
}

.sidebar-link-change-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  color: #64748b;
  font-weight: 500;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sidebar-link-change-service:hover {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.sidebar-link-logout {
  margin-top: auto;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar-link-logout:hover {
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.sidebar-badge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #E60000;
  color: white;
  border-radius: 9999px;
}

.sidebar-badge-warning {
  background: #f59e0b;
  min-width: 20px;
  height: 20px;
  font-size: 0.65rem;
}

.dashboard-content {
  padding: 20px 16px;
  min-width: 0;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .dashboard-content {
    padding: 28px 24px;
  }
}

@media (min-width: 768px) {
  .dashboard-content {
    padding: 32px;
  }
}

.dashboard-content-inner {
  min-width: 0;
  max-width: 100%;
}

/* --- Page sélection de service --- */
.service-selection-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
}

.service-selection-hero {
  text-align: center;
  margin-bottom: 48px;
}

.service-selection-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .service-selection-title {
    font-size: 2.25rem;
  }
}

.service-selection-subtitle {
  margin-top: 12px;
  font-size: 1rem;
  color: #64748b;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.service-selection-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .service-selection-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.service-selection-form {
  min-width: 0;
}

.service-selection-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 28px 24px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 220px;
}

@media (min-width: 768px) {
  .service-selection-card {
    padding: 32px 28px;
    min-height: 260px;
  }
}

.service-selection-card:hover {
  border-color: #E60000;
  box-shadow: 0 12px 40px rgba(230, 0, 0, 0.12);
  transform: translateY(-4px);
}

.service-selection-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.25);
}

.service-selection-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(230, 0, 0, 0.08);
  color: #E60000;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-selection-card:hover .service-selection-card-icon {
  background: #E60000;
  color: white;
}

.service-selection-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-selection-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

@media (min-width: 768px) {
  .service-selection-card-title {
    font-size: 1.25rem;
  }
}

.service-selection-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 auto 0;
  flex: 1;
}

.service-selection-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #E60000;
  margin-top: 20px;
  transition: transform 0.2s ease;
}

.service-selection-card:hover .service-selection-card-cta {
  transform: translateX(4px);
}

.service-selection-form:nth-child(1) [data-reveal] { transition-delay: 0ms; }
.service-selection-form:nth-child(2) [data-reveal] { transition-delay: 80ms; }
.service-selection-form:nth-child(3) [data-reveal] { transition-delay: 160ms; }

/* Service selection mobile : cartes plus accessibles */
@media (max-width: 767px) {
  .service-selection-card {
    min-height: auto;
    padding: 24px 20px;
  }
  .service-selection-card-cta {
    margin-top: 16px;
    min-height: 44px;
    align-items: center;
  }
  .service-selection-hero {
    margin-bottom: 32px;
  }
}

/* --- Bandeau MODE CONSULTANT (staff visualise la vue client) --- */
.staff-mode-banner {
  background: #E60000;
  color: white;
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.staff-mode-banner-text {
  display: block;
}

/* --- Page détail projet : hiérarchie visuelle + mobile --- */
.project-detail-top {
  margin-bottom: 40px;
  /* overflow: visible pour que la timeline (scroll horizontal) ne soit pas coupée */
  overflow: visible;
}
/* Alignement timeline + formulaire : même largeur max (max-w-3xl) que le wizard/starter */
.project-detail-top-inner {
  padding-top: 14px;
}

@media (min-width: 640px) {
  .project-detail-top {
    margin-bottom: 48px;
  }
}

.project-detail-type-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 16px;
}

.project-detail-header {
  padding-bottom: 8px;
}

.project-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  break-words: break-word;
}

@media (min-width: 640px) {
  .project-detail-title {
    font-size: 1.875rem;
  }
}

.project-detail-meta {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #64748b;
}

/* Aération : espacement entre les sections */
.project-detail-page > * + * {
  margin-top: 32px;
}

@media (min-width: 640px) {
  .project-detail-page > * + * {
    margin-top: 40px;
  }
}

.project-detail-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 24px 20px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .project-detail-card {
    border-radius: 24px;
    padding: 36px 32px;
  }
}

.project-detail-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .project-detail-card-title {
    font-size: 1.125rem;
  }
}

.project-detail-card-highlight {
  border-color: rgba(230, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.06) 0%, rgba(230, 0, 0, 0.02) 100%);
}

.project-detail-card-title-highlight {
  color: #E60000;
  font-size: 1.0625rem;
}

@media (min-width: 640px) {
  .project-detail-card-title-highlight {
    font-size: 1.125rem;
  }
}

.project-detail-highlight-text {
  margin-top: 20px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  break-words: break-word;
}

@media (min-width: 640px) {
  .project-detail-highlight-text {
    margin-top: 24px;
    font-size: 1.0625rem;
  }
}

.project-detail-card-body {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  break-words: break-word;
  white-space: pre-wrap;
}

.project-detail-card-body-muted {
  color: #94a3b8;
  font-style: italic;
}

.project-detail-form {
  margin-top: 28px;
  gap: 24px;
}

@media (min-width: 640px) {
  .project-detail-form {
    margin-top: 32px;
    gap: 28px;
  }
}

/* Boutons : zone tactile min 44px (accessibilité mobile) */
.project-detail-page .btn-afs {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 0.9375rem;
}

.project-detail-page .grid > * {
  min-width: 0;
}

/* --- Récapitulatif : structure aérée et lisible --- */
.project-detail-card-recap {
  padding: 28px 24px;
}

@media (min-width: 640px) {
  .project-detail-card-recap {
    padding: 40px 36px;
  }
}

.project-detail-recap-main-title {
  margin-bottom: 32px;
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .project-detail-recap-main-title {
    font-size: 1.375rem;
    margin-bottom: 40px;
  }
}

.project-detail-recap-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .project-detail-recap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

.project-detail-recap-block {
  min-width: 0;
}

.project-detail-recap-block-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
  margin-bottom: 20px;
}

.project-detail-recap-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-detail-recap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.project-detail-recap-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
}

.project-detail-recap-icon-primary {
  background: rgba(230, 0, 0, 0.08);
  color: #E60000;
}

.project-detail-recap-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 4px;
}

.project-detail-recap-value {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.project-detail-recap-value-highlight {
  color: #E60000;
  font-size: 1.125rem;
}

.project-detail-recap-item-highlight {
  padding: 20px;
  border-radius: 16px;
  background: rgba(230, 0, 0, 0.04);
}

.project-detail-recap-empty {
  font-size: 0.9375rem;
  color: #94a3b8;
  font-style: italic;
  padding: 16px 0;
  line-height: 1.5;
}

.project-detail-recap-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.project-detail-recap-indicator-label {
  font-size: 0.8125rem;
  color: #64748b;
}

.project-detail-recap-indicator-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.dashboard-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.tab-link {
  position: relative;
  font-weight: 600;
  color: #64748b;
  padding-bottom: 10px;
}

.tab-link.active {
  color: #0f172a;
}

.tab-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #E60000;
}

@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: max(12px, env(safe-area-inset-top));
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .sidebar-header {
    width: 100%;
    padding: 4px 0 8px;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
  }

  .sidebar-header-icon {
    width: 32px;
    height: 32px;
  }

  .sidebar-header-icon svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-header-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .sidebar-back-link {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 12px;
    min-height: 44px;
    align-items: center;
    flex-shrink: 0;
  }

  .sidebar-project-title {
    width: 100%;
    margin-bottom: 0;
    padding: 4px 12px 8px;
    font-size: 0.7rem;
    flex-shrink: 0;
  }

  .dashboard-sidebar:has(.sidebar-back-link) {
    padding-bottom: 8px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    flex: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-link {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: none;
    padding: 12px 14px;
    font-size: 0.85rem;
    min-height: 44px;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .sidebar-link.active::before {
    display: none;
  }

  .sidebar-link.active {
    box-shadow: inset 0 0 0 2px rgba(230, 0, 0, 0.25);
    background: rgba(230, 0, 0, 0.08);
  }

  .sidebar-link-logout {
    margin-top: 0;
    flex: 1 1 100%;
    min-width: 100%;
  }

  .dashboard-content {
    padding: 20px;
  }

  .dashboard-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .dashboard-content {
    padding: 16px;
  }

  .dashboard-sidebar {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    top: 0;
  }

  .sidebar-nav {
    gap: 6px;
  }

  .sidebar-link {
    padding: 12px 10px;
    font-size: 0.8rem;
    min-height: 48px;
    flex: 1 1 calc(50% - 3px);
    min-width: calc(50% - 3px);
  }

  .sidebar-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
  }

  .sidebar-link {
    white-space: normal;
    line-height: 1.3;
  }

  .sidebar-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    padding: 0 4px;
  }
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(230, 0, 0, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #E60000, #a02040);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.progress-w-0 { width: 0%; }
.progress-w-20 { width: 20%; }
.progress-w-25 { width: 25%; }
.progress-w-30 { width: 30%; }
.progress-w-40 { width: 40%; }
.progress-w-50 { width: 50%; }
.progress-w-60 { width: 60%; }
.progress-w-75 { width: 75%; }
.progress-w-80 { width: 80%; }
.progress-w-100 { width: 100%; }

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #E60000;
  position: relative;
}

.stepper-dot.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(230, 0, 0, 0.35);
  animation: ping 1.8s ease-out infinite;
}

.stepper-line {
  width: 36px;
  height: 2px;
  background: rgba(230, 0, 0, 0.35);
}

/* Project timeline - chevron/arrow style (#e30613) */
/* min-width: 0 + width: 100% pour permettre le scroll horizontal (5 étapes Financement, 4 Reporting) sans coupure */
.project-timeline-wrapper {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  /* Éviter le clipping du box-shadow (glow) en haut et à gauche */
  padding-top: 20px;
  padding-left: 14px;
  padding-right: 14px;
}
.project-timeline-wrapper::-webkit-scrollbar {
  height: 6px;
}
.project-timeline-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}
.project-timeline-wrapper::-webkit-scrollbar-thumb {
  background: rgba(227, 6, 19, 0.3);
  border-radius: 3px;
}
.project-timeline {
  gap: 0;
  flex-wrap: nowrap;
}
.project-timeline-step {
  flex: 0 0 auto;
}
.project-timeline-chevron {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.project-timeline-chevron.project-timeline-completed {
  background: #e30613;
  color: white;
  border-color: #e30613;
}
.project-timeline-chevron.project-timeline-active {
  background: #e30613;
  color: white;
  border-color: #e30613;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.25);
}
.project-timeline-chevron.project-timeline-pending {
  background: transparent;
  color: rgba(227, 6, 19, 0.5);
  border-color: rgba(227, 6, 19, 0.35);
}
.project-timeline-arrow {
  width: 16px;
  height: 16px;
  color: rgba(227, 6, 19, 0.5);
}
.project-timeline-label {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .project-timeline-chevron {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .project-timeline-arrow {
    width: 12px;
    height: 12px;
  }
  .project-timeline-label {
    font-size: 0.7rem;
  }
}

/* Timeline mobile : scroll horizontal fluide */
@media (max-width: 480px) {
  .project-timeline-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Timeline hero (dashboard) - plus grande */
.project-timeline-hero {
  -webkit-overflow-scrolling: touch;
}
.project-timeline-hero .project-timeline {
  padding: 20px 14px;
}
.project-timeline-hero .project-timeline-chevron {
  padding: 12px 18px;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.project-timeline-hero .project-timeline-arrow {
  width: 22px;
  height: 22px;
}
.project-timeline-hero .project-timeline-chevron.project-timeline-active {
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.3);
}

/* Hero timeline (Accueil, Messages, Dataroom, Request Room) — même largeur que le contenu */
.project-detail-hero-wrap {
  min-width: 0;
}

/* Dashboard hero */
.dashboard-hero {
  overflow: visible;
}

/* Projet terminé : cadre et fond verts (harmonie avec statut Terminé) */
.dashboard-hero.dashboard-hero--complete {
  border-color: rgba(5, 150, 105, 0.35);
  background: linear-gradient(to bottom right, #ffffff 0%, rgba(209, 250, 229, 0.55) 100%);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.08);
}
/* Timeline dans hero : padding pour le glow */
.project-timeline-hero.project-timeline-wrapper {
  padding-top: 20px;
  padding-left: 14px;
}
.dashboard-hero-title {
  letter-spacing: -0.02em;
}
.dashboard-hero-subtitle {
  font-size: 1rem;
}

/* Timeline + tampon VALIDÉ (dossier terminé)
   Colonne : timeline = 100 % largeur (scroll horizontal non comprimé), tampon en dessous */
.dashboard-hero-timeline-with-stamp {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
.dashboard-hero-timeline-with-stamp__track {
  min-width: 0;
  width: 100%;
  /* La timeline occupe toute la ligne ; pas de partage de grille avec le tampon */
}
.dashboard-hero-timeline-with-stamp .project-validated-stamp--hero {
  align-self: flex-end;
  margin-top: 0.125rem;
  /* léger décalage visuel sans empiéter sur la zone scrollable */
}
.project-detail-timeline-with-stamp {
  margin-top: 0.5rem;
}
.project-detail-timeline-with-stamp .project-validated-stamp--compact {
  align-self: flex-end;
}

.project-validated-stamp {
  user-select: none;
  color: #047857;
  flex-shrink: 0;
}
.project-validated-stamp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0.85rem;
  border: 0.28rem double rgba(4, 120, 87, 0.85);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, 0.12);
  transform: rotate(-10deg);
}
.project-validated-stamp__text {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.05;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}
.project-validated-stamp__sub {
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
/* Grand format (hero client, à droite de la timeline) */
.project-validated-stamp--hero .project-validated-stamp__inner {
  padding: 0.65rem 1.1rem;
  border-width: 0.32rem;
}
.project-validated-stamp--hero .project-validated-stamp__text {
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
}
.project-validated-stamp--hero .project-validated-stamp__sub {
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
}
/* Compact (bandeau sans formulaire / petit écran) */
.project-validated-stamp--compact .project-validated-stamp__inner {
  padding: 0.35rem 0.65rem;
  border-width: 0.22rem;
  transform: rotate(-8deg);
}
.project-validated-stamp--compact .project-validated-stamp__text {
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
  letter-spacing: 0.1em;
}
.project-validated-stamp--compact .project-validated-stamp__sub {
  font-size: 0.55rem;
  margin-top: 0.15rem;
}

/* Dashboard grid 2 colonnes */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 900px) {
  .dashboard-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Vue d'ensemble maximisée (timeline + Prochaine Étape + rapports) */
.dashboard-overview-maximized .dashboard-overview-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 100%;
}
.dashboard-report-preview {
  background: #ffffff;
  border: 1px solid rgba(227, 6, 19, 0.15);
  border-radius: 20px;
  padding: 28px;
  min-height: 200px;
}
.dashboard-report-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.dashboard-report-preview-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.1);
  color: #e30613;
}
.dashboard-report-preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.dashboard-report-preview-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 24px 0;
}
.dashboard-report-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .dashboard-report-preview-grid {
    grid-template-columns: 1fr;
  }
}
.dashboard-report-preview-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  min-height: 140px;
  transition: background 0.2s;
}
.dashboard-report-preview-card-provisoire {
  background: #fafafa;
  border: 1px solid #e2e8f0;
}
.dashboard-report-preview-card-provisoire:hover {
  background: #ffffff;
}
.dashboard-report-preview-card-final {
  background: rgba(227, 6, 19, 0.04);
  border: 1px solid rgba(227, 6, 19, 0.2);
}
.dashboard-report-preview-card-final:hover {
  background: rgba(227, 6, 19, 0.06);
}
.dashboard-report-preview-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  margin-bottom: 16px;
}
.dashboard-report-preview-badge-final {
  background: rgba(227, 6, 19, 0.12);
  color: #e30613;
}
.dashboard-report-preview-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}
.dashboard-report-preview-download:hover {
  color: #e30613;
}
.dashboard-report-preview-doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
}
.dashboard-report-preview-doc-icon-final {
  background: rgba(227, 6, 19, 0.08);
  color: #e30613;
}
.dashboard-report-preview-doc-name {
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
}
.dashboard-report-preview-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e30613;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(227, 6, 19, 0.08);
  transition: background 0.2s;
}
.dashboard-report-preview-download:hover .dashboard-report-preview-download-btn {
  background: rgba(227, 6, 19, 0.15);
}
.dashboard-report-preview-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 8px;
}
.dashboard-report-preview-empty-icon {
  font-size: 1.5rem;
  color: #cbd5e1;
  font-weight: 300;
}
.dashboard-report-preview-empty {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

/* Action cards dashboard */
.dashboard-action-card {
  background: white;
  border: 1px solid rgba(227, 6, 19, 0.15);
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}
.dashboard-action-card:hover {
  box-shadow: 0 4px 20px rgba(227, 6, 19, 0.08);
}
.dashboard-action-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e30613;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-quick-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.875rem;
}
.dashboard-quick-stat:last-child {
  border-bottom: none;
}
.dashboard-quick-stat-value {
  font-weight: 700;
  color: #e30613;
}

/* Empty state avec icône */
.dashboard-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: #64748b;
  font-size: 0.875rem;
}
.dashboard-empty-state svg {
  margin: 0 auto 12px;
  color: #cbd5e1;
}

/* Boutons globaux : zone tactile mobile */
@media (max-width: 640px) {
  .btn-afs {
    min-height: 44px;
    padding: 12px 20px;
  }
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  flex-wrap: wrap;
}

.doc-row > div:first-child {
  min-width: 0;
  flex: 1;
}

.doc-row p {
  word-break: break-word;
}

@media (max-width: 640px) {
  .doc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .doc-row > div:first-child {
    flex: none;
    width: 100%;
  }

  .doc-row .btn-afs {
    align-self: flex-end;
  }
}

/* Bande fixe au-dessus du menu (réseaux + texte) — évite le débordement horizontal */
.site-top-contact-bar {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.site-top-contact-bar__text {
  hyphens: auto;
  -webkit-hyphens: auto;
}
.site-top-contact-bar__cta {
  align-items: center;
}
.site-top-contact-bar__wa:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}

.doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #E60000;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: #E60000;
}

.field-error .error-text {
  color: #E60000;
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Wizard : groupes cases à cocher / choix en erreur */
.submit-step .field-error:has(.submit-checkbox-grid),
.submit-step .field-error:has(.submit-radio-group),
.submit-step .field-error:has(.submit-toggle) {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(230, 0, 0, 0.35);
  background: rgba(230, 0, 0, 0.04);
}

.status-badge {
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-analyse {
  background: rgba(230, 0, 0, 0.12);
  color: #E60000;
}

.status-etude {
  background: rgba(255, 192, 203, 0.25);
  color: #7a0019;
}

.status-bp {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.status-financement {
  background: rgba(255, 0, 0, 0.12);
  color: #ff0000;
}

.status-termine {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.status-preparation_note {
  background: rgba(255, 192, 203, 0.25);
  color: #7a0019;
}

.status-passage_comite {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.status-decaissement {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.step-card {
  border: 0.5px solid #E60000;
  border-radius: 24px;
  background: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.step-card h3 {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #475569;
}

.icon-thin {
  stroke-width: 1.1;
}

.section-radial {
  background: radial-gradient(circle at top, rgba(255, 192, 203, 0.18), transparent 60%);
}

.glass-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #ffffff;
  position: relative;
}

.icon-glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(230, 0, 0, 0.35), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #ffffff;
  color: #E60000;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.bento-card {
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.bento-geo {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 0, 0 20px;
}

.bento-topo {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12) 0, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0, transparent 45%);
}

.float-y {
  animation: float-y 5s ease-in-out infinite;
}

.icon-hover {
  transition: transform 0.4s ease;
}

.icon-hover:hover {
  transform: scale(1.08);
}

.hero-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 800px;
}

.hero-orb {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(145deg, #E60000, #ffc0cb);
  border: 1px solid rgba(230, 0, 0, 0.35);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
  opacity: 0.8;
  transform-style: preserve-3d;
  animation: hero-float 7s ease-in-out infinite;
}

.hero-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  transform: translateZ(14px);
}

.hero-orb:nth-child(2) {
  width: 56px;
  height: 56px;
  animation-duration: 9s;
}

.hero-orb:nth-child(3) {
  width: 80px;
  height: 80px;
  animation-duration: 8s;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hero-float {
  position: absolute;
  width: 72px;
  height: auto;
  opacity: 0.7;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18));
  animation: hero-float 9s ease-in-out infinite;
}

.hero-float.hero-fusee {
  width: 180px;
}

.hero-float:nth-child(2) {
  width: 88px;
  animation-duration: 11s;
}

.hero-float:nth-child(3) {
  width: 64px;
  animation-duration: 8s;
}

@keyframes hero-image-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-image-float {
  animation: hero-image-float 7s ease-in-out infinite;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotateX(6deg) rotateY(-6deg);
  }
  50% {
    transform: translateY(-8px) rotateX(-4deg) rotateY(8deg);
  }
}

.tilt-hover {
  transition: transform 0.4s ease;
}

.tilt-hover:hover {
  transform: rotate(2deg);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes ping {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.pattern-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
}

.pattern-squares {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.pattern-topo {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.05) 0, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(15, 23, 42, 0.04) 0, transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(15, 23, 42, 0.04) 0, transparent 40%);
}

.pattern-glamorous {
  background-image: url("glamorous.svg");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.04;
}

.pattern-hideout {
  background-image: url("hideout.svg");
  background-repeat: repeat;
  background-size: 40px 40px;
  opacity: 0.12;
  filter: invert(1);
}


[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dotted-line {
  position: relative;
  overflow: hidden;
}

.dotted-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.4) 0,
    rgba(15, 23, 42, 0.4) 6px,
    transparent 6px,
    transparent 14px
  );
  background-size: 220px 2px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: dash-scroll 8s linear infinite;
}

@keyframes dash-scroll {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: 220px 50%;
  }
}

.timeline-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-rail {
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 12px;
  width: 2px;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.4) 0,
    rgba(15, 23, 42, 0.4) 6px,
    transparent 6px,
    transparent 14px
  );
  background-size: 2px 220px;
  background-repeat: repeat-y;
  animation: dash-vertical 8s linear infinite;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 16px;
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  height: 14px;
  width: 14px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.4);
  background: #ffffff;
}

.timeline-card {
  border: 1px solid rgba(226, 232, 240, 1);
  border-radius: 24px;
  background: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.timeline-card h3 {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 600;
}

.timeline-card p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #475569;
}

.timeline-label {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 1);
  padding: 6px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
}


@keyframes dash-vertical {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 220px;
  }
}

/* Hero fade-in animation */
.hero-fade-in {
  animation: heroFadeIn 1s ease-out both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bento metric cards tilt effect */
.bento-metric {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* ─── Présentation : chiffres clés (section premium) ─── */
.presentation-key-stats {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #070708 0%, #160208 42%, #050506 100%);
  color: #fff;
  margin-bottom: 0;
  padding-bottom: 0;
}

.presentation-key-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 12% 15%, rgba(227, 6, 19, 0.5), transparent 58%),
    radial-gradient(ellipse 45% 40% at 95% 80%, rgba(255, 182, 193, 0.22), transparent 52%);
}

/* Couche type « verre » : floute les halos du fond + reflets modernes */
.presentation-key-stats::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    rgba(227, 6, 19, 0.07) 70%,
    rgba(12, 10, 12, 0.25) 100%
  );
  backdrop-filter: blur(36px) saturate(160%);
  -webkit-backdrop-filter: blur(36px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.presentation-key-stats__mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 15%, transparent 72%);
}

.presentation-key-stats__inner {
  position: relative;
  z-index: 3;
}

.presentation-key-stats__intro {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .presentation-key-stats__intro {
    margin-bottom: 2.25rem;
  }
}

.presentation-before-footer-spacer {
  height: 3.5rem;
  background: #fff;
}

@media (min-width: 768px) {
  .presentation-before-footer-spacer {
    height: 4.5rem;
  }
}

.presentation-key-stats__rail {
  height: 3px;
  width: 100%;
  max-width: 7.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, #e30613, #ffc0cb, #e30613, transparent);
  box-shadow: 0 0 24px rgba(227, 6, 19, 0.55);
}

.presentation-key-stats__title {
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 0%, #ffe4ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.presentation-key-stats__subtitle {
  margin-top: 0.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.presentation-key-stats__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffc0cb;
}

.presentation-stat-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.45rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(12, 12, 14, 0.45) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 20px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

@media (min-width: 768px) {
  .presentation-stat-card {
    padding: 1.5rem 1.45rem 1.65rem 1.55rem;
  }
}

.presentation-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 192, 203, 0.35);
  box-shadow:
    0 0 0 1px rgba(227, 6, 19, 0.25) inset,
    0 36px 72px rgba(227, 6, 19, 0.18),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

.presentation-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 1.25rem 0 0 1.25rem;
  background: linear-gradient(180deg, #e30613 0%, #ff8fa8 45%, #e30613 100%);
}

.presentation-stat-card__shine {
  position: absolute;
  top: -40%;
  right: -35%;
  width: 75%;
  height: 130%;
  background: linear-gradient(125deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  transform: rotate(-14deg);
  pointer-events: none;
  transition: transform 0.65s ease;
}

.presentation-stat-card:hover .presentation-stat-card__shine {
  transform: rotate(-14deg) translateX(-15%);
}

.presentation-stat-card__inner {
  position: relative;
  z-index: 1;
}

.presentation-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: rgba(227, 6, 19, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 0.85rem;
  color: #ffc0cb;
}

.presentation-stat-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 192, 203, 0.92);
  margin-bottom: 0.35rem;
}

.presentation-stat-value {
  font-size: clamp(2.45rem, 6vw, 3.45rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(185deg, #fff 15%, #ffc8d8 55%, #fff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 20px rgba(227, 6, 19, 0.45));
}

.presentation-stat-value sup {
  font-size: 0.38em;
  font-weight: 800;
  vertical-align: super;
  background: linear-gradient(180deg, #fff 0%, #ffc0cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.presentation-stat-desc {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* ─── Hero Slider (full-width background) ─── */
.hero-slider-section {
  position: relative;
  width: 100%;
}

.slider-track {
  will-change: transform;
}.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.3s ease, background 0.3s ease;
}

.hero-slider-section:hover .slider-arrow {
  opacity: 1;
}

.slider-dot {
  cursor: pointer;
  transition: width 0.5s ease, background 0.5s ease;
}

.slider-dot:hover {
  opacity: 0.85;
}

/* ─── Admin Dashboard (is_staff) ─── */
.admin-dashboard-section {
  position: relative;
  min-height: 80vh;
  padding: 24px 0 48px;
}

.admin-dashboard-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 40%, #e2e8f0 100%);
  z-index: -1;
}

.admin-dashboard-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230, 0, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.admin-dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 75vh;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #64748b;
}

.admin-sidebar-badge {
  background: #E60000;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #475569;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.admin-sidebar-link:hover {
  background: rgba(230, 0, 0, 0.08);
  color: #E60000;
}

.admin-sidebar-link.active {
  background: rgba(230, 0, 0, 0.12);
  color: #E60000;
  font-weight: 600;
}

.admin-sidebar-link-muted {
  font-size: 0.85rem;
  color: #94a3b8;
}

.admin-sidebar-link-muted:hover {
  color: #64748b;
}

.admin-sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.admin-dashboard-content {
  padding: 0 32px;
}

.admin-overview {
  max-width: 1000px;
}

.admin-overview-header {
  margin-bottom: 32px;
}

.admin-back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.admin-back-link:hover {
  color: #E60000;
}

.admin-overview-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-overview-subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #64748b;
}

/* Admin Bento Grid */
.admin-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.admin-bento-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(230, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(230, 0, 0, 0.06);
}

.admin-bento-card-large {
  grid-column: span 2;
}

.admin-bento-card-wide {
  grid-column: span 2;
}

.admin-bento-card-full {
  margin-bottom: 24px;
}

.admin-bento-inner {
  position: relative;
}

.admin-bento-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
}

.admin-bento-value {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-bento-desc {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #64748b;
}

/* Admin <details> accordions: heading left, chevron top-right (never under text) */
details.admin-accordion > summary.admin-accordion-summary {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
details.admin-accordion > summary.admin-accordion-summary::-webkit-details-marker {
  display: none;
}
/* summaries outside admin-accordion (should not occur) */
.admin-accordion-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(226 232 240);
  background: #fff;
  color: rgb(100 116 139);
  transition: transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.admin-accordion-chevron--compact {
  width: 1.875rem;
  height: 1.875rem;
  margin-top: 0;
}
.admin-accordion-chevron svg {
  display: block;
}
details.admin-accordion > summary:hover .admin-accordion-chevron {
  background: rgb(248 250 252);
  border-color: rgb(203 213 225);
}
details.admin-accordion[open] > summary .admin-accordion-chevron {
  transform: rotate(180deg);
}

.admin-btn-bordeaux {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #E60000;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.admin-btn-bordeaux:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(230, 0, 0, 0.3);
}

/* Admin Progression card */
.admin-progression-card .admin-bento-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-progression-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-progression-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin: 0;
}

.admin-progression-badge {
  flex-shrink: 0;
}

.admin-progression-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-progression-bar {
  flex: 1;
  min-width: 0;
  height: 10px;
  border-radius: 9999px;
  background: rgba(230, 0, 0, 0.12);
  overflow: hidden;
}

.admin-progression-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #E60000, #a02040);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.admin-progression-percent {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  min-width: 36px;
  text-align: right;
}

.admin-progression-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.admin-progression-form-next {
  margin-left: auto;
}

.admin-progression-btn-next {
  gap: 8px;
}

.admin-progression-btn-revert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #92400e;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 64, 14, 0.35);
  transition: all 0.2s ease;
}

.admin-progression-btn-revert:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(146, 64, 14, 0.5);
}

/* AFS Upload Form - Zone 2 */
.afs-upload-form select.appearance-none {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.afs-file-zone .afs-file-zone-text {
  pointer-events: none;
}

/* Admin dashboard : masquer la navbar du site */
body.admin-dashboard-page .site-navbar-wrapper {
  display: none;
}

/* Admin Recent Projects */
.admin-recent-section {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.admin-recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-recent-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-recent-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.admin-recent-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(230, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(230, 0, 0, 0.08);
}

.admin-recent-item-main {
  flex: 1;
  min-width: 0;
}

.admin-recent-item-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.admin-recent-item-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.admin-recent-item-badge {
  flex-shrink: 0;
}

.admin-recent-item-arrow {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex-shrink: 0;
}

.admin-recent-item:hover .admin-recent-item-arrow {
  color: #E60000;
}

.admin-recent-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* Admin Quick Access */
.admin-quick-access {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Admin cards cliquables */
.admin-bento-card-clickable {
  cursor: pointer;
}

.admin-bento-card-service {
  text-decoration: none;
  color: inherit;
  display: block;
}

.admin-bento-card-service:hover {
  border-color: rgba(230, 0, 0, 0.3);
}

/* Icônes sur les cartes service */
.admin-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(230, 0, 0, 0.1);
  color: #E60000;
}

.admin-service-icon svg {
  width: 28px;
  height: 28px;
}

.admin-service-icon-etude,
.admin-service-icon-reporting,
.admin-service-icon-financement {
  background: rgba(230, 0, 0, 0.1);
  color: #E60000;
}

.admin-bento-card-sm {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Admin section title */
.admin-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

/* Admin notification badge (activité récente) */
.admin-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E60000;
  color: #E60000;
  font-size: 8px;
  flex-shrink: 0;
  animation: admin-notif-pulse 2s ease-in-out infinite;
}

@keyframes admin-notif-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Admin recent item wrapper (item + lien Dossier) */
.admin-recent-item-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.admin-recent-item-wrapper .admin-recent-item {
  flex: 1;
  min-width: 0;
}

.admin-recent-item-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-recent-item-link:hover {
  background: #E60000;
  color: white;
}

/* 3 colonnes pour projets par service */
.admin-bento-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .admin-bento-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-dashboard-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .admin-sidebar {
    position: static;
    margin-bottom: 24px;
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-sidebar-link {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .admin-dashboard-content {
    padding: 0;
  }

  .admin-bento-grid {
    grid-template-columns: 1fr;
  }

  .admin-bento-card-large,
  .admin-bento-card-wide {
    grid-column: span 1;
  }
}

/* ─── Dossier Timeline (Gestion de Dossier) ─── */
.dossier-timeline-wrap {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.dossier-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.dossier-timeline-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.dossier-timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dossier-timeline-step.completed .dossier-timeline-dot {
  background: #FFC0CB;
  border-color: #FFC0CB;
  box-shadow: 0 0 0 3px rgba(255, 192, 203, 0.25);
}

.dossier-timeline-step.active .dossier-timeline-dot {
  background: #E60000;
  border-color: #E60000;
  box-shadow: 0 0 0 4px rgba(230, 0, 0, 0.2);
  transform: scale(1.15);
}

.dossier-timeline-content {
  margin-left: 12px;
  padding: 8px 16px;
  border-radius: 10px;
}

.dossier-timeline-step.completed .dossier-timeline-content {
  color: #64748b;
}

.dossier-timeline-step.active .dossier-timeline-content {
  font-weight: 600;
  color: #E60000;
}

.dossier-timeline-label {
  font-size: 0.9rem;
}

.dossier-timeline-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
}

.dossier-timeline-step.completed + .dossier-timeline-step .dossier-timeline-line,
.dossier-timeline-step.completed .dossier-timeline-line {
  background: #FFC0CB;
}

@media (max-width: 768px) {
  .dossier-timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .dossier-timeline-step {
    flex: none;
    width: 100%;
  }

  .dossier-timeline-line {
    width: 2px;
    min-width: 2px;
    height: 24px;
    margin: 4px 0 4px 7px;
    align-self: flex-start;
  }
}

/* Timeline icônes */
.dossier-timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.dossier-timeline-svg {
  width: 18px;
  height: 18px;
}

.dossier-timeline-step.completed .dossier-timeline-icon {
  background: #FFC0CB;
  color: #7a0019;
}

.dossier-timeline-step.active .dossier-timeline-icon {
  background: #E60000;
  color: white;
}

.dossier-timeline-step:not(.completed):not(.active) .dossier-timeline-icon {
  background: #e2e8f0;
  color: #94a3b8;
}

.dossier-tab-panel {
  display: block;
}

.dossier-phase-icon {
  font-size: 1.25rem;
}

/* Timeline client (historique des étapes) - v2 améliorée */
.client-timeline-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.client-timeline-v2-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.client-timeline-v2-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}

.client-timeline-v2-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #e2e8f0;
  flex-shrink: 0;
  z-index: 1;
}

.client-timeline-v2-dot-current {
  background: #E60000;
  box-shadow: 0 0 0 2px #E60000, 0 2px 8px rgba(230, 0, 0, 0.3);
  transform: scale(1.1);
}

.client-timeline-v2-line {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: linear-gradient(to bottom, #e2e8f0 0%, #e2e8f0 100%);
  margin: 2px 0;
}

.client-timeline-v2-card {
  flex: 1;
  min-width: 0;
  margin-left: 4px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.client-timeline-v2-item:first-child .client-timeline-v2-card {
  background: rgba(230, 0, 0, 0.04);
  border-color: rgba(230, 0, 0, 0.15);
}

.client-timeline-v2-card:hover {
  border-color: rgba(230, 0, 0, 0.2);
  background: white;
}

.client-timeline-v2-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.client-timeline-v2-badge {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.client-timeline-v2-date {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  background: white;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.client-timeline-v2-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}

/* Legacy (fallback) */
.client-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.client-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.client-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFC0CB;
  flex-shrink: 0;
  margin-top: 5px;
}

.client-timeline-item:first-child .client-timeline-dot {
  background: #E60000;
}

.client-timeline-content {
  font-size: 0.9rem;
}

/* Data-Room & Chat-Room */
.doc-icon-afs {
  background: rgba(230, 0, 0, 0.1);
  color: #E60000;
}

.dataroom-afs-row {
  border-left: 3px solid #E60000;
}

/* Data-room — cartes « vos documents » (uploads client) */
.dataroom-client-uploads__icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.doc-row-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e8ecf0;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.doc-row-client:hover {
  border-color: rgba(230, 0, 0, 0.16);
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(230, 0, 0, 0.05);
}

.doc-icon--client {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(230, 0, 0, 0.07);
  border: 1px solid rgba(230, 0, 0, 0.12);
  color: #e30613;
}

.project-detail-page .doc-row-client .dataroom-btn-download {
  flex-shrink: 0;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  box-shadow: 0 6px 16px rgba(230, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .doc-row-client {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-row-client .dataroom-btn-download {
    align-self: stretch;
    justify-content: center;
  }
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.chat-msg-mine {
  background: rgba(230, 0, 0, 0.08);
  border-left: 4px solid #E60000;
}

.chat-msg-other {
  background: rgba(251, 191, 36, 0.12);
  border-left: 4px solid #f59e0b;
}

.chat-msg-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
}

.chat-msg-badge-mine {
  background: #E60000;
  color: white;
}

.chat-msg-badge-afs {
  background: #d97706;
  color: white;
}

@media (max-width: 640px) {
  .chat-msg {
    padding: 10px 12px;
  }

  .chat-messages {
    max-height: 50vh;
  }
}

/* Formulaire banques - grille scrollable */
.banque-grid-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 0, 0, 0.3) transparent;
}
.banque-grid-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.banque-grid-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.banque-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(230, 0, 0, 0.25);
  border-radius: 3px;
}
.banque-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 0, 0, 0.4);
}

/* Accordéon banques - espace client : éviter débordement */
.banque-accordion-item {
  max-width: 100%;
}
.banque-accordion-summary {
  overflow: hidden;
  max-width: 100%;
}
.banque-accordion-summary .overflow-hidden {
  min-width: 0;
}
/* Commentaire déplié : casser les mots longs (URLs, etc.) */
.banque-accordion-content p.text-sm {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Troncature noms banques (cartes + tableau) */
.banque-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Select Statut - style cohérent avec le reste du formulaire */
.banque-statut-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
  padding-right: 48px;
  min-height: 48px;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.banque-statut-select-wrapper select:hover {
  border-color: #cbd5e1;
}
.banque-statut-select-wrapper select:focus {
  outline: none;
  border-color: #E60000;
  box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.2);
}

/* Custom audio player - section associé gérant */
.associe-audio-player {
  background: #f8fafc;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
  .associe-audio-player {
    padding: 14px 18px;
  }
}
.associe-player-inner {
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) {
  .associe-player-inner {
    gap: 16px;
  }
}
.associe-play-btn {
  flex-shrink: 0;
}
.associe-track-wrap {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
@media (min-width: 640px) {
  .associe-track-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
}
.associe-progress-bar {
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
  min-height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #cbd5e1 0,
    #cbd5e1 6px,
    transparent 6px,
    transparent 12px
  ) !important;
  border-radius: 5px;
  /* Zone tactile élargie sur mobile */
  padding: 6px 0;
  margin: -6px 0;
}
@media (min-width: 640px) {
  .associe-progress-bar {
    flex: 1 1 auto;
    min-height: 8px;
    padding: 4px 0;
    margin: -4px 0;
  }
}
.associe-progress-fill {
  pointer-events: none;
  border-radius: 4px;
}
.associe-playhead {
  pointer-events: none;
  z-index: 2;
}
/* Logos institutions / partenaires (grilles à côté du lecteur audio) — tailles modérées */
.logo-institus-cell {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  padding: clamp(0.35rem, 1.5vw, 0.6rem);
  max-width: min(100%, 56px);
  max-height: min(100%, 56px);
  margin-left: auto;
  margin-right: auto;
}
.logo-institus-cell img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 640px) {
  .logo-institus-cell {
    max-width: 72px;
    max-height: 72px;
    padding: 0.45rem;
  }
}
@media (min-width: 1024px) {
  .logo-institus-cell {
    max-width: 62px;
    max-height: 62px;
    padding: 0.4rem;
  }
}

/* Carte « Question associé gérant » : photo visible sur mobile (évite débordement / coupure) */
.associe-manager-card {
  overflow: visible;
}
@media (max-width: 767.98px) {
  .associe-card-avatar-float {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    left: auto !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    width: 7.5rem !important;
    height: 7.5rem !important;
    flex-shrink: 0;
  }
  .associe-manager-card {
    padding-top: 1.25rem;
  }
}

.associe-meta {
  width: 100%;
}
@media (min-width: 640px) {
  .associe-meta {
    width: auto;
    flex: 0 0 auto;
  }
}
