/* --- Variables & Charte Graphique --- */
:root {
    /* Palette Principale */
    --primary-blue: #0f3460;
    --secondary-blue: #1a1a2e;
    --bright-blue: #2563eb;
    --light-blue: #e0f2fe;

    /* Accents */
    --accent-red: #e11d48;
    --accent-green: #22c55e;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;

    /* Neutres */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;

    /* UI Elements */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
    --radius-lg: 1rem;

    /* Header */
    --header-height: 70px;
}

/* --- Global Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header / Navigation --- */
.main-header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 45px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.5rem;
    position: relative;
}

/* Dropdown System */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item:hover .nav-link {
    color: var(--bright-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
}

.dropdown-link:hover {
    background-color: var(--light-blue);
    color: var(--bright-blue);
}

/* Mobile Burger */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    /* Explicit hex white */
    border-top: 1px solid #eee;
    padding: 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999999;
    /* Extremely high z-index */
}

.mobile-nav.is-open {
    display: flex;
}

.mobile-link {
    display: block;
    padding: 1.25rem 1.5rem;
    /* Larger touch target */
    border-bottom: 1px solid #f3f3f3;
    font-weight: 600;
    font-size: 1.1rem;
    /* Easier to read */
    color: var(--text-main);
    text-decoration: none;
    background: #fff;
    /* Ensure own background */
}

.mobile-link:active {
    background-color: #f0f9ff;
    color: var(--bright-blue);
}

.mobile-dropdown-header {
    padding: 1.25rem 1.5rem;
    /* Larger touch target */
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #f8fafc;
    /* Slight bg to distinguish headers */
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
    color: var(--primary-blue);
    position: relative;
    /* Stacking context */
    z-index: 2;
}

.mobile-dropdown-header i {
    transition: transform 0.3s;
}

.mobile-dropdown-header.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    background: #fafafa;
    /* Slightly darker than white to show depth */
    width: 100%;
}

.mobile-dropdown-content .mobile-link {
    padding-left: 3rem;
    /* Indentation */
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    border-bottom: 1px solid #eaeaea;
    background: transparent;
}

.mobile-dropdown-content.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Section --- */
.hero-header {
    height: 400px;
    background-image: linear-gradient(rgba(15, 52, 96, 0.6), rgba(15, 52, 96, 0.4)), url('../../public/img/mairie_800x600.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin: 2rem auto;
    /* Centered with margin */
    max-width: 1200px;
    width: 100%;
    /* Contained width */
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    opacity: 0.95;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* --- Standard Page Header --- */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.page-header p {
    color: #64748b;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* --- Content Wrapper --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* --- Alerts & Sections --- */
.section-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

/* Level 1: Info (Blue/Standard) */
.alert-info {
    border-left: 5px solid var(--bright-blue);
    background: linear-gradient(to right, #eff6ff, #fff);
}

.alert-info .section-title {
    color: var(--bright-blue);
}

/* Level 2: Important (Orange) */
.alert-important {
    border-left: 5px solid var(--accent-orange);
    background: linear-gradient(to right, #fff7ed, #fff);
}

.alert-important .section-title {
    color: var(--accent-orange);
}

/* Level 3: Urgent (Red/Animated) */
.alert-urgent {
    border-left: 8px solid var(--accent-red);
    background: linear-gradient(to right, #fef2f2, #fff);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
    animation: pulse-border 2s infinite;
}

.alert-urgent .section-title {
    color: var(--accent-red);
    font-size: 1.4rem;
    text-transform: uppercase;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.alert-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.alert-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

/* --- Agenda Section --- */
.agenda-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .agenda-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.agenda-col h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.agenda-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.agenda-date {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    font-weight: 700;
    line-height: 1.2;
}

.agenda-date span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
}

.agenda-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.agenda-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Major Event Spotlight --- */
.major-event {
    background: #1a1a2e;
    /* Dark theme */
    color: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media(min-width: 800px) {
    .major-event {
        flex-direction: row;
    }
}

.major-event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media(min-width: 800px) {
    .major-event-img {
        width: 40%;
        height: auto;
    }
}

.major-event-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Grid & Buttons --- */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    /* Smaller buttons */
    gap: 1rem;
}

.access-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
}

.access-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: white;
    border-color: var(--bright-blue);
}

.access-icon {
    font-size: 1.75rem;
    /* Smaller icon */
    color: var(--primary-blue);
}

/* Custom button colors */
.cta-blue .access-icon {
    color: var(--bright-blue);
}

.cta-red .access-icon {
    color: var(--accent-red);
}

.cta-green .access-icon {
    color: var(--accent-green);
}

.cta-orange .access-icon {
    color: var(--accent-orange);
}

.cta-purple .access-icon {
    color: var(--accent-purple);
}

.cta-teal .access-icon {
    color: #0d9488;
}

.cta-yellow .access-icon {
    color: #ca8a04;
}

.cta-gray .access-icon {
    color: var(--text-light);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-link {
    color: #a5b4fc;
    text-decoration: underline;
}

/* --- Responsive Helpers --- */
@media (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .main-header {
        padding: 0 1rem;
    }
} 
 / *   - - -   R i c h   T e x t   &   L i s t   S t y l i n g   F i x e s   - - -   * /  
 . a l e r t - t e x t   u l ,   . m a r k e t - e x t r a   u l ,   . a s s - m u t e d   u l ,   . q l - e d i t o r   u l ,   . m a r k e t - c o n t e n t   u l   {  
         l i s t - s t y l e - t y p e :   d i s c ;  
         p a d d i n g - l e f t :   2 r e m ;  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . a l e r t - t e x t   o l ,   . m a r k e t - e x t r a   o l ,   . a s s - m u t e d   o l ,   . q l - e d i t o r   o l ,   . m a r k e t - c o n t e n t   o l   {  
         l i s t - s t y l e - t y p e :   d e c i m a l ;  
         p a d d i n g - l e f t :   2 r e m ;  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . a l e r t - t e x t   l i ,   . m a r k e t - e x t r a   l i ,   . a s s - m u t e d   l i ,   . q l - e d i t o r   l i ,   . m a r k e t - c o n t e n t   l i   {  
         m a r g i n - b o t t o m :   0 . 2 5 r e m ;  
 }  
  
 . a l e r t - t e x t   p ,   . m a r k e t - e x t r a   p ,   . a s s - m u t e d   p ,   . q l - e d i t o r   p   {  
         m a r g i n - b o t t o m :   0 . 5 r e m ;  
 }  
 