@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-red: #dc2626;
  --primary-green: #16a34a;
  --dark-red: #b91c1c;
  --dark-green: #15803d;
  --light-gray: #f9fafb;
  --text-gray: #374151;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-gray);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--text-gray) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#eventTabs .active {
  background-color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

/* Menu déroulant Formations */
/* .navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
} */

.navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px;
  margin-top: 10px;
  min-width: 240px;
}

.navbar .dropdown-item {
  color: var(--text-gray);
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--primary-red);
  color: white;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.btn-primary {
  background: var(--primary-red);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-success {
  background: var(--primary-green);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.75), rgba(22, 163, 74, 0.75)),
    url("images/vue-aerienne-cfpp.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 100px;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

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

.section-title {
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: var(--primary-green);
  bottom: -10px;
  left: 0;
}

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 25px;
}

.badge-primary {
  background: var(--primary-red);
  padding: 8px 15px;
  font-weight: 500;
}

.badge-success {
  background: var(--primary-green);
  padding: 8px 15px;
  font-weight: 500;
}

.stats-section {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  animation: countUp 2s ease;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
}

.partner-logo {
  height: 80px;
  width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.team-member {
  text-align: center;
  margin-bottom: 30px;
}

.team-member img {
  width: 250px;
  height: 280px;
  object-fit: cover;
  border-radius: 10%;
  border: 5px solid var(--primary-green);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.team-member:hover img {
  border-color: var(--primary-red);
  transform: scale(1.05);
}

.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 20px;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-red);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: white;
  border: 2px solid var(--primary-red);
  transform: translateY(-3px);
}

.formation-card {
  position: relative;
  overflow: hidden;
}

.formation-card .badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
}

.event-card {
  border-left: 4px solid var(--primary-red);
}

.event-card:nth-child(even) {
  border-left-color: var(--primary-green);
}

.testimonial-card {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--primary-green);
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.lang-switcher {
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.lang-switcher:hover {
  transform: scale(1.2);
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

.page-header {
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(22, 163, 74, 0.85)),
    url("images/administration.webp");
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
  color: white;
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-green);
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--primary-green);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .hero-section {
    min-height: 400px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.club-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.club-icon:hover {
  color: var(--primary-green);
  transform: rotate(360deg);
}

.contact-info-box {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-info-box:hover {
  border-color: var(--primary-red);
  transform: translateY(-5px);
}

.contact-info-box i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h5 {
  color: white;
  margin: 0;
}
.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 16px 6px 5px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.video-thumbnail::before {
  content: "\f04b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(220, 38, 38, 0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding-left: 5px;
}
.filter-btn {
  margin: 5px;
  padding: 10px 25px;
  border-radius: 25px;
  border: 2px solid #dc2626;
  background: white;
  color: #dc2626;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: #dc2626;
  color: white;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------
   Suivi d'admission ISME — étapes de progression
--------------------------------------------------------------------- */
.admission-steps {
  position: relative;
}

.admission-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: #e5e7eb;
  z-index: 0;
}

.admission-step {
  position: relative;
  z-index: 1;
  flex: 1;
}

.admission-step .step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 8px;
  transition: all 0.3s ease;
}

.admission-step.done .step-dot {
  background: var(--primary-green);
  color: #fff;
}

.admission-step .step-label {
  color: #9ca3af;
}

.admission-step.done .step-label {
  color: var(--text-gray);
  font-weight: 600;
}

.timeline-suivi li {
  border-left: 3px solid #e5e7eb;
  padding-left: 14px;
}

/* ---------------------------------------------------------------------
   Contenu TinyMCE (page détail événement)
--------------------------------------------------------------------- */
.evenement-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
}
.evenement-content h1,
.evenement-content h2,
.evenement-content h3 {
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}
.evenement-content p {
  margin-bottom: 1em;
}
.evenement-content ul,
.evenement-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.evenement-content a {
  color: var(--primary-red);
  text-decoration: none;
}
.evenement-content img {
  max-width: 100%;
  border-radius: 8px;
}
.evenement-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.evenement-content td,
.evenement-content th {
  border: 1px solid var(--border);
  padding: 8px 12px;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
}
.breadcrumb-item a {
  text-decoration: none;
}
.nav-pills .nav-link.active {
  background-color: white;
}
/* ---------------------------------------------------------------------
   Boutons de partage (page détail événement)
--------------------------------------------------------------------- */
.share-block .btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}
.share-block .btn-share:hover {
  color: #fff;
  filter: brightness(0.88);
  transform: translateY(-2px);
}
.share-block .btn-share i {
  font-size: 16px;
}

