/* CV Aimé Matete — feuille de style allégée
   Mise en page conservée : navigation latérale, sections plein écran,
   typographies Saira Extra Condensed / Muli et couleur accent #BD5D38.
*/

:root {
  --primary: #bd5d38;
  --primary-dark: #824027;
  --dark: #343a40;
  --text: #6c757d;
  --social: #495057;
  --white: #fff;
  --nav-width: 17rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--dark);
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 3rem;
  font-size: 6rem;
  line-height: 1;
}

h2 {
  margin-bottom: 3rem;
  font-size: 3.5rem;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-primary {
  color: var(--primary);
}

.subheading {
  margin-bottom: 1rem;
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
}

.contact {
  margin-bottom: 3rem;
}

.side-nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 3.375rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--primary);
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: var(--white);
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--white);
  text-decoration: none;
}

.mobile-name {
  display: block;
  font-family: "Saira Extra Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile {
  display: none;
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border: 0.5rem solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.nav-menu {
  display: none;
  width: 100%;
  text-align: center;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-button {
  display: flex;
  width: 2.5rem;
  height: 2.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
}

.nav-toggle-button span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--white);
}

.nav-toggle:checked ~ .nav-menu {
  position: absolute;
  top: 3.375rem;
  left: 0;
  display: block;
  padding: 0.75rem 0;
  background: var(--primary);
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
    font-family: "Saira Extra Condensed", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: #bd5d38;
    border-color: #bd5d38;
}
}

.language-button {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.5;
}

.language-button:hover,
.language-button:focus {
  color: var(--white);
  text-decoration: none;
  opacity: 0.9;
}

.language-button.primary { background: var(--primary); }
.language-button.success { background: #28a745; }
.language-button.warning { background: #ffc107; color: #212529; }

.content {
  width: 100%;
}

.resume-section {
  display: flex;
  width: 100%;
  max-width: 75rem;
  min-height: auto;
  align-items: center;
  padding: 5rem 1rem;
}

.resume-section-content {
  width: 100%;
}

.resume-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.resume-item > div:first-child {
  flex: 1;
}

.resume-item time {
  white-space: nowrap;
}

.language-title {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  border-radius: 50%;
  background: var(--social);
  color: var(--white) !important;
  font-size: 1.5rem;
}

.social-icon:last-child {
  margin-right: 0;
}

.social-icon:hover,
.social-icon:focus {
  background: var(--primary);
  text-decoration: none;
}

.download-link {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 0.2rem;
  background: var(--primary);
  color: var(--white);
}

.download-link:hover,
.download-link:focus {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .resume-section {
    min-height: 100vh;
  }

  .resume-item {
    flex-direction: row;
  }

  .resume-item time {
    min-width: 18rem;
    margin-left: 2rem;
    text-align: right;
  }
}

@media (min-width: 992px) {
  body {
    padding-left: var(--nav-width);
  }

  .side-nav {
    width: var(--nav-width);
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    text-align: center;
  }

  .navbar-brand {
    margin: auto auto 0;
    padding: 0.5rem;
  }

  .mobile-name {
    display: none;
  }

  .profile {
    display: block;
  }

  .nav-toggle,
  .nav-toggle-button {
    display: none;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }

  .language-switcher {
    margin-top: 1rem;
  }

  .resume-section {
    padding: 5rem 3rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  h2 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
