:root {
  --bleu: #0077b6;
  --vert: #00b894;
  --orange: #f77f00;
  --gris: #f7f7f7;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--gris);
  color: #222;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
}
header h1 { color: var(--bleu); }
header span { color: var(--vert); }

nav a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--bleu); }

.hero {
  background: linear-gradient(to right, var(--bleu), var(--vert));
  color: white;
  text-align: center;
  padding: 80px 20px;
}
.hero h2 { font-size: 2em; }

.section {
  padding: 60px 10%;
  background: white;
  margin: 20px;
  border-radius: 10px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 300px;
  background: var(--gris);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s;
}
.card img { width: 100%; height: 200px; object-fit: cover; }
.card:hover { transform: scale(1.03); }

.btn {
  background: var(--orange);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover { background: #ff9e00; }

.carousel { list-style: none; padding: 0; position: relative; }
.slide { display: none; }
.slide.active { display: block; }

.controls {
  text-align: center;
  margin-top: 10px;
}
.controls button {
  background: var(--bleu);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px;
  margin: 5px;
  cursor: pointer;
}

footer {
  text-align: center;
  background: var(--bleu);
  color: white;
  padding: 20px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  display: none;
}
.cookie-banner button {
  background: var(--vert);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 10px;
  margin-left: 10px;
}
/* Encoche Admin flottante */
#admin-tab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bleu);
  padding: 10px 15px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}
#admin-tab a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
#admin-tab a:hover {
  background: white;
  color: var(--bleu);
  padding: 10px 15px;
  border-radius: 25px;
}