.btn-share-fb {
  background: #1877f2;
}
.btn-share-x {
  background: #000;
}
.btn-share-tg {
  background: #26a5e4;
}
.btn-share-wa {
  background: #25d366;
}

@media (max-width: 480px) {
  .share-block .btn-share span {
    display: none;
  }
  .share-block .btn-share {
    padding: 10px 14px;
  }
}

/* ---------------------------------------------------------------------
   Popup publique CFPP
--------------------------------------------------------------------- */
.cfpp-popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  /* transform et transition gérés par le JS */
}

.cfpp-popup-img img {
  width: 100%;
  /* max-height: 220px; */
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.cfpp-popup-body {
  padding: 28px 28px 32px;
}

.cfpp-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.3;
  /* padding-right: 30px; */
}

.cfpp-popup-content {
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cfpp-popup-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff !important;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
  letter-spacing: 0.01em;
}
.cfpp-popup-btn:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .cfpp-popup-body {
    padding: 22px 20px 26px;
  }
  .cfpp-popup-title {
    font-size: 1.15rem;
  }
  .cfpp-popup-btn {
    width: 100%;
    text-align: center;
  }
}

/* ---- Page 404 ---- */
.nf-code {
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 4px;
}
.nf-path {
  display: inline-block;
  max-width: 100%;
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-all;
}

.nf-link {
  text-decoration: none;
  display: block;
  height: 100%;
}
.nf-link .card {
  border-radius: 12px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.nf-link:hover .card,
.nf-link:focus-visible .card {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11) !important;
}
.nf-link:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 3px;
  border-radius: 12px;
}

.nf-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.nf-icon-red {
  background: var(--primary-red);
}
.nf-icon-green {
  background: var(--primary-green);
}

.nf-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 4px;
}
.nf-desc {
  font-size: 0.89rem;
  color: #6b7280;
  line-height: 1.6;
}

.nf-inline-link {
  color: var(--primary-red);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .nf-link .card {
    transition: none;
  }
  .nf-link:hover .card,
  .nf-link:focus-visible .card {
    transform: none;
  }
}

/* ---- Hero ---------------------------------------------------------- */
.lp-hero {
  background: linear-gradient(135deg, #111827 0%, #1c3a2a 50%, #0f2318 100%);
  padding: 120px 0 70px;
  text-align: center;
  color: #fff;
}

.lp-hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.lp-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.lp-hero-title span {
  color: #4ade80;
}

.lp-hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.lp-countdown {
  display: inline-block;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde68a;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.lp-countdown-closed {
  background: rgba(156, 163, 175, 0.1);
  border-color: rgba(156, 163, 175, 0.3);
  color: #9ca3af;
}

.lp-btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: #fff;
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition:
    filter 0.15s,
    transform 0.15s;
}

.lp-btn-primary:hover {
  color: #fff;
  filter: brightness(0.88);
  transform: translateY(-1px);
}

.lp-btn-outline {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 28px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.lp-btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Spécialités --------------------------------------------------- */
.lp-spec-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.lp-spec-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.lp-spec-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.lp-spec-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.lp-spec-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.lp-spec-tags span {
  background: #f3f4f6;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---- Partenaires --------------------------------------------------- */
.lp-partners {
  text-align: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}

.lp-partners-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 10px;
}

.lp-partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #374151;
}

.lp-partner-sep {
  color: #d1d5db;
  font-size: 1.2rem;
}

.lp-partner-item span {
  color: #6b7280;
  font-weight: 400;
}

/* ---- Cards info ---------------------------------------------------- */
.lp-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.lp-card-header {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.lp-header-green {
  background: var(--primary-green);
}

.lp-header-red {
  background: var(--primary-red);
}

.lp-card-body {
  padding: 20px;
}

/* ---- Timeline ------------------------------------------------------ */
.lp-timeline {
  position: relative;
  padding-left: 24px;
}

.lp-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e5e7eb;
}

.lp-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.lp-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: -21px;
  margin-top: 3px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e5e7eb;
}

