/* ======================================
   JUDO CLUB MORMANT - PREMIUM STYLING
   ====================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800;900&display=swap");

:root {
  --judo-red: #e60012;
  --judo-dark: #111111;
  --judo-light: #f5f5f5;
  --judo-gold: #ffd700;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--judo-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a,
button,
input,
select,
textarea,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn,
.nav-link,
.dropdown-item,
.form-control,
.form-select,
textarea,
input,
.ceinture-btn,
.tech-badge,
.card,
.navbar-toggler {
  min-height: 44px;
  min-width: 44px;
}

.btn,
.nav-link,
.dropdown-item,
.ceinture-btn,
.tech-badge,
.navbar-toggler {
  border-radius: 999px;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.25);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .nav-link:hover,
  .dropdown-item:hover,
  .ceinture-btn:hover,
  .tech-badge:hover,
  .card:hover {
    transform: translateY(-2px);
  }
}

@media (hover: none), (pointer: coarse) {
  .btn:active,
  .nav-link:active,
  .dropdown-item:active,
  .ceinture-btn:active,
  .tech-badge:active {
    transform: scale(0.98);
  }
}

/* ======================================
   NAVBAR - PREMIUM GLASS EFFECT
   ====================================== */

.custom-navbar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 4px solid var(--judo-dark);
  position: fixed;
  width: 100%;
  z-index: 1000;
  animation: slideDown 0.6s ease-out;
}

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

.custom-navbar::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--judo-red), var(--judo-gold));
  z-index: 1010;
  animation: expandWidth 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes expandWidth {
  to {
    width: 25%;
  }
}

.custom-navbar .nav-link {
  color: var(--judo-dark) !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.75rem 1.25rem !important;
  transition: var(--transition);
  position: relative;
}

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

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active-judo {
  color: var(--judo-red) !important;
  transform: translateY(-2px);
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active-judo::after {
  width: 40px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(245, 245, 245, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(230, 0, 18, 0.2);
  }
}

/* ======================================
   HERO SECTION - ULTRA PREMIUM
   ====================================== */

.hero-judo {
  background-image: url("../img/dojo.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 65vh;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-judo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(230, 0, 18, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(17, 17, 17, 0.2) 0%,
      transparent 50%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.75) 0%,
    rgba(230, 0, 18, 0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 100px,
    rgba(255, 255, 255, 0.03) 100px,
    rgba(255, 255, 255, 0.03) 200px
  );
  z-index: 3;
  pointer-events: none;
}

.judo-belt-decoration {
  position: absolute;
  background: linear-gradient(
    90deg,
    var(--judo-red),
    var(--judo-gold),
    var(--judo-red)
  );
  z-index: 4;
  filter: blur(1px);
  pointer-events: none;
}

.judo-belt-1 {
  top: 10%;
  left: -50%;
  width: 200%;
  height: 8px;
  transform: rotate(-15deg);
  opacity: 0.2;
  animation: slideLeft 20s linear infinite;
}

.judo-belt-2 {
  bottom: 20%;
  right: -50%;
  width: 200%;
  height: 6px;
  transform: rotate(15deg);
  opacity: 0.15;
  animation: slideRight 25s linear infinite;
}

@keyframes slideLeft {
  from {
    transform: rotate(-15deg) translateX(-100px);
  }
  to {
    transform: rotate(-15deg) translateX(100px);
  }
}

@keyframes slideRight {
  from {
    transform: rotate(15deg) translateX(100px);
  }
  to {
    transform: rotate(15deg) translateX(-100px);
  }
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.badge-text {
  background: linear-gradient(
    135deg,
    var(--judo-red) 0%,
    var(--judo-gold) 100%
  );
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.3);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow:
    3px 3px 0px rgba(17, 17, 17, 0.3),
    0px 0px 20px rgba(230, 0, 18, 0.4);
  animation: titleSlide 0.8s ease-out 0.2s both;
  line-height: 1.1;
}

@keyframes titleSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-divider {
  width: 120px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--judo-red),
    var(--judo-gold),
    var(--judo-dark)
  );
  margin: 1.5rem auto;
  border-radius: 2px;
  animation: expandHorizontal 0.8s ease-out 0.4s both;
}

@keyframes expandHorizontal {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 120px;
    opacity: 1;
  }
}

.hero-subtitle {
  font-weight: 600;
  letter-spacing: 4px;
  text-shadow:
    3px 3px 12px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 0, 0, 0.4);
  animation: subtitleFade 0.8s ease-out 0.6s both;
}

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

.btn-hero {
  animation: buttonSlide 0.8s ease-out 0.8s both;
}

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

/* ======================================
   BUTTONS - PREMIUM
   ====================================== */

