:root {
  --green-dark: #0b1a12;
  --green-mid: #14281f;
  --red: #b71c1c;
  --white: #f9f9f9;
  --transition: all 0.3s ease;
}

/* SECTION NOTRE HISTOIRE */
.histoire-section {
  padding: 0;
  margin: 80px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.histoire-image {
  position: relative;
  background: url('img3.png') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.histoire-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11,26,18,0.75); /* overlay vert foncé */
}

.histoire-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  max-width: 900px;
  padding: 30px;
}

.histoire-content h2 {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--red);
}

.histoire-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #ddd;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .histoire-image {
    height: auto;
    padding: 40px 20px;
    background-attachment: scroll;
  }
  .histoire-content h2 {
    font-size: 32px;
  }
  .histoire-content p {
    font-size: 16px;
  }
}


.status-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 30px 15px; /* Plus grand */
  font-weight: bold;
  font-size: 28px; /* Plus visible */
  z-index: 2000;
  display: none;
  animation: slideDown 0.6s ease forwards;
}

/* Icône ⚠️ avant le texte */
.status-banner::before {
  content: "⚠️ ";
  font-size: 32px;
  margin-right: 10px;
}

/* Couleurs dynamiques */
.status-banner.closed {
  background: #b71c1c; /* Rouge pour fermé */
  color: #fff;
}

.status-banner.open {
  background: #1b5e20; /* Vert pour ouvert */
  color: #fff;
}

/* Ajuste la page quand le bandeau est présent */
body.has-banner {
  padding-top: 120px; /* espace pour la bannière plus grande */
}

/* Animation slide-down */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* PANEL D'ÉDITION */
.edit-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 250px;
}
.edit-panel textarea {
  width: 100%;
  height: 60px;
  background: #14281f;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
}
.edit-panel button {
  background: #b71c1c;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.edit-panel button:hover {
  background: #ff3d3d;
}


/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--green-dark);
  color: var(--white);
  transition: var(--transition);
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}
a { text-decoration: none; }

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(11, 26, 18, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 999;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(11, 26, 18, 0.99);
}
.logo {
  height: 70px;
}
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav a {
  color: var(--red);
  font-weight: bold;
  font-size: 18px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--red);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }


/* BANNIÈRE DE STATUT */
.status-banner {
  display: none;
  text-align: center;
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
}

/* Couleurs dynamiques */
.status-banner.closed {
  background: #b71c1c;
  color: #fff;
}
.status-banner.open {
  background: #1b5e20;
  color: #fff;
}

/* BOUTON STYLO */
.edit-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #14281f;
  color: #fff;
  border-radius: 50%;
  padding: 12px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  z-index: 999;
}
.edit-btn:hover {
  transform: scale(1.1);
}

/* PANEL D'ÉDITION */
.edit-panel {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 250px;
  animation: fadeIn 0.3s ease;
}
.edit-panel textarea {
  width: 100%;
  height: 60px;
  background: #14281f;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
}
.edit-panel button {
  background: #b71c1c;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.edit-panel button:hover {
  background: #ff3d3d;
}

/* Options statut */
.status-options {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 14px;
}

/* POPUP MOT DE PASSE */
.password-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.password-box {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.password-box input {
  padding: 10px;
  width: 100%;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
}
.password-box button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  background: #b71c1c;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.password-box button:hover {
  background: #ff3d3d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Liens Contact */
#contact a {
  color: #1b5e20; /* Vert foncé par exemple */
  font-weight: bold;
  text-decoration: none;
}

#contact a:hover {
  color: #ff3d3d; /* Rouge clair au survol */
}


/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 3px;
  background: var(--red);
}
/* HORAIRES TABLE */
.horaires-section {
  text-align: center;
}

.horaires-table {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.horaires-header, .horaires-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 18px;
}

.horaires-header {
  font-weight: bold;
  background: rgba(183,28,28,0.3);
  color: var(--white);
}

.horaires-row {
  transition: background 0.3s ease;
}

.horaires-row:hover {
  background: rgba(255,255,255,0.1);
}

.horaires-row.closed {
  color: #aaa;
  font-style: italic;
}


/* HERO */
.hero {
  height: 90vh;
  background: url('img1.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11,26,18,0.6);
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s forwards ease;
}
.hero-content h1 { font-size: 64px; color: #fff; }
.hero-content p { font-size: 22px; margin-bottom: 30px; }
.cta-btn {
  padding: 15px 40px;
  background: linear-gradient(45deg, var(--red), var(--green-mid));
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(183,28,28,0.4);
  transition: var(--transition);
}
.glow-btn:hover {
  box-shadow: 0 0 30px rgba(183,28,28,0.9), 0 0 15px rgba(27,94,32,0.8);
  transform: scale(1.08);
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 40px;
  background: var(--green-mid);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  text-align: center;
  transition: var(--transition);
}
.section h2, .section h3 { color: var(--red); }
.section p { color: #ccc; }

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: var(--green-mid);
  color: #aaa;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav ul { display: none; }
  .burger { display: flex; }
}

/* Menu mobile actif */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 80px; /* sous le header */
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--green-mid);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    display: flex;
    gap: 20px;
  }

  .nav a {
    font-size: 22px;
    color: var(--white);
  }

  /* Ajout d'un fond semi-transparent derrière */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
  }
}

