@charset "UTF-8";
/* ===== Variables globales ===== */
: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;
}

/* ===== Base ===== */
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 ===== */
header {
  height: 210px;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  color: var(--white);
  padding: 1em;
  text-align: left;
  box-shadow: 0 2px 5px var(--shadow-color-strong);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
  position: relative;
}

.header-top img.logo {
  margin-right: auto;
  box-shadow: 5px 5px 3px black;
  border-radius: 5px;
  width: 150px;
  height: auto;
}

.header-top nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5em 1em;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
  background-color: var(--white);
  color: var(--secondary-color);
  box-shadow: 0 0 10px var(--shadow-color);
}

header h1,
header p {
  text-align: center;
  margin: 0.5em auto;
}

/* ===== Main ===== */
main {
  flex: 1;
  padding: 2em;
  max-width: 600px;
  min-width: 400px;
  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 ===== */
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);
}

/* ===== Formulaire ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 600px;
  margin-top: 1em;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.4em;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-family);
  transition: border 0.3s, box-shadow 0.3s;
}

textarea{
	resize : none !important;
	/*height: 150px;*/
	/*margin:0 0 auto 0;*/
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.4);
}

input[type="submit"] {
  width: fit-content;
  padding: 10px 20px;
  /*margin: 20px auto 0px auto;*/
  border: none;
  border-radius: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

input[type="submit"]:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 10px var(--shadow-color);
}

/* ===== Coordonnées ===== */
.coordonnées {
  padding: 10px;
  margin: 0 0 50px 0;
}

/* ===== Messages succès/erreur ===== */
.success {
  color: green;
  margin-top: 10px;
}
.error {
  color: red;
  margin-top: 10px;
}

/* ===== Responsive ===== */
@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;
  }

  input, textarea, button {
    width: 100%;
    box-sizing: border-box;
  }
}
