* {
  box-sizing: border-box;
}

:root {
  --vert: #93c75b;
  --vert-fonce: #4f7a22;
  --texte: #1f1f1f;
  --rouge: #d93025;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--texte);
  background: #f4f4f4;
}

section {
  scroll-margin-top: 90px;
}

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 24px;
  background: #fff;
  border-bottom: 4px solid var(--vert);
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--vert-fonce);
  text-decoration: none;
}

.marque img {
  height: 56px;
  width: auto;
}

.entete nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.entete a {
  color: var(--vert-fonce);
  text-decoration: none;
  font-weight: bold;
}

.entete a:hover {
  text-decoration: underline;
}

.diaporama {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #000;
}

.diapo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.diapo.actif {
  opacity: 1;
}

.points {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.point {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.point.actif {
  background: var(--vert);
  border-color: var(--vert);
}

.accueil {
  padding: 64px 24px;
  text-align: center;
  background: #fff;
}

.accueil h1 {
  margin-top: 0;
  font-size: 2rem;
  color: var(--vert-fonce);
}

.accueil p {
  max-width: 640px;
  margin: 12px auto;
}

.bouton {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border: none;
  background: var(--vert);
  color: var(--texte);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px;
}

.section h2 {
  margin-top: 0;
  color: var(--vert-fonce);
  font-size: 1.6rem;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.avantages {
  padding-left: 20px;
}

.avantages li {
  margin-bottom: 6px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tabs button {
  flex: 1;
  padding: 10px;
  border: 2px solid var(--vert);
  background: #fff;
  color: var(--vert-fonce);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

.tabs button.actif {
  background: var(--vert);
  color: var(--texte);
}

.legende {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.pastille {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
  border-radius: 3px;
}

.pastille.libre { background: var(--vert); }
.pastille.occupe { background: var(--rouge); }

.etat {
  margin: 0 0 12px;
  font-weight: bold;
  color: var(--rouge);
}

.plan {
  position: relative;
  width: 100%;
  background: #fff;
}

.plan img {
  display: block;
  width: 100%;
  height: auto;
}

.plan svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.box {
  fill-opacity: 0.45;
  stroke-width: 2;
  cursor: pointer;
}

.box.libre { fill: var(--vert); stroke: var(--vert); }
.box.occupe { fill: var(--rouge); stroke: var(--rouge); }

.box:hover {
  fill-opacity: 0.7;
}

.numero {
  font-size: 34px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: #000;
  pointer-events: none;
}

#info {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border-left: 4px solid var(--vert);
  min-height: 60px;
}

#info h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.statut {
  font-weight: bold;
}

.statut.libre { color: var(--vert-fonce); }
.statut.occupe { color: var(--rouge); }

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.formulaire label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
}

.formulaire input,
.formulaire textarea {
  padding: 8px;
  border: 1px solid #aaa;
  font: inherit;
}

.formulaire .bouton {
  align-self: flex-start;
  margin-top: 0;
}

.pied {
  padding: 24px;
  text-align: center;
  background: var(--vert);
  color: var(--texte);
}

.pied p {
  margin: 0;
}
