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

body {
  font-family: Helvetica, sans-serif;
  background: #011627;
  color: #ffecd1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

nav a {
  display: inline-block;
  color: #ffecd1;
  background-color: #4a819b;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 100;
  text-align: center;
  line-height: 1;
  padding: 5px 30px;
  border-radius: 5px 5px 30px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

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

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

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

footer a {
  display: inline-block;
  color: #ffecd1;
  background-color: #4a819b;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 150;
  text-align: center;
  line-height: 1;
  padding: 1px 20px;
  margin: 10px;
  border-radius: 5px 5px 30px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.logo {
  display: block;
  margin: -40px auto 0 auto;
  max-width: 800px;
  width: 100%;
  justify-content: center;
}

#container {
    width: 1280px;
    background-color: rgba(255,255,255,0);
    display: grid;
    margin: 0 auto;
}

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

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

.projet .texte {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 400px;
  gap: 20px;
}

.projet h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  color: #ffecd1;
  margin-bottom: 10px;
  text-align: right;
}

.projet p {
  color: #4a819b;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-align: right;
  font-size: 20px;
  margin-top: 25px;

}

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

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

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

.projet img {
  flex: 0 0 auto;
  max-width: 640px;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
}

@media (max-width: 768px) {
  .gif-droite {
    width: 120px;
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 768px) {
  .logo {
    max-width: 90%;
    margin: 0 auto 20px auto;
  }
}

@media (min-width: 769px) {
  .sections {
    grid-template-columns: repeat(2, 1fr);
    width: 1280px;
  }
}

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