/* ============================================
   STYLES OPTIMISÉS - PÔLE ISLAM
   Version centrée et allégée
   ============================================ */

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

/* === VARIABLES CSS === */
:root {
  --primary: #0097b2;
  --primary-dark: #007a8f;
  --primary-light: #00b4d8;
  --accent: #06d6a0;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --gradient-primary: linear-gradient(135deg, #0097b2 0%, #00b4d8 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,151,178,0.05) 0%, rgba(0,180,216,0.08) 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
  --primary: #3d7a52;
  --primary-dark: #2f5e3f;
  --primary-light: #2f5e3f;
  --accent: #10b981;
  --bg-light: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.6);
  --gradient-primary: linear-gradient(135deg, #3d7a52 0%, #2f5e3f 100%);
  --gradient-card: linear-gradient(135deg, rgba(61,122,82,0.1) 0%, rgba(95,196,141,0.15) 100%);
}

/* === BODY === */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}  

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === CONTAINER === */
.page-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0rem 1rem;
  padding-top:5.5rem;
 
}

.page-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* === TITRES UNIFIÉS (tous centrés) === */
.page-title,
.card-title,
.section-title {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.5s ease;
}

.card-title {
  font-size: 1.75rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-title i { font-size: 2rem; }
.card-title i { font-size: 2rem; }
.section-title i { font-size: 1.75rem; }

/* === SOUS-TITRES UNIFIÉS === */
.page-subtitle,
.card-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease;
}

/* === SECTION LABEL === */
.section-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.section-label i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease backwards;
}

.card-mosquees {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease backwards;
}

.card-mosquees:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0,151,178,0.2);
}

html.dark .card-mosquees:hover {
  box-shadow: 0 25px 50px rgba(61,122,82,0.3);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0,151,178,0.2);
}

html.dark .card:hover {
  box-shadow: 0 25px 50px rgba(61,122,82,0.3);
}

.card-mosquees::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-card);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-card);
  border-radius: 50%;
  opacity: 0.5;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}



.card-content {
  position: relative;
  z-index: 1;
}

/* Animation stagger pour les cards */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }

/* === FEEDBACK MESSAGES === */
.feedback-message {
  text-align: center;
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s ease;
}

.feedback-message i { font-size: 1.5rem; }

.feedback-message.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #10b981;
}

.feedback-message.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #ef4444;
}

html.dark .feedback-message.success {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  color: #d1fae5;
}

html.dark .feedback-message.error {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
  color: #fee2e2;
}

/* === DIVIDER === */
.divider {
  height: 2px;
  background: var(--border);
  margin: 2rem 0;
  border-radius: 2px;
}

/* === FORMULAIRES === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--primary);
  font-size: 1rem;
}

.form-label-optional {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  font-style: italic;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
}

.form-textarea {
  text-align: left;
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
}

html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(61, 122, 82, 0.15);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* === GRID === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === FILE INPUT === */
.file-input-wrapper {
  position: relative;
}

.file-input-hidden {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.file-input-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--gradient-card);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-secondary);
}

.file-input-display:hover {
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: white;
}

.file-input-display i {
  font-size: 1.5rem;
}

.file-name-display {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--gradient-card);
  border-radius: 8px;
}

/* === BOUTONS UNIFIÉS === */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 151, 178, 0.35);
  min-width: 200px;
}

html.dark .btn-primary {
  box-shadow: 0 4px 16px rgba(61, 122, 82, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 151, 178, 0.45);
}

html.dark .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(61, 122, 82, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--gradient-card);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn i {
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

/* === OPTIONS/CHIPS === */
.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.option-chip {
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.option-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.option-chip.active {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 151, 178, 0.3);
}

html.dark .option-chip.active {
  box-shadow: 0 4px 12px rgba(61, 122, 82, 0.4);
}

.option-chip input[type="checkbox"],
.option-chip input[type="radio"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: white;
}

.option-chip i {
  font-size: 0.95rem;
}

/* === INFO SECTION === */
.info-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 151, 178, 0.35);
  flex-shrink: 0;
}

html.dark .info-icon {
  box-shadow: 0 4px 16px rgba(61, 122, 82, 0.4);
}

.info-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  text-align: center;
}

.info-content p {
  text-align: center;
  margin-bottom: 1rem;
}