.btn-judo-red {
  color: #ffffff;
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  border: 2px solid var(--judo-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
}

.btn-judo-red::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-judo-red:hover {
  background: linear-gradient(
    135deg,
    var(--judo-dark) 0%,
    var(--judo-dark) 100%
  );
  border-color: var(--judo-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.4);
}

.btn-judo-red:hover::before {
  left: 100%;
}

.btn-judo-outline-white {
  color: #ffffff;
  border: 3px solid #ffffff;
  background: rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-judo-outline-white:hover {
  background: #ffffff;
  color: var(--judo-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-judo-outline {
  color: var(--judo-dark);
  border: 2px solid var(--judo-dark);
  background-color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-judo-outline:hover {
  background-color: var(--judo-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 17, 17, 0.2);
}

.btn-dark {
  background: linear-gradient(135deg, var(--judo-dark) 0%, #333333 100%);
  border-color: var(--judo-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.2);
}

.btn-dark:hover {
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  border-color: var(--judo-red);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);
}

/* Disable click/active animations for buttons inside main content (exclude navbar) */
main .btn:active,
main .btn:focus {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  box-shadow: none !important;
}

/* Small button spacing consistent with site */
.btn-sm.btn-judo-outline {
  padding: 0.35rem 0.8rem;
}

/* ======================================
   SECTIONS & TEXT
   ====================================== */

.text-judo-red {
  color: var(--judo-red) !important;
}

.tracking-wider {
  letter-spacing: 2px;
}

.scroll-margin {
  scroll-margin-top: 130px;
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--judo-red) 0%,
    var(--judo-gold) 50%,
    var(--judo-red) 100%
  );
  margin: 12px 0 0 0;
  border-radius: 2px;
  animation: expandWidth2 0.8s ease-out;
}

@keyframes expandWidth2 {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

main {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

/* ======================================
   HORAIRES - TABLE PREMIUM
   ====================================== */

.custom-judo-table {
  font-weight: 600;
}

.custom-judo-table thead {
  background: linear-gradient(
    135deg,
    var(--judo-dark) 0%,
    rgba(17, 17, 17, 0.9) 100%
  );
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.custom-judo-table thead th {
  padding: 1rem;
  border: none;
  color: white;
  font-weight: 700;
}

.custom-judo-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid rgba(230, 0, 18, 0.1);
}

.custom-judo-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(230, 0, 18, 0.05) 0%,
    rgba(230, 0, 18, 0.02) 100%
  );
}

.custom-judo-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.custom-judo-table .badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-light-judo {
  background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%) !important;
}

.table-light-judo td {
  font-weight: 700;
  color: var(--judo-red);
}

/* ======================================
   CARDS - PREMIUM
   ====================================== */

.card {
  border: none;
  transition: var(--transition);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--judo-red), var(--judo-gold));
  z-index: 10;
}

.card {
  position: relative;
}

.card:hover {
  box-shadow: 0 15px 40px rgba(230, 0, 18, 0.15) !important;
}

.icon-shape {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.icon-shape::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  animation: pulse 3s ease-in-out infinite;
}

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

.bg-red-light {
  background: linear-gradient(135deg, #fff0f1 0%, #ffe8ea 100%);
}

.bg-dark-light {
  background: linear-gradient(135deg, #f1f1f1 0%, #e8e8e8 100%);
}

.bg-warning-light {
  background: linear-gradient(135deg, #fdfae6 0%, #fff8dc 100%);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ======================================
   REGISTRATION CARDS
   ====================================== */

.judo-card {
  border-top: 5px solid var(--judo-dark) !important;
}

.card-header-judo {
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--judo-gold);
}

.card-header-judo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.card-header-judo h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ======================================
   FORMS - CUSTOM JUDO
   ====================================== */

.custom-judo-input .form-control,
.custom-judo-input .input-group-text {
  border: 2px solid #e0e0e0;
  transition: var(--transition);
  border-radius: 6px;
  font-weight: 500;
}

.custom-judo-input .form-control {
  padding: 0.75rem 1rem;
}

.custom-judo-input .form-control::placeholder {
  color: #999;
  font-weight: 500;
}

.custom-judo-input .form-control:focus {
  background-color: #ffffff !important;
  border-color: var(--judo-red) !important;
  box-shadow: 0 0 0 0.3rem rgba(230, 0, 18, 0.15) !important;
  transform: translateY(-2px);
}

.custom-judo-input:focus-within .input-group-text {
  border-color: var(--judo-red) !important;
  color: var(--judo-red) !important;
  background-color: rgba(230, 0, 18, 0.05) !important;
}

.custom-judo-checkbox .form-check-input {
  width: 1em;
  height: 1em;
  border: 1px solid #c7c7c7;
  transition: var(--transition);
  margin-top: 0.2em;
}

.custom-judo-checkbox .form-check-input:checked {
  background-color: var(--judo-red);
  border-color: var(--judo-red);
  box-shadow: 0 0 0 0.25rem rgba(230, 0, 18, 0.25);
}

.custom-judo-checkbox .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 0, 18, 0.15);
  border-color: var(--judo-red);
}

/* ======================================
   LINKS
   ====================================== */

.link-judo {
  color: var(--judo-red);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.link-judo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--judo-red);
  transition: width 0.3s ease;
}

