/* VIKING THEME - PRIORITÉ BASSE - Styles décoratifs écrasés par laval-style.css */
/* ATTENTION: Les styles .main-container, #map-container, .filters-panel sont écrasés par laval-style.css */
:root {
  --primary: #8B4513; /* Marron bois */
  --secondary: #CD853F; /* Brun clair */
  --dark: #2C1B0E; /* Marron foncé */
  --light: #F5F5DC; /* Beige */
  --accent: #C41E3A; /* Rouge viking */
  --text: #3A2718; /* Marron texte */
  --gradient: linear-gradient(135deg, var(--dark), var(--primary));
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --transition: all 0.3s ease;
  --border-pattern: url("data:image/svg+xml,%3Csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L10 0 L20 10 L30 0 L40 10 L50 0 L60 10 L70 0 L80 10 L90 0 L100 10' stroke='%238B4513' fill='none' stroke-width='2'/%3E%3C/svg%3E");
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 L60 60 M60 0 L0 60' stroke='%23D2B48C' stroke-width='1' fill='none' opacity='0.1'/%3E%3C/svg%3E");
  margin: 0;
  padding: 0 0 50px 0;
  height: calc(100vh - 50px);
  /* overflow: hidden retiré pour permettre le scroll dans les panels */
}

/* Header & Title */
.page-title {
  background: #c4d600;
  padding: 1rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border-bottom: 4px solid #a0b000;
  position: relative;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1001;
}



.page-title h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 0.2rem;
  font-weight: 900;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-title p {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

/* Main Container - DÉSACTIVÉ - Voir laval-style.css */
/* .main-container géré par laval-style.css pour le layout fonctionnel */

/* Filters Panel */
/* .filters-panel - DÉSACTIVÉ - Voir laval-style.css */
/* Layout et positionnement gérés par laval-style.css */
/* Seuls les styles décoratifs viking restent actifs ci-dessous */

.filters-panel .logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filters-panel .logo {
  height: 80px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 3px solid var(--secondary);
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.filters-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  text-transform: uppercase;
}



.close-filters {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
  display: none; /* Masqué par défaut sur desktop */
}

.close-filters:hover {
  color: var(--accent);
}

.filter-group {
  margin-bottom: 1.5rem;
  background: rgba(205, 133, 63, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
  position: relative;
}

.filter-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 69, 19, 0.3);
  cursor: pointer;
  position: relative;
  color: var(--dark);
  transition: var(--transition);
}

.filter-title::after {
  content: '+';\
  position: absolute;
  right: 5px;
  transition: var(--transition);
}

.filter-title.active::after {
  transform: rotate(45deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.3rem 0;
}

.filter-options label:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.filter-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4A6B3A;
}

.filter-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.8rem;
}

.select-all, .deselect-all {
  flex: 1;
  padding: 5px 10px;
  background: #8f993e;
  color: white;
  border: none;
  border-radius: 3px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.select-all:hover, .deselect-all:hover {
  background: #6B8A52;
}

/* Map Container - DÉSACTIVÉ - Voir laval-style.css */
/* #map-container géré par laval-style.css pour le layout fonctionnel */

/* #map - DÉSACTIVÉ - Voir laval-style.css */
/* Styles de carte gérés par laval-style.css pour le fonctionnement */

.toggle-filters-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 800;
  background: var(--light);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  cursor: pointer;
  display: none; /* Masqué par défaut sur desktop */
  transition: var(--transition);
  color: var(--dark);
}

.toggle-filters-btn:hover {
  background: var(--primary);
  color: white;
}

.toggle-filters-btn i {
  margin-right: 5px;
}

/* Footer */
.site-footer {
  background: var(--dark) url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,10 L50,30 L30,50 L10,30 Z' stroke='%238B4513' fill='none' stroke-width='2' opacity='0.2'/%3E%3C/svg%3E");
  color: #F5F5DC;
  padding: 3rem 2rem 1.5rem;
  position: relative;
  border-top: 8px solid var(--primary);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -23px;
  left: 0;
  width: 100%;
  height: 15px;
  background-image: var(--border-pattern);
  background-repeat: repeat-x;
  background-size: 100px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  border-radius: var(--radius);
  border: 3px solid var(--secondary);
}

