*,
*::after,
*::before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

/* polices */
@font-face {
    font-family: 'BowlbyOne';
    src: url('fonts/BowlbyOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Medium.otf') format('woff');
}

@font-face {
    font-family: 'Sigmar';
    src: url('fonts/Sigmar-Regular.ttf') format('truetype');
}


body{
    margin: 0;
    padding:0;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(4px);
    z-index: -1;
  }


  nav {
    display: flex;
    align-items: center; 
    justify-content: center;
    color: white;
    gap: 10px; 
    font-family:'Satoshi', sans-serif;
    margin-top: 10px;
}

nav a, .separator {
    text-decoration: none; 
    color: white;
    font-size: 1.2rem;
}

nav a:hover{
    text-decoration: underline;
}


/* ------------------- Structure des 2 colonnes -------------- */

.container{
    display: flex;
    height: 100vh;
    justify-content: space-between;
    padding: 20px;
}

.left{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:20px;
    text-align: center;
    border: 1px solid white;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.left h2{
    font-family: 'Sigmar', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.boutons{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.boutons .deconexion { 
    font-family: 'Satoshi', sans-serif;
    text-decoration: none;
    color: white;

}

.boutons .deconexion:hover{ 
    text-decoration: underline;

}

.boutons .btn{
    text-decoration: none;
    font-family: 'Sigmar', sans-serif;
    padding: 10px 20px;
    background-color: rgb(73, 28, 112);
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover{
    background-color:rgb(109, 42, 168) ;
} 

.right-content{
    width: 100%;
    text-align: center;
}

.right-content h1, .right-content h2 {
color: white;
text-align: center;
margin-bottom: 5px;
}

.right{
    flex: 2;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    flex-direction: column;
    border: 1px solid white;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.right h1, .right h2{
    font-family: 'BowlbyOne', sans-serif;
    color: white;
    width: 100%;
    padding: 10px;
    margin: 0 0 20px;
    text-align: center;
}


/* ------------------------- index.php -------------------------*/


.chat-container{
    width: 100%;    
    margin-top: 20px; 
    padding: 20px;
    border: 1.5px solid white;
    border-color: white;
    border-radius: 5px;
    background-color: rgb(0, 0, 0);
    margin-top: 20px;
    color: white;
}

.chat-container h2{
    font-family: 'Sigmar', sans-serif;
    text-align: center;
    font-size: 1.9rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.messages{
    height: 300px; 
    overflow-y: scroll;
    padding: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgb(0, 0, 0);
    border-radius: 5px;
    border: 1px solid white;
    color: white;
}

.message{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-family: 'Satoshi', sans-serif;
    color: white;

}

.message img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid white;
}

.form-container{
    display: flex;
    gap: 10px;
    font-family: 'Satoshi', sans-serif;
    border: 1px solid white;
    border-radius: 4px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid white;
    border-radius: 4px;
    background-color: rgb(20, 20, 20);
    color: white;
}

button{
    padding: 5px 10px;
}

.message img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}


.message strong {
    color: black;
    font-family: 'Satoshi', sans-serif;
    font-weight: bold;
}

.message span {
    color: black;
    font-style: italic;
    font-family: 'Satoshi', sans-serif;
    margin-left: 5px;
}

.incorect{
    font-family: 'Satoshi', sans-serif;
}

/* -------------------- login.php ------------------------- */

.connexion {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.127);
    border: 1px solid white;
    border-radius: 10px; 
    padding: 30px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.connexion h1 {
    font-family: 'BowlbyOne', sans-serif;
    color: white;
    margin-bottom: 20px;
    margin-top: 5px;
}


.form-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-login label {
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    text-align: left;
}

.form-login input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px; 
    background-color: rgb(0, 0, 0); 
    color: white;
}


.form-login button {
    padding: 12px;
    font-size: 1rem;
    background-color: rgb(73, 28, 112);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-login button:hover {
    background-color: rgb(109, 42, 168);
}

/* ------------- inscription.php ---------------*/

.inscription {
    margin-top: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.127);
    border: 1px solid white;
    border-radius: 10px; 
    padding: 15px;
    text-align: center;
    height: 90vh;
    width: 400px;
}

.inscription h1 {
    font-family: 'BowlbyOne', sans-serif;
    color: white;
    margin-bottom: 20px; 
    margin-top: 5px;
}


.form-insc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-insc label {
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    text-align: left;
}

.form-insc input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px; 
    background-color: rgb(0, 0, 0); 
    color: white;
}


.form-insc button {
    padding: 12px;
    font-size: 1rem;
    background-color: rgb(73, 28, 112);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.form-insc button:hover {
    background-color: rgb(109, 42, 168);
}


/* --------------- masqué le chat -------------*/
form .toggle_chat{
   background-color:rgb(73, 28, 112);
   color: white;
   cursor: pointer;
   font-family: 'Sigmar', sans-serif;
   border-radius: 5px;
   border: none;
   padding: 5px 10px;

}

form .toggle_chat:hover{
   background-color: rgb(109, 42, 168);
}