.link-judo:hover {
  color: var(--judo-dark);
}

.link-judo:hover::after {
  width: 100%;
}

/* ======================================
   MAPS & LOCATIONS
   ====================================== */

.map-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ======================================
   LOCATION SECTION - PREMIUM
   ====================================== */

.location-section {
  scroll-margin-top: 130px;
  animation: fadeInSection 0.8s ease-out both;
}

.location-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.95) 100%
  );
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 0, 18, 0.1);
  transition: var(--transition);
}

.location-card:hover {
  box-shadow: 0 30px 80px rgba(230, 0, 18, 0.15);
  border-color: rgba(230, 0, 18, 0.2);
}

.location-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--judo-red) 0%,
    var(--judo-gold) 50%,
    var(--judo-red) 100%
  );
  z-index: 10;
}

.location-card {
  position: relative;
}

.location-info-box {
  padding: 2rem;
}

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);
  animation: bounceInIcon 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceInIcon {
  0% {
    opacity: 0;
    transform: scale(0) translateY(20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.location-info-box h3 {
  color: var(--judo-dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.location-address {
  color: var(--judo-dark);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.8;
}

.location-address i {
  color: var(--judo-red);
  font-weight: 700;
}

.location-desc {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.map-container {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.map-responsive {
  height: 100%;
  padding-bottom: 0 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.map-responsive iframe {
  position: static;
  height: 100%;
}

/* ======================================
   ANIMATIONS
   ====================================== */

@keyframes animate-fade-in {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.animate-fade-in {
  animation: animate-fade-in 1s ease-out;
}

/* ======================================
   SCROLL EFFECTS
   ====================================== */

section {
  position: relative;
  animation: fadeInSection 0.8s ease-out both;
}

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

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0.35rem 0;
  }

  .custom-navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .custom-navbar .navbar-brand img {
    width: 60px;
    height: 60px;
  }

  .custom-toggler {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid rgba(17, 17, 17, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  }

  .navbar-nav {
    gap: 0.35rem;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 0.9rem 1rem !important;
    text-align: left;
    border-radius: 12px;
  }

  .navbar-buttons-custom {
    width: 100%;
    align-items: stretch !important;
  }

  .navbar-buttons-custom .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 768px) {
  .hero-judo {
    min-height: 50vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .custom-judo-table th,
  .custom-judo-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.85rem;
  }

  .custom-judo-table thead th {
    font-size: 0.7rem;
  }

  .btn-hero {
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .icon-shape {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .badge-text {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  #inscriptions {
    scroll-margin-top: 250px;
  }

  .location-info-box {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .location-info-box h3 {
    font-size: 1.4rem;
  }

  .location-address {
    font-size: 1rem;
  }

  .map-container {
    min-height: 300px;
  }

  .info-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 16px;
  }

  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .btn-hero {
    font-size: 0.85rem;
    padding: 0.7rem 1rem !important;
  }

  .btn,
  .btn-sm,
  .form-control,
  .form-select,
  textarea,
  input,
  .dropdown-item {
    min-height: 46px;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .custom-judo-table {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.7rem !important;
  }

  .location-info-box {
    padding: 1rem;
  }

  .location-info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .location-address {
    font-size: 0.95rem;
  }

  .location-desc {
    font-size: 0.9rem;
  }

  .map-container {
    min-height: 250px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .ceinture-btn {
    padding: 1rem 0.7rem 1.2rem;
    border-radius: 14px;
  }

  .ceinture-swatch {
    aspect-ratio: 3 / 2;
  }

  .tech-badge {
    padding: 0.55rem 0.85rem;
  }
}

/* ======================================
   ACCESSIBILITY
   ====================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================
   PRINT STYLES
   ====================================== */

@media print {
  .custom-navbar,
  .btn-hero {
    display: none;
  }

  body {
    background: white;
  }
}

/* ======================================
   HERO COMPACT - PAGES INTERIEURES
   ====================================== */

.hero-judo-compact {
  min-height: 40vh;
  padding-top: 130px;
  padding-bottom: 50px;
}

/* ======================================
   REGLEMENT - INTRO
   ====================================== */

.reglement-intro {
  max-width: 780px;
  color: #666;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}

/* ======================================
   REGLEMENT - LISTE D'ARTICLES
   ====================================== */

.reglement-card {
  position: relative;
  border-top: 5px solid var(--judo-dark) !important;
}

.reglement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reglement-item {
  position: relative;
  padding: 1.5rem 1.75rem 1.5rem 5.5rem;
  border-bottom: 1px solid rgba(230, 0, 18, 0.1);
  transition: var(--transition);
}

.reglement-item:last-child {
  border-bottom: none;
}

.reglement-item:hover {
  background: linear-gradient(
    90deg,
    rgba(230, 0, 18, 0.05) 0%,
    rgba(230, 0, 18, 0.02) 100%
  );
}

.reglement-item:hover .reglement-number {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.4);
}

.reglement-number {
  position: absolute;
  left: 1.75rem;
  top: 1.75rem;
  transform: translateY(0);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0;
  box-shadow: 0 6px 15px rgba(230, 0, 18, 0.3);
  transition: var(--transition);
  flex-shrink: 0;
}

.reglement-text {
  margin: 0;
  color: var(--judo-dark);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.reglement-text strong {
  color: var(--judo-red);
  font-weight: 700;
}

/* Articles mis en avant (assurance, remboursement, force obligatoire) */
.reglement-item-highlight {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.06) 0%,
    transparent 100%
  );
  border-left: 4px solid var(--judo-gold);
}

.reglement-item-highlight:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(230, 0, 18, 0.02) 100%
  );
}

.reglement-item-highlight .reglement-number {
  background: linear-gradient(135deg, var(--judo-dark) 0%, #333333 100%);
}

/* ======================================
   REGLEMENT - CTA FINAL
   ====================================== */

.reglement-cta {
  border-top: 5px solid var(--judo-red) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 245, 245, 0.95) 100%
  );
}

/* ======================================
   RESPONSIVE - REGLEMENT
   ====================================== */

@media (max-width: 768px) {
  .hero-judo-compact {
    min-height: 30vh;
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .reglement-item {
    padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  }

  .reglement-number {
    left: 1.25rem;
    top: 1.25rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.95rem;
  }

  .reglement-text {
    font-size: 0.9rem;
  }

  .reglement-intro {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .reglement-item {
    padding: 1rem 1rem 1rem 3.5rem;
  }

  .reglement-number {
    left: 1rem;
    top: 1rem;
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.85rem;
  }

  .reglement-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

/* ======================================
   CEINTURES - GRILLE DE BOUTONS
   ====================================== */

.ceinture-grid .col-6,
.ceinture-grid .col-md-4,
.ceinture-grid .col-lg-3 {
  display: flex;
}

.ceinture-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.ceinture-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--judo-red), var(--judo-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.ceinture-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(230, 0, 18, 0.15);
  border-color: rgba(230, 0, 18, 0.2);
}

.ceinture-btn:hover::before {
  transform: scaleX(1);
}

.ceinture-swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--judo-light);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.ceinture-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.ceinture-btn:hover .ceinture-swatch img {
  transform: scale(1.08);
}

.ceinture-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--judo-dark);
  font-size: 1rem;
}

.ceinture-cta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--judo-red);
  opacity: 0;
  transform: translateY(-4px);
  transition: var(--transition);
}

.ceinture-btn:hover .ceinture-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   CEINTURES - MODALES
   ====================================== */

.modal-ceinture .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.modal-ceinture .modal-header {
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  border-bottom: 3px solid var(--judo-gold);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
}

.modal-ceinture .modal-title {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.modal-ceinture-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.modal-ceinture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Onglets internes de la modale */
.ceinture-tabs {
  border-bottom: 2px solid rgba(230, 0, 18, 0.1);
}

.ceinture-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.ceinture-tabs .nav-link:hover {
  color: var(--judo-red);
}

.ceinture-tabs .nav-link.active {
  color: var(--judo-red);
  border-bottom-color: var(--judo-red);
  background: transparent;
}

/* ======================================
   CEINTURES - BLOCS TECHNIQUE
   ====================================== */

.tech-section {
  margin-bottom: 1.75rem;
}

.tech-section:last-child {
  margin-bottom: 0;
}

.tech-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--judo-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(230, 0, 18, 0.12);
}

.tech-section-title i {
  color: var(--judo-red);
  margin-right: 0.4rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%);
  border: 1px solid rgba(230, 0, 18, 0.15);
  color: var(--judo-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
}

.tech-badge:hover {
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  color: #ffffff;
  border-color: var(--judo-red);
  transform: translateY(-2px);
}

/* ======================================
   CEINTURES - ACCORDEON CULTURE JUDO
   ====================================== */

.culture-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(230, 0, 18, 0.1);
  background: transparent;
}

.culture-accordion .accordion-item:last-child {
  border-bottom: none;
}

.culture-accordion .accordion-button {
  background: transparent;
  color: var(--judo-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 0.25rem;
  box-shadow: none;
}

.culture-accordion .accordion-button:not(.collapsed) {
  color: var(--judo-red);
  background: rgba(230, 0, 18, 0.04);
}

.culture-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.culture-accordion .accordion-button::after {
  filter: hue-rotate(320deg) saturate(4);
}

.culture-accordion .accordion-body {
  padding: 0 0.25rem 1.25rem;
  color: #555;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ======================================
   CEINTURES - VIDEOS
   ====================================== */

.video-group {
  margin-bottom: 1.75rem;
}

.video-group:last-child {
  margin-bottom: 0;
}

.video-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.video-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--judo-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.video-pill i {
  color: var(--judo-gold);
}

.video-pill:hover {
  background: var(--judo-red);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.3);
}

/* ======================================
   RESPONSIVE - CEINTURES
   ====================================== */

@media (max-width: 768px) {
  .ceinture-btn {
    padding: 1rem 0.75rem 1.25rem;
  }

  .ceinture-name {
    font-size: 0.85rem;
  }

  .ceinture-cta {
    display: none;
  }

  .modal-ceinture-thumb {
    width: 44px;
    height: 44px;
  }

  .ceinture-tabs .nav-link {
    font-size: 0.7rem;
    padding: 0.6rem 0.6rem;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  .video-pill {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
  }
}

@media (max-width: 576px) {
  .modal-ceinture .modal-header {
    padding: 1rem;
  }

  .modal-ceinture .modal-title {
    font-size: 1.05rem;
  }

  .tab-content.p-4 {
    padding: 1.25rem !important;
  }
}

/* ======================================
   COMPETITIONS - CALENDRIER & LISTE
   ====================================== */

.calendar-card {
  border-top: 5px solid var(--judo-dark) !important;
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    var(--judo-dark) 0%,
    rgba(17, 17, 17, 0.92) 100%
  );
  padding: 1.25rem 1.5rem;
}

.calendar-current-month {
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.15rem;
}

.calendar-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.calendar-nav-btn:hover {
  background: var(--judo-red);
  border-color: var(--judo-red);
  color: #ffffff;
  transform: scale(1.08);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #ffffff;
}

.calendar-weekday {
  text-align: center;
  padding: 0.85rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  background: var(--judo-light);
  border-bottom: 2px solid rgba(230, 0, 18, 0.1);
}

.calendar-day {
  min-height: 100px;
  padding: 0.5rem;
  border-right: 1px solid rgba(17, 17, 17, 0.06);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.calendar-grid > .calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day-empty {
  background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #f5f5f5 10px,
    #f5f5f5 20px
  );
}

.calendar-day-number {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--judo-dark);
  align-self: flex-start;
}

.calendar-day-has-event {
  background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.calendar-day-has-event:hover {
  background: rgba(230, 0, 18, 0.05);
}

.calendar-day-today {
  background: linear-gradient(135deg, #fff5f5 0%, #fffafa 100%);
  box-shadow: inset 0 0 0 2px var(--judo-red);
}

.calendar-day-today .calendar-day-number {
  color: var(--judo-red);
  background: var(--judo-red);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.calendar-day-events {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.competition-pill {
  display: block;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, var(--judo-red) 0%, #b3000e 100%);
  color: #ffffff;
  border: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(230, 0, 18, 0.25);
}

.competition-pill:hover {
  background: linear-gradient(135deg, var(--judo-dark) 0%, #333333 100%);
  transform: translateX(2px);
}

.competition-pill-more {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--judo-red);
  padding-left: 0.25rem;
}

/* ======================================
   LISTE DES ÉVÈNEMENTS À VENIR
   ====================================== */

.upcoming-list .upcoming-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.upcoming-list .upcoming-item:hover {
  background: linear-gradient(
    90deg,
    rgba(230, 0, 18, 0.05) 0%,
    rgba(230, 0, 18, 0.02) 100%
  );
}

.upcoming-date {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--judo-dark);
  min-width: 220px;
}

.upcoming-name {
  flex-grow: 1;
  font-weight: 700;
  color: var(--judo-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.upcoming-arrow {
  color: #bbb;
  transition: var(--transition);
}

.upcoming-list .upcoming-item:hover .upcoming-arrow {
  color: var(--judo-red);
  transform: translateX(4px);
}

/* ======================================
   RESPONSIVE - COMPETITIONS
   ====================================== */

@media (max-width: 768px) {
  .calendar-weekday {
    font-size: 0.65rem;
    padding: 0.6rem 0.1rem;
  }

  .calendar-day {
    min-height: 70px;
    padding: 0.35rem;
  }

  .calendar-day-number {
    font-size: 0.75rem;
  }

  .competition-pill {
    font-size: 0.58rem;
    padding: 0.2rem 0.35rem;
  }

  .calendar-current-month {
    font-size: 0.95rem;
  }

  .upcoming-date {
    min-width: unset;
    font-size: 0.78rem;
  }

  .upcoming-name {
    font-size: 0.85rem;
  }

  .upcoming-list .upcoming-item {
    flex-wrap: wrap;
    padding: 0.9rem 1.25rem;
  }
}

@media (max-width: 576px) {
  .calendar-day {
    min-height: 56px;
  }

  .calendar-day-events {
    gap: 0.2rem;
  }

  .competition-pill,
  .competition-pill-more {
    display: none;
  }

  .calendar-day-has-event .calendar-day-number::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--judo-red);
    margin-top: 3px;
  }
}

/* =====================================================================
   BACK-OFFICE — THÈME "JUDO"
   Fichier CSS séparé, à inclure APRÈS css/style.css sur les pages admin.
   <link rel="stylesheet" href="css/backoffice-judo.css">

   Palette :
     --bo-ink   #17130f  encre / judogi noir
     --bo-paper #f6f2e8  tatami écru
     --bo-red   #b3222b  ceinture / drapeau rouge
     --bo-blue  #1d3b56  drapeau bleu (info, labels)
     --bo-gold  #b1892f  barrette dan (accent, focus)
     --bo-line  #ded5bd  liseré tatami
   Typo :
     Bebas Neue  -> titres (affiche de dojo, condensé, fort)
     Inter       -> texte / UI (lisible pour un back-office)
     JetBrains Mono -> id / dates (feel "tableau de score")
   ===================================================================== */

:root {
  --bo-ink: #17130f;
  --bo-paper: #f6f2e8;
  --bo-red: #b3222b;
  --bo-red-dark: #8c1a21;
  --bo-blue: #1d3b56;
  --bo-gold: #b1892f;
  --bo-line: #ded5bd;
  --bo-radius: 14px;
}

/* ---------------------------------------------------------------------
   Fond de page
   --------------------------------------------------------------------- */
.bo-page {
  background:
    radial-gradient(
        circle at 1px 1px,
        rgba(23, 19, 15, 0.06) 1px,
        transparent 1px
      )
      0 0/22px 22px,
    var(--bo-paper);
  min-height: 100vh;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.bo-hero {
  position: relative;
  background: linear-gradient(160deg, var(--bo-ink) 0%, #2a221a 100%);
  color: var(--bo-paper);
  padding: 3.2rem 1.25rem 2.6rem;
  overflow: hidden;
  border-bottom: 6px solid var(--bo-red);
}

.bo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035) 0 2px,
    transparent 2px 26px
  );
  pointer-events: none;
}

.bo-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.bo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font:
    600 0.72rem/1 "Inter",
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bo-gold);
  border: 1px solid rgba(177, 137, 47, 0.5);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(177, 137, 47, 0.08);
}

.bo-hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  margin: 0.8rem 0 0.3rem;
  text-transform: uppercase;
  line-height: 1.05;
}

.bo-hero-sub {
  font:
    400 1rem/1.5 "Inter",
    sans-serif;
  color: #cfc7b6;
  margin: 0 auto;
  max-width: 520px;
}

.bo-belt-rule {
  width: 120px;
  height: 6px;
  margin: 1.1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--bo-ink) 0 38%,
    var(--bo-red) 38% 62%,
    var(--bo-ink) 62% 100%
  );
}

/* ---------------------------------------------------------------------
   Toolbar (titre de section + bouton retour)
   --------------------------------------------------------------------- */
.bo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1.5rem;
}

