/*--------------------------------------------------------
  RESET & GLOBAL
--------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  padding-top: 70px;
}

/* Titres */
h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.navbar .nav-link.active {
  color: #e10600 !important;
  font-weight: bold;
}

/* Hero (sans image) */
.hero {
  height: 350px;
  position: relative;
  filter: brightness(0.9) saturate(1.1);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
}
.hero .content {
  position: relative; z-index: 1;
  text-align: center; color: #fff;
  padding: 100px 20px;
}
.hero .btn {
  margin-top: 1rem;
}

/* KPI Cards */
.card-kpi {
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: .9rem;
  text-align: center;
}
.card-kpi .h4 {
  font-size: 1.5rem;
}

/* Blocks communs */
.summary-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.formula-card {
  margin-top: 2rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: .5rem;
  padding: 1.25rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.intro {
  background-color: #fff;
  border-radius: .5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* Tableaux */
.table td,
.table th {
  padding: .5rem !important;
  line-height: 1.2;
}
.table thead {
  background-color: #ff4500;
  color: #fff;
}

/* Titres de section */
.section-title {
  font-size: 1.8rem;
  border-bottom: 2px solid #e10600;
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
}

/* Galerie & images */
.img-placeholder {
  background-color: #ddd;
  border: 2px dashed #999;
  border-radius: .5rem;
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: #666; font-style: italic;
}
.img-fixed {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Quick-link cards */
.card-link {
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* Container pour aligner tables + flèches au centre */
.admin-assign-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}

/* Tableaux scrollables */
.table-container {
  width: 500px;
  height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
}
.table-container table {
  width: 100%;
  table-layout: fixed;
}
.table-container thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

/* Flèches */
.arrow-container .btn-icon {
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform .2s;
}
.arrow-container .btn-icon:hover {
  transform: scale(1.2);
}

/* Dropdown en gras */
#select-champ-to-assign {
  font-weight: 600;
}

/* Réduction de l’interligne des titres */
.admin-assign-container h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

/* 1) Adaptation de la hero pour passer en hauteur auto */
body.index .hero {
  height: auto;           /* on laisse la section s’adapter à l’image */
  padding: 2rem 0;         /* espace vertical autour */
  background: none;        /* supprime tout background CSS */
  filter: none;            /* désactive le filtre appliqué précédemment */
}

/* 2) Style de l’image */
.hero-logo {
  max-width: 200px;        /* ajuste la largeur max (à adapter) */
  width: 100%;             /* responsive jusqu’à 200px */
  height: auto;
  border-radius: 0.75rem;  /* coins arrondis */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ombre portée */
  display: inline-block;
}
@media (max-width: 576px) {
  .hero-logo {
    max-width: 140px;
  }
}

.btn-discord {
  background-color: #7289DA;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  font-weight: 600;
}
.btn-discord:hover {
  background-color: #5b6eae;
}

/* -------------------------------------------------------
   LES RÈGLES CI-DESSOUS ÉTAIENT EN CONFLIT AVEC BOOTSTRAP
   Elles sont commentées pour réactiver les modals natifs
--------------------------------------------------------*/
/*
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: .5rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
*/
