
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
}


@font-face {
    font-family: 'Roboto';
    src: url('Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Roboto';
    src: url('Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }


body {
    flex-direction: column;
    min-height: 100vh; /* Assure que la hauteur de la page prend toute la hauteur de l'écran */
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    font-size: 16px;
}



.checkbox-inline {
    display: flex;
    align-items: center;      /* alignement vertical */
    justify-content: center;  /* centrage horizontal */
    gap: 8px;
    margin-top: 1rem;         /* optionnel, pour espacer du haut */
  }

  .checkbox-inline input[type="checkbox"] {
    zoom: 1.8;
    cursor: pointer;
  }
.ligne-paiement {
    display: flex;
    gap: 3%;
    align-items: stretch;
    margin-top: 1rem;
  }

  #paiement_manuel {
    flex: 1;
    height: 45px;
    border-radius: 5px;
    text-align: center;
    padding: 0 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
    line-height: 45px;
  }

  #forcer {
    flex: 1;
    height: 45px;
    background-color: blue;
    color: white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    user-select: none;
    cursor: pointer;
    line-height: 1; /* évite le débordement vertical */
    transition: filter 0.2s ease;
  }


#forcer:hover {
  filter: brightness(85%);
}

/* Boutons */
button {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    margin: 10px;
}
.button {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    font-size: 1.5rem;
    margin: 10px;
    text-align: center;
    height: 50px;

    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;     /* centre verticalement */
    text-align: center;
    white-space: normal;
    word-break: break-word;
    transition: filter 0.2s ease;
}
.button:hover {
  filter: brightness(85%);
}


/* Masquer le bouton Précédent */
button.hidden {
    display: none;
}

#modalMessage > h2{
    font-size: 2rem;
}
#modalMessage > p{
    font-size: 1.5rem;
}


.calendar-container {
    width: 60%;
    margin: auto;
    text-align: center;
    z-index: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    height: 50px;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.day {
    padding: 10px;
    border-radius: 5px;
    background-color: #6FE56A;
    color:black;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    font-size: 1rem;
}

.empty{
    background-color: #f8f8f8;
}

.day:hover {
    background-color: #e0e0e0;
}

.day-header {
    font-weight: bold;
    background-color: #ddd;
    color: black;
    cursor: default;
}

.today {
    background-color: #007bff;
    color: black;
    font-weight: bold;
}

.disabled {
    background-color: #FF7F7F;
    color: black;
    cursor: not-allowed;
}

/* --- BULLE PAR DÉFAUT POUR TOUS LES DISABLED --- */
.disabled::before {
    content: "Fermé";
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

/* Affichage au survol */
.disabled:hover::before {
    opacity: 1;
}

/* --- CAS SPÉCIAUX : JOURMÊME & PROCHAINEMENT --- */
.jourmeme {
    background-color: #FFD44D;
}

.jourmeme::before {
    content: "Appelez-nous";
}

.prochainement {
    background-color: #FFD44D;
}

.prochainement::before {
    content: "Prochainement";
}

.day.vacances::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background-color: orange;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    }

@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
    }
    
.blink {
    animation: blink 1s infinite;
}

@keyframes blink2 {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
    }
    
.blink2 {
    animation: blink 2s infinite;
}
             

/* La fenêtre modale (masquée par défaut) */
.modal {
    display: none; /* La modal est cachée par défaut */
    position: fixed; /* Posiftion fixe pour la modal */
    z-index: 1000; /* Elle se superpose au contenu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Permet de défiler si nécessaire */
    background-color: rgba(0, 0, 0, 0.6); /* Fond sombre transparent */
}

/* Contenu de la modal */
.modal-content {
    text-align: center;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px; /* Coins arrondis */
    width: 80%; /* Largeur de la modal */
    max-width: 80%; /* Largeur maximale */
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Ombre portée élégante */
    animation: fadeIn 0.3s ease-in-out; /* Animation d'apparition */
}

/* Animation de fondu */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Bouton de fermeture */
.close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

/* Style du titre de la modal */
.modal-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Style du texte dans la modal */
.modal-content p {
    font-size: 16px;
    color: #666;
}

/* Style du bouton qui ouvre la modal */
#openModalBtn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: auto;
}

.loader_full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: #333;
}

.loader_full::before {
    content: "";
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fieldset-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    flex-grow: 1; /* Prend toute la hauteur disponible */
}

.fieldset-container div {
    flex-basis: calc(33.33% - 10px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(14px, 5vw, 30px);
    text-align: center;    
    flex-grow: 1; /* Permet aux div de grandir uniformément */
    align-self: stretch; /* Étire chaque div pour qu'il prenne la hauteur max */
}

.bulles_joueurs{
    width:50px;
    border: 1px solid gray;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
}

#paypal-button-container {
    display: none; /* Masquer le bouton au départ */
    margin-top: 20px;
}