.bo-toolbar h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.7rem;
  color: var(--bo-ink);
  margin: 0;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.bo-btn {
  font:
    600 0.85rem/1 "Inter",
    sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.68rem 1.3rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.bo-btn:active {
  transform: translateY(1px);
}

.bo-btn-primary {
  background: var(--bo-red);
  color: #fff;
  box-shadow: 0 3px 0 var(--bo-red-dark);
}
.bo-btn-primary:hover {
  background: var(--bo-red-dark);
  color: #fff;
}

.bo-btn-outline {
  background: transparent;
  border-color: var(--bo-ink);
  color: var(--bo-ink);
}
.bo-btn-outline:hover {
  background: var(--bo-ink);
  color: #fff;
}

.bo-btn-dark {
  background: var(--bo-ink);
  color: #fff;
}
.bo-btn-dark:hover {
  background: #000;
  color: #fff;
}

.bo-btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.72rem;
}

.bo-btn:focus-visible {
  outline: 3px solid var(--bo-gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   Alerte succès
   --------------------------------------------------------------------- */
.bo-alert {
  border-radius: 10px;
  border: 1px solid #bfe3c8;
  background: #eef8f0;
  color: #1f5c33;
  padding: 0.85rem 1.1rem;
  font:
    500 0.9rem/1.4 "Inter",
    sans-serif;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ---------------------------------------------------------------------
   Grille principale (formulaire + liste)
   --------------------------------------------------------------------- */
.bo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 992px) {
  .bo-grid {
    grid-template-columns: minmax(320px, 420px) 1fr;
  }
}

/* ---------------------------------------------------------------------
   Cartes
   --------------------------------------------------------------------- */
.bo-card {
  background: #fff;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-radius);
  box-shadow: 0 10px 30px -18px rgba(23, 19, 15, 0.35);
  overflow: hidden;
}

/* liseré ceinture — élément signature de la page */
.bo-card::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--bo-ink) 0 30%,
    var(--bo-red) 30% 70%,
    var(--bo-ink) 70% 100%
  );
}

