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

/* === ACCESSIBILITÉ === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  height: 100%;
  background-color: #000;
  color: #fff;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 300;
}

/* === PAGE FADE TRANSITION === */
body {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

main {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

body {
  display: flex;
  flex-direction: column;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 100;
}

.nav-left {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  margin-left: -10px;
}

.nav-left .first-name {
  font-weight: 300;
  color: #bbb;
}

.nav-left .last-name {
  font-weight: 600;
  color: #fff;
}

.nav-left a.andrea-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-left a.andrea-link:hover .last-name {
  color: #f5c518;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.nav-links .nav-item {
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links .nav-item:hover {
  color: #f5c518;
}

/* === MAIN À PROPOS === */
.about-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  padding: 40px 20px;
}

.about-container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 300px;
  order: 2;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.about-content {
  flex: 1;
  order: 1;
  max-width: 550px;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 100%;
    order: 1;
    margin-bottom: 20px;
  }

  .about-content {
    order: 2;
  }
}

.about-container h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #fff;
}

.about-content {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #ddd;
  text-align: left;
  word-spacing: normal;
}

.about-content p {
  margin-bottom: 1.2em;
  text-align: left !important;
  word-spacing: normal !important;
}

.about-content h2,
.about-content h3 {
  color: #fff;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: 400;
}

.about-content h2 { font-size: 1.8rem; }
.about-content h3 { font-size: 1.4rem; }

.about-content ul,
.about-content ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}

.about-content li {
  margin-bottom: 0.5em;
}

.about-content strong {
  font-weight: 500;
  color: #fff;
}

.about-content a {
  color: #f5c518;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-content a:hover {
  color: #fff;
}

/* === RESPONSIVE === */

/* Tablette portrait */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: portrait) {
  .navbar { height: 60px; padding: 0 25px; }
  .nav-left { font-size: 1.2rem; margin-left: -10px; }

  .about-content {
    font-size: 1rem;
  }
}

/* Tablette landscape */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  .navbar { height: 60px; padding: 0 25px; }
  .nav-left { font-size: 1.2rem; margin-left: -10px; }

  .about-content {
    font-size: 0.85rem;
  }
}

/* Mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar { height: 60px; padding: 0 25px; }
  .nav-left { font-size: 1.2rem; margin-left: -10px; }

  .about-page {
    padding: 20px 15px;
  }

  .about-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about-content {
    font-size: 0.9rem;
  }
}

/* Mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .navbar { height: 60px; padding: 0 25px; }
  .nav-left { font-size: 1.2rem; margin-left: -10px; }

  .about-page {
    padding: 20px 15px;
  }

  .about-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .about-content {
    font-size: 0.95rem;
  }
}