/* Import d'une police Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Roboto:wght@400&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-image: url('fondgrange.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: -1;
}

header {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(0, 0, 0, 0.6);
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  font-style: italic;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin-top: 1rem;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.menu li a:hover {
  color: #ffc439;
}

section {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.galerie {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.galerie img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 350px;
  margin-top: 1rem;
}

form input, form button {
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

form input {
  background-color: #f2f2f2;
}

form button {
  background-color: #6a4e42;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background-color: #8a6558;
}

footer {
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  color: white;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Section abonnement OneSignal */
.abonnement {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 800px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.abonnement h2 {
  margin-bottom: 1rem;
  color: #333;
}

.abonnement p {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

#subscribe-btn {
  background-color: #ffc439;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#subscribe-btn:hover {
  background-color: #e0aa30;
}

.sommaire {
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sommaire h2 {
  margin-top: 0;
}

.sommaire ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.sommaire li {
  margin: 0.5rem 0;
}

.sommaire a {
  text-decoration: none;
  color: #6a4e42;
  font-weight: bold;
  transition: color 0.3s;
}

.sommaire a:hover {
  color: #8a6558;
}

html {
  scroll-behavior: smooth;
}

.sommaire ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.sommaire li {
  margin: 0.5rem 0;
}

.sommaire a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
  transition: color 0.3s ease;
}

.sommaire a:hover {
  color: #6a4e42;
}

.sommaire a.active {
  color: #d1440d;
  text-decoration: underline;
}

/* Mode clair par défaut */
body.light-theme {
  background-color: #ffffff;
  color: #333;
}

body.light-theme section {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Mode sombre */
body.dark-theme {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-theme section {
  background: rgba(0, 0, 0, 0.8);
  color: #f1f1f1;
}

/* Bouton thème */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border: none;
  background: #444;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}

