/*
 * styles.css - Feuille de style principale Rallye Tracker
 *
 * 2025 Citeamup - NOTICE OF COPYRIGHT
 * Unauthorized copying, modification, distribution, or use of this source file is strictly prohibited.
 * For more information about this source code, please contact: hello@citeamup.com
 * @author @copyright 2025 Citeamup SASU
 * All rights reserved. Citeamup Live is an International Registered Trademark & Property of Citeamup SASU
 */

/* ================= Polices ================= */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Regular'),
       url('/fonts/aptos.woff2') format('woff2'),
       url('/fonts/aptos.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Display'),
       url('/fonts/aptos-display.woff2') format('woff2'),
       url('/fonts/aptos-display.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Semi Bold'),
       url('/fonts/aptos-semibold.woff2') format('woff2'),
       url('/fonts/aptos-semibold.woff')  format('woff');
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}

h1, h2, h3 {
  font-family: 'Aptos Display', sans-serif;
}


/* ================= Page Login ================= */
.login-body {
    margin: 0;
    font-family: 'Aptos', Arial, sans-serif;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.login-box {
    background: white;
    padding: 40px;
    box-sizing: content-box;
	width: 100%;
	max-width: 400px;
	margin: 10vh auto;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-box img {
    max-width: 250px;
    margin-bottom: 20px;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.login-box button {
    background-color: #0077cc;
    color: white;
    padding: 12px;
	margin-top: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 60%;
}

.login-box button:hover {
    background-color: #005fa3;
}

.login-box .remember-me {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.login-box .remember-me input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.login-error {
    color: red;
    margin-top: 10px;
}

.login-footer {
    text-align: center;
    color: white;
    margin-top: 30px;
}

/* ================= Wrapper ================= */
.main-wrapper {
  margin-left: 290px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  background: #f8f8f0 !important;
  transition: margin-left 0.3s ease;
}

@media screen and (max-width: 768px) {
  .main-wrapper {
    margin-left: 0 !important;
  }
}

.wrapper {
  display: flex;
  min-height: 100vh;
}


body {
    margin: 0;
    font-family: 'Aptos', Arial, sans-serif;
    background-color: #f8f8f0;
    color: #333;
    min-height: 100vh;
}

html, body {
    height: 100%;
}



/* ================= Sidebar ================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #3a1f1f;
  color: #fff;
  padding: 20px;
  z-index: 999;
  overflow-y: auto;
  flex-shrink: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sidebar-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-logo img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Menu items et groupes */

.menu-item,
.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px 10px 20px; /* place pour le rectangle rouge */
  border-radius: 8px;
  font-family: 'Aptos', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 700;
}

.menu-item:hover,
.menu-toggle:hover {
  background-color: #000;
  transform: translateX(4px);
}

.menu-item:hover::before,
.menu-toggle:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background-color: #800000;
  border-radius: 2px;
}

/* Sous-menus */

.menu-separator {
  border-top: 1px solid #555;
  margin: 15px 0;
}

.menu-group .submenu {
  list-style: none;
  padding-left: 20px;
  display: none;
  margin-top: 8px;
}

.menu-group.open .submenu {
  display: block;
}

.menu-toggle {
  font-weight: 700;
}


.menu-toggle::after {
  content: "▼";
  font-size: 0.8em;
  margin-left: auto;
  color: #ccc;
}

.menu-group.open > .menu-toggle::after {
  content: "▲";
}


.submenu a {
  font-size: 0.9em;
  padding: 8px 15px;
  color: #ccc;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.submenu a:hover {
  background-color: #333;
  color: #fff;
}
.close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive */

@media screen and (max-width: 768px) {
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  width: 70%;
  max-width: 400px;
  background-color: #3a1f1f;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}


  .main-wrapper {
    margin-left: 0 !important;
  }
  .sidebar.active .close-btn {
  display: block;
  }
}



/* ================= Header ================= */
/* === Header Desktop === */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f8f0;
  border-bottom: 1px solid #ccc;
}

.main-header,
.mobile-header {
  background-image: url('/assets/img/header-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.profile-link .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-right: 10px;
}

.user-name {
  font-size: 0.9em;
  font-weight: bold;
}

.separator {
  margin: 0 5px;
}

.logout-link {
  font-size: 0.9em;
  text-decoration: none;
  color: #333;
}

/* --- Logo et Burger Mobile --- */
.top-bar-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-btn {
  display: none; /* caché en desktop */
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #3a1f1f;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.burger-bar {
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-header {
  display: none;
}

.main-header h1,
.titre-page-mobile {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


/* === Header Mobile === */
@media screen and (max-width: 768px) {
  .main-header {
    display: none;
  }

  .mobile-header {
    display: flex;
    flex-direction: column;
    background-color: #3a1f1f;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .top-bar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .burger-btn {
    display: flex;
  }
  
  .mobile-logo {
  height: 50px;
  max-width: 230px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

  .user-info-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
  }

  .user-info-mobile .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
  }

  .user-info-mobile .user-name {
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .user-info-mobile .logout-link {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    padding-left: 10px;
  }

  .titre-page-mobile {
    margin: 10px 0 0;
    font-size: 1.3rem;
    text-align: center;
  }
}



/* ================= Footer ================= */
.footer {
  background: #f4f4f4;
  color: #555;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  position: relative;
  bottom: 0;
}


@media (max-width: 768px) {
  .footer {
    margin-left: 0;
  }
}




/* ================= Main Content ================= */
.main-content {
  flex-grow: 1;
  padding: 30px;
  background: #f9f9f9;
}


@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

/* ================= Formulaires & Boutons ================= */
.responsive-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
  padding: 1em;
}
.responsive-form label {
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 600px) {
  .responsive-form {
    padding: 0.5em;
  }
}


.form-box {
  background-color: #fce7db;
  border: 1px solid #fad8c4;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .form-box {
    padding: 10px;
  }
}

.form-box input[type="text"],
.form-box input[type="number"],
.form-box input[type="email"],
.form-box input[type="date"],
.form-box input[type="time"],
.form-box input[type="file"],
.form-box select {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form-box textarea {
  width: 100%;
  max-width: 700px;
  height: 30px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  resize: vertical;
  box-sizing: border-box;
}

.form-box input[type="password"] {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form-box input[readonly],
.form-box input[disabled] {
  background-color: #f5f5f5;
}
/*  Boutons */
.btn-submit {
  background-color: #e30613;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.btn-submit:hover {
  background-color: #b20812;
}

.btn-secondary {
  background-color: grey;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary:hover {
  background-color: #222;
}

.form-box button[type="submit"] {
  background-color: #e30613;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  width: auto;
  display: inline-block;
  max-width: 300px;
  font-weight: bold;
}

.form-box button[type="submit"]:hover {
  background-color: #b20812;
}

/*  Formulaire Simple - labels à gauche, champ à droite */
/*  pour l'intégrer : <form class="form-box form-simple">...</form> */
.form-simple .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.form-simple .form-group label {
  width: 200px;
  min-width: 150px;
  font-weight: bold;
}

.form-simple .form-group .form-field,
.form-simple .form-group .form-field-with-button {
  flex: 1;
}

@media (max-width: 768px) {
  .form-simple .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-simple .form-group label {
    width: 100%;
  }

  .form-simple .form-group .form-field,
  .form-simple .form-group .form-field-with-button {
    width: 100%;
  }
}
/*  Formulaire Double Colonne - 2 à 3 champs côte à côte, labels au-dessus */
/*  pour l'intégrer : <form class="form-box form-double">...</form> */
.form-double {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 30px;
  row-gap: 10px;
}

.form-double .form-group {
  display: flex;
  flex-direction: column;
}

.form-double .form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .form-double {
    grid-template-columns: 1fr;
  }
}
/* ====================== Options de Carte ====================== */
/* Container responsive */
.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-between;
  margin-top: 1em;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*width: 48%;*/
  min-width: 220px;
}

/* Mobile : les switches passent en colonne */
@media screen and (max-width: 600px) {
  .options-container {
    flex-direction: column;
  }
  .option {
    width: 100%;
  }
}

/* ====================== SWITCH ON/OFF ====================== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #e74c3c; /* rouge = OFF par défaut */
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

/* ON */
input:checked + .slider {
  background-color: #27ae60; /* vert = ON */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Optionnel : forme arrondie */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ================= Page Index ================= */

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #3949ab;
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.main-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.main-actions a {
  display: inline-block;
  padding: 1rem 2rem;
  background: #3949ab;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s;
}
.main-actions a:hover {
  background: #303f9f;
}



/* ================= Page Profil ================= */
/*  Message Succès */
.success {
  background: #c8e6c9;
  color: #256029;
  padding: 10px;
  margin: 1rem 0;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

/*  Avatar dans le formulaire */
.login-container img {
  display: block;
  margin: 10px auto;
  border-radius: 50%;
  max-width: 100px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}


/* ================= Titre de page ================= */
h1 {
  text-align: center;
  margin-top: 1rem;
  font-size: 2rem;
  color: #333;
}

/* ================= Carte ================= */
/* Carte équipe principale */
#map {
  height: calc(90vh - 220px); /* ajuste la valeur selon la taille des éléments hors carte */
  max-height: 800px;           /* limite visuelle pour écrans très grands */
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}



.map-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1rem 1rem;
  font-size: 1rem;
}

.map-top-bar .top-left {
  font-weight: bold;
}

.map-top-bar .top-right button {
  margin-left: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 6px;
  background: #444;
  color: white;
  cursor: pointer;
}
.map-top-bar .top-right button:hover {
  background: #666;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem;
  align-items: center;
}

.map-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-retour {
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border: 1px solid #ccc;
}

.popin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popin .popin-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.popin .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.qr_canvas {
  width: 300px;
  height: 300px;
}
  
.hidden {
  display: none !important;
}

/* Messagerie */

.messagerie {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  background: #111;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.messagerie-header {
  background: #222;
  color: white;
  padding: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

#messages .msg {
  margin-bottom: 1rem;
  color: white;
}

#messages .msg.from {
  text-align: right;
}

#messages .msg span.label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #444;
  color: white;
  margin-bottom: 0.2rem;
}

#form-message {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

#form-message input {
  padding: 0.4rem;
  border-radius: 6px;
  border: none;
}