.bo-card-head {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--bo-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bo-card-head h3 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0;
  color: var(--bo-ink);
}

.bo-card-body {
  padding: 1.4rem;
}

/* ---------------------------------------------------------------------
   Formulaire
   --------------------------------------------------------------------- */
.bo-field {
  margin-bottom: 1.1rem;
}

.bo-field label {
  display: block;
  font:
    700 0.72rem/1 "Inter",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bo-blue);
  margin-bottom: 0.4rem;
}

.bo-field .form-control,
.bo-field .form-select {
  border: 1px solid var(--bo-line);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-family: "Inter", sans-serif;
  background: var(--bo-paper);
}

.bo-field .form-control:focus,
.bo-field .form-select:focus {
  border-color: var(--bo-red);
  box-shadow: 0 0 0 3px rgba(179, 34, 43, 0.15);
  background: #fff;
}

.bo-thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bo-line);
  display: block;
}

.bo-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.bo-help {
  font:
    400 0.78rem/1.4 "Inter",
    sans-serif;
  color: #8a8272;
  margin-top: 0.35rem;
}

/* ---------------------------------------------------------------------
   Tableau (desktop) — devient des cartes en mobile
   --------------------------------------------------------------------- */
.bo-table-wrap {
  overflow-x: auto;
}

table.bo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
}

