@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;
}

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

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

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

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);
}

.projet {
  display: flex;
  gap: 40px;
  margin: 80px auto 120px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.projet .texte {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 400px;
  text-align: right;
  align-items: flex-end;
}

.projet h1 {
  font-size: 30px;
  font-weight: 500;
  color: #ffecd1;
  margin-bottom: 10px;
}

.projet p {
  font-family: "Lora", serif;
  color: #4a819b;
  font-size: 20px;
  line-height: 1.6;
  margin-top: 25px;
}

.projet:nth-child(even) {
  flex-direction: row-reverse;
}

.projet:nth-child(even) .texte,
.projet:nth-child(even) .texte h1,
.projet:nth-child(even) .texte p {
  text-align: left;
  align-items: flex-start;
}

.projet img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  height: 640;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}

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;
}

@media (max-width: 992px) {

   .mini, .mini-paysage {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);}
    
    .galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;}

    .mini, .mini-paysage {
    flex: 0 1 45%;
    max-width: 45%;
    margin: 10px auto;
    height: auto;}
}

@media (max-width: 768px) {

  body {
    background-size: 120% auto;
    background-position: center top;}

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

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

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

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px auto;
  }

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

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

@media (max-width: 480px) {

  .projet {
    flex-direction: column;
    align-items: center;
    margin: 40px 10px 60px;
    gap: 20px;}

  .projet .texte {
    width: 100%;
    max-width: 320px;
    text-align: center;
    align-items: center;}

  .projet .texte h1 {
    font-size: 22px; 
    margin-bottom: 10px;}

  .projet .texte p {
    font-size: 16px; 
    margin: 0 auto;
    line-height: 1.4;}

  .projet img {
    width: 100%;
    max-width: 320px; 
    height: auto;}

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

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

  nav a {
    width: 260px;
    max-width: 260px;
    font-size: 16px;
    padding: 8px;
    margin-bottom: 8px;
  }
}