.info-content em {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}

.info-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* === TIPS LIST === */
.tips-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--gradient-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tips-list li:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.tips-list li i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.tips-list li span {
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  flex: 1;
}

/* === ÉTATS === */
.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.empty-state-icon,
.error-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* === OUTPUT/RESULT === */
.result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 16px;
  border: 2px solid var(--border);
  text-align: center;
}

.result-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  flex-wrap: wrap;
}

.result-details {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

.highlight {
  color: var(--primary);
  font-weight: 700;
}

/* === INFO TEXT === */
.info-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.info-text i {
  color: var(--primary);
}

/* === CONTACT INFO === */
.contact-info {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-info i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.contact-info a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary-light);
}


/* === SITEMAP === */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.sitemap-category {
  background: var(--gradient-card);
  padding: 2rem;
  margin-bottom:2rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.sitemap-category:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sitemap-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  text-align: center;
}

.sitemap-category-title i {
  font-size: 1.5rem;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sitemap-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  width: 100%;
  font-weight: 500;
  text-align: center;
}

.sitemap-links a:hover {
  color: var(--primary);
  background: var(--bg-card);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.sitemap-links a i {
  color: var(--primary);
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}

.sitemap-footer-note {
  margin-bottom:2rem;
  padding: 2rem;
  background: var(--gradient-card);
  border-radius: 16px;
  border: 2px solid var(--border);
  text-align: center;
}

.sitemap-footer-note p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
}

.sitemap-footer-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.sitemap-footer-note a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* === MOSQUÉES - LEAFLET === */
.leaflet-control-attribution {
  display: none !important;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.search-input {
  padding-left: 2.75rem;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
  pointer-events: none;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom:2rem;
}

@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 400px 1fr;
  }
}