#form-message button {
  padding: 0.5rem;
  border: none;
  background: #3498db;
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

#form-message select {
  padding: 0.4rem;
  border-radius: 6px;
  border: none;
}

.msg-badge {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
  color: white;
  border-radius: 50%;
  margin-right: 6px;
}

.msg-badge.neutral {
  background: #aaa;
}

.msg .heure {
  font-size: 0.8rem;
  color: #ccc;
  margin-left: 6px;
}




/* Bouton Quitter le rallye */
.quit-button {
  display: block;
  margin: 2rem auto;
  background-color: #c62828;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.quit-button:hover {
  background-color: #b71c1c;
}
/* Repère Equipe */
.marker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.marker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.marker-couleur {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.marker-numero {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
}
.marker-couleur.bright .marker-numero {
  background: #000;
  color: #fff;
}

/* ================= Messagerie ================= */
.bouton-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 14px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
}

.messagerie-fermee {
  display: none;
}

#messagerie {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #000;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.messagerie-header {
  background: #222;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messagerie-corps {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #111;
}

.messagerie-corps .message {
  margin-bottom: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.equipe {
  text-align: right;
  background: #336699;
  color: white;
  border-radius: 8px 8px 0 8px;
  padding: 6px 10px;
  margin-left: auto;
}

.message.autre {
  text-align: left;
  background: #333;
  color: white;
  border-radius: 8px 8px 8px 0;
  padding: 6px 10px;
}

/* ================= Tableaux ================= */
.dataTables_wrapper {
  margin-top: 20px;
  padding: 20px;
}

.dataTables_filter input {
  border-radius: 8px;
  padding: 6px;
}

.data-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    width: 100%;
}

