/* ---------- Reset Global ---------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');

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

.bg-primary {
  background-color: #ff7700!important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere!important;
}

/* ---------- Body ---------- */
body {
  padding: 40px;
  font-family: 'Titillium Web', sans-serif;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- Container Principal ---------- */
.container {
  width: 95%;
  max-width: 800px;
  background: white;
  padding: 30px;
  border-radius: 90px!important;
  filter: drop-shadow(0px 0px 7px white)!important;
  text-align: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.1),
    0 2px 5px rgba(0, 0, 0, 0.6);
  position: relative;
}



/* ---------- Listes ---------- */
ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

li {
  background: #fff;
  color: #000;
  padding: 0px;
  margin: 10px auto;
  border-radius: 30px;
  width: 100%;
  text-align: center;
}

/* ---------- Menus (anciens, masqués) ---------- */
.menu, .menu2 {
  font-size: 1.8em;
  font-weight: normal;
  margin-bottom: 20px;
}
.menu2 {
  height: 1em;
  margin-bottom: 40px;
}

/* ---------- Liens ---------- */
a {
  color: #ff7700;
  text-decoration: none;
  font-weight: normal;
  margin: 0 5px;
}

a:hover {
  color: #ff9f4d;
  text-decoration: none!important;
}

.menu a:hover, .menu2 a:hover {
  text-decoration: none!important;
  color: #ff9f4d;
}

/* ---------- Formulaires ---------- */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 40px 20px;
  padding-top: 10px !important;
  background: white;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 2em;
}

input[type="text"], input[type="number"], input[type="password"]{
  padding: 10px!important;
  font-size: 0.9em!important;
  border: 1px solid #ccc!important;
  border-radius: 4px!important;
  width: 100%!important;
  max-width: 100%!important;
  text-align: center!important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2)!important;
  filter: drop-shadow(0px 0px 7px white)!important;
  margin: 10px 0!important;
}



button, input[type="submit"],a.btn.btn-primary.btn-sm {
  background: linear-gradient(to bottom, #ff8f33 0%, #ff7700 50%, #e66a00 100%)!important;
  color: white;
  border: none!important;
  padding: 12px 25px;
  cursor: pointer;
  font-size: 0.8em;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  position: relative;
  top: 0;
  letter-spacing: 0.5px;
}
.text-primary {
  color: #ff7700!important;
}
input[type="submit"]:hover,
button:hover {
  background: linear-gradient(to bottom, #ff9f4d 0%, #ff8514 50%, #ff7700 100%);
  box-shadow: 
    0 6px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  top: -2px;
}

input[type="submit"]:active,
button:active {
  background: linear-gradient(to bottom, #e66a00 0%, #ff7700 50%, #ff8f33 100%);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.2);
  top: 1px;
}

/* ---------- Informations ---------- */
.info {
  margin-top: 20px;
  font-style: italic;
  color: #666;
}

/* ---------- Séparateurs (HR) ---------- */
.custom_hr,
hr {
  margin: 20px auto !important;
  height: 3px !important;
  background-color: #FF7700 !important;
  border: none !important;
  filter: drop-shadow(0px 0px 5px white)!important;
  opacity: 1 !important;
}

.custom_hr {
  width: 350px !important;
  height: 3px !important;
  background-color: #FF7700 !important;
  border: none !important;
  box-shadow: 0px 0px 5px rgba(255, 119, 0, 0.75) !important;
}

/* ---------- Logo ---------- */
.logo-container,
.logo-container2 {
  text-align: center;
}

.logo-container img,
.logo-container2 img {
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0px 0px 15px white) !important;
}

h1, h2, h3, h4 {
  margin-top: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
               0 0 15px rgba(0, 0, 0, 0.15);
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  color: #333;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2.2em;
  margin-bottom: 0.4em;
}

h3 {
  font-size: 1.8em;
  margin-bottom: 0.3em;
}

h4 {
  font-size: 1.5em;
  margin-bottom: 0.2em;
}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
  body {
    padding: 20px 5px;
  }
  .container {
    padding: 20px;
    border-radius: 30px;
  }
  .menu, .menu2 {
    font-size: 1.2em;
  }
  form {
    font-size: 1.2em;
    padding: 20px 15px;
  }
  input[type="text"] {
    font-size: 0.8em;
    width: 100%;
    max-width: none;
  }
input[type="password"] {
    font-size: 0.8em;
    width: 100%;
    max-width: none;
  }
  input[type="submit"],
  button {
    font-size: 0.9em;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .menu, .menu2 {
    font-size: 1.1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu a, .menu2 a {
    margin: 5px 10px;
    display: inline-block;
  }
  .logo-container img {
    max-width: 80%;
  }
}

/* ---------- Barre de navigation (Logo centré, burger en dessous) ---------- */
.top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
    margin-bottom: 0px;
}

/* ---------- Logo Centré ---------- */
.logo-container {
  margin-bottom: 0px;
}

.logo-container img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0px 0px 10px white) !important;
}

