body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f9;
    color: #333;
    font-size: 1vw; /* Taille de police proportionnelle à la largeur de la fenêtre */
    text-align: center;
}

.user-info {
    /* right: 0; */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* z-index: 1000; */
    position: fixed !important;
    top: 0px;
    left: 0px;
}


.user-info span {
    margin-right: 10px;
}

.user-icon {
    width: 24px; /* Ajustez la taille de l'icône selon vos besoins */
    height: 24px;
	cursor: pointer;
}

.user-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

header {
    position: relative;
    background-color: #10365b; /* Couleur de fond */
    color: white;
    text-align: center;
    /* padding: 2em 0;*/
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(imgs/entete.jpg);
}

header img {
    height: 100px;
    margin-left: 20px;
    vertical-align: middle;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay noir semi-transparent */
    z-index: 1;
}

header h1, .header-buttons, .user-info {
    position: relative;
    z-index: 2;
}

.header-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1em;
	margin-left: 6em;
}

.header-buttons button {
    background-color: #ff5722; /* Couleur voyante */
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}


.header-buttons {
    display: flex;
    gap: 1em;
    margin-top: 10px;
}

.header-buttons button {
    background-color: #ff5722; /* Couleur voyante */
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.header-buttons button:hover {
    background-color: #e64a19; /* Couleur pour le hover */
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.header-content h1 {
    margin: 0;
}



menu {
    background-color: black;
    color: white;
    margin: 0px;
    padding: 1em;
    position: sticky;
    text-align: center;
    top: 0px;
    z-index: 1;
}

menu input[type="text"] {
    padding: 0.5em;
    margin-top: 0.5em;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    width: 80%; /* Ajustez la largeur selon vos besoins */
    max-width: 300px; /* Limite de largeur maximale */
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2em;
}

h2 {
    position: relative;
}


.member-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1em;
    max-width: 300px;
    flex: 1 1 300px;
    text-align: center;
    font-size: 1em;
    position: relative;
    padding-top: 100px;
    margin-top: 4em;
    margin-bottom: 4em;
    cursor: pointer; /* Ajouté pour indiquer que c'est cliquable */
}
	
.container {
	text-align:center;
}
.photo-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* S'assurer que l'image suit la forme ronde */
}

.member-info {
    padding: 1em;
}

.member-info h2 {
    margin-top: 1em;
    color: #10365b;
    font-size: 2em; /* Taille de police proportionnelle à la taille de police de base */
}

.member-info p {
    color: #666;
    font-size: 1em; /* Taille de police proportionnelle à la taille de police de base */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* Affiche un maximum de 4 lignes */
    overflow: hidden; /* Cache le texte débordant */
    text-overflow: ellipsis; /* Affiche des points de suspension à la fin */
}

.voir-plus {
    background-color: #10365b;
    color: white;
    border: none;
    padding: 0.5em 1em;
    margin-top: 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* Taille de police proportionnelle à la taille de police de base */
    transition: background-color 0.3s ease;
}

.voir-plus:hover {
    background-color: #4e84a0;
}

@media (max-width: 900px) {
    body {
        font-size: 2vw; /* Taille de police proportionnelle à la largeur de la fenêtre */
    }

    .member-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 426px) {
    body {
        font-size: 3vw; /* Taille de police proportionnelle à la largeur de la fenêtre */
    }
}

/* Styles pour la modale */
.modal {
    display: none; /* Cacher par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir avec 50% d'opacité */
    z-index: 2;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    position: relative;
    display: flex;
    gap: 20px;
    height: 80%;
    overflow: auto;
}

.modal-photo img {
    width: 150px; /* Largeur fixe pour la photo */
    height: 150px; /* Hauteur fixe pour la photo */
    object-fit: cover;
    border-radius: 50%;
}

.modal-details {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.modal-details-societe, .modal-map {
    flex: 1;
    padding: 10px;
    margin: 10px;
    background-color: lightgray;
    width: 40%;
}

.modal-map img {
    height: auto;
    object-fit: cover;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

footer {
    background-color: #000;
    color: white;
    padding: 1em 0;
    text-align: center;
    font-size: 0.8em;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #ff5722;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

div#detailContent {
    width:100%;
}

.div1 div, .modal-details {
    display: inline;
	margin: 2%;
}
}

p#ligne-donnee {
    display: contents;
}

#innerHTML {
    text-align: justify;
    line-height: 1.5;
}

.modal-details-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#prenom, #nom {
    font-size: x-large;
    font-weight: bold;
    width: min-content;
    display: contents;
}

.div1 p b {
	/* background-color: yellow; */
	padding-right: 1em;
	
}

.div1 {
	font-size: medium;
	line-height:1.5;
	text-align:left;

}

.div2 img {
    width: 20%;
}

button.save-changes {
    border-radius: 20px;
    padding: 10px;
    background: red;
    border: navajowhite;
    color: yellow;
    text-transform: uppercase;
	cursor: pointer;
}

button.save-changes:hover {
    background: #970000;
}












#login_page {
	font-family: Arial, sans-serif;
	background-image: url('imgs/entete.jpg'); /* Image de fond */
	background-size: cover; /* Couvre toute la zone de l'écran */
	background-repeat: no-repeat; /* Pas de répétition de l'image */
	background-attachment: fixed; /* Fixe l'image lors du défilement */
}
#login_page .login-container {
	width: 300px;
	margin: 100px auto;
	padding: 20px;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: inline-block;
	MARGIN: 2%;
	border-radius: 5%;
}        

#login_page .login-container input,
#login_page .login-container button {
	width: calc( 100% - 20px);
	padding: 10px;
	margin: 10px 0;
	border: 1px solid #ddd;
}     

#login_page button[type="submit"] {
	border: 1px solid #ddd;
	background-color: #1a4a6e;
	color: white;
	text-transform: uppercase;
}     

#login_page .error-message {
	color: red;
	margin-bottom: 15px;
}
#login_page .presentation-container {
	margin: 2%;
	padding: 20px;
	width: 50%;
	max-width: 800px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	text-align: justify;
	display: inline-block;
	vertical-align: text-bottom;
}    

@media screen and (max-width: 1000px) {	
	#login_page .presentation-container {
		width: unset;
	}
	
}
		
#login_page .modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: -25%;
    width: 100%;
    height: 100%;
    /* overflow: auto; */
    background-color: rgba(0,0,0,0.4);
}

#login_page .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
    border-radius: 20px;
}

#login_page .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#login_page .close:hover,
#login_page .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