table.bo-table thead th {
  background: var(--bo-ink);
  color: var(--bo-paper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
}

table.bo-table thead th:first-child {
  border-top-left-radius: 8px;
}
table.bo-table thead th:last-child {
  border-top-right-radius: 8px;
}

table.bo-table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--bo-line);
  vertical-align: middle;
}

table.bo-table tbody tr:nth-child(even) {
  background: rgba(29, 59, 86, 0.035);
}
table.bo-table tbody tr:hover {
  background: rgba(179, 34, 43, 0.06);
}

table.bo-table td.bo-id,
table.bo-table td.bo-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--bo-blue);
}

.bo-actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bo-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #8a8272;
}
.bo-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
  color: var(--bo-red);
}

/* =======================================================================
   RESPONSIVE — le tableau devient une liste de cartes en dessous de 768px
   ======================================================================= */
@media (max-width: 767.98px) {
  table.bo-table thead {
    display: none;
  }

  table.bo-table,
  table.bo-table tbody,
  table.bo-table tr,
  table.bo-table td {
    display: block;
    width: 100%;
  }

  table.bo-table tr {
    background: #fff;
    border: 1px solid var(--bo-line);
    border-left: 4px solid var(--bo-red);
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 0.6rem 0.9rem;
    box-shadow: 0 6px 18px -14px rgba(23, 19, 15, 0.4);
  }

  table.bo-table td {
    border: none;
    padding: 0.45rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: right;
  }

  table.bo-table td::before {
    content: attr(data-label);
    font:
      700 0.68rem/1 "Inter",
      sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bo-blue);
    flex-shrink: 0;
    text-align: left;
  }

  .bo-actions-cell {
    justify-content: stretch;
    flex-direction: column;
    padding-top: 0.6rem;
    margin-top: 0.4rem;
    border-top: 1px dashed var(--bo-line);
  }
  .bo-actions-cell::before {
    content: none;
  }
  .bo-actions-cell form {
    width: 100%;
  }
  .bo-actions-cell .bo-btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .bo-hero {
    padding: 2.4rem 1rem 2rem;
  }
  .bo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .bo-toolbar .bo-btn {
    width: 100%;
  }
  .bo-form-actions .bo-btn {
    flex: 1 1 auto;
  }
}

