/* ------------------------------ */
/* BASE */
/* ------------------------------ */

body {
  margin: 0;
  font-family: Georgia, serif;
  color: #111;
  line-height: 1.6;
  background: #fff;
  background-image: url('background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover; /* ou contain selon le rendu désiré */
  background-attachment: fixed; /* pour que le fond reste fixe lors du scroll */
  background-color: #fff; /* couleur de fond au cas où l'image ne se charge pas */
}


.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ------------------------------ */
/* HEADER */
/* ------------------------------ */

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 90px;   /* hauteur optimale pour ce logo */
  width: auto;    /* garde le ratio original */
  display: block;
}

@media (max-width: 600px) {
  .logo img {
    height: 90px;  /* réduction sur mobile */
  }
}

/* MENU */
nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding-bottom: 3px;
}

/* LISERÉ ACTIF */
nav a.active {
  border-bottom: 2px solid #000;
}

/* ------------------------------ */
/* HERO */
/* ------------------------------ */

.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero-logo img {
  height: 90px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .hero-logo img {
    height: 90px;
  }
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* ------------------------------ */
/* SECTIONS */
/* ------------------------------ */

.narrow {
  max-width: 700px;
  margin: auto;
}

.center {
  text-align: center;
}

/* ------------------------------ */
/* FORMULAIRE */
/* ------------------------------ */

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

form h2 {
  margin-top: 40px;
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

form input,
form select,
form textarea {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: block;
  padding: 12px;
  border: 1px solid #ccc;
  font-family: Georgia, serif;
  font-size: 15px;
  background: #fafafa;
}

textarea {
  min-height: 130px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #000;
  background: #fff;
}

/* ------------------------------ */
/* BOUTONS */
/* ------------------------------ */

button,
.btn {
  padding: 12px 25px;
  margin: 10px auto;
  border: 1px solid #000;
  background: white;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  display: inline-block;
}

button:hover,
.btn:hover {
  background: #111;
  color: white;
}

/* ------------------------------ */
/* FOOTER */
/* ------------------------------ */

footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #eee;
  margin-top: 60px;
  font-size: 14px;
}

.footer-logo img {
  height: 120px;
  margin-bottom: 20px;
  opacity: 0.95;
}

footer a {
  text-decoration: none;
  color: #111;
  letter-spacing: 0.5px;
}

footer a:hover {
  border-bottom: 1px solid #000;
}

/* ------------------------------ */
/* COOKIE BANNER */
/* ------------------------------ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  z-index: 50;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  background: white;
  color: #111;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
}

.btn-cookie.selected {
  background: #ddd;
}

/* ------------------------------ */
/* RESPONSIVE */
/* ------------------------------ */

@media (max-width: 900px) {
  nav a {
    margin-left: 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  header .header {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin-left: 8px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 28px;
  }
}