
/* HeadPage */

div.headerdico {
    width: 100%;
    height: 200px; /* Adjust as needed */
    background: url('../../img/women-fitness.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-bottom: 5px solid black;
}

div.headerdico h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

/* Conteneur du dictionnaire */
#dico {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bloc de chaque mot */
.category {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Titre du mot */
.category-name {
    font-weight: bold;
    color: green;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Description du mot */
.article-count {
    color: black;
    line-height: 1.4;
}

/* Conteneur de la barre de recherche */
.search {
    display: flex;
    justify-content: left;
    margin: 20px 0;
}

/* Champ de recherche */
.search input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    color: black;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus sur le champ */
.search input[type="text"]:focus {
    border-color: green;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.2);
}

img.zone {
    width:50px; 
    border-radius: 30px
}

img.exostable {
    border-radius:30px; 
    background:white; 
    border: 2px solid #eeeeee;
}

img.selectedexo {
    width:200px; 
    border-radius: 10px; 
    border:2px solid #ededed; 
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1)
}


.table-container {
    width: 90%; /* S'adapte à la largeur de l'écran */
    overflow-x: auto; /* Ajoute un défilement horizontal si nécessaire */
    margin: 20px auto; /* Centrer le conteneur */
    max-height: 500px; /* Fixe la hauteur maximale */
    overflow-y: auto; /* Active le scroll vertical */
}

table {
    width: 100%; /* Le tableau prend toute la largeur disponible */
    border-collapse: collapse;
    margin: 0; /* Pas de marge supplémentaire */
}

th, td {
    padding: 8px; /* Améliore la lisibilité */
    border: 1px solid #e0e0e0; /* Gris clair pour les bordures */
    text-align: left;
    color: #333; /* Gris foncé pour le texte */
}

th {
    background-color: #f5f5f5; /* Gris très clair pour les en-têtes */
    font-weight: bold;
    text-transform: uppercase; /* Style propre et structuré */
}

/* Forcer la 1re colonne à ne prendre que la taille de son contenu (l'image) */
td:first-child, th:first-child {
    width: 1%;
    white-space: nowrap;
}

.exostable {
    width: 150px;
    height: auto;
    display: block;
}


tr:nth-child(odd) {
    background-color: #fafafa; /* Blanc cassé pour alternance */
}

tr:nth-child(even) {
    background-color: #f0f0f0; /* Gris très pâle */
}

tr:hover {
    background-color: #e0e0e0; /* Gris moyen pour le survol */
}

tr.sessioncount {
    background: #FDE2C7;
}

/* Onglets */
.tab-container {
    display: flex; 
    flex-wrap: wrap; 
    margin-bottom: 20px; 
}


.tab {
    flex: 1; 
    padding: 10px;
    background-color: #e7e7e7; 
    border: 1px solid #ccc;
    cursor: pointer; 
    text-align: center; 
    transition: background 0.3s; 
}

.tab:hover {
    background-color: #d5d5d5; 
}

.tab-content {
    display: none; 
    margin-top: 10px; 
}

h2 {
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Bordure fine et discrète */
    padding-bottom: 5px; 
    color : #333;
    text-transform: uppercase
}

.tab-content h2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Bordure fine et discrète */
    padding-bottom: 5px; 
    color : #333;
    text-transform: uppercase
}

button.active {
    background-color: #4F7942; 
    color: #fff;
}	

.inactive {
    background-color: #7F0000; 
    color: #fff;
}


#description {
    max-height: 100%; /* Fixe la hauteur maximale */
    overflow-y: auto; /* Active le scroll vertical */
    border: 1px solid #ddd; /* Ajout d'une bordure légère */
    padding: 10px; /* Espacement intérieur */
    background-color: #f9f9f9;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    text-align: justify;
    transition: opacity 0.5s, transform 0.5s;
}

#description br + strong {
    display: block;
    margin-top: 1em;
  }


.youtube-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4a4a4a; /* Couleur de fond gris sombre */
    color: white;
    font-weight: normal; /* Texte normal au lieu de gras */
    text-decoration: none;
    padding: 10px 15px; /* Espacement légèrement réduit */
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0px;
    margin-bottom: 40px;
    float: right; /* Aligne le bouton à droite */
    clear: both;  /* Évite les conflits avec d'autres éléments flottants */
}

.youtube-button:hover {
    background-color: #616161; /* Couleur de fond légèrement plus claire au survol */
    transform: scale(1.02); /* Légère augmentation de la taille au survol */
    color: white;
}

.youtube-button::before {
    content: ""; /* Pas d'icône flashy, simplement le symbole play */
    font-size: 18px;
    margin-right: 8px;
}

.imgdisclaimer {
    font-size:12px;
    color: #FF4D00
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .tag-cloud span {
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #f2f2f2;
    color: #333;
    text-transform: lowercase;
    border: 1px solid #ddd;
    transition: 0.3s;
    cursor: default;
  }
  
  .tag-1 { font-size: 12px; }
  .tag-2 { font-size: 16px; }
  .tag-3 { font-size: 20px; }
  .tag-4 { font-size: 24px; }
  .tag-5 { font-size: 28px; font-weight: bold; }
  
  .exercice-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start; /* ⬅️ aligner à gauche */
    padding: 10px;
  }
  
  .exercice {
    flex: 0 0 150px; /* Largeur fixe */
    max-width: 180px;
    text-align: left; /* ⬅️ texte à gauche */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    height: 220px;
}
  
  .exercice:hover {
    transform: scale(1.03);
  }
  
  .exercice img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    background-color: white;
  }
  
  .exercice p {
    margin-top: 8px;
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
    text-align: left; /* ⬅️ texte à gauche */
  }
  

    /* Image en bas à droite */
    #toggle-button {
        position: fixed;
        bottom: 60px;
        right: 60px;
        width: 120px;
        height: 120px;
        cursor: pointer;
    }

    .legal-notice {
        font-size: 0.85em;
        color: #666;
        margin-top: 2em;
        border-top: 1px solid #ddd;
        padding-top: 1em;
        text-align: center;
        max-width: 800px;
      }

  /* Même sur mobile, on garde l’alignement gauche */
  @media (max-width: 600px) {
    .exercice-liste {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
        padding: 10px;
      }
      
      .exercice {
        flex: 1 1 45%;       /* base ~2 par ligne */
        max-width: 150px;    /* ne dépasse jamais 150px */
        box-sizing: border-box;
        text-align: left;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 8px;
        background-color: #fafafa;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
      }
      
      .exercice:hover {
        transform: scale(1.03);
      }
      
      .exercice img {
        width: 100%;
        height: auto;
        border-radius: 4px;
        object-fit: cover;
      }
      
      .exercice p {
        margin-top: 8px;
        font-size: 0.95em;
        color: #333;
        font-weight: 500;
        text-align: left;
      }

    /* Image en bas à droite */
    #toggle-button {
        position: fixed;
        bottom: 30px;
        right: 20px;
        width: 100px;
        height: 100px;
        cursor: pointer;
    }

      
  }
  
  