/* blue UB : #009DE0 */
/* rouge IMB : #892034 */

/* Global */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #111;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 95%;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

body.dark-mode {
  background-color: #121212;
  color: #eee;
}

/* Header */

header {
  text-align: center;
  background-color: #fff;
  color: #111;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  width: 90%;
  max-width: 900px;
  margin: auto;
}

body.dark-mode header {
  background-color: #121212;
  color: #eee;
}

/* Profile picture */

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #892034;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .profile-pic {
  border: 3px solid #009DE0;
}

/* Contact info */

.contact-info {
  margin-top: 2rem;
  margin-bottom: 2rem; 
}

/* Main content */

.page-container {
  width: 90%;
  max-width: 900px;
  margin: 2rem auto;
}

/* Biography */

.bio {
  max-width: 800px;        
  margin: 0 auto;          
  text-align: center;  
  margin-bottom: 2rem;
}

/* Navigation */

nav {  
  background: #fff;               
  border: 2px solid #808080; 
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-radius: 20px; 
  width: 50%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem;                  
  margin-bottom: 2rem;           
  text-align: center;
}

body.dark-mode nav {  
  background: #121212;               
  border: 2px solid #808080;         
}

nav ul {
  list-style: none;
}

nav li {
  display: inline;
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color: #892034;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-weight: bold;
}

body.dark-mode nav a {
  color: #009DE0;
}

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

/* Section */

section {
  margin-bottom: 2rem;
}

h1 {
  color: #892034;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 0.5rem 0 0.2rem 0;
}

body.dark-mode h1 {
  color: #009DE0;
}

h2 {
  color: #892034;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid #892034;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

body.dark-mode h2 {
  color: #009DE0;
  border-bottom: 2px solid #009DE0;
}

ul {
  list-style-type: none;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Footer */

footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #777;
  border-top: 1px solid #ddd;
}

/* Links */

a {
  color: #892034;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

body.dark-mode a {
  color: #009DE0;
}

a:hover {
  text-decoration: underline;
}

/* Top controls */

.top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
}

/* Dark mode */

.dark-toggle {
  flex-shrink: 0;
  margin-bottom: 0rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #892034;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: black;
}

body.dark-mode input:checked + .slider {
  background-color: #009DE0;
}

/* Language */

.language-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.2rem;
  font-size: 1.5rem;
  justify-content: flex-end;
  max-width: 100px;
  margin-bottom: 0rem;
}

.flag {
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.flag:hover {
  transform: scale(1.1);
}

.flag.active {
  border-bottom: 2px solid #892034;
}

body.dark-mode .flag.active {
  border-bottom: 2px solid #009DE0;
}

/* Language visibility */

.lang-en,
.lang-fr,
.lang-de,
.lang-nl,
.lang-fr,
.lang-es,
.lang-it,
.lang-ru,
.lang-cn {
  display: none;
}

.lang-en.active,
.lang-fr.active,
.lang-de.active,
.lang-nl.active,
.lang-es.active,
.lang-it.active,
.lang-ru.active,
.lang-cn.active {
  display: block;
}