/* ---------- Burger Centré sous le logo ---------- */
.burger-button {
  font-size: 4em;
  background: none!important;
  border: none;
  color: #ff7700;
  cursor: pointer;
  filter: none !important;
  box-shadow: none !important;
  background-color: transparent;
  filter: drop-shadow(0px 0px 4px white)!important;
  filter: drop-shadow(0px 2px 1px #00000049)!important;

  margin-top: 5px;
  margin-bottom: 10px;
}

.burger-button:hover {
  background-color: transparent !important;
  background: none!important;
}

/* ---------- Menu Mobile (déroulant) ---------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #ff7700;
  text-decoration: none;
  font-size: 1.5em;
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  width: 80%;
}

.mobile-menu a:hover {
  background-color: rgba(255, 119, 0, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown menu styles */
.dropdown-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px 0;
}

.card-body {
  line-height: 1.8em!important;
}
.dropdown-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  padding: 10px 15px;
  color: #ff7700;
  text-decoration: none;
  font-size: 1.5em;
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 119, 0, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
  background-color: rgba(255, 119, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.dropdown-menu {
  display: none;
  width: 80%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-left: none;
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  padding: 8px 15px;
  display: block;
  font-size: 1.3em;
  text-align: center;
  border-radius: 10px;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: rgba(255, 119, 0, 0.1);
  text-decoration: none;
}

.caret {
  margin-left: 10px;
  transition: transform 0.3s;
}

.dropdown-toggle.active .caret {
  transform: rotate(180deg);
}

/* Styles de liste imbriquée simple */
.submenu-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px 0;
}

.submenu-header {
  width: 80%;
  padding: 10px 15px;
  color: #ff7700;
  font-size: 2em!important;
  font-weight: bold;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  background-color: rgba(255, 119, 0, 0.1);
  border-radius: 20px 20px 0 0;
  margin-bottom: 0;
  cursor: default;
}

/* Désactiver les effets de hover pour le submenu-header */
.mobile-menu .submenu-header:hover {
  background-color: #fff !important;
  transform: none!important;
  box-shadow: none!important;
  text-decoration: none!important;
}

p.mb-2.flex-grow-1 {
  align-content: center;
}

.submenu {
  width: 80%;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 20px 20px 20px 20px;
  filter: drop-shadow(0px 0px 3px white) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  margin-top: 0;
}

.submenu a {
  padding: 5px 10px;
  font-size: 1.4em;
  text-align: center;
  border-radius: 10px;
  margin: 8px 0;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.submenu a:hover {
  background-color: rgba(255, 119, 0, 0.1);
}

/* Mode sombre pour la section Tools */
@media (prefers-color-scheme: dark) {
  .submenu-header {
    background-color: inherit;
    
    color: white;
  }
  .submenu-header a:hover {
    color: #fff;
    background-color: rgba(255, 119, 0, 0.1);
    color: white;
  }

  .submenu {
    background-color: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .submenu a {
    color: #ff9f4d;
  }

  .submenu a:hover {
    background-color: rgba(255, 119, 0, 0.2);
  }
}

/* ---------- Masquer les anciens menus ---------- */
.menu, .menu2 {
  display: none !important;
}

/* ---------- Animation Fade In ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Déclaration de la police Smile and Wave */
@font-face {
    font-family: 'Smile and Wave';
    src: url('fonts/smileandwave.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.menu a, .menu2 a {
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;

}

/* ---------- Cards ---------- */
.card.mb-3, .card.mb-4, .card {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 25px!important;
}

.card-header {
    border-radius: 25px 25px 0 0!important;
}

.btn-elegant {
  background: #ff7700!important;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  color: white;
  padding: 8px 16px;
  font-size: 0.8em;
  border-radius: 8px;
  font-weight: 400;
}

.btn-elegant:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #ff8800;
  color: white;
}

.btn-elegant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-elegant:hover::before {
  transform: translateX(100%);
}

/* Variante avec une couleur différente */
.btn-elegant.blue {
  background: #007bff;
}

.btn-elegant.blue:hover {
  background: #0056b3;
}

/* Variante avec une taille différente */
.btn-elegant.small {
  padding: 4px 12px;
  font-size: 0.9em;
}

.btn-elegant.large {
  padding: 12px 24px;
  font-size: 1.1em;
} 


.fancy-underline {
  display: inline-block;
  background: url('https://jakespecial.com/wp-content/themes/flatsome/assets/img/underline.png') bottom center no-repeat;
  background-size: 100% 7px;
  padding-bottom: 10px;
}

.dancing-font {
  font-family: 'Dancing Script', cursive;
}

.glow-wrapper {
  position: relative;
}

.glow-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff7700, #ff9955, #ffbb77);
  animation: none  ;
  z-index: -1;
  opacity: 0.7;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.1;
  }
}

