/* RESET DE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Istok Web', sans-serif;
}

/* **** */
/* BODY */
/* **** */

body {
  /* background: #E2F4FF url('img/background-pattern.jpg') no-repeat center center fixed;
  background-size: cover; */
  background-color: #E2F4FF;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  position: relative; /* Important pour que ::before reste attaché à body */
  overflow-x: auto;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('img/background-pattern.jpg') no-repeat center/cover;
  opacity: 0.3;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* **** */
/* **** */
/* **** */



/* ******** */
/* LANGUAGE */
/* ******** */

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  /* border: 1px solid #ccc; */
  border-radius: 20px; /* Arrondis extérieurs */
  overflow: hidden; /* Coupe les coins intérieurs */
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
}

.language-switch button {
  background-color: white;
  color: #2D82B7;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.language-switch button:first-child {
  border-right: 3px solid #e7f3fb;
}

.language-switch button:hover {
  background-color: #e2f4ff;
}

/* ******** */
/* ******** */
/* ******** */



/* ***** */
/* INDEX */
/* ***** */


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;	
  max-width: 1000px;	
  width: 90%;	
}

.new-user-card {
  position: relative; /* Contexte pour le positionnement absolu de l'image */
  background-color: white;
  padding: 2rem;
  padding-top: 70px; /* Espace pour que le texte ne soit pas sous l'image */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 1rem;
  margin-top: 60px; /* Espace pour que l'image ne sorte pas de l'écran en haut */
  max-width: 600px;
  width: 100%;
  border: 0.2px solid #2D82B7;
}

.new-user-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Image parfaitement ronde */
  border: 1px solid white; /* Petite bordure blanche comme dans le design */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  
  /* Positionnement au-dessus de la carte */
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre horizontalement et déplace vers le haut */
}


.button {
  display: inline-block;
  background-color: #2d85c7;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.existing-user {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 1rem;
  max-width: 600px;
  width: 100%;
  border: 0.2px solid #2D82B7;
}

.existing-user form input {
  width: 100%;
  padding: 10px;
  margin: 1rem 0;
  border: 0.2px solid #FFBC42;
  border-radius: 8px;
}

.existing-user form button {
  width: 40%;
  background-color: #2D82B7;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.existing-user form button:hover , .new-user-card .button:hover {
  color:#2D82B7;
  background-color: white;
  box-shadow: 0 0 0 1px #2D82B7,
                inset 0 0 0 1px #fff;
}

/* ***** */
/* ***** */
/* ***** */


/* ***** */
/* ADMIN */
/* ***** */

.admin-link {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 0.8rem;
  color: #444;
  text-decoration: underline;
}

.avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;           /* ✅ Rend l'image parfaitement ronde */
  border: 1px solid white; /* Petite bordure blanche comme dans le design */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centre horizontalement et déplace vers le haut */

}

.admin-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  padding-top: 80px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  margin: 1rem;
  margin-top: 16vh;
  max-width: 600px;
  width: 100%;
  border: 0.2px solid #2D82B7;
}


.admin-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.admin-form label {
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.95rem;
}