.lp-dot-green {
  background: var(--primary-green);
  box-shadow: 0 0 0 2px #dcfce7;
}

.lp-dot-red {
  background: var(--primary-red);
  box-shadow: 0 0 0 2px #fee2e2;
}

.lp-tl-date {
  font-weight: 700;
  font-size: 0.95rem;
}

.lp-tl-label {
  color: #6b7280;
  font-size: 0.88rem;
}

.lp-info-block {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 16px;
}

.lp-info-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.lp-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.lp-info-label {
  color: #6b7280;
}

.lp-info-val {
  font-weight: 600;
}

.lp-frais {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
}

.lp-frais span {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
}

/* ---- Comptes bancaires --------------------------------------------- */
.lp-bank-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.lp-bank-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.lp-bank-eco {
  background: #003087;
}

.lp-bank-bsic {
  background: #006633;
}

.lp-bank-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.lp-bank-intitule {
  color: #6b7280;
  font-size: 0.8rem;
  margin: 2px 0;
}

.lp-bank-compte {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  margin-top: 4px;
}

.lp-copy-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 2px 6px;
  cursor: pointer;
  color: #6b7280;
  font-size: 11px;
  transition: all 0.15s;
}

.lp-copy-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

/* ---- Dossier ------------------------------------------------------- */
.lp-dossier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-piece {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow 0.15s;
}

.lp-piece:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.lp-piece-num {
  width: 28px;
  height: 28px;
  background: var(--primary-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.lp-piece-icon {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 15px;
  flex-shrink: 0;
}

.lp-piece-titre {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.lp-piece-detail {
  color: #6b7280;
  font-size: 0.87rem;
}

/* ---- Dépôt --------------------------------------------------------- */
.lp-depot-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.lp-depot-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin: 0 auto 16px;
}

.lp-depot-email {
  background: var(--primary-red);
}

.lp-depot-physique {
  background: var(--primary-green);
}

.lp-email-link {
  display: block;
  color: var(--primary-red);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 6px;
}

.lp-email-link:hover {
  text-decoration: underline;
}

.lp-adresse {
  text-align: left;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- CTA ----------------------------------------------------------- */
.lp-cta {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  padding: 70px 0;
}

.lp-btn-white {
  display: inline-block;
  background: #fff;
  color: var(--primary-red);
  padding: 13px 28px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s;
}

.lp-btn-white:hover {
  filter: brightness(0.95);
  color: var(--primary-red);
}

.lp-btn-white-outline {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 12px 28px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.lp-btn-white-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Album de galerie */
.alb-intro {
  color: #6b7280;
  line-height: 1.8;
  font-size: 1.02rem;
}

.gal-album {
  display: block;
  text-decoration: none;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gal-album:hover,
.gal-album:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.13);
}

.gal-album:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 3px;
}

.gal-album-cover {
  position: relative;
  height: 190px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-album-cover .fa-images {
  font-size: 38px;
  color: #d1d5db;
}

.gal-album-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
}

.gal-album-body {
  padding: 16px 18px;
}

.gal-album-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.gal-album-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.gal-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: #f3f4f6;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.06);
}
.gal-item:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 2px;
}
.gal-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 3px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.gal-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 18px 8px 7px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce) {
  .gal-album,
  .gal-item img {
    transition: none;
  }

  .gal-album:hover {
    transform: none;
  }

  .gal-item:hover img {
    transform: none;
  }
}

