:root {
  --red: #c62828;
  --dark: #111;
  --gray: #666;
  --bg: #d0d4d8;
  --accent: #0057b7;
  --green: #28a745;
}

.logo {
  display: block;     /* évite les espaces fantômes inline */
  margin: 20px auto 0 auto;  /* 20px en haut, centré horizontalement */
  height: 100px;      /* taille fixe */
  width: auto;        /* conserve proportions */
}



/* === RESET === */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

html, body {
  height: 100%;
  margin: 0;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}


/* === HERO === */
.hero {
  position: relative;
  height: 40vh;
  overflow: hidden;
}

/* Image de fond du hero */
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* Logo en overlay */
.hero .logo {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 60px;   /* taille fixe */
  width: auto;    /* conserve proportions */
  z-index: 2;
}



/* Texte overlay inchangé */
.hero-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

.hero-text h1 { margin: 0; }
.hero-text p { margin: 4px 0 0 0; }


/* === MEMORIAL === */
.memorial {
  padding: 0px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  position: relative; /* nécessaire pour positionner les flèches */
  max-width: 100%;   /* largeur max sur desktop */
  width: 100%; /* occupe toute la largeur dispo */
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-arrow:hover {
  background: rgba(0,0,0,0.7);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 40vh;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  display: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.overlay-text {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  padding: 2rem;
  box-sizing: border-box;
}

.overlay-text h3 {
  margin: 0 0 6px;
  color: #fff;
}

.overlay-text p {
  margin: 0.3rem 0;
}

.memorial-note {
  color: var(--gray);
  font-size: 0.9rem;
}






.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;     /* petites marges internes */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;    /* contraste avec le fond global */
}

.footer {
  margin-top: auto;
  padding: 10px;       /* marges réduites */
  text-align: center;
  color: var(--gray);
  border-top: 1px solid #e5e5e5;
}



section {
  margin-bottom: 20px; /* espace régulier entre les sections */
}

/* modale pour details memorial */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}
.modal-content h3 {
  margin-top: 0;
}


/* === Produits indisponibles (public boutique) === */
.product-card.unavailable {
  position: relative;
}

.product-card.unavailable img,
.product-card.unavailable h4,
.product-card.unavailable p,
.product-card.unavailable button {
  opacity: 0.5;
  filter: grayscale(100%);
}

.badge-unavailable {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1000;
}


/* === PARTNERS (public grid) === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}
.partner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInZoom 0.8s forwards;
}
.partner img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  transition: transform 0.3s;
}
.partner:hover img { transform: scale(1.1); }
.partner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.partner:hover .overlay { opacity: 1; }

/* === SIDEBAR (public menu latéral) === */
.burger {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2001;
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -260px; /* caché par défaut */
  width: 260px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 2000;
}
.sidebar.open { right: 0; }
.sidebar .menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.sidebar .menu a:hover { background: rgba(255,255,255,0.1); }
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1999;
}
#overlay.show { display: block; }

/* === Contact (public) === */
.contact-btn {
  border-radius: 20px;
  padding: 8px 16px;
  background: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.contact-option {
  display: block;
  text-align: center;
  border-radius: 25px;
  padding: 10px;
  border: none;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-option:hover { background: #c0392b; }

/* === Modale de contact (public) === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000; /* au-dessus du contenu et de la sidebar */
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  text-align: center;
  position: relative;
}
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

/* === Animations === */
@keyframes fadeInZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
