* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { font-family: "Lato", sans-serif; background: #f0f0f0; color: #333; display: flex; flex-direction: column; min-height: 100vh; position: relative; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
.page { padding: 2em; }
main { flex: 1; padding: 20px; }
header { background: linear-gradient(135deg, darkgreen 0%, #003d00 100%); color: white; text-align: center; padding: 1em; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); position: relative; }
.hautpage { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 1em; }
header h1 { font-size: 2.5em; font-weight: 700; color: #e0f2f1; }
header h3 { font-size: 1.2em; font-weight: 400; font-style: italic; color: #e0f2f1; margin-top: 0.3em; }
#main-menu { margin-top: 1em; }
#main-menu-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5em; list-style: none; padding: 0; }
#main-menu-links a { display: inline-block; padding: 0.8em 1.5em; background-color: rgba(255, 255, 255, 0.15); border-radius: 25px; color: white; text-decoration: none; font-size: 1em; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
#main-menu-links a:hover { background-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.burger-menu { display: none; font-size: 2em; cursor: pointer; color: white; }
section { margin: 2vh; padding: 2vh; background-color: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
h1 { color: #003d00; }
h2 { color: #003d00; text-align: left; margin: 2vh 0; }
h3 { font-size: 1.2em; font-style: italic; color: #003d00; }
p { word-break: break-word; margin: 1vh 0; line-height: 1.8; color: #333; }
.no-bullets { list-style-type: none; padding-left: 0; margin: 0; color: white; }
.no-bullets li { margin-bottom: 0.5em; }
#Photo_profil { width: min(320px, 60vw); height: auto; aspect-ratio: 1 / 1; object-fit: cover; flex: 2; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s; }
#Photo_profil:hover { transform: scale(1.05); }
#LogoENS,
#LogoENSbis { width: 12vh; height: auto; }
#LogoENSbis { visibility: hidden; }
#Linkedin { width: 5em; height: auto; }
#phone { width: 3vh; height: auto; }
.container { display: flex; align-items: center; gap: 2vh; flex-wrap: wrap; }
.photo { flex: 1; padding: 2vh; text-align: center; }
.corps { flex: 2; }
#description { flex: 3; min-width: 260px; font-size: 1.5em; }
#texte_haut { display: flex; justify-content: center; text-align: center; color: #003d00; font-weight: bold; font-size: 1.2em; }
.contact ul { list-style: none; margin: 1em; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3em; }
.contact li { display: flex; align-items: center; gap: 1em; }
.contact a { color: white; text-decoration: none; transition: color 0.3s; }
.contact a:hover { color: #e0f2f1; }
.contact2 { visibility: hidden; }
footer { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, darkgreen 0%, #003d00 100%); color: white; font-size: 20px; padding: 1em; height: auto; flex-wrap: wrap; gap: 0.5em; }
footer p,
footer a { color: white; text-decoration: none; }
footer a:hover { color: #e0f2f1; }
.login-container { position: relative; display: inline-block; }
.login-button,
.register-button { background-color: rgba(255, 255, 255, 0.15); color: white; border: none; padding: 0.8em 1.5em; border-radius: 25px; font-size: 1em; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
.login-button:hover,
.register-button:hover { background-color: #004d00; }
.login-form { display: none; position: absolute; top: 100%; right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 1em; width: min(250px, 90vw); z-index: 1000; }
.login-form form { display: flex; flex-direction: column; }
.login-form label { margin-bottom: 0.5em; color: #003d00; }
.login-form input { margin-bottom: 1em; padding: 0.5em; border: 1px solid #ccc; border-radius: 4px; }
.login-form button { padding: 0.5em; border: none; border-radius: 4px; color: white; background-color: #003d00; cursor: pointer; transition: background-color 0.3s ease; }
.login-form button:hover { background-color: #004d00; }
.close-button { background-color: #d9534f; }
.close-button:hover { background-color: #c9302c; }
@media (max-width: 1024px) {
.hautpage { flex-direction: column; text-align: center; }
#Photo_profil { width: min(220px, 45vw); }
.container { flex-direction: column; text-align: center; }
#description { font-size: 1.2em; }
}
@media (max-width: 768px) {
header h1 { font-size: 1.8em; }
header h3 { font-size: 1em; }
.page { padding: 1em; }
#Photo_profil { width: min(180px, 45vw); }
.container { flex-direction: column; gap: 1em; }
#description { font-size: 1em; min-width: 0; }
.contact ul { flex-direction: column; gap: 1em; }
footer { flex-direction: column; text-align: center; gap: 1em; }
.burger-menu { display: block; position: absolute; top: 1em; right: 1em; z-index: 1001; }
#main-menu-links { display: none; flex-direction: column; align-items: stretch; gap: 0.6em; width: 90%; margin: 0 auto; padding: 1em 0; background: rgba(0, 61, 0, 0.97); position: absolute; top: 100%; left: 5%; border-radius: 0 0 12px 12px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); z-index: 1000; opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease; }
#main-menu-links.active { display: flex; opacity: 1; transform: translateY(0); }
#main-menu-links li { width: 100%; padding: 0 1em; }
#main-menu-links li a { display: block; width: 100%; text-align: center; padding: 0.9em; background: rgba(255, 255, 255, 0.12); color: #e0f2f1; font-size: 1.05em; font-weight: 600; border-radius: 8px; transition: background-color 0.2s ease, transform 0.2s ease; }
#main-menu-links li a:hover { background-color: rgba(255, 255, 255, 0.25); }
}
@media (min-width: 769px) {
.burger-menu { display: none; }
#main-menu-links { display: flex; flex-direction: row; justify-content: center; opacity: 1; transform: none; position: static; background: none; box-shadow: none; width: auto; }
}
