@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ajouté pour éviter les débordements */
  list-style: none;
  text-decoration: none;
  outline: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  /* STRUCTURE GRID DESKTOP (Défaut) */
  display: grid;
  grid-template-columns: 250px 1fr; /* J'ai élargi un peu pour l'aside */
  grid-template-rows: 80px 1fr 0px;
  grid-template-areas: "nav nav" "aside main" "footer footer";
}

.spacer {
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin: 10px 0;
}

.btnToggle {
  display: none;
}

.navBord ul li a {
  padding: 5px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  color: #333333;
  font-weight: 500;
  font-size: 1rem;
}
.navBord ul li a:hover {
  background-color: #f0f0f0;
  color: #e4334f;
  transition: 0.3s ease;
}

nav {
  grid-area: nav;
  background: linear-gradient(90deg, #ba3184, #e4334f);
  padding: 0.5rem 1rem;
  position: sticky; /* Optionnel: garde le header en haut */
  top: 0;
  z-index: 100;
}
nav .logo {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  height: 60px;
  width: auto;
  display: inline-block;
  line-height: 60px;
}
nav div {
  height: 100%;
  display: flex;
  justify-content: space-between; /* Pousse le menu à droite */
  align-items: center;
  gap: 2rem;
}
nav div ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
nav div ul li {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.5rem;
}
nav div ul li a {
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 10px;
  border-radius: 10px;
}
nav div ul li a:hover {
  background-color: white;
  color: #e4334f;
  transition: 0.3s ease;
}

aside {
  grid-area: aside;
  background-color: white;
  padding: 1rem;
  width: 100%;
  height: calc(100vh - 80px); /* Toute la hauteur moins le header */
  position: sticky;
  top: 80px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 90;
  /* Style par défaut des boutons (Desktop) */
  /* Style spécifique du bloc "Bordereaux/Clubs" (Teal) */
}
aside div {
  justify-content: space-between;
}
aside .deco2 {
  display: none;
}
aside .menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
aside .btnNav {
  width: 100%;
  margin-bottom: 10px;
}
aside .btnNav .linkNav {
  display: flex;
  align-items: center;
  color: #333; /* $color-text */
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}
aside .btnNav .linkNav span {
  margin-right: 10px;
  font-size: 24px;
}
aside .btnNav .linkNav:hover {
  color: #e4334f; /* $color-primary */
  background-color: rgba(186, 49, 132, 0.1); /* $color-pink très clair */
  padding-left: 1.5rem;
}
aside .btnNav .linkNav p {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}

main {
  grid-area: main;
  padding: 2rem;
  text-align: center;
  /* Titre du formulaire */
}
main .container {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  /* Style des messages de notification */
}
main .container .badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  color: white;
}
main .container .badge-attente {
  background-color: #f0ad4e;
}
main .container .badge-cours {
  background-color: #17a2b8;
}
main .container .badge-paye {
  background-color: #28a745;
}
main .container .msg {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  position: relative; /* Pour le bouton croix */
}
main .container .msg-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
main .container .msg-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
main .container .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: inherit;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
}
main .container .close-btn:hover {
  opacity: 0.7;
}
main .container table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
main .container thead tr {
  background-color: #f9f9f9;
}
main .container th, main .container td {
  padding: 14px 18px;
  text-align: left;
}
main .container th {
  font-weight: 700;
  color: #333333;
  border-bottom: 2px solid #eeeeee;
}
main .container tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}
main .container tbody tr:hover {
  background-color: #f5f5f5;
}
main .container tbody tr:last-child {
  border-bottom: none;
}
main .container td a {
  color: #e4334f;
  font-weight: 500;
  text-decoration: none;
}
main .container td a:hover {
  text-decoration: underline;
}
main .container form {
  display: flex;
  flex-direction: column;
  text-align: left;
  /* Petit trait sous le titre pour le style */
  /* 5. Les champs de saisie (InputGroup) */
  /* 6. Le Bouton de Connexion */
  /* 7. Messages d'erreur */
}
main .container form form h1 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}
main .container form form h1::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ba3184, #e4334f);
  margin: 10px auto 0;
  border-radius: 2px;
}
main .container form .inputGroup, main .container form .modal-body .inputGroup {
  margin-bottom: 20px;
}
main .container form .inputGroup label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}
main .container form .inputGroup input, main .container form .inputGroup select, main .container form .inputGroup textarea, main .container form .modal-body .inputGroup input, main .container form .modal-body .inputGroup select, main .container form .modal-body .inputGroup textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  /* Important pour ne pas dépasser */
}
main .container form .inputGroup input:focus, main .container form .inputGroup select:focus, main .container form .inputGroup textarea:focus, main .container form .modal-body .inputGroup input:focus, main .container form .modal-body .inputGroup select:focus, main .container form .modal-body .inputGroup textarea:focus {
  border-color: #e4334f;
  box-shadow: 0 0 0 3px rgba(228, 51, 79, 0.1);
}
main .container form button[type=submit], main .container form input[type=submit] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #ba3184, #e4334f);
  /* Votre dégradé */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
main .container form button[type=submit]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(186, 49, 132, 0.3);
}
main .container form button[type=submit]:active {
  transform: translateY(0);
}
main .container form .errorMessage {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  grid-area: footer;
  display: none;
  background-color: rgb(219.5, 219.5, 219.5);
  padding: 0.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: black;
}