.ct-semaine {
  display: inline-block;
  background: #f0fdf4;
  color: var(--dark-green);
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  padding: 8px 20px;
  font-weight: 600;
}
.ct-partage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 8px;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}
.ct-partage:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}
.ct-partage i {
  font-size: 17px;
}
.ct-partage:focus-visible {
  outline: 3px solid var(--primary-red);
  outline-offset: 3px;
}

.ct-empty {
  text-align: center;
  padding: 70px 20px;
  color: #6b7280;
}

.ct-empty i {
  font-size: 52px;
  color: #d1d5db;
  margin-bottom: 18px;
  display: block;
}

.ct-empty h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 8px;
}

/* Étapes */
.ct-step {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.ct-step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}

.ct-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-gray);
  margin: 0;
}

.ct-step-sub {
  font-size: 0.88rem;
  color: #6b7280;
}

/* Jour */
.ct-jour {
  margin-bottom: 34px;
}

.ct-jour-titre {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-green);
  border-bottom: 2px solid #dcfce7;
  padding-bottom: 7px;
  margin-bottom: 16px;
}

/* Carte menu */
.ct-menu {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.ct-menu:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.ct-menu.is-selected {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ct-menu-img {
  height: 150px;
  background: #f3f4f6;
}

.ct-menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-menu-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ct-menu-plat {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.ct-menu-detail {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.ct-menu-detail li {
  font-size: 0.85rem;
  color: var(--text-gray);
  padding: 3px 0;
}

.ct-menu-detail li span {
  display: inline-block;
  min-width: 118px;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.ct-menu-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}

.ct-menu-pied {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ct-menu-prix {
  font-weight: 800;
  color: var(--primary-red);
  font-size: 1.05rem;
}

/* Sélecteur de quantité */
.ct-qte {
  display: flex;
  align-items: center;
  gap: 0;
}

.ct-qte-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: var(--text-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ct-qte-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.ct-qte-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.ct-qte-btn:hover {
  background: #f3f4f6;
}

.ct-qte-input {
  width: 52px;
  height: 36px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #d1d5db;
  border-left: 0;
  border-right: 0;
  color: var(--text-gray);
  -moz-appearance: textfield;
}

.ct-qte-input::-webkit-outer-spin-button,
.ct-qte-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ct-qte-input:focus {
  outline: 2px solid var(--primary-red);
  outline-offset: -2px;
}

/* Formulaire + récapitulatif */
.ct-form,
.ct-recap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ct-recap {
  position: sticky;
  top: 90px;
}

.ct-recap-titre {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.ct-recap-vide {
  color: #9ca3af;
  font-size: 0.88rem;
}

.ct-recap-ligne {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px dashed #f3f4f6;
}

.ct-recap-ligne span {
  color: var(--text-gray);
}

.ct-recap-ligne strong {
  white-space: nowrap;
}

.ct-recap-jour {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  font-weight: 700;
  margin-top: 12px;
}

.ct-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 2px solid #f3f4f6;
  font-size: 1.05rem;
}

.ct-recap-total strong {
  color: var(--primary-red);
  font-size: 1.3rem;
}

.ct-recap-note {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 12px;
}

/* Barre mobile */
.ct-barre {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.1);
  padding: 11px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ct-barre-label {
  display: block;
  font-size: 0.72rem;
  color: #6b7280;
}

.ct-barre strong {
  font-size: 1.1rem;
  color: var(--primary-red);
}

@media (max-width: 991.98px) {
  .ct-recap {
    position: static;
  }

  .ct-barre[hidden] {
    display: none;
  }

  .ct-barre:not([hidden]) {
    display: flex;
  }

  body.ct-has-barre {
    padding-bottom: 76px;
  }
}

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

.cf-ref {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.cf-ref i {
  font-size: 26px;
  color: var(--primary-green);
}

.cf-ref span {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cf-ref strong {
  font-size: 1.2rem;
  color: var(--text-gray);
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.cf-action {
  background: #fff;
  border: 2px solid #25d366;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.14);
}

.cf-action-titre {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.cf-action-texte {
  color: #6b7280;
  line-height: 1.7;
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.cf-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 34px;
  border-radius: 10px;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
}

.cf-btn-wa:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

.cf-btn-wa i {
  font-size: 22px;
}

.cf-action-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 14px;
}

.cf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cf-card-titre {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-gray);
  margin-bottom: 18px;
}

.cf-infos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.cf-infos > div {
  font-size: 0.92rem;
  color: var(--text-gray);
}

.cf-infos span {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 2px;
}

.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cf-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  padding: 8px 6px;
  border-bottom: 2px solid #f3f4f6;
}

.cf-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #f9fafb;
  color: var(--text-gray);
}

.cf-row-jour td {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  font-weight: 700;
  background: #f9fafb;
  padding-top: 12px;
}

.cf-table tfoot td {
  border-top: 2px solid #f3f4f6;
  border-bottom: 0;
  padding-top: 12px;
}

.cf-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-red);
}

.cf-comment {
  margin-top: 18px;
  padding: 13px 16px;
  background: #f9fafb;
  border-left: 3px solid var(--primary-green);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.cf-comment span {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}

@media (max-width: 575.98px) {
  .cf-btn-wa {
    width: 100%;
  }

  .cf-table {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-btn-wa {
    transition: none;
  }

  .cf-btn-wa:hover {
    transform: none;
  }
}

.nav-biblio {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 15px;
  margin: 0 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}
.nav-biblio:hover,
.nav-biblio:focus-visible {
  background: var(--primary-red);
  color: #fff;
}
@media (max-width: 991.98px) {
  .nav-biblio {
    margin: 8px 0;
    justify-content: center;
  }
}

.dv-entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dv-desc {
  color: #6b7280;
  line-height: 1.75;
  max-width: 720px;
}

.dv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dv-lecteur {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.dv-outils {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937;
  color: #fff;
  padding: 10px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.dv-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}

.dv-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.dv-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dv-zoom {
  font-size: 0.85rem;
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dv-pages {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.dv-zone {
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dv-zone canvas {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background: #fff;
  max-width: none;
  display: block;
}

.dv-attente {
  text-align: center;
  color: #6b7280;
  padding: 60px 20px;
  font-size: 0.9rem;
}

.dv-attente i {
  font-size: 28px;
}

.dv-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dv-indispo {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.dv-indispo i {
  font-size: 52px;
  color: #d1d5db;
}

@media (max-width: 575.98px) {
  .dv-zone {
    padding: 10px;
    max-height: none;
  }

  .dv-actions {
    width: 100%;
  }

  .dv-actions .btn {
    flex: 1 1 auto;
  }
}

.doc-barre {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.doc-recherche {
  position: relative;
  flex: 1 1 280px;
}

.doc-recherche i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.doc-recherche .form-control {
  padding-left: 40px;
  height: 44px;
}

.doc-tri {
  width: auto;
  min-width: 170px;
  height: 44px;
}

.doc-barre .btn {
  height: 44px;
}

.doc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.doc-cat {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--text-gray);
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.doc-cat span {
  color: #9ca3af;
  font-weight: 500;
  margin-left: 3px;
}

.doc-cat:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.doc-cat.actif {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: #fff;
}

.doc-cat.actif span {
  color: rgba(255, 255, 255, 0.75);
}

.doc-compte {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 18px;
}

.doc-carte {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.doc-carte:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.doc-carte-haut {
  display: flex;
  gap: 13px;
  margin-bottom: 10px;
}

.doc-icone {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.doc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary-green);
  margin-bottom: 3px;
}

.doc-titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.35;
}

.doc-desc {
  font-size: 0.87rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}

.doc-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  align-items: center;
}

.doc-vide {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.doc-vide i {
  font-size: 48px;
  color: #d1d5db;
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 575.98px) {
  .doc-tri,
  .doc-barre .btn {
    flex: 1 1 auto;
  }
}

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

  .doc-carte:hover {
    transform: none;
  }
}
