@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

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

html, body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #011627;
  color: #ffecd1;
}

#container {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  display: block;
  margin: -40px auto 20px auto;
  max-width: 800px;
  width: fit-content;
}

nav {
  display: flex;
  justify-content: center;
  margin: -20px;
  gap: 10px;
}

nav a {
  display: block;
  color: #ffecd1;
  background: #4a819b;
  font-size: 20px;
  font-weight: 100;
  text-align: center;
  padding: 8px 15px;
  border-radius: 5px 50px 50px 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 120px;
  max-width: 200px;
}

nav a:hover {
  background: #3a6f84;
  transform: scale(1.05);
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.texte, .texte-left {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.texte h1 {
  color: #ffecd1;
  font-size: 30px;
  font-weight: 500;
  margin: 20px 0 10px 0;
  text-align: center;
}

.texte p {
  font-family: "Lora", serif; 
  color: #4a819b;
  font-size: 18px;
  line-height: 1.6;
  margin: 10px;
  text-align: right;
}

.texte-left p {
  font-family: "Lora", serif; 
  color: #4a819b;
  font-size: 18px;
  line-height: 1.6;
  margin: 10px;
  text-align: left;
}

.galerie, .galerie-paysage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mini, .mini-paysage {
  width: 100%;
  max-width: 225px;
  flex: 0 0 auto;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 10px;
  object-fit: cover;
}

.mini:hover, .mini-paysage:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.separateur {
  border: none;
  height: 2px;
  background-color: #15616d;
  margin: 40px 0;
}

.separateur2 {
  border: none;
  width: 50%;
  height: 2px;
  background-color: #15616d;
  margin: 30px auto;
}

footer {
  background-color: #011627;
  border-top: 2px solid #ffecd1;
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer a {
  color: #ffecd1;
  background: #4a819b;
  font-size: 18px;
  font-weight: 150;
  text-align: center;
  line-height: 1;
  padding: 1px 20px;
  margin: 5px;
  border-radius: 5px 50px 50px 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  background-color: #3a6f84;
  transform: scale(1.05);
}

footer p {
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
  color: #ffecd1;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1,22,39,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9999;
}

.gif-droite {
  position: fixed;
  top: -100px;
  right: 300px;
  width: 150px;
  max-width: 25vw;
  z-index: 1000;
  transition: width 0.3s ease;
}

@media (max-width: 992px) {
  .mini, .mini-paysage {
    flex: 0 1 45%;
    max-width: 45%;
    margin: 10px auto;
    height: auto;
  }
  .galerie, .galerie-paysage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  body {
    background-size: 120% auto;
    background-position: center top;
  }

  main {
    margin: 20px auto;
    padding: 10px;
  }

  nav {
    flex-wrap: wrap;
    margin: 0;
    gap: 4px;
  }

  nav a {
    font-size: 16px;
    padding: 6px 16px;
    margin-bottom: 10px;
  }


  .texte p {
    text-align: center;
    margin: 10px auto;
  }

  .gif-droite {
    width: 120px;
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 480px) {

  nav a {
    width: 90%;
    max-width: 200px;
    font-size: 16px;
    margin-bottom: 6px;
  }

  .logo {
    max-width: 95%;
    margin: 10px auto 15px auto;
  }

  .gif-droite {
    width: 60px;
    right: 10px;
    top: 10px;
  }

  .galerie, .galerie-paysage {
    justify-content: center;
  }

  .mini, .mini-paysage {
    flex: 0 1 90%;
    max-width: 90%;
    margin: 8px auto;
    display: block;
  }
}
