/******************************************************************************************
***********************************      global ******************************************* 
******************************************************************************************/
* { box-sizing: border-box !important; color:white}
a:any-link { text-decoration:none; color:white;
  cursor: pointer;
  font-size: 0.9em;
}
a:hover { color: yellow;}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  color:white
}

.Page { display: grid; height: 100vh; width: 100vw; grid-template-rows: 45% 7% 1fr 31%; }
.Header { overflow: hidden; display: block; z-index:0}
.Header img { width: 100%; height: 100%; display: block; }
.Header ul { list-style: none; margin: 0; padding: 0; }
.Header li { display: inline-block; margin-right: 1vw; }


.Footer { display: grid; grid-template-columns: repeat(3, 1fr); min-height:58vh ! important}
.Footer .item { display: flex; padding:9%; height:100% ! important; }
.Footer ul { list-style: none; /* Supprime les puces */ padding: 0; margin: 0; }
.Footer li { margin-bottom: 8px; /* Espacement entre les éléments */ }

.item { display: flex}

.Screen { display: flex; padding:2%; background-color:#495C59}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap')
:root {
  --PpSsGrp: 'Playfair Display', serif;
  --PpSsFont: 13px;
}

.PpSs {
  font-family: var(--PpSsGrp, Arial, sans-serif);
  font-size: var(--PpSsFont, 15px);
}

.PpSs p { font-size: 11px; }
.PpSs .title { font-size: 17px; text-align: center; }
.PpSs .pc { margin-left: 2rem; }

/******************************************************************************************
***********************************      Menu    ******************************************* 
******************************************************************************************/
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 99%;
  height: 3rem;
  padding: 0 10px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 999;
}

  .Menu { flex: 1; }

  .Menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* pour petit écran */
  }

  .Menu li { position: relative; }
  .Menu > ul > li { margin: 0 15px; }
  .Menu li a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    border-radius: 4px;
    min-width: 60px !important;
    color: white;
  }
  .Menu li a:hover {
    transform: scale(.80);
    color: yellow !important;
  }

  /* Sous-menu */
  .Menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    padding: 0;
  }
  .Menu li:hover > ul {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .Menu li ul li { width: 100%; }
  .Menu li ul li a {
    padding: 12px 16px;
    width: 80%;
    display: block;
  }

  /* Partie droite : avatar et drapeau */
  .right-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .UserAvatar {
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor:pointer;
    margin-right:2rem ! important
  }

  .UserAvatar img {
    max-width: 2.3rem;
    max-height: 2.3rem;
    border-radius: 50%;
    margin-right:0.31rem;
  }
  /* Sous-menu avatar */
  .avatar-submenu {
    display: none;
    position: absolute;
    top: 90%;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    min-width: 120px;
    z-index: 1000;
  }
  .avatar-submenu li { width: 100%; }
  .avatar-submenu li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
  }
  .avatar-submenu li a:hover { color: yellow; }
  .UserAvatar:hover .avatar-submenu { display: block; }

  .LngDrp {
    max-width: 30px;
    max-height: 20px;
  }
  .LngDrp img {
    max-width: 100%;
    max-height: 100%;
  }

  @media(max-width: 800px) {
    .menu-container {
      flex-direction: column;
      height: auto;
    }
    .Menu ul { flex-direction: column; }
    .Menu li { margin: 5px 0; }

    .UserAvatar img {
      max-width: 1.8rem;
      max-height: 1.8rem;
    }
    .LngDrp {
      max-width: 25px;
      max-height: 15px;
    }
  }

/***********************************  Font and  Colors *******************************************/

.Off { display:none }
.On  { display:block; }
.Ko , .Ko p { color:red ; text-align:center }
.Ok , .Ok p { color:white; text-align:center }

.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;}