.footer-contact h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  text-transform: uppercase;
}

.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-contact p {
  margin-bottom: 0.8rem;
}

.footer-link {
  display: block;
  margin-bottom: 0.6rem;
  transition: var(--transition);
  position: relative;
  padding-left: 1.2rem;
}

.footer-link::before {
  content: '➢';
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-link:hover::before {
  color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(205, 133, 63, 0.2);
  border-radius: 50%;
  transition: var(--transition);
  border: 2px solid var(--secondary);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(205, 133, 63, 0.3);
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* Leaflet Custom Styles */
.leaflet-popup {
  min-width: 500px;
  max-width: 90vw;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 3px solid #4A6B3A;
  background: linear-gradient(135deg, #E8F2E1, #F0F7ED);
}

.leaflet-popup-content {
  font-family: 'Raleway', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  min-width: 00px;
  max-width: 500px;
  position: relative;
  width: auto !important;
}

.leaflet-popup-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin: 0;
  padding: 1rem;
  color: white;
  background: linear-gradient(135deg, #6B8A52, #87A96B);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #4A6B3A;
}

.popup-container {
  display: flex;
  width: 100px;
  padding: 1rem;
  width: 100%;
}

.popup-text {
  flex: 1;
   max-width: 200px;
  padding-right: 1rem;
}

.popup-image {
  max-width: 200px;
  flex-shrink: 0;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-image img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 2px solid #4A6B3A;
}

.popup-image img:hover {
  transform: scale(1.05);
}

.popup-links {
  margin-top: 0;
  border-top: 1px solid rgba(135, 169, 107, 0.3);
  padding: 1rem;
  background: rgba(181, 201, 154, 0.2);
}

.leaflet-popup-content p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.leaflet-popup-content a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.leaflet-popup-content a:hover {
  color: #333;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--primary);
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 69, 19, 0.5);
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

.close-modal:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

/* Slideshow Controls */
.slideshow-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: rgba(44, 27, 14, 0.8);
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  border-radius: 0 0 var(--radius) var(--radius);
  backdrop-filter: blur(5px);
  border-top: 2px solid var(--secondary);
}

.prev-slide, .next-slide {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  background: rgba(205, 133, 63, 0.3);
  border-radius: var(--radius);
  border: 1px solid var(--secondary);
}

.prev-slide:hover, .next-slide:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.slide-counter {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Cinzel', serif;
}

/* Marker Clusters */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(183, 212, 50, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(143, 153, 62, 0.8);
  color: #F5F5DC;
}

.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
  border: 2px solid #b7d432;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font-weight: bold;
}

.marker-cluster span {
  line-height: 30px;
}

/* Viking Decorative Elements */

/* Media Queries */
@media (min-width: 993px) {
  .filters-panel {
    /* Toujours visible sur desktop */
    position: relative;
    transform: translateX(0);
  }
  
  .close-filters {
    display: none;
  }
  
  .toggle-filters-btn {
    display: none;
  }
}

@media (max-width: 992px) {
  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    border-radius: 0;
  }
  
  .filters-panel.active {
    transform: translateX(0);
  }
  
  .close-filters {
    display: block;
  }
  
  .toggle-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .page-title h1 {
    font-size: 2rem;
  }
  
  .page-title h1::before,
  .page-title h1::after {
    margin: 0 8px;
  }
  
  .page-title p {
    font-size: 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .leaflet-popup {
    min-width: 280px;
    max-width: 95vw;
  }
  
  .leaflet-popup-content {
    min-width: 250px;
  }
  
  .popup-container {
    flex-direction: column;
  }
  
  .popup-text {
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .leaflet-popup {
    min-width: 220px;
    max-width: 98vw;
  }
  
  .leaflet-popup-content {
    min-width: 200px;
  }
  
  .popup-image {
    width: 100%;
    margin-bottom: 1rem;
  }
}