body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f3f3;
  color: #111;
  line-height: 1.6;
}

/* MENU HAUT */
.top-menu {
  background: #682145;
  padding: 12px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-menu a {
  margin: 0 12px;
  padding: 4px 0;
  display: inline-block;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-menu a:hover {
  text-decoration: underline;
  color: #ffd6ff;
}

.top-menu a.active {
  text-decoration: underline;
  color: #ffd6ff;
}

/* STRUCTURE 3 COLONNES */
.container {
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* COLONNES */
.left,
.content,
.right {
  background: white;
  padding: 18px;
  box-sizing: border-box;
}

.content {
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* las barras de los lados */
.right {
  position: sticky;
  top: 70px;
}

/* TITRES */
h1, h2 {
  color: #4b2e83;
}

h3 {
  color: #682145;
}

h2 {
  margin-top: 25px;
}

/* CONTENU */
.content section {
  margin-bottom: 35px;
}

.content ul {
  margin-left: 20px;
}

.content li {
  margin-bottom: 5px;
}

/* IMAGE */
.profile-pic {
  width: 100%;
  max-width: 180px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 15px;
}

/* LIENS */
a {
  color: #4b2e83;
}

/* MENU DROIT */
.right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.right li {
  margin-bottom: 8px;
}

.right a {
  text-decoration: none;
}

.right a:hover {
  text-decoration: underline;
  transition: 0.2s ease;
}

/* LIGNE */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* TEXTE SIDEBAR */
.left p {
  font-size: 0.95em;
}

/* ===================== */
/* VERSION MOBILE */
/* ===================== */

@media screen and (max-width: 900px) {

  .container {
    grid-template-columns: 1fr;
  }

  .left,
  .right,
  .content {
    width: 100%;
  }

  .right {
    position: static;
  }

  .top-menu {
    text-align: center;
  }

  .top-menu a {
  display: block;
  margin: 8px 0;
}

  .profile-pic {
    max-width: 140px;
  }
}

@media screen and (max-width: 600px) {

  .top-menu {
    padding: 10px;
  }

  .top-menu a {
    display: block;
    margin: 8px 0;
  }

  .container {
    padding: 12px;
    gap: 12px;
  }

  .left,
  .content,
  .right {
    padding: 14px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.25em;
  }
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
}

.lang-switch a {
  color: #682145;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: #4b2e83;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #4b2e83;
  outline-offset: 3px;
}

.terrain {
color: #3BC1E3;
font-size: 1em;
}
