.Bj { background-color:#8FD0EC}
.Br { background-color:red}
.Bb{ background-color:#57C5D8;}
.Bv{ background-color:#17C1AF;}
.By{ background-color:yellow}
.Br{ background-color:red}
.Bg{ background-color:grey;}
.Bw{ background-color:black;}

.modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.show { display: flex; }

/* ------------------------- Flip-cardes  ------------------------- */

.cards-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.cards-inner.flipped { transform: rotateY(180deg); }

.cards-front, .cards-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
}

.cards-back { transform: rotateY(180deg); }

.cards-inner, .cards-front, .cards-back {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.cards-front, .cards-back {
  backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ------------------------- Modal Modele ------------------------- */
.ModHello,
.MsgByBy,
.MsgExit,
.Msgcard
{
  position: absolute;
  perspective: 1000px; /* Pour l'effet de flip */
  padding:0;
}

.ModLogin, .ModPseudo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  box-sizing: border-box;
  perspective: 1000px;
}


.ModLogin.flipped { width: 30%; height: 62%; }

.ModExit,
.ModHello{ min-height: 30vh; margin-left:40%; margin-top:10% }
.ModPseudo { width: 20%; height: auto; }
.ModLogin { width: 30vw; height: 300px; }
.ModExit{ width: 20%;}
.ModHello{ width: 30%;}

.HelloBody
{
    padding:2%;
    width:100;
    height:auto;
}
.HelloBody img { max-width:2rem; }
.HelloBody p{ text-align:center; }

.ModHello,
.MsgByBy,
.Msgcard,
.ModLogin,
.ModPseudo,
.clearLastButton
{
    -webkit-box-shadow: inset 2.5px 6.5px 32px -6.5px #dddddd;
    -moz-box-shadow: inset 2.5px 6.5px 32px -6.5px #dddddd;
    box-shadow: inset 2.5px 6.5px 32px -6.5px #dddddd;
    background: #159982;
    background: #1c6e5f;
    background: #052721;
    color:white;
}

.ModalContainer { width:100%; height:100%; }

/*************   Structure pour cardes **************/ 

.cardes-structure {
  display: flex;
  flex-direction: column;
  height: 100%; /* Remplit tout la hauteur */
  width: 100%;
  box-sizing: border-box;
  margin-top:20px ! important;
}

.cardes-header, .cardes-footer {
  flex: 0 0 10%;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.cardes-header { justify-content: space-between; }
.cardes-footer { justify-content: space-around; }

.cardes-body {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 1rem;
}
.cardes-mail { max-width:80%; margin-left:10%; margin-top:1rem;}

/*
.cadres-clavier{ max-width:80%; margin-left:15%; }
.cadres-efface{ max-width:13%;  margin-top:-1rem;}
.cadres-efface imag{ max-width:13%;  margin-top:-1rem;}
*/


/* ------------------------- Bouton ------------------------- */

.card-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: #333;
  color: #fff;
  cursor: pointer;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #4a4a4a;
  color: white;
  cursor: pointer;
}

.Butons {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  color: #aba;
  color: black;
  cursor: pointer;
}

.Butons:hover
{
    color:green;
    -webkit-box-shadow:
    0px 16px 16px 0px;
    box-shadow:
    0px 16px 16px 0px;
}

.close-btn 
{
    left:100% ! important;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #444;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
}

.BtnValidatePass{min-width:80%; margin-left:20%; margin-top:-5%; }

/*************   Clavier **************/ 
.Cout{
    max-width: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left:10%;
}

.Clavier{
    max-width: 50% ! important;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 13px;
    margin-left: 25%; /* Espace entre les conteneurs */
    margin-top: -1rem; /* Espace entre les conteneurs */
}

.ClavierIn{  // Clavier in put
    position: relative; /* Position relative pour positionner le bouton */
    width: 20px; /* RÃ©duire la taille du gros rond */
    height: 20px; /* RÃ©duire la taille du gros rond */
    border-radius: 50%; /* Rendre le div rond */
    background-color: #FFFFFF; /* Couleur de fond blanc pour les gros ronds */
    color: #696969; /* Couleur de texte gris foncÃ© */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px; /* Ajuster la taille de la police */
    cursor: pointer; /* Changer le curseur pour indiquer que c'est cliquable */
    margin-left:-1vw;
}

.ChoixIn{
    width: 20px; /* Taille rÃ©duite pour les petits ronds */
    height: 20px; /* Taille rÃ©duite pour les petits ronds */
    background-color: #FFFFFF; /* Couleur de fond blanc pour les petits ronds */
    margin: 5px; /* Espace entre les ronds */
    cursor: pointer; /* Changer le curseur pour indiquer que c'est cliquable */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Rendre le petit div rond */
    color: #696969; /* Couleur de texte gris foncÃ© */
}

/*************   Animation **************/ 

@keyframes flyAway {
  0% { transform: translateY(0) rotateY(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotateY(90deg); opacity: 0; }
}

@keyframes flyIn {
  0% { transform: translateY(200px) rotateY(-90deg); opacity: 0; }
  100% { transform: translateY(0) rotateY(0deg); opacity: 1; }
}

.flyOut { animation: flyAway 2s forwards; }
.flyIn { animation: flyIn 2s forwards; }

@keyframes grow {
    0% { opacity: 0; transform: scale(0.3); rotate: 1 -0.5 2 380deg; }
    100% { opacity: 1; transform: scale(1); }
}
.grow { animation: grow .9s forwards; }

@keyframes shrink {
  0% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.3) rotate(380deg); }
}
.shrink { animation: shrink 0.9s forwards; }

/*************   font & size  **************/ 

.cardes-structure,
{ 
font-family: 'Instrument'; 
font-size: 1rem;
}

.pointer { cursor: pointer; }
.pointer:hover { color: yellow }

.cadres-clavier{ max-width:70%; margin-left:20%; }
.cadres-efface{ width:23%;  margin-top:-2rem;}
.clearLastButton {
  max-width: 3rem;
  max-height: 2rem;
  font-size: 1rem;
  border-radius: 30rem;
  color:white;
}

.cadres-efface : hover, 
.clearLastButton:hover {
    color:red;
    -webkit-box-shadow:
    0px 16px 16px 0px;
    box-shadow:
    0px 16px 16px 0px;
}

.Ko { color:red ! imporetant; text-align:center }
.Ok { color:grey; }
.Off { display:none }
.On { display:block; }

.Hide { display: none; opacity: 0; }
.Visible { opacity: 1; transition: opacity 0.3s ease; }

.icon-preview,
.imgRond
{
  -moz-border-radius:50px;
  -webkit-border-radius:50px;
  border-radius:50px;
  max-width:2.3rem;
  max-height:2.3rem;
}

/*********   Mail Inputs ***********/
.block-mail .input-container {
width: 80%;
height: 100%;
position: relative;
margin-left:10%;
}

.block-mail input[type="email"] {
width: 100%;
height: 100%;
padding: 12px 12px 12px 40px;
box-sizing: border-box;
font-size: 16px;
border: 1px solid #d0d5db;
border-radius: 9px;
background: #fff;
transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.block-mail .icon {
position: absolute;
left: 12px;
top: 50%;
width: 18px;
height: 18px;
transform: translateY(-50%);
background-image: url('/Inc/Img/Inf/mail.png');
background-size: contain;
background-repeat: no-repeat;
opacity: 0.8;
transition: transform 0.25s ease, opacity 0.25s ease;
}

.block-mail input[type="email"]::placeholder {
color: #9ca3af;
opacity: 0.9;
}

.block-mail input[type="email"]:focus {
outline: none;
border-color: #4f46e5;
box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}

.block-mail input[type="email"]:focus + .icon {
transform: translateY(-50%) rotate(12deg);
opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
.block-mail .icon, .block-mail input { transition: none; }
}