.data-table thead {
    display: none;
}

.data-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    min-width: 320px;
    width: auto !important;
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.data-table tr:nth-child(even) {
    background-color: #f6f6f6;
}

.data-table td {
    display: block;
    position: relative;
    text-align: center;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #ddd;
}

.data-table td:last-child {
    border-bottom: none;
}

.data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Table DataTables avec entête stylisée */
table.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-family: 'Aptos', sans-serif;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

table.styled-table thead {
  background-color: #3a1f1f;
  color: #fff;
}

table.styled-table thead th {
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

table.styled-table tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table.styled-table tbody tr:last-child td {
  border-bottom: none;
}

/* Coins arrondis visibles même sur thead */
table.styled-table thead th:first-child {
  border-top-left-radius: 12px;
}

table.styled-table thead th:last-child {
  border-top-right-radius: 12px;
}

table.styled-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table.styled-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.actions img { 
	width: 24px;
	margin-right: 6px;
}

.icon-actions a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.icon-actions a:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

/* ================= Affichage Statut Sessions ================= */
.statut {
  display: inline-block;
  padding: 0.3em 0.6em;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.85rem;
  color: white;
  text-transform: uppercase;
}

.statut.inactive {
  background-color: #7f8c8d;
}

.statut.planifiee {
  background-color: #f39c12;
}

.statut.active {
  background-color: #27ae60;
}