/* ---------------------------------------------------------------------
   Accessibilité
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bo-btn {
    transition: none;
  }
}

.bo-field .form-control:focus-visible,
.bo-field .form-select:focus-visible {
  outline: 3px solid var(--bo-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   PROFILE PAGE — additional rules
   Append this block to the end of css/style.css
   Reuses existing tokens/classes from the site (btn-judo-red, text-judo-red,
   hero-judo, section-title, custom-judo-table, ...) — nothing below
   redefines them, it only adds what index.php didn't already need.
   ========================================================================== */

/* Slightly shorter hero on the profile page since it doesn't need the
   full-height treatment of the homepage hero */
.profile-hero {
  min-height: 38vh;
}

.profile-main {
  margin-top: -4.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

/* Identity card that overlaps the hero, avatar + name + email */
.profile-identity-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.profile-avatar-frame {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.profile-avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--judo-red, #c1272d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.profile-avatar-edit:hover {
  transform: scale(1.08);
  background: #9c1f24;
}

.profile-identity-body {
  flex: 1;
  min-width: 200px;
}

/* Small admin pill next to the member's name */
.badge-admin {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #1a1a1a;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Form cards on the profile page */
.profile-card {
  transition: box-shadow 0.25s ease;
}

.profile-input {
  border-radius: 0.6rem;
  border: 1px solid #e2e2e2;
  padding: 0.65rem 0.9rem;
}

.profile-input:focus {
  border-color: var(--judo-red, #c1272d);
  box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.12);
}

/* Flash messages */
.alert-judo {
  display: flex;
  align-items: center;
  border-radius: 0.8rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  border: 1px solid transparent;
}

.alert-judo-success {
  background: #e9f7ef;
  color: #1e7a45;
  border-color: #bfe8cf;
}

.alert-judo-error {
  background: #fdecea;
  color: #b3261e;
  border-color: #f5c2bd;
}

/* Empty state for the competitions table */
.profile-empty-state {
  padding: 3rem 1rem;
  background: #fafafa;
  border-radius: 1rem;
  border: 1px dashed #ddd;
}

@media (max-width: 576px) {
  .profile-identity-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   USERS ADMIN PAGE — additional rules
   Append this block to the end of css/style.css, after the profile-page
   block. Reuses .profile-main, .profile-input, .alert-judo, .badge-admin,
   .profile-empty-state already added for profile.php.
   ========================================================================== */

/* Maintenance toggle card */
.maintenance-card {
  border-left: 5px solid #2e7d32;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.maintenance-card.maintenance-active {
  border-left-color: var(--judo-red, #c1272d);
  background: #fff7f6;
}

.maintenance-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f2f2f2;
  color: var(--judo-red, #c1272d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.status-dot-on {
  background: var(--judo-red, #c1272d);
}

.status-dot-off {
  background: #2e7d32;
}

/* Search bar above the users table */
.users-search {
  min-width: 280px;
  flex: 0 0 auto;
}

.site-footer {
  background: #111111;
  color: #f5f5f5;
  padding: 3rem 0 2rem;
}

.site-footer .footer-logo {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 1rem;
}

.site-footer .footer-text,
.site-footer .footer-links li,
.site-footer .footer-contact li,
.site-footer .footer-social li {
  font-size: 0.95rem;
  color: #d8d8d8;
}

.site-footer h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.site-footer .footer-links a,
.site-footer .footer-contact a,
.site-footer .footer-social a {
  color: #d8d8d8;
  text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact a:hover,
.site-footer .footer-social a:hover {
  color: #f5f5f5;
}

.site-footer .footer-bottom {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767px) {
  .site-footer {
    text-align: center;
  }

  .site-footer .footer-links,
  .site-footer .footer-contact,
  .site-footer .footer-social {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

.users-search .input-group-text {
  border-radius: 0.6rem 0 0 0.6rem;
  border-color: #e2e2e2;
}

.users-search .form-control {
  border-radius: 0 0.6rem 0.6rem 0;
}

/* Small circular avatar shown in the users table rows */
.table-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}

/* Status badges: banned / active */
.badge-banned {
  background: #fdecea;
  color: #b3261e;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
}

.badge-active {
  background: #e9f7ef;
  color: #1e7a45;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
}

@media (max-width: 576px) {
  .users-search {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .custom-judo-table {
    width: 100%;
    border-collapse: collapse;
  }

  .custom-judo-table thead {
    display: none;
  }

  .custom-judo-table tbody,
  .custom-judo-table tr,
  .custom-judo-table td {
    display: block;
    width: 100%;
  }

  .custom-judo-table tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
  }

  .custom-judo-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
  }

  .custom-judo-table td:last-child {
    border-bottom: none;
  }

  .custom-judo-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
  }

  .custom-judo-table td.text-end,
  .custom-judo-table td.text-muted {
    text-align: left;
  }

  .custom-judo-table td .d-inline-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .custom-judo-table .table-user-avatar {
    width: 36px;
    height: 36px;
  }
}