.bouton_mois{
    width: 30%; display: flex; justify-content: center; align-items: center; background-color: #007bff; color: white; border-radius: 5px; height: 50px;
}



.wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header + Content (qui grandit) + Footer */
    height: 100vh; /* Prend toute la hauteur de l'écran */
    overflow: hidden; /* Empêche tout débordement */
    margin-top:100px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #f4f4f4;
    z-index: 1;
    height:100px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: linear-gradient(to top, rgba(244,244,244,1) 90%, rgba(244,244,244,0) 100%);
    z-index: 1;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
footer img {
    vertical-align: middle;
}

.content {
    flex-grow: 1; /* Permet au contenu de prendre l'espace disponible */
    overflow: auto; /* Active le scroll si nécessaire */
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    width: 85%;
    margin-bottom: 40px;
    margin-top: 20px;
}

.carte3{
    flex-basis: calc(33% - 10px);
    box-sizing: border-box;
    padding:5px;
    padding-top:10px;
    border-radius: 12px;
    display: block;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border:5px solid transparent;
}

.carte2{
    flex-basis: calc(50% - 10px);
    box-sizing: border-box;
    padding: 5px;
    border-radius: 12px;
    display: block;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border:5px solid transparent;
}

.partie-tarif{
    font-size: 1.25rem;
}

.titre-avec-traits {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 0;
}

.titre-avec-traits::before,
.titre-avec-traits::after {
    content: "";
    flex-grow: 1;  /* Les traits s'adaptent à la largeur */
    height: 2px;
    background-color: black;
    margin: 0 10px;  /* Espace autour du titre */
}

.lds-ellipsis{
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.lds-ellipsis div{
	position: absolute;
	top: 45%;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background :white;
	animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
	left: 8px;
	animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.bulles{
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 18px;
    position:relative;
    cursor: pointer;
    transition: filter 0.2s ease;
    border:1px solid gray;
    color:black;
}

.bulles:hover {
    border:1px solid orange;
}

.cadre_recapitulatif{
    width:500px;
}

.happy{
    font-size:16px;
}

.default{
    border-radius: 12px;
    background: #e63946;
    font-weight: bold;
    font-size: 12px;
    color: white;
    text-align: center;
    width: 80%;
    margin-left:auto;
    margin-right:auto;
    margin-top: 8px;
    margin-bottom: 6px;
}

.infos{
    position: absolute;
    top:-3px;
    right:-3px;
    cursor: pointer;
}

.pmr{
    position: absolute;
    top:0px;
    left:0px;
    cursor: pointer;
}

.apartirde{
    font-size: 0.6em;
    width:100%;
    text-transform:uppercase;
    font-weight:bold
}

.partie-title{
    text-transform: uppercase;
    white-space: nowrap;
}

.pasassez{
            width:40%;
        }


@media (max-width: 1024px) { /* Cible les écrans de 768px et moins (tablettes et mobiles) */
    
    .infos{
        font-size: 1.25em;
    }

    .pmr{
        font-size: 1.25em;
    }

    .apartirde{
        font-size: 1.25em;
    }

    .confirmation_mobile{
        font-size:1.5em;
    }

    .disabled:not(.jourmeme)::before {
        font-size: 1em;
    }

    .jourmeme::before {
        font-size: 1em;
    }

    body{
        width:95vw;
        font-size: 0.75em;
    }

    .bulles{
        font-size: 3em;
    }

    .bulles_joueurs{
        width:15%;
        font-size: 4em;
    }

    .titre-avec-traits {
        font-size: 3rem;
    }

    .content{
        width: 100%;
        padding: 0px;
    }

    .avertissements{
        font-size: 2.5rem;
    }

    .cadre_recapitulatif{
        width:90%;
    }

    .calendar-container {
        width: 100%;
        font-size: 2em;
    }

    .calendar-header {
        height: 70px;
    }

    .bouton_mois{
        height: 70px;
    }
    .day {
        height: 80px;
        line-height: 80px;
        font-size: 1.5em;
    }

    #modalMessage > h2{
        font-size: 3em;
    }
    #modalMessage > p{
        font-size: 2.5em;
    }
    .carte{
        font-size: 3em;
    }
    .partie-title{
        font-size: 2.5rem;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .partie-tarif{
        font-size: 2.5rem;
    }

    .happy{
        font-size:1.5em;
    }
    input{
        font-size: 2.5rem;
    }

    .button{
        font-size: 3rem;
        height: 100px;
    }
    .loader_full {
            
            font-size: 3rem;
        }

        .pasassez{
            width:90%;
        }
}

@media print {
  .no-print {
    display: none !important;
  }
}