@font-face {
  font-family: 'OpenSans';
  src: url('include/OpenSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sports World';
  src: url('include/Sports World.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  height: 100%;
  margin: 2px;
  padding: 0;
}

h1 {
    font-size: 45px;
    color: white;
    font-weight: 300;
    font-family: 'Sports World';
}

header,nav {
    position:relative;
    display:flex ;
    flex-direction: row;
    background-color: #6e0b14;
    justify-content: space-around;
    align-items: center;
    height: 120px;
    border-radius: 5px;
}

.navi {
  position: relative;       /* pour ::after */
  display: inline-flex;     /* reste en flex pour le texte centré */
  text-decoration: none;
  color: white;
}

/* Mise en forme des onglets de navigation */
.navi,.navi:visited {
    font-size: 16px;
    font-weight: 300;
    font-family: 'Sports World';
    text-decoration: none;
    color: white;
}
.navi:active {
    opacity: 1;
}

.navi::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;              /* distance du texte */
  height: 4px;               /* épaisseur du soulignement */
  width: 100%;               /* largeur totale pour transform scale */
  background-color: cyan;    /* couleur du soulignement */
  
  transform: scaleX(0);      /* commence caché */
  transform-origin: left;    
  transition: transform 0.3s ease;
}
.navi:hover::after {
  transform: scaleX(1);
}

.navi:hover{
    text-decoration-thickness: 3px;
    text-shadow: 5px 5px 1px black;
    color:cyan;
}

.navi.self {
    color: #b4dadb;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* BACKGROUND */
body::before {
  content: "";
  position: fixed;   /* reste au scroll */
  inset: 0;

  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("images/Background_GUAI2025.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(2px);
  transform: scale(1.05); /* évite les bords */
  z-index: -1;
}

main {
    padding: 50px;
    display:flex;
    flex-direction: column;
    font-family: 'Sports World';
    gap: 25px;
    flex: 1;
    color:white;
}

.title{
    padding:30px;
}

.title h2{
    text-align: center;
    font-size: 30px;
    color: white;
    -webkit-text-stroke: 0.5px #800020;
    font-weight:bold;
    margin: 0 auto 20px auto;
}

.title p {
    text-align: center;
    margin:auto;
}

footer {
    background-color: #6e0b14;
    text-align: center;
    color:white;
    padding:5px;
    border-radius: 5px;
    margin-top:auto;
    margin-bottom: 10px;
}

.photo-insta:hover {
    opacity: 0.8;
    fill:white;
}

.elem1H{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
}

.elem1H div{
    border-radius: 12px;
    color: white;
    background: linear-gradient(270deg, gray, #6e0b14);
    text-align:center;
    width:25%;
    padding: 10px;
    border-left: 4px white solid;
    box-shadow: 2px 3px 0px rgba(0,0,0,0.2);
    background-size: 600% 600%;
    transition: all 0.4s ease;
}
.elem1H div:hover {
    animation: gradientMove 4s ease infinite;
    border-left: 8px white solid;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.log_section{
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.log_form{
    width:40%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #6e0b14;
    text-align: center;
    border-radius: 15px;
    box-shadow: 2px 3px 0px rgba(0,0,0,0.2);
    color:white;
}

.form-group {
  display: flex;
  flex-direction: column; /* empile label et input */
  align-items: center; /* aligne à gauche */
  margin-bottom: 15px;     /* espace entre les champs */
}

.form-label{
    font-size: 22px;
}

input{
    width: auto;              /* occupe toute la largeur disponible */
    padding: 10px;            /* espace interne */
    margin: 8px 0;            /* espace autour */
    border: 1px solid #ccc;   /* contour gris */
    border-radius: 5px;       /* coins arrondis */
    font-size: 16px;          /* taille du texte */
    box-sizing: border-box;   /* padding inclus dans la largeur */
}

input:focus {
  border-color: #6e0b14;    /* change la couleur au focus */
  outline: none;            /* supprime le contour bleu par défaut */
  box-shadow: 0 0 5px rgba(110, 11, 20, 0.5); /* effet lumineux */
}

button {
  color: #6e0b14;   /* couleur de texte*/
  background-color: white;                /* couleur de fond */
  border: none;                /* pas de bordure */
  padding: 12px 20px;          /* espace interne */
  border-radius: 8px;          /* coins arrondis */
  font-size: 16px;             /* taille du texte */
  font-weight: bold;           /* texte en gras */
  cursor: pointer;             /* curseur "main" */
  transition: background 0.3s, transform 0.2s; /* animation douce */
}

button:hover {
  background-color: gray;   /* couleur plus claire au survol */
  transform: translateY(-2px); /* petit effet de soulèvement */
}

button:active {
  background-color: white;   /* couleur plus sombre au clic */
  transform: translateY(0);    /* revient en place */
}

button:disabled {
  background-color: #ccc;      /* gris quand désactivé */
  cursor: not-allowed;
}

.pinned-container {
  position: absolute;
  top: 130px; /* sous ton header de 120px */
  right: 10px;

  width: 320px;
  background-color: #6e0b14;
  color: white;
  border-radius: 10px;
  box-shadow: 3px 4px 10px rgba(0,0,0,0.4);
  font-family: 'Sports World';
  z-index: 1000;
}

/* En-tête */
.pinned-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #6e0b14, #8c1420);
  border-left: 5px solid #4dd0e1; /* cyan */ 
}

/* Bouton réduire */
.toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Contenu */
.pinned-content {
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding:7px;
}

/* Messages */
.msg {
  background-color: rgba(255,255,255,0.15);
  border-radius: 5px;
  padding:10px;
}

.title_msg{
  color: cyan;
  font-size: 14px;
}

.message_msg{
  color: white;
  font-size: 11px;
}

.pinned-content.collapsed {
  display: none;
}
