/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

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

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #059669;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    background: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #059669;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: #374151;
    margin: 2px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
    color: #059669;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero > .container > .hero-content > p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #a7f3d0;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-card svg {
    margin-bottom: 0.75rem;
}

.stat-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-label {
    font-size: 0.875rem;
    color: #a7f3d0;
}

/* Quick Actions */
.quick-actions {
    padding: 3rem 0;
    background: white;
}

.quick-actions h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #111827;
}

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

.action-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-card.emergency {
    background: #fef2f2;
    color: #dc2626;
}

.action-card.emergency:hover {
    background: #fee2e2;
}

.action-card.mairie {
    background: #ecfdf5;
    color: #059669;
}

.action-card.mairie:hover {
    background: #d1fae5;
}

.action-card.events {
    background: #eff6ff;
    color: #1e40af;
}

.action-card.events:hover {
    background: #dbeafe;
}

.action-card.tourism {
    background: #faf5ff;
    color: #9333ea;
}

.action-card.tourism:hover {
    background: #f3e8ff;
}

.action-card h3 {
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.action-card p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background: #f9fafb;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #111827;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-header svg {
    color: #059669;
    margin-right: 0.75rem;
}

.service-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item svg {
    color: #9ca3af;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item p {
    margin: 0;
}

.info-item strong {
    font-weight: 600;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    border-left: 4px solid;
    padding-left: 1rem;
}

.service-item.blue {
    border-color: #1e40af;
}

.service-item.green {
    border-color: #059669;
}

.service-item.purple {
    border-color: #9333ea;
}

.service-item.orange {
    border-color: #ea580c;
}

.service-item.red {
    border-color: #dc2626;
}

.service-item.teal {
    border-color: #0d9488;
}

.service-item h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.service-item p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Practical Info */
.practical-info {
    padding: 4rem 0;
    background: white;
}

.practical-info h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #111827;
}

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

.info-card {
    border-radius: 0.5rem;
    padding: 2rem;
}

.emergency-card {
    background: #fef2f2;
}

.health-card {
    background: #ecfdf5;
}

.transport-card {
    background: #eff6ff;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header svg {
    color: #dc2626;
    margin-right: 0.75rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.emergency-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.emergency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-item .number {
    font-weight: bold;
    color: #dc2626;
    font-size: 1.125rem;
}

.emergency-numbers hr {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 1rem 0;
}

.gendarmerie {
    margin-bottom: 1rem;
}

.gendarmerie:last-child {
    margin-bottom: 0;
}

.gendarmerie p {
    margin: 0.25rem 0;
}

.health-services,
.transport-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.health-item,
.transport-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.health-item:last-child,
.transport-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.health-item p,
.transport-item p {
    margin: 0.25rem 0;
}

.health-item strong,
.transport-item strong {
    font-weight: 600;
}

/* News & Events */
.news-events {
    padding: 4rem 0;
    background: #f9fafb;
}

.news-events h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #111827;
}

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

.news-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.news-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.news-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tourism */
.tourism {
    padding: 4rem 0;
    background: white;
}

.tourism h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #111827;
}

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tourism-section h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #111827;
}

.points-of-interest {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poi-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.poi-item svg {
    color: #059669;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.poi-item h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.poi-item p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.neighboring-communes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.commune-item {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #059669;
}

.commune-item h4 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.commune-item p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-info,
.footer-hours,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-info p,
.footer-hours p {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero > .container > .hero-content > p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tourism-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .services,
    .practical-info,
    .news-events,
    .tourism {
        padding: 2rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}