.Cj{ color:#8FD0EC}
.Cb{ color:black ! important;}
.Cr{ color:red ! important}
.Cg{ color:grey;}
.Co{ color:#FFD700;}
.Cv{ color:green ! important;}
.Cw{ color:white ! important}
.Cy{ color:yellow ! important}

body,
.Footer ,
#back2top,
.menu-container,
.Menu li ul li,
.Menu li a:hover ,
.Menu li ul li,
.avatar-submenu ,
.avatar-submenu li a:hover
{
    -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-color: black;
    color: white;
}   

.ShadowIn{ box-shadow: rgba(177, 229, 179, 0.8) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset; }

/***********************************  media *******************************************/

@media (min-width: 1366px) and (max-width: 1366px) and (min-height: 656px) and (max-height: 656px) {
  *{color:white};
}

@media (min-width: 1365px) and (max-width: 1365px) and (min-height: 2557px) and (max-height: 2557px) {
  *{color:red};
}

@media (max-width: 480px) {
  *{ font-size: 9px ! important; }

.Page { display: grid; max-width: 98vw; grid-template-rows: 17vh 5% 1fr 15vh; }
   .menu-container,
  .Footer,
  .Header, 
  .Scrren { max-width: 100% ! important }
   .menu-container{ overflow-x: hidden;}
  .Scrren { margin-top:-2vh}

}

.HeaderTxt {
  position: absolute !important;
  top: 1vh !important;
  left: 80vw !important;
  font-size: 1rem !important;
  color: white !important;
  z-index: 2 !important;
}

/***********************************   back2top *******************************************/
#back2top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }
  #back2top.show {
    opacity: 1;
    pointer-events: auto;
  }
/****************************************************************************
*****************************    Modal and Flip (V1) ************************ 
****************************************************************************/

.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;
}
._msg,
.modal.show { display: block; }

/* ------------------------- 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 ------------------------- */

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

.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;}

/* ------------------------- 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; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    background-color: #FFFFFF; 
    color: #696969; 
    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;
    color:black ! important;
}

.ChoixIn{
    width: 20px; 
    height: 20px; 
    background-color: #FFFFFF;
    margin: 5px; /* Espace entre les ronds */
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    color: #696969;
    color:black ! important;
}

/*************   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;
}

.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;
}

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

/*********   Mail Inputs ***********/

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

/***********   New Modales **************/

.modHello{ width: 30%; top: 15%; left: 50%; }
.modExit{ min-width: 20%; top: 15%; left: 50%; }

.modLogin { width: 30vw; height: 300px; top: 15%; left: 50%; }
.modLogin.flipped { width: 30%; height: 330px; }

.modPasswd { width: 30%; min-height: 42vh; top: 15%; left: 50%;}
.modPseudo { width: 30%; min-height: 42vh; top: 15%; left: 50%;}

.modAvatar { width: 70%; height: 62%; }
.modAvatar.flipped { width: 30%; height: 52%; }

.modLogin, .modHello, .modExit, .modPasswd, .modPseudo , .modAvatar
{
  position: absolute;
  color: white; 
  transform: translateX(-50%);
  color: #fff;
  box-sizing: border-box;
  perspective: 1000px;
}

.modHello, .msgByBy, .msgcard, .modExit
{
  position: absolute;
  perspective: 1000px; /* Pour l'effet de flip */
  padding:0;
}

.clearLastButton,
.cardes
{
    -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;
}
/************   Gadgets *************/

.Hide { display: none; opacity: 0; }
.Visible { opacity: 1; transition: opacity 0.3s ease; }
.PhpLog { margin:3%; max-width:80% }

.Ko , .Ko p { color:red ; text-align:center }
.Ok , .Ok p { color:grey; }

.Off { display:none }
.On { display:block; }

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

.Err2User {  max-width:30%; margin-left:33%}

.modAvatar { width: 50%; height:70vh ; top: 15%; left: 53%;   }

/************************   Input génerique **************************
                    a amelioer pour d'autres besoins 
**********************************************************************/

.GenInput {
  width: 100%;
  margin-top: 10px;
}
.GenInput .input-group {
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.GenInput .input-icon {
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f1f1;
  border-radius: 4px 0 0 4px;
}
.GenInput .input-icon i {
  font-size: 1.2em;
  color: #17a2b8;
  pointer-events: none;
}
.GenInput input[type="email"] {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 0 4px 4px 0;
  font-family: Arial, sans-serif;
  font-size: 1em;
  outline: none;
  color: black! important;
}
.GenInput .input-group:focus-within {
  border-color: #17a2b8;
  box-shadow: 0 0 5px rgba(23, 162, 184, 0.5);
}

