/* Variables globales */
:root {
    --main-bg: #383131;
    --main-text: #ffffff;
    --main-font: Tahoma, sans-serif;
    --highlight-bg: #ffffff;
    --highlight-text: #383131;
    --page-bg: #DBDDF8;
}

/* Styles généraux */
html, body {
    height: 100%;           /* occupe toute la hauteur */
    margin: 0;              /* enlève les marges par défaut */
	font-family: var(--main-font);
    overflow-x: hidden;
    text-align: center;
    background-color: var(--page-bg);
	scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* pousse le footer vers le bas */
}

form {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  width: 50%; /* largeur du contenu seulement */
  text-align: center;
  display: flex;
  flex-direction: column; /* empile les inputs verticalement */
  align-items: center;    /* centre horizontalement */
}

/* Footer */
.main-footer {
  background-color: #383131;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

body > *:nth-last-child(2) {
  flex: 1; /* pousse le footer en bas */
}

h2 {
    font-size: 28px;
    margin: 30px 0 15px;
}
h3 {
    font-size: 24px;
    margin: 25px 0 12px;
}
h4 {
    font-size: 20px;
    margin: 20px 0 10px;
}

p {
    margin: 5px 0;
    line-height: 1.6;
}

.btn {
    display: inline-block;   /* permet de donner largeur/hauteur */
    padding: 10px 20px;
    color: white;
    text-decoration: none;   /* enlève le soulignement */
    border-radius: 8px;      /* arrondi */
    font-weight: bold;
    transition: background 0.3s;
    outline: none;
    box-shadow: none;
    border: none;
    background-color: #007bff; /* couleur par défaut */
    margin-right: 10px;        /* espace à droite entre boutons */
}

.btn:last-child {
    margin-right: 0;           /* supprime l’espace après le dernier bouton */
}

/* Bouton déconnexion */
.btn-logout {
	background-color: #e74c3c; /* rouge */
}
.btn-logout:hover {
	background-color: #c0392b;
}

.btn:hover {
	cursor: pointer;
}
		
/* Bandeau de navigation */
.bandeau1 {
    width: 100%;
    background-color: var(--main-bg);
    color: var(--main-text);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 5px 0;
}

.bandeau1 .boutonMenu {
    font-family: var(--main-font);
    background-color: var(--main-bg);
    color: var(--main-text);
    padding: 10px 15px;
    margin: 5px; 
    border: 2px solid var(--main-bg); 
    border-radius: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease; 
    display: inline-block;
    white-space: nowrap; 
}

.boutonMenu:hover,
.boutonMenu:focus {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
    cursor: pointer;
    outline: none;
}

.boutonMenu strong {
    font-weight: bold;
}

.bandeau1 form {
    display: inline; /* ou inline-block */
    margin: 0;       /* pour éviter les décalages */
    padding: 0;
}


/* Conteneur principal */
.container_select {
    max-width: 800px;
    margin: 80px auto 0; 
    text-align: left;
    padding: 0 20px;
}

/* Détails et listes */
.summaryclass {
    font-family: var(--main-font);
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.summaryclass:hover {
    text-decoration: underline;
}

.liste1 {
    padding: 0;
    margin-top: 10px;
}

.liste1 li {
    text-align: center;
    display: inline-block;
    margin: 0 10px;
}

.center {
    text-align: center;
}

.input-text {
  width: 80%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box; /* évite que padding casse la largeur */
  margin: 0 auto; /* centre horizontalement */
  max-width: 90%; /* garde un peu de flexibilité sur mobile */
  margin-bottom: 15px;  
}

.select-text {
  width: 80%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 auto 15px auto; /* combine centrage et margin-bottom */
  box-sizing: border-box;
  max-width: 90%;
  background-color: white;
  color: #333;
  appearance: none; /* supprime le style natif du navigateur */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='10' viewBox='0 0 10 10' width='10' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 10,0 5,5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}


.valider{
	background-color: #00C400 ;
	color: #000000;
	border: 1px solid #ACE1AF;
	border-radius: 5px;
	padding: 5px 10px;
	margin: 10px 5px;
	font-size: 1rem;
	margin-left: 150px;
	margin: 0 auto;        /* centre horizontalement */
	text-decoration: none;
	cursor : pointer;
}


/* AJOUT INPUT TYPE PASSWORD */
.password-wrapper {
position: relative;
width: 100%;
max-width: 300px;
margin-bottom: 15px;
}

.password-wrapper input {
width: 100%;
padding: 10px 44px 10px 12px; /* padding-right agrandi pour laisser la place à l’icône */
font-size: 16px;
border-radius: 8px;
border: 1px solid #ccc;
color: var(--text);
box-sizing: border-box;
}

.password-wrapper button {
  position: absolute;
  top: 50%;                 /* place au milieu vertical */
  right: 10px;              /* espace avec le bord droit */
  transform: translateY(-50%); /* corrige le décalage vertical */
  
  width: 40px;              /* zone cliquable fixe */
  height: 40px;             /* zone cliquable carrée */
  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;          /* taille de l’emoji */
  color: var(--text);
  padding: 0;
}



.password-wrapper button:hover {
opacity: 0.8;
}
/* FIN AJOUT TYPE PASSWORD */


ul {
    list-style-type: none;
    padding: 0;
}
li {
    margin-bottom: 10px;
}

section {
    margin-bottom: 40px; 
}

hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 40px 0;
}

/* MEDIA QUERIES pour la Responsivité */
@media (max-width: 768px) {
    .bandeau1 {
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 10px 5px;
		position: relative; /* nécessaire pour le z-index */
    }

    .bandeau1 .boutonMenu,
    .bandeau1 select {
        display: block; 
        margin: 5px auto; 
        width: 80%; 
    }

    .container_select {
        margin: 20px auto;
        padding: 0 10px;
    }

    .liste1 li {
        display: block;
        margin: 5px 0;
    }
}
