
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #2c3e50;
  background: #f5f7fa;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #ffffff;
  padding: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 3px solid #2c5aa0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.logo {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.header-text {
  text-align: left;
}

header h1 {
  font-size: 2.8rem;
  color: #2c5aa0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.location {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 400;
}

main {
  padding: 2.5rem 0;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.sections {
  margin-bottom: 3rem;
}

.sections h2 {
  text-align: center;
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.section-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
  border-color: #2c5aa0;
}

.section-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.distance-icon {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.section-title-icon {
  width: 50px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.section-card h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.section-card p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.section-btn {
  display: inline-block;
  background: #2c5aa0;
  color: white;
  padding: 0.75rem 1.8rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.section-btn:hover {
  background: #1e3a6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

.news-preview {
  text-align: left;
  margin-bottom: 1.5rem;
  width: 100%;
}

.news-item-mini {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #2c5aa0;
}

.news-item-mini:last-child {
  margin-bottom: 0;
}

.news-date {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-item-mini h4 {
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-item-mini p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.info-section {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #2c5aa0;
}

.info-section h3 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.info-section p, .info-section ul {
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.info-section ul {
  list-style-position: inside;
  padding-left: 1rem;
}

.info-section ul li {
  margin-bottom: 0.6rem;
}

footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.dashboard {
  min-height: calc(100vh - 200px);
}

.dashboard-header {
  background: #ffffff;
  padding: 1.8rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-header h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
}

.dashboard-nav {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: #f8f9fa;
  color: #2c3e50;
  border: 1px solid #dee2e6;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-btn:hover, .nav-btn.active {
  background: #2c5aa0;
  color: white;
  border-color: #2c5aa0;
}

.content-area {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  min-height: 500px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6d 100%);
  padding: 1.8rem;
  border-radius: 8px;
  color: white;
  box-shadow: 0 2px 8px rgba(44, 90, 160, 0.3);
}

.stat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  opacity: 0.95;
  font-weight: 500;
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.btn {
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background: #1e3a6d;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
  background: #6c757d;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-danger {
  background: #dc3545;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-success {
  background: #28a745;
}

.btn-success:hover {
  background: #218838;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: white;
}

table th {
  background: #f8f9fa;
  color: #2c3e50;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  font-size: 0.95rem;
}

table td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  color: #6c757d;
}

table tr:hover {
  background: #f8f9fa;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2c5aa0;
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.alert {
  padding: 1rem 1.3rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-info {
  background: #e7f3ff;
  color: #004085;
  border-color: #2c5aa0;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-color: #ffc107;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-color: #dc3545;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.card-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card-header h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
}

.badge-primary {
  background: #2c5aa0;
  color: white;
}

.badge-success {
  background: #28a745;
  color: white;
}

.badge-warning {
  background: #ffc107;
  color: #212529;
}

.badge-danger {
  background: #dc3545;
  color: white;
}

.badge-info {
  background: #17a2b8;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
}

.close {
  font-size: 2rem;
  color: #6c757d;
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.close:hover {
  color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 80px;
  }

  .header-text {
    text-align: center;
  }

  header h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .sections h2 {
    font-size: 1.6rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .nav-btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }

  table th, table td {
    padding: 0.7rem 0.5rem;
  }
}

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

.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Lightbox pour visualisation plein écran des photos */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000000;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 1000000;
}

/* Images cliquables dans les galeries */
.gallery-image-clickable {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