.list-container {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  max-height: 700px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.list-header h2 {
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.results-count {
  background: var(--gradient-primary);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.item-card {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.item-card.active {
  border-color: var(--primary);
  background: rgba(0, 151, 178, 0.12);
  box-shadow: 0 8px 24px rgba(0,151,178,0.25);
}

html.dark .item-card.active {
  background: rgba(61, 122, 82, 0.18);
  box-shadow: 0 8px 24px rgba(61,122,82,0.35);
}

.item-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.item-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.item-info-row i {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.item-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
}

.badge-secondary {
  background: var(--border);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.badge-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-container {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  height: 700px;
}

#map {
  width: 100%;
  height: 100%;
}

.list-container::-webkit-scrollbar {
  width: 8px;
}

.list-container::-webkit-scrollbar-track {
  background: transparent;
}

.list-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  transition: var(--transition);
}

.list-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* === mention legal === */
.page-footer {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 16px;
  border: 2px solid var(--border);
}

.page-footer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-footer-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
} 



/* === À PROPOS - HERO SECTION === */
.margetop {padding-top:2rem;}

.hero-section {
  position: relative;
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

.hero-bg.light-bg {
  background-image: url('images/Mosquees/pexels-mohamad-tamer-2406731.jpg');
  opacity: 1;
}

html.dark .hero-bg.light-bg {
  opacity: 0;
}

.hero-bg.dark-bg {
  background-image: url('images/Mosquees/pexels-horacio-lander-1239977167-27644722.jpg');
  opacity: 0;
}

html.dark .hero-bg.dark-bg {
  opacity: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 3rem 2rem;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-section {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.content-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0,151,178,0.2);
}

html.dark .content-section:hover {
  box-shadow: 0 25px 50px rgba(61,122,82,0.3);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header i {
  font-size: 2rem;
  color: var(--primary);
}

.section-body {
  display: grid;
  grid-template-columns: 1fr;
  padding-top:2rem;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .section-body {
    grid-template-columns: 1fr 1fr;
  }
  
  .section-body.reverse .section-text {
    order: 2;
  }
  
  .section-body.reverse .section-image {
    order: 1;
  }
}

.section-text p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
}

.section-image {
  text-align: center;
}

.section-image img {
  width: 100%;
  max-width: 450px;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.section-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,151,178,0.3);
}

html.dark .section-image img:hover {
  box-shadow: 0 15px 35px rgba(61,122,82,0.4);
}

.quote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  background: var(--gradient-card);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.quote strong {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.5rem;
}

/* === FAQ === */
.faq-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.faq-button {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  gap: 1rem;
}

.faq-button:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
  border-radius: 50%;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gradient-primary);
  color: white;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.faq-link:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .main-layout {
    display: flex;
    flex-direction: column;
  }

  .list-container {
    order: 1;
    max-height: 500px;
  }

  .map-container {
    order: 2;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .page-title {
    font-size: 1.75rem;
  }

  .page-title i {
    font-size: 1.75rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-title i {
    font-size: 1.75rem;
  }

  .card-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-title i {
    font-size: 1.5rem;
  }

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

  .btn-primary {
    width: 100%;
    min-width: unset;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sitemap-category {
    padding: 1.5rem;
  }

  .sitemap-category-title {
    font-size: 1.1rem;
  }

  .sitemap-links a {
    font-size: 0.9rem;
    padding: 0.65rem;
  }

  .sitemap-footer-note {
    padding: 1.5rem;
  }

  .hero-section {
    min-height: 300px;
    border-radius: 16px;
  }

  .hero-content {
    height: 300px;
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content-section {
    padding: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-body {
    grid-template-columns: 1fr;
  }

  .section-body.reverse .section-text {
    order: 1;
  }
  
  .section-body.reverse .section-image {
    order: 2;
  }

  .section-image img {
    height: 200px;
  }

  .faq-button {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
  }

  .faq-content {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .faq-content p {
    font-size: 0.9rem;
  }

  .list-container {
    padding: 1.5rem;
  }

  .item-card {
    padding: 1.25rem;
  }

  .item-name {
    font-size: 1.05rem;
  }

  .option-chip {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .search-wrapper {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 0.75rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .page-title {
    font-size: 1.5rem;
    gap: 0.5rem;
  }

  .page-title i {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .card-title i {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .section-title i {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.95rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .sitemap-grid {
    gap: 1rem;
  }

  .sitemap-category {
    padding: 1.25rem;
  }

  .sitemap-category-title {
    font-size: 1rem;
  }

  .sitemap-links a {
    font-size: 0.875rem;
    padding: 0.6rem;
  }

  .sitemap-footer-note {
    padding: 1.25rem;
  }

  .hero-section {
    min-height: 250px;
  }

  .hero-content {
    height: 250px;
    padding: 1.5rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .section-image img {
    height: 180px;
  }

  .faq-button {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .faq-content {
    padding: 0 1rem;
  }

  .faq-item.active .faq-content {
    padding: 0 1rem 1rem 1rem;
  }

  .faq-content p {
    font-size: 0.875rem;
  }

  .list-container {
    padding: 1.25rem;
    max-height: 400px;
  }

  .item-card {
    padding: 1rem;
  }

  .item-name {
    font-size: 1rem;
  }

  .item-info {
    font-size: 0.85rem;
  }

  .map-container {
    height: 300px;
  }

  .badge {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }

  .results-count {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  .info-content {
    font-size: 0.95rem;
  }

  .tips-list li {
    padding: 0.875rem;
  }

  .tips-list li i {
    font-size: 1.1rem;
  }

  .tips-list li span {
    font-size: 0.9rem;
  }

  .option-chip {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }

  .feedback-message {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .feedback-message i {
    font-size: 1.3rem;
  }

  .result-box {
    padding: 1.25rem;
  }

  .result-main {
    font-size: 1.1rem;
  }

  .result-details {
    font-size: 0.95rem;
  }

  .contact-info {
    font-size: 0.9rem;
  }

  .page-footer {
    padding: 1.25rem;
  }

  .page-footer-text {
    font-size: 0.8rem;
  }

  .divider {
    margin: 1.5rem 0;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 250px;
  }

  .hero-content {
    height: 250px;
    padding: 1.5rem 2rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    flex-direction: row;
  }

  .map-container {
    height: 350px;
  }

  .list-container {
    max-height: 350px;
  }
}

@media print {
  .page-container {
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  .btn,
  .btn-group,
  .options-group,
  .file-input-wrapper,
  .search-wrapper {
    display: none;
  }

  .hero-section,
  .map-container {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    background: white;
  }

  .page-title,
  .card-title,
  .section-title {
    color: black;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card::before {
    animation: none;
  }
}

.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.option-chip:focus-visible,
.faq-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}