@media screen and (max-width: 1024px) {
  body {
    /* 1. On change la grille pour une seule colonne */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 80px auto 1fr auto; /* nav - aside - main - footer */
    grid-template-areas: "nav" "aside" "main" "footer";
    padding-bottom: 70px; /* IMPORTANT: Espace pour la barre fixe en bas */
  }
  body .btnToggle {
    display: flex; /* Flex pour aligner texte et icône */
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: transparent; /* Fond transparent */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Bordure fine */
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    /* Ajustement de l'icône si nécessaire */
  }
  body .btnToggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  body .btnToggle span {
    font-size: 1.2rem;
  }
  main {
    padding: 1rem; /* Moins de padding sur mobile */
  }
  main .container {
    padding: 1rem; /* Moins de padding sur mobile */
  }
  main .container h1 {
    font-size: 1.2rem;
  }
  footer {
    display: none;
  }
  aside {
    position: static; /* Plus de sticky sidebar */
    width: 100%;
    height: auto;
    padding: 0;
    box-shadow: none;
    background-color: transparent;
    /* On cache le spacer inutile en mobile */
    /* 1. TRANSFORMATION EN BARRE D'APPLICATION (FIXE EN BAS) */
    /* 2. MENU DÉROULANT (Bordereaux / Clubs) */
    /* 3. GESTION DU BOUTON DECONNEXION */
    /* Tu peux choisir de le cacher ou de l'afficher dans le menu déroulant */
  }
  aside .deco2 {
    display: block;
    text-align: center;
    margin: 10px 0;
  }
  aside .menu-content {
    display: block;
  }
  aside .spacer {
    display: none;
  }
  aside .navBar_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* Flex pour aligner Accueil/Club/Officiel horizontalement */
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  aside .navBar_bottom .btnNav {
    width: auto;
    margin: 0;
    flex-grow: 1;
  }
  aside .navBar_bottom .btnNav .linkNav {
    flex-direction: column; /* Icone au dessus du texte */
    justify-content: center;
    font-size: 0.75rem;
    padding: 5px;
    border-radius: 0;
    height: 100%;
    color: #666;
  }
  aside .navBar_bottom .btnNav .linkNav span {
    margin-right: 0;
    margin-bottom: 4px;
    font-size: 1.6rem;
    color: #e4334f; /* $color-primary */
  }
  aside .navBar_bottom .btnNav .linkNav:hover {
    background-color: #f9f9f9;
    padding-left: 5px; /* Annuler l'effet desktop */
    color: #ba3184; /* $color-pink */
  }
  aside .navBar_menu {
    display: none; /* CACHÉ PAR DÉFAUT */
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Quand on ajoute la classe .active via JS, on affiche */
    /* Style "Bouton" Teal spécifique au mobile */
  }
  aside .navBar_menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }
  aside .navBar_menu .btnNav {
    width: auto;
    margin-bottom: 5px;
  }
  aside .navBar_menu .btnNav .linkNav {
    background-color: #24a49d; /* $color-teal */
    color: white;
    padding: 12px 20px;
    justify-content: center;
  }
  aside .navBar_menu .btnNav .linkNav span {
    color: white;
  }
  aside .navBar_menu .btnNav .linkNav:hover {
    background-color: rgb(26.82, 122.18, 116.965);
    padding-left: 20px;
  }
  aside .btnDeco {
    display: none; /* Caché pour l'instant sur mobile pour simplifier */
  }
  /* --- Transformation du tableau en structure de blocs --- */
  table {
    border-collapse: separate; /* Permet un espacement plus facile entre les "cartes" */
    border: none; /* On gère la bordure au niveau des lignes (tr) */
    box-shadow: none; /* L'ombre sera gérée au niveau des lignes */
  }
  /* 1. Cacher l'en-tête (les titres de colonnes classiques) */
  thead {
    display: none;
  }
  /* 2. Les rangées (lignes) deviennent des blocs indépendants (les "cartes") */
  tbody tr {
    display: block;
    margin-bottom: 1.5rem; /* Ajoute un espace visible entre les fiches de match */
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Coins arrondis pour le look carte */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: none; /* Désactive la transition de survol qui ne s'applique pas bien en mode tactile */
    background-color: #ffffff;
  }
  /* 3. Ajustement de l'effet de survol pour ne pas déranger le look carte */
  tbody tr:hover {
    background-color: #ffffff;
  }
  /* 4. Les cellules (données) deviennent des blocs et occupent toute la largeur */
  td {
    display: block;
    text-align: right; /* Aligne la donnée à droite */
    padding: 10px 18px;
    border-bottom: 1px dashed #f0f0f0; /* Ligne de séparation fine entre les champs de la carte */
    position: relative; /* Nécessaire pour le pseudo-élément ::before */
  }
  /* Supprimer la bordure du bas pour la dernière donnée de chaque fiche */
  tbody tr td:last-child {
    border-bottom: none;
    padding-bottom: 14px; /* Ajustement du padding pour la dernière ligne */
  }
  /* --- Ajout des libellés (les en-têtes de colonnes) via ::before --- */
  td::before {
    content: ""; /* Initialisation */
    float: left; /* Le libellé à gauche, la donnée à droite */
    font-weight: 700;
    color: #555; /* Une couleur de texte légèrement plus foncée */
    text-align: left;
    margin-right: 10px;
  }
}
/* Petite animation d'ouverture */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/*# sourceMappingURL=main.css.map */