.admin-form input {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.submit-btn {
  width: 50%;
  padding: 12px;
  background-color: #2d85c7;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  color:#2D82B7;
  background-color: white;
  box-shadow: 0 0 0 1px #2D82B7,
                inset 0 0 0 1px #fff;
}

/* ***** */
/* ***** */
/* ***** */



/* *********** */
/* INSCRIPTION */
/* *********** */

.form-wrapper {
  position: relative; /* Cette propriété est CRUCIALE. Elle permet de positionner l'icône absolument par rapport à cette boîte. Elle devrait déjà être présente dans votre CSS. */
  /* ... le reste de vos styles pour .form-wrapper ... */
  display: flex;
  flex-direction: row;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 7vh;
  max-width: 1260px;
  width: auto;
  border: 0.1px solid #2D82B7;
}

.illustration {
  
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  overflow: hidden;
  align-items: stretch;
  flex:1;
  position:relative;
  
  min-width:468px;
}

.illustration img {
  height: auto;
}

      /* ----------------*/ 
      /*     SLIDESHOW   */
      /* ----------------*/

.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left:0;
  width: 100%;
  height: 100%;
  
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

      /* ----------------*/
      /* ----------------*/

      /* ----------------*/ 
      /* AJOUT DE FLÈCHE */
      /* ----------------*/


      .corner-arrow-circle {
        position: absolute;
        top: 10px;   /* Déplace le cercle de moitié de sa hauteur vers le haut, pour le centrer sur le coin */
        left: 11px; /* Déplace le cercle de moitié de sa largeur vers la droite, pour le centrer sur le coin */
        width: 50px;  /* Diamètre du cercle */
        height: 50px; /* Diamètre du cercle */
        background-color: #2D82B7; /* Couleur bleue du cercle */
        border-radius: 50%; /* Rend l'élément parfaitement rond */
        border: 0.1px solid white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Ombre douce pour le faire ressortir */
        z-index: 10; /* Assure que le cercle est au-dessus des autres éléments */

        display: flex;        /* Utilise Flexbox pour centrer l'icône SVG à l'intérieur */
        align-items: center;  /* Centre verticalement */
        justify-content: center; /* Centre horizontalement */
        text-decoration: none; /* Assure qu'il n'y a pas de soulignement (même si pas de texte) */
        cursor: pointer;       /* Indique visuellement que l'élément est cliquable */
      }

      .corner-arrow-circle .arrow-icon {
        width: 24px;  /* Taille de l'icône de la flèche */
        height: 24px;
        color: white; /* Couleur de la flèche (héritée par 'currentColor' dans le SVG) */
        transform: rotate(180deg); /* Fait pivoter la flèche pour qu'elle pointe vers le haut-droit */
      }

      .corner-arrow-circle:hover {
        background-color: white;
        border: 0.1px solid #2D82B7;
        .arrow-icon {
          color: #2D82B7;
        }
      }


      /* RESPONSIVE pour l'icône (ajuster sa taille et position sur les petits écrans) */
      @media (max-width: 768px) {
        .corner-arrow-circle {
          top: 10px;   /* Ajuster la position pour les petits écrans */
          left: 10px;
          width: 30px;  /* Réduire la taille du cercle */
          height: 30px;
        }
        .corner-arrow-circle .arrow-icon {
          width: 16px;  /* Réduire la taille de la flèche */
          height: 16px;
        }
      }

/* ----------------*/
/* ----------------*/


      /* ----------------*/ 
      /*  AJOUT DU LOGO  */
      /* ----------------*/

      .logoCJE {
        position: absolute;
        bottom: 19px;   /* Déplace le cercle de moitié de sa hauteur vers le haut, pour le centrer sur le coin */
        left: 11px; /* Déplace le cercle de moitié de sa largeur vers la droite, pour le centrer sur le coin */
        max-width: auto;  /* Diamètre du cercle */
        max-height: 50px; /* Diamètre du cercle */
        z-index: 10;
      }

      .logo-container {
        position: absolute;
        bottom: 10px;
        left: 0;
        z-index: 10;
        width: 220px;
        height: 70px;
        background-color: rgba(0,0,0,0.5);
        border-radius: 0 5px 5px 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 0 40px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1); /* très discret */
      }


/* ----------------*/ 
/* CHAMPS DE TEXTE */
/* ----------------*/

.registration-form {
  flex: 1;
  padding: 3.5rem;
  margin: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem 2rem;
}

    .form-grid > div:nth-child(9), /* Âge */
    .form-grid > div:nth-child(10) /* Sexe */ {
    grid-column: span 1; /* Chaque élément prend 1 des 2 colonnes */
    }

.form-group {
  display: flex;
  flex-direction: column;
}


          .form-group-age-sex {
            display: flex;
            gap: 1.5rem;
          } 

          .form-group-age-sex label {
            font-weight: bold;
            margin-bottom: 6px;
          } 

          .form-group-age-sex input, .form-group-age-sex select {
              padding: 10px;
              border-radius: 6px;
              border: 1px solid #ffbc42;
          }

.form-group label {
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ffbc42;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.confirmation {
  margin-top: -1.3rem;
}

.confirmation label {
  font-size: 0.9rem;
}

.registration-form .button {
  margin-top: 1rem;
  background-color: #2d85c7;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.registration-form .button:hover  {
  color:#2D82B7;
  background-color: white;
  box-shadow: 0 0 0 1px #2D82B7,
                inset 0 0 0 1px #fff;
}

/* ----------------*/
/* ----------------*/


/* *********** */
/* *********** */
/* *********** */



/* ****** */
/* FOOTER */
/* ****** */

footer {
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
  color: #8A95B1;
  padding: 2rem 0;
}

footer a {
  color: #8A95B1;
}

.logoCJE-footer {
  max-width: 300px
}

/* ****** */
/* ****** */
/* ****** */

/* RESPONSIVE */
@media (max-width: 768px) {
  .form-wrapper {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .illustration {
    display: none;
  }

  .language-switch {
    top: 10px;
    right: 10px;
  }

  .admin-link {
    top: auto;
    bottom: 10px;
    left: 10px;
  }
}



