@import url('https://fonts.googleapis.com/css2?family=Manrope&display=swap');
:root {
  --primary-color: #3498DB;
  --secondary-color: #2C3E50;
  --light-bg: #F7F9FA;
  --light-bg-2: #E6EEF2;
  --text-color: #2C3E50;
  --white: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-strong: rgba(0, 0, 0, 0.2);
  --font-family: 'Manrope', sans-serif;
  --font-size: 16px;
}
html{
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size);
  background: linear-gradient(to bottom, var(--light-bg), var(--light-bg-2));
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

header {
  max-height: 210px;
  min-height: 210px;
  background: linear-gradient(to right, #2C3E50, #3498DB);
  color: white;
  padding: 1em;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Ajout : bloc contenant logo + nav */
.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2em;
}


/* Logo à gauche */
header img.logo {
  box-shadow: 5px 5px 3px black;
  border-radius: 5px;
  width: 150px;
  height: auto;
  margin: 0;
}

/* Mise à jour : centrage horizontal supprimé */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a:hover {
  background-color: white;
  color: #2C3E50;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


main {
  flex: 1;
  padding: 2em;
  max-width: 800px;
  min-width: 800px;
  max-height: 400px;
  min-height: 400px;
  margin:auto;
  line-height: 1.5;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: justify;
}

footer {
  background-color: #2C3E50;
  color: white;
  text-align: center;
  font-size:var(--font-size);
  padding: 1em;
  margin-top: auto;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin-top: 1em;
}


/* Responsive logo + nav */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  form {
    width: 100%;
    padding: 0 1em;
  }

  
}


header h1,
header p {
  text-align: center;
  margin: 0.5em auto;
}

h3,h2{
	padding: 0px;
	margin: 0px;
}


/* Bloquer la position du logo à gauche */
.header-top img.logo {
  margin-right: auto;
}

/* Correction pour centrer le menu tout en gardant le logo à gauche */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
  position: relative; /* nécessaire pour le centrage absolu */
}

.header-top nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* centre parfaitement le nav */
}
