/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}


/* Logo en haut à droite */
.logo-container {
    position: fixed;
    top: 150px;
    right: 10px;
    width: 30px; /* nouvelle taille plus petite */
    height: auto;
    z-index: 1000;
}

#topImage {
    width: 100%; /* prend la largeur du conteneur */
    height: auto;
}


.logo-container .badge {
    display: none; /* caché par défaut */
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 10;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 1px; /* optionnel, améliore le rendu */
}


/*.top-banner {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #ccc;
  }*/

/* Style pour l'image du slot */
.slot-image {
    width: 30px; /* Taille réduite */
    height: auto;
    cursor: pointer;
    right: 5px;
}

.slot-image:hover {
    transform: scale(1.1);
}

.filtre-cours {
    /*display : inline-block;*/
    padding-left : 20px;
}


.infos-cours{
    /*display : inline-block;*/
    padding : 10px 0 0 20px;
}

.infos-cours a{
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.infos-cours a:hover{
    text-decoration: none;
    color: brown;
    font-weight: bold;
}

.filtre-cours select{
     background-color: black;
     height: 30px;
     border-radius : 6px;
     color : white;
     border-style: none;
}


.planning {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 colonnes pour 6 jours */
    grid-gap: 10px;
    padding: 20px;
    margin-top: 5px; /* Augmenter cet espacement pour laisser de la place sous l'image */
}

.jour {
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.header {
    background-color: #2e3b4e;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 1px; /* Espacement plus grand entre l'entête et les slots */
    cursor: pointer; /* <- curseur main */
    transition: background-color 0.3s ease;
}

.header:hover {
    background-color: #b1b8c2; /* léger survol visuel */
}

.slot {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    min-height: 50px;
    height: 130px;
    margin-bottom: 30px;
    margin-top: 10px;
    border-radius: 5px;
}

.slot-footer {
  position: absolute;
  bottom: 5px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-footer .places {
  font-weight: bold;
  font-size: 10px;
}

.slot-footer .placesComplet {
  font-weight: bold;
  font-size: 10px;
  color: red;
}

.slot-footer .slot-image {
  height: 20px; /* ajuste selon tes besoins */
  margin-top: 4px;
  align-self: flex-end;
}
.horaire {
    font-size: 18px;
    /*font-weight: bold;*/
}

.cours-critere {
    font-size: 15px;
    font-weight: bold;
}

.niveau {
    font-style: italic;
}

.trancheage {
    color:brown;
    font-weight: bold;
}

.slot img {
    position: absolute;
    bottom: 5px;
    right: 5px; /* Positionné à droite */
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.slot span {
    /*display: block;*/
    /*font-size: 14px;*/
    color: #333;
}

.slot-icon {
    position: absolute;
    bottom: 5px;
    /*left: 5px;*/
    width: 24px;
    height: 24px;
    right: 5px;
    object-fit: contain; /* S’assure que l’image se redimensionne bien */
    transition: transform 0.2s ease, filter 0.2s ease;
}

.slot-icon-link {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: inline-block;
}

.slot-icon-link:hover .slot-icon {
    transform: scale(1.2); /* agrandit l'image */
    filter: brightness(1.2); /* léger éclaircissement */
    cursor: pointer;
}

.slot:last-child {
    margin-bottom: 0; /* Pas de marge pour le dernier slot */
}        


.slots {
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: 1000px; /* assez grand pour afficher les créneaux */
    gap: 20px; /* espace vertical entre les slots */

    display: flex;
    flex-direction: column;

}

.jour.replie .slots {
    max-height: 0;
}

/* Responsive: ajustement pour les écrans plus petits */
@media screen and (max-width: 768px) {
    .planning {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur les petits écrans */
    }
}

@media screen and (max-width: 480px) {
    .planning {
        grid-template-columns: 1fr; /* 1 colonne pour les très petits écrans */
    }
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
}
/*
.popup {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    /*height: 100%;
    width: 300px;*/
    /*padding : 15px;
    background-color: #f0f0f0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.popup-content {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
}

.popup .fermer {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.popup #panier-content ul {
    margin : 0;
    padding : 0;
}

.popup #panier-content ul li{
    list-style-type: none;
    padding:  10px 0 10px 0;
    border-bottom-style: dashed;
    border-width : 2px;
    border-color: #f0f0f0;
}*/

/* Panier flottant moderne */
.popup {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    padding: 20px;
    background: #ffffff;
    box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.4s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    overflow-y: auto;
}

.popup-content {
    background-color: #fafafa;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.popup .fermer {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease-in-out;
}

.popup .fermer:hover {
    color: #000;
}

.popup #panier-content ul {
    margin: 0;
    padding: 0;
}

.popup #panier-content ul li {
    list-style: none;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
}

.popup #panier-content ul li:last-child {
    border-bottom: none;
}

/* Bouton moderne */
.btn-panier {
    display: inline-block;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.btn-panier:hover {
    background-color: #357ac9;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Animation glissante depuis la droite */
@keyframes slideIn {
    from { right: -300px; }
    to { right: 0; }
}

/* Conteneur fluide et centré pour le tableau */
.recapitulatif-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px; /* espace sur petits écrans */
}


/* ----------------------------
   Titre du panier
----------------------------- */
.recapitulatif-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ----------------------------
   Tableau moderne
----------------------------- */
.recapitulatif-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* En-têtes */
.recapitulatif-table thead tr {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    font-size: 13px;
}

.recapitulatif-table th,
.recapitulatif-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recapitulatif-table th:last-child,
.recapitulatif-table td:last-child {
    text-align: center;
}

/* Données */
.recapitulatif-table td {
    font-size: 14px;
    color: #333;
}

/* Tarif aligné à droite */
.tarif {
    text-align: right !important;
    font-weight: 500;
    color: #222;
}


.tarif strong {
    font-weight: 700;
}

/* Pied de tableau */
.recapitulatif-table tfoot td {
    background-color: #f9f9f9;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    border-top: 2px solid #eee;
}

/*.recapitulatif-table th:first-child,
.recapitulatif-table td:first-child {
    display: none;
}*/


/* Ligne de total */
.total-row td {
    background-color: #fafafa;
}

/* ----------------------------
   Formulaires de navigation
----------------------------- */
.form-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

/* Boutons modernisés */
.submit-recapitulatif {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 220px;
    font-weight: 500;
}

.submit-recapitulatif:hover {
    background-color: #357ac9;
}

/* Boutons modernisés */
.submit-recherche {
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: auto; /* ou 80px si tu veux une taille fixe */
    font-weight: 500;
}

.submit-recherche:hover {
    background-color: #357ac9;
}

@media (max-width: 600px) {
    .submit-recapitulatif {
        width: 100%;
    }

    .form-container {
        flex-direction: column;
    }
}

.detail-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 10px;
}

.form-row-information {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.form-row-information label {
    flex: 0 0 100px;
    font-weight: bold;
    font-size: 14px;
    color: #444;
}

.form-row-information input,
.form-row-information select {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 200px;
}

.input-adresse {
    flex: 2;
}

.input-cp {
    max-width: 120px;
}

.select-destinataire {
    min-width: 200px;
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 200px;
}

.btn-copier {
    padding: 10px 16px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-copier:hover {
    background-color: #357ac9;
}

/*
.ticket-caisse {
    width: 450px;
    border: 1px solid #ccc;
    padding: 16px;
    margin-top: 20px;
    font-family: monospace;
    background-color: #fdfdfd;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    display: inline-block;
}
.ticket-caisse h3 {
    text-align: center;
    margin-bottom: 16px;
}
.ligne-ticket {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ticket-caisse hr {
    border: none;
    border-top: 1px dashed #aaa;
    margin: 12px 0;
}
.ligne-ticket.total {
    font-size: 1.1em;
    font-weight: bold;
}

.ticket-caisse {
    margin-bottom: 30px; /* ou la valeur que tu souhaites */


/*----------------------------------------PAGE PAIEMENT------------------------------------------*/   
.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h2, h3 {
  margin-top: 0;
}

.flex {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-flex {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.info-box {
  flex: 1;
  min-width: 280px;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.important {
  font-weight: bold;
  color: #000;
}

.label {
  font-weight: bold;
  color: #2c3e50; /* ou une autre couleur selon ta charte */
}

.btn-valide {
  background: #000;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-valide:hover {
  background: #444;
}

select {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 300px;
}

#paypal-button-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin: 20px 0 !important;
}

/* Force le centrage du contenu dynamique injecté par PayPal */
#paypal-button-container > div {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 500px; /* Ajustez cette valeur selon la largeur voulue pour vos boutons */
}
/*----------------------------------------------------------------------------------*/  

.paiement {
    
    padding : 20px;
}

.paiement .infos_importantes{

    padding : 20px;
}

.paiement  .validation_paiement{
    padding : 20px;
}

.menu-list {
    list-style-type: none;
    padding: 0;
}

.menu-list li {
    margin: 10px 0;
}

.menu-list a {
    text-decoration: none;
    font-weight: bold;
    color: #00529B;
}

.menu-list a:hover {
    text-decoration: underline;
}

/* Barre qui contient le lien – alignée à droite */
.logout-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eee;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;    
}

.id-famille {
    color: #333;
}

.btn-valide {
    background: #f0f0f0; /* gris clair */
    color: #000; /* texte noir */
    border: 1px solid #00529B; /* bordure bleue */
    padding: 6px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 180px;
    box-sizing: border-box;
    gap: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-valide {
    background-color: black;
    color: #fff;
    border : none;
}

.btn-valide:hover {
    background-color: maroon;
    color: #fff;
    border : none;
}



.btn-navigation {
    background: transparent;
    color: #000; /* Texte noir */
    border: 1px solid #00529B; /* Bordure bleue */
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 110px; /* assure une largeur identique */
    box-sizing: border-box;
    gap: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.btn-navigation:hover {
    background-color: #00529B;
    color: #fff;
}

/* ----- Sous-barre -------------------------------------------------- */
.sub-nav {
    background-color: #f9fafb;   /* gris très clair (optionnel) */
    border-top: 1px solid #e5e7eb; /* fine ligne de séparation   */
    padding: 6px 20px;           /* haut/bas | côtés            */

    /* Flexbox pour pousser la liste à droite */
    display: flex;
    justify-content: flex-end;
}

/* Liste horizontale, sans puces ni marge */
.sub-nav ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Liens de la sous-barre */
.sub-nav a {
    font-weight: 600;
    color: #374151;                 /* gris foncé par défaut     */
    text-decoration: none;
    transition: color .2s;
    font-size: 10px;   
}

.sub-nav a:hover {
    color: #be123c;                 /* rouge / contraste fort    */
}


.membres-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.membres-table th, .membres-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.membres-table th {
    background-color: #f5f5f5;
}

.membres-table a{
    text-decoration: none;
    color:#000;
}

.membres-table a:hover{
    text-decoration: none;
    color:#000;
    font-weight: bold;
}

.icon-cell {
    text-align: center;
    width: 40px;
    font-size: 18px;
}

.btn-creer-espace {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2a9df4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn-creer-espace:hover {
    background-color: #2380c4;
}

.fiche-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fdfdfd;
}

.prof {
    font-size: 12px;
}

.fiche-bloc {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f7f9fc;
}

.fiche-bloc h3 {
    margin-top: 0;
    border-bottom: 1px solid #bbb;
    padding-bottom: 5px;
}

.version{
    font-size: 12px;
    color: #666; 
    text-align: left; 
    margin-bottom: 5px;
}

/*.select-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}*/

.select-row label {
    margin-right: 5px;
    white-space: nowrap;
}

/*.select-row select,
.select-row button {
    padding: 5px 10px;
    font-size: 14px;
    height: 36px;
}*/

.select-row {
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre les éléments */
    flex-wrap: wrap; /* si tu veux qu’ils passent à la ligne sur petit écran */
}

.select-row select,
.select-row button {
    margin: 0;
    line-height: 1;
}

/*-------------------------------------------------------------*/
.tab-btn {
    padding: 8px 14px;
    background: #e0e0e0;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    border-radius: 4px;
}
.tab-btn.active {
    background: #00529B;
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
/*-------------------------------------------------------------*/
.tabs {
    max-width: 100%;
    margin: 20px auto;
    font-family: sans-serif;
}

.tabs input[type="radio"] {
    display: none;
}

.tabs .content {
    margin-top: 0; /* réduit ou supprime l'espace au-dessus du contenu */
    padding: 16px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
}

.tabs ul {
    display: flex;
    justify-content: flex-start; /* Onglets alignés à gauche */
    list-style: none;
    padding-left: 0;
    margin: 0 0 0;/*-1px*/
    border-bottom: 2px solid #ccc;
    gap: 8px; /* espacement entre les onglets */
}

.tabs ul li {
    flex: 0 0 auto; /* les onglets prennent la taille de leur contenu */
}

.tabs label {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background 0.3s ease, color 0.3s ease;
}

.tabs label:hover {
    background: #e0e0e0;
}

.tabs input[type="radio"]:checked + label {
    background: #ffffff;
    border-bottom: 2px solid #ffffff;
    color: #000;
    z-index: 1;
    position: relative;
}

.tabs .content section {
    display: none;
    padding: 20px;
    border: 1px solid #fff;
    background: white;
    border-radius: 0 0 6px 6px;
}

#tab1:checked ~ .content section:nth-of-type(1),
#tab2:checked ~ .content section:nth-of-type(2),
#tab3:checked ~ .content section:nth-of-type(3) {
    display: block;
}

.fiche-bloc {
    margin-bottom: 20px;
}

/* Onglet actif avec couleur différente */
#tab1:checked ~ ul li label[for="tab1"],
#tab2:checked ~ ul li label[for="tab2"],
#tab3:checked ~ ul li label[for="tab3"]
 {
    background: #4285f4;  /* couleur onglet actif */
    color: #fff;
    border-bottom: 2px solid #4285f4;
}





