/* ===================================
   RESET ET CONFIGURATION DE BASE
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Jomolhari&display=swap');

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inria Serif', Georgia, serif;
  background-color: #D9BC87;
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  background-color: #D9BC87;
  z-index: 1000;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo img {
  width: 50px;
  height: auto;
  display: block;
}

.header__logo svg {
  width: 40px;
  height: 40px;
  display: block;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__lang {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.header__menu-toggle {
  background: none;
  border: 2px solid #000;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 35px;
  height: 35px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #000;
  transition: all 0.3s ease;
}

.header__menu-toggle:active {
  transform: scale(0.95);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  padding: 20px;
  position: relative;
  min-height: 400px;
}

.hero__content {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 300px;
}

.hero__portrait {
  width: 220px;
  height: auto;
  object-fit: cover;
  z-index: 3;
  border-radius: 8px;
  filter: sepia(20%);
}

.hero__title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Jomolhari', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  color: #000;
  z-index: 2;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(217, 188, 135, 0.5);
}

.hero__landscape {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 85%;
  height: auto;
  opacity: 0.7;
  z-index: 1;
  object-fit: cover;
}

.hero__dinosaur {
  position: absolute;
  bottom: 50px;
  right: 10px;
  width: 120px;
  height: auto;
  opacity: 0.85;
  z-index: 2;
}

.hero__mountains {
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .hero__portrait {
    width: 180px;
  }
  
  .hero__title {
    font-size: 36px;
    line-height: 30px;
  }
  
  .hero__landscape {
    width: 80%;
  }
  
  .hero__dinosaur {
    width: 100px;
    bottom: 30px;
  }
}

.hero__text {
  font-size: 18px;
  line-height: 1.5;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   DINOSAURES DE DÉCORATION
   =================================== */
.decoration-dino {
  display: block;
  width: 60px;
  height: auto;
  opacity: 0.5;
  margin: 15px 0;
}

.decoration-dino--left {
  float: left;
  margin-left: 10px;
  margin-right: 15px;
  margin-top: -20px;
}

.decoration-dino--right {
  float: right;
  margin-right: 10px;
  margin-left: 15px;
  margin-top: -20px;
}

/* ===================================
   SECTIONS GÉNÉRALES
   =================================== */
.section {
  padding: 30px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.section__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  padding-bottom: 10px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #000;
}

/* ===================================
   CARTES (CARDS)
   =================================== */
.card {
  background-color: #DEC299;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.card__image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: sepia(20%);
}

.card__content p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #DEC299;
  border: 2px solid #000;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.button svg {
  width: 16px;
  height: 16px;
}

/* ===================================
   DÉCOUVERTES (DISCOVERIES)
   =================================== */
.discovery {
  background-color: #DEC299;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.discovery__image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E8D4A8;
  border-radius: 6px;
}

.discovery__fossil-illustration {
  width: 70px;
  height: 70px;
}

.discovery__fossil-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.discovery__content {
  flex: 1;
}

.discovery__text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.discovery__label {
  font-size: 12px;
  font-style: italic;
  margin-bottom: 10px;
  font-weight: bold;
}

.button--small {
  display: inline-block;
  padding: 6px 15px;
  background-color: #DEC299;
  border: 2px solid #000;
  border-radius: 6px;
  text-decoration: none;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.button--small:active {
  transform: translateY(1px);
}

/* ===================================
   LITTÉRATURE
   =================================== */
.card--literature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.literature__book-illustration {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.literature__books-icon {
  width: 100%;
  height: 100%;
}

.literature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ===================================
   FILM SECTION
   =================================== */
.section--film {
  position: relative;
}

.film__icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.film__camera-icon {
  width: 100%;
  height: 100%;
}

.card--film {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.film__poster {
  width: 100%;
  max-width: 200px;
  margin-bottom: 20px;
}

.film__poster-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.film__poster-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #7B9FAB 0%, #5A8296 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
}

.film__poster-placeholder span {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.film__credits {
  font-style: italic;
  font-size: 13px;
}

/* ===================================
   OBJET BU
   =================================== */
.bu__book-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.bu__library-icon {
  width: 100%;
  height: 100%;
}

.card--bu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bu__image {
  width: 100%;
  max-width: 150px;
  margin-bottom: 20px;
}

.bu__book-cover-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #000;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.bu__book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #C85A54 0%, #A64842 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  padding: 20px;
  text-align: center;
}

.bu__book-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background-color: #000;
  color: #D9BC87;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer__content {
  max-width: 600px;
  margin: 0 auto;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__links a {
  color: #D9BC87;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: #fff;
}

.footer__credit {
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer__info {
  font-size: 11px;
  line-height: 1.5;
  font-style: italic;
}

.footer__info a {
  color: #E8D4A8;
  text-decoration: underline;
}

/* ===================================
   RESPONSIVE - TABLETTES
   =================================== */
@media (min-width: 768px) {
  .hero__portrait {
    width: 220px;
  }

  .hero__text {
    font-size: 20px;
    max-width: 600px;
  }

  .section {
    padding: 40px 30px;
    max-width: 800px;
  }

  .section__title {
    font-size: 28px;
  }

  .card {
    padding: 30px;
  }

  .discovery {
    padding: 20px;
  }

  .discovery__image {
    width: 100px;
    height: 100px;
  }

  .discovery__fossil-illustration {
    width: 90px;
    height: 90px;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* ===================================
   RESPONSIVE - PETITS ÉCRANS
   =================================== */
@media (max-width: 375px) {
  .hero__portrait {
    width: 140px;
  }

  .hero__text {
    font-size: 16px;
    padding: 15px;
  }

  .section {
    padding: 20px 15px;
  }

  .section__title {
    font-size: 20px;
  }

  .card {
    padding: 15px;
  }

  .discovery {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .discovery__image {
    width: 100px;
    height: 100px;
  }
}

/* ===================================
   ANIMATIONS ET TRANSITIONS
   =================================== */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .discovery {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .button,
  .button--small {
    transition: all 0.2s ease;
  }
}

/* ===================================
   AMÉLIORATION DE L'ACCESSIBILITÉ
   =================================== */
@media (prefers-color-scheme: dark) {
  /* Option: Ajouter un mode sombre si nécessaire */
}

/* Focus visible pour la navigation au clavier */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
  .button,
  .button--small,
  .header__menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
}

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

/* Support des anciennes classes (compatibilité) */
.page-acceuil .montagne,
.page-acceuil .mary-anning-removebg,
.page-acceuil .menu-open,
.page-acceuil .text-wrapper,
.page-acceuil .rectangle {
  /* Classes héritées - conservées pour compatibilité */
  display: block;
}