.enter-button-wrapper {
  position: relative;
  display: inline-block;
}

.enter-button-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff7700, #ff9955, #ffbb77);
  animation: ripple 2s ease-in-out infinite;
  z-index: -1;
  opacity: 0.7;
}

.enter-button {
  background: #ff7700;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.5);
}

.enter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 119, 0, 0.8);
}

@keyframes pulseGreen {
  0% {
    border: 4px solid rgba(40, 167, 69, 0.3);
  }
  50% { 
    border: 4px solid rgba(40, 167, 69, 0.9);
  }
  100% {
    border: 4px solid rgba(40, 167, 69, 0.3);
  }
}

@keyframes pulseRed {
  0% {
    border: 4px solid rgba(220, 53, 69, 0.3);
  }
  50% {
    border: 4px solid rgba(220, 53, 69, 0.9);
  }
  100% {
    border: 4px solid rgba(220, 53, 69, 0.3);
  }
}

@keyframes pulseOrange {
  0% {
    border: 4px solid rgba(255, 119, 0, 0.3);
  }
  50% {
    border: 4px solid rgba(255, 119, 0, 0.9);
  }
  100% {
    border: 4px solid rgba(255, 119, 0, 0.3);
  }
}

@keyframes pulseOrangeAlt {
  0% {
    border: 1px solid rgba(255, 119, 0, 0.3);
  }
  50% {
    border: 1px solid rgba(255, 119, 0, 0.9);
  }
  100% {
    border: 1px solid rgba(255, 119, 0, 0.3);
  }
}

@keyframes pulseBlue {
  0% {
    border: 4px solid rgba(0, 123, 255, 0.3);
  }
  50% { 
    border: 4px solid rgba(0, 123, 255, 0.9);
  }
  100% {
    border: 4px solid rgba(0, 123, 255, 0.3);
  }
}

.card.mb-3, .card.mb-4, .card {
  filter: drop-shadow(0px 0px 3px white) !important;
}

.btn {
  filter: drop-shadow(0px 0px 7px white) !important;
}
.card-glow-green {
  position: relative;
  border-radius: 25px;
  background-color: white;
  /*animation: pulseGreen 1s ease-in-out infinite;*/
  transition: all 0.4s ease-in-out;
}

.card-glow-red {
  position: relative;
  border-radius: 25px;
  background-color: white;
  /*animation: pulseRed 1s ease-in-out infinite;*/
  transition: all 0.4s ease-in-out;
}

.card-glow-orange {
  position: relative;
  border-radius: 25px;
  background-color: white;
  animation: none!important;
  /*animation: pulseOrange 1s ease-in-out infinite;*/
  transition: all 0.4s ease-in-out;
}

.card-glow-blue {
  position: relative;
  border-radius: 25px;
  background-color: white;
  animation: none!important;
  /*animation: pulseBlue 1s ease-in-out infinite;*/
  transition: all 0.4s ease-in-out;
}

.card-glow-orange-alt {
  position: relative;
  border-radius: 25px;
  background-color: white;
  animation: none!important;
  /*animation: pulseOrangeAlt 2s ease-in-out infinite;*/
  transition: all 1s ease-in-out;
}

@media (max-width: 768px) {
  .card-glow-green,
  .card-glow-red,
  .card-glow-orange,
  .card-glow-blue,
  .card-glow-orange-alt {
    animation: none;
    /* ou réduire la fréquence de l'animation */
  }
}

/* Style pour le formulaire d'édition */
.edit-form {
    display: none;
    padding-top:50px!important;
    border-radius: 50px!important;
}

/* Style pour les formulaires */
.modal-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .card-glow-green {
    /* Retrait de l'animation */
    animation: none!important;
    /* Exemple de halo statique */
    box-shadow: 0 0 10px 2px rgba(0, 255, 0, 0.6);
  }
  .card-glow-red {
    animation: none!important;
    box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.6);
  }
  .card-glow-orange {
    animation: none!important;
    box-shadow: 0 0 10px 2px rgba(255, 165, 0, 0.6);
  }
  .card-glow-blue {
    animation: none!important;
    box-shadow: 0 0 10px 2px rgba(0, 0, 255, 0.6);
  }
  .card-glow-orange-alt {
    animation: none!important;
  }
}

.action-cell form {
  padding-top: 0px!important;
}

.pagination {
  --bs-pagination-padding-x: 0.2rem!important;} 
.table tr {
    vertical-align: middle!important;
    }
