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

body {
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

.home-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.presentation {
    display: flex;
    align-items: center;
    padding: 80px;
    background: #ffffff;
}

.presentation-content {
    max-width: 520px;
}

.presentation h1 {
    margin-bottom: 80px;
    font-size: 24px;
    font-weight: 700;
}

.presentation h2 {
    margin-bottom: 20px;
    font-size: 42px;
}

.presentation p {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.authentication {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f1f5f9;
}

.authentication-card {
    width: 100%;
    max-width: 460px;
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.authentication-label {
    display: inline-block;
    margin-bottom: 25px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}

.authentication-card h2 {
    margin-bottom: 15px;
    font-size: 32px;
}

.authentication-intro {
    margin-bottom: 10px;
    font-size: 16px;
    color: #334155;
}

.authentication-description {
    margin-bottom: 30px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.login-button {
    display: inline-block;
    width: 100%;
    padding: 13px 20px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.login-button:hover {
    background: #1d4ed8;
}

@media (max-width: 800px) {
    .home-page {
        grid-template-columns: 1fr;
    }

    .presentation {
        padding: 50px 30px;
    }

    .presentation h1 {
        margin-bottom: 50px;
    }

    .authentication {
        padding: 30px 20px;
    }
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1e293b;
    font-size: 15px;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

.login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}

.home-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fbfe;
    color: #0f172a;
}
.home-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.home-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    background: #00e5ff;
}

.home-blob-one {
    top: -180px;
    left: -180px;
}

.home-blob-two {
    right: -150px;
    bottom: -200px;
}
.home-header {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1100px;
    height: 76px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 14px;
    letter-spacing: 1px;
}

.home-logo-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #0f172a;
    color: #ffffff;

    font-size: 17px;
}

.home-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-logo-text strong {
    color: #0f172a;
    font-size: 14px;
    letter-spacing: 1px;
}

.home-logo-text span {
    color: #64748b;
    font-size: 9px;
    letter-spacing: 0.3px;
}

.home-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-navigation a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.home-login {
    padding: 9px 15px;
    color: #0f172a;
}

.home-login:hover {
    color: #0891b2;
}

.home-register {
    padding: 9px 16px;
    border-radius: 10px;

    background: #0f172a;
    color: #ffffff;
}

.home-register:hover {
    background: #00bcd4;
}
.home-content {
    position: relative;
    z-index: 1;

    flex: 1;
}
.home-hero {
    max-width: 800px;

    margin: 45px auto 0;
    padding: 20px 24px 50px;

    text-align: center;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;

    border-radius: 100px;

    background: #e6fbff;
    border: 1px solid #b6f1ff;

    color: #0891b2;

    font-size: 12px;
    font-weight: 700;
}

.home-badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #00d084;

    animation: home-blink 1.2s infinite;
}

@keyframes home-blink {
    50% {
        opacity: 0.3;
    }
}

.home-hero h1 {
    margin: 18px 0;

    font-size: 54px;
    font-weight: 900;
    line-height: 1;

    letter-spacing: -2px;
}

.home-hero h1 span {
    position: relative;

    color: #00bcd4;
}

.home-hero h1 span::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 4px;

    width: 100%;
    height: 10px;

    background: rgba(0, 229, 255, 0.2);

    z-index: -1;
}

.home-hero > p {
    max-width: 520px;

    margin: 0 auto;

    color: #5a6a85;

    font-size: 15px;
    line-height: 1.6;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin: 30px 0 45px;
}

.home-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s ease;
}

.home-primary-button {
    background: #0f172a;
    color: #ffffff;

    border: none;
}

.home-primary-button:hover {
    background: #00bcd4;

    box-shadow: 0 10px 24px rgba(0, 229, 255, 0.3);

    transform: translateY(-1px);
}

.home-secondary-button {
    background: #ffffff;
    color: #0f172a;

    border: 1px solid #e6eef5;
}

.home-secondary-button:hover {
    border-color: #00e5ff;
    color: #0891b2;

    transform: translateY(-1px);
}
.home-services {
    max-width: 1100px;

    margin: 0 auto;

    padding: 0 24px 60px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-service {
    position: relative;

    display: block;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #eef3f8;
    border-radius: 20px;

    text-decoration: none;
    color: inherit;

    transition: 0.25s ease;
}

.home-service:hover {
    transform: translateY(-5px);

    border-color: #b6f1ff;

    box-shadow: 0 16px 32px rgba(0, 188, 212, 0.08);
}

.home-service-featured {
    border-color: #00e5ff;

    box-shadow: 0 16px 32px rgba(0, 229, 255, 0.12);
}

.home-service-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    background: #e6fbff;

    border-radius: 12px;

    font-size: 20px;
}

.home-service h2 {
    margin: 0 0 6px;

    color: #0f172a;

    font-size: 14px;
    font-weight: 800;
}

.home-service p {
    margin: 0;
    padding-right: 20px;

    color: #6b7a90;

    font-size: 12.5px;
    line-height: 1.5;
}

.home-service-arrow {
    position: absolute;

    right: 20px;
    bottom: 20px;

    color: #0891b2;

    font-size: 17px;
    font-weight: 700;

    opacity: 0;

    transition: 0.2s ease;
}

.home-service:hover .home-service-arrow {
    opacity: 1;
}

.home-footer {
    position: relative;
    z-index: 1;

    padding: 18px 24px 24px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}

@media (max-width: 768px) {

    .home-header {
        height: auto;

        padding: 20px;
    }

    .home-logo-text span {
        display: none;
    }

    .home-navigation {
        gap: 4px;
    }

    .home-login {
        padding: 8px 10px;
    }

    .home-register {
        padding: 8px 12px;
    }

    .home-hero {
        margin-top: 35px;
        padding: 20px 20px 40px;
    }

    .home-hero h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .home-hero > p {
        font-size: 14px;
    }

    .home-actions {
        flex-direction: column;

        max-width: 280px;

        margin-left: auto;
        margin-right: auto;
    }

    .home-actions a {
        width: 100%;
    }

    .home-services {
        grid-template-columns: 1fr;

        padding: 0 20px 40px;
    }

    .home-blob {
        width: 400px;
        height: 400px;
    }
}

body:has(.authentication) {
    margin: 0;
    min-height: 100vh;
}

body:has(.authentication) .home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

body:has(.authentication) .presentation {
    flex: 1;
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
}

body:has(.authentication) .presentation-content {
    width: 100%;
    max-width: 480px;
}

body:has(.authentication) .authentication {
    flex: 1;
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
}

body:has(.authentication) .authentication-card {
    width: 100%;
    max-width: 480px;
}

body:has(.authentication) .authentication-card {
    width: 100%;
    max-width: 340px;
}

body:has(.authentication) .authentication-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body:has(.authentication) .authentication-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

body:has(.authentication) .authentication-intro {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
}

body:has(.authentication) .authentication-description {
    margin: 0 0 28px;
    font-size: 13px;
    line-height: 1.6;
}

body:has(.authentication) .form-group {
    margin-bottom: 18px;
}

body:has(.authentication) .form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

body:has(.authentication) .form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #d7dce3;
    border-radius: 7px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body:has(.authentication) .form-group input:focus {
    border-color: #172033;
    box-shadow: 0 0 0 3px rgba(23, 32, 51, 0.08);
}

body:has(.authentication) .login-button {
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: none;
    border-radius: 7px;
    background: #172033;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

body:has(.authentication) .login-button:hover {
    background: #25324a;
}

body:has(.authentication) .login-button:active {
    transform: translateY(1px);
}

body:has(.authentication) .login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f1caca;
    border-radius: 7px;
    background: #fff5f5;
    color: #a33a3a;
    font-size: 13px;
    line-height: 1.5;
}

body:has(.authentication) .authentication-card a {
    color: #172033;
    font-weight: 600;
    text-decoration: none;
}

body:has(.authentication) .authentication-card a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    body:has(.authentication) .home-page {
        flex-direction: column;
    }

    body:has(.authentication) .presentation {
        min-height: auto;
        padding: 60px 30px 40px;
    }

    body:has(.authentication) .presentation-content {
        max-width: 600px;
    }

    body:has(.authentication) .presentation-content h2 {
        font-size: 36px;
    }

    body:has(.authentication) .authentication {
        width: 100%;
        min-height: auto;
        padding: 30px;
    }

    body:has(.authentication) .authentication-card {
        max-width: 400px;
    }
}

@media (max-width: 500px) {
    body:has(.authentication) .presentation {
        padding: 45px 20px 30px;
    }

    body:has(.authentication) .presentation-content h2 {
        font-size: 30px;
    }

    body:has(.authentication) .presentation-content p {
        font-size: 14px;
    }

    body:has(.authentication) .authentication {
        padding: 20px;
    }
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
    background: #f5f7fa;
}

.dashboard-sidebar {
    width: 260px;
    min-height: 100vh;
    flex-shrink: 0;
    background: #172033;
    color: #ffffff;
}

.sidebar-header {
    height: 76px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-logo-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sidebar-logo-subtitle {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.dashboard-search {
    width: 210px;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #d7dce3;
    border-radius: 7px;
    background: #ffffff;
}

.dashboard-search span {
    color: #64748b;
    font-size: 16px;
}

.dashboard-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #172033;
    font-size: 12px;
}

.dashboard-search input::placeholder {
    color: #94a3b8;
}

.sidebar-navigation {
    padding: 28px 16px;
}

.sidebar-navigation-title {
    margin: 0 12px 12px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 5px;
    border-radius: 7px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
    padding: 28px 40px 50px;
}
.dashboard-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.dashboard-title h1 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    font-weight: 700;
}

.dashboard-title p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.dashboard-search {
    width: 260px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d7dce3;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    font-size: 13px;
    outline: none;
}

.dashboard-search:focus {
    border-color: #172033;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    border-radius: 7px;
    background: #fff1f2;
    color: #be123c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.logout-link:hover {
    background: #ffe4e6;
    color: #9f1239;
}

.dashboard-statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.stat-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.stat-card-label {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.stat-card-value {
    color: #172033;
    font-size: 27px;
    font-weight: 700;
}

.stat-card-description {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.dashboard-section-header h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-section-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

/* Cartes des modules */

.dashboard-modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-module {
    position: relative;
    min-height: 165px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.dashboard-module:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.module-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #172033;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-module h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-module p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.module-code {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
}

.module-arrow {
    color: #172033;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.dashboard-module:hover .module-arrow {
    transform: translateX(3px);
}

@media (max-width: 1100px) {
    .dashboard-sidebar {
        width: 230px;
    }

    .dashboard-content {
        padding: 28px 30px 45px;
    }

    .dashboard-statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-search {
        width: 190px;
    }
}

@media (max-width: 800px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        min-height: auto;
    }

    .sidebar-header {
        height: 65px;
    }

    .sidebar-navigation {
        padding: 15px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .sidebar-navigation-title {
        display: none;
    }

    .sidebar-link {
        margin-bottom: 0;
    }

    .dashboard-content {
        padding: 25px 20px 40px;
    }

    .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-search {
        flex: 1;
        width: auto;
    }

    .dashboard-statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .sidebar-navigation {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 22px 16px 35px;
    }

    .dashboard-title h1 {
        font-size: 22px;
    }

    .dashboard-title p {
        font-size: 13px;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-search {
        width: 100%;
    }

    .logout-link {
        width: 100%;
    }

    .dashboard-statistics {
        grid-template-columns: 1fr;
    }

    .dashboard-module {
        min-height: 150px;
    }
}
/* =========================================================
   MUNICIPAL SERVICE FORM
   ========================================================= */

.municipal-service-form-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.municipal-service-form {
    width: 100%;
}

.municipal-service-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d9dee8;
    border-radius: 10px;
    background: #f9fafb;
    color: #1f2937;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
    box-sizing: border-box;
}

.form-field input {
    min-height: 48px;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-field ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 13px;
}

.municipal-service-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #edf0f4;
}

.municipal-service-cancel,
.municipal-service-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
    box-sizing: border-box;
}

.municipal-service-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.municipal-service-submit {
    border: none;
    background: #2563eb;
    color: #ffffff;
}

.municipal-service-cancel:hover,
.municipal-service-submit:hover {
    transform: translateY(-1px);
}

.municipal-service-cancel:hover {
    background: #e5e7eb;
}

.municipal-service-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

@media (max-width: 768px) {

    .municipal-service-form-card {
        padding: 22px;
        border-radius: 16px;
    }

    .municipal-service-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-field-full {
        grid-column: auto;
    }

    .municipal-service-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .municipal-service-cancel,
    .municipal-service-submit {
        width: 100%;
    }
}
.municipal-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.municipal-service-page-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.municipal-service-page-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.municipal-service-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.municipal-service-add-button:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .municipal-service-header {
        align-items: stretch;
        flex-direction: column;
    }

    .municipal-service-add-button {
        width: 100%;
    }
}
.municipal-service-card-actions { 
    display: flex; 
    align-items: center;
     margin-top: 18px; padding-top: 16px; 
     
     border-top: 1px solid #edf0f4;
} 
 .municipal-service-edit-button { 
        display: inline-flex; 
        align-items: center; justify-content: center; 
        min-height: 40px; 
        padding: 0 16px; border-radius: 9px;
         background: #eff6ff; 
         color: #2563eb; 
         border: 1px solid #dbeafe;
          font-size: 13px; font-weight: 600;
           text-decoration: none; 
           transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; 
 } 
  .municipal-service-edit-button:hover { 
            background: #2563eb; 
            color: #ffffff; 
            transform: translateY(-1px);
 }

.municipal-service-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.municipal-service-delete-form {
    margin: 0;
}

.municipal-service-edit-button,
.municipal-service-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
}

.municipal-service-edit-button:hover,
.municipal-service-delete-button:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .municipal-service-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .municipal-service-edit-button,
    .municipal-service-delete-form,
    .municipal-service-delete-button {
        width: 100%;
    }
}
.contact-form-card {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 32px;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.contact-form-title {
margin: 0 0 24px;
font-size: 20px;
font-weight: 700;
color: #1f2937;
}

.contact-form {
width: 100%;
}

.contact-form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}

.contact-form .form-field {
display: flex;
flex-direction: column;
gap: 8px;
}

.contact-form .form-field-full {
grid-column: 1 / -1;
}

.contact-form .form-field label {
font-size: 14px;
font-weight: 600;
color: #1f2937;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
width: 100%;
padding: 13px 15px;
border: 1px solid #d9dee8;
border-radius: 10px;
background: #f9fafb;
color: #1f2937;
font-size: 14px;
font-family: inherit;
outline: none;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease,
background 0.2s ease;
box-sizing: border-box;
}

.contact-form .form-field input {
min-height: 48px;
}

.contact-form .form-field textarea {
min-height: 150px;
resize: vertical;
}

.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
color: #9ca3af;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
border-color: #2563eb;
background: #ffffff;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.contact-form .form-field ul {
margin: 0;
padding: 0;
list-style: none;
color: #dc2626;
font-size: 13px;
}

.contact-form-actions {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid #edf0f4;
}

.contact-submit-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 22px;
border: none;
border-radius: 10px;
background: #2563eb;
color: #ffffff;
font-size: 14px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition:
background 0.2s ease,
transform 0.2s ease,
box-shadow 0.2s ease;
}

.contact-submit-button:hover {
background: #1d4ed8;
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.contact-submit-button:focus-visible {
outline: 3px solid rgba(37, 99, 235, 0.25);
outline-offset: 2px;
}

.contact-success-message {
margin-bottom: 24px;
padding: 14px 16px;
border: 1px solid #bbf7d0;
border-radius: 10px;
background: #f0fdf4;
color: #166534;
font-size: 14px;
font-weight: 500;
}

@media (max-width: 768px) {

.contact-form-card {
    padding: 22px;
    border-radius: 16px;
}

.contact-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.contact-form .form-field-full {
    grid-column: auto;
}

.contact-form-actions {
    align-items: stretch;
}

.contact-submit-button {
    width: 100%;
}

}
/* ================================
ACTUALITÉS
================================ */

.news-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 24px;
margin-bottom: 28px;
}

.news-page-title {
margin: 0 0 8px;
font-size: 24px;
font-weight: 700;
color: #1f2937;
}

.news-page-description {
margin: 0;
max-width: 700px;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

.news-add-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0 18px;
border-radius: 10px;
background: #2563eb;
color: #ffffff;
text-decoration: none;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
transition:
background 0.2s ease,
transform 0.2s ease,
box-shadow 0.2s ease;
}

.news-add-button:hover {
background: #1d4ed8;
color: #ffffff;
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.news-add-button:focus-visible {
outline: 3px solid rgba(37, 99, 235, 0.25);
outline-offset: 2px;
}

.news-success-message {
margin-bottom: 24px;
padding: 14px 16px;
border: 1px solid #bbf7d0;
border-radius: 10px;
background: #f0fdf4;
color: #166534;
font-size: 14px;
font-weight: 500;
}

/* ================================
ÉTAT VIDE
================================ */

.news-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 280px;
padding: 40px;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 18px;
text-align: center;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.news-empty-icon {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-bottom: 20px;
border-radius: 16px;
background: #eff6ff;
color: #2563eb;
}

.news-empty-icon svg {
width: 30px;
height: 30px;
}

.news-empty-title {
margin: 0 0 8px;
font-size: 18px;
font-weight: 700;
color: #1f2937;
}

.news-empty-description {
margin: 0;
max-width: 500px;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

/* ================================
GRILLE DES ACTUALITÉS
================================ */

.news-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
}

.news-card {
overflow: hidden;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.news-card-image {
width: 100%;
height: 190px;
overflow: hidden;
background: #f3f4f6;
}

.news-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.news-card-content {
padding: 20px;
}

.news-card-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
color: #6b7280;
font-size: 12px;
}

.news-card-category {
display: inline-flex;
align-items: center;
padding: 5px 9px;
border-radius: 999px;
background: #eff6ff;
color: #2563eb;
font-size: 11px;
font-weight: 700;
}

.news-card-title {
margin: 0 0 10px;
color: #1f2937;
font-size: 17px;
font-weight: 700;
line-height: 1.4;
}

.news-card-description {
margin: 0;
color: #6b7280;
font-size: 13px;
line-height: 1.6;
}

.news-card-actions {
display: flex;
align-items: center;
gap: 10px;
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid #edf0f4;
}

.news-edit-button,
.news-delete-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 38px;
padding: 0 13px;
border-radius: 8px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
}

.news-edit-button {
border: 1px solid #dbeafe;
background: #eff6ff;
color: #2563eb;
}

.news-edit-button:hover {
background: #dbeafe;
color: #1d4ed8;
}

.news-delete-form {
margin: 0;
}

.news-delete-button {
border: 1px solid #fee2e2;
background: #fef2f2;
color: #dc2626;
}

.news-delete-button:hover {
background: #fee2e2;
color: #b91c1c;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width: 1000px) {

.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

}

@media (max-width: 768px) {
.news-header {
    flex-direction: column;
    align-items: stretch;
}

.news-add-button {
    width: 100%;
}

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

.news-empty-state {
    padding: 30px 20px;
}


}
/* ================================
FORMULAIRE ACTUALITÉ
================================ */

.news-form-card {
width: 100%;
max-width: 1000px;
margin: 0 auto;
padding: 32px;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.news-form-title {
margin: 0 0 28px;
color: #1f2937;
font-size: 20px;
font-weight: 700;
}

.news-form {
width: 100%;
}

.news-form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 24px;
}

.news-form .form-field {
display: flex;
flex-direction: column;
gap: 8px;
}

.news-form .form-field-full {
grid-column: 1 / -1;
}

.news-form .form-field label {
color: #1f2937;
font-size: 14px;
font-weight: 600;
}

.news-form .form-field input,
.news-form .form-field textarea {
width: 100%;
box-sizing: border-box;
padding: 13px 15px;
border: 1px solid #d9dee8;
border-radius: 10px;
background: #f9fafb;
color: #1f2937;
font-family: inherit;
font-size: 14px;
outline: none;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease,
background 0.2s ease;
}

.news-form .form-field input {
min-height: 48px;
}

.news-form .form-field textarea {
min-height: 180px;
resize: vertical;
line-height: 1.6;
}

.news-form .form-field input[type="file"] {
min-height: auto;
padding: 11px 12px;
cursor: pointer;
background: #ffffff;
}

.news-form .form-field input::placeholder,
.news-form .form-field textarea::placeholder {
color: #9ca3af;
}

.news-form .form-field input:focus,
.news-form .form-field textarea:focus {
border-color: #2563eb;
background: #ffffff;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.news-form .form-field input[type="file"]:focus {
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.news-form .form-field ul {
margin: 0;
padding: 0;
list-style: none;
color: #dc2626;
font-size: 13px;
line-height: 1.5;
}

/* ================================
ACTIONS
================================ */

.news-form-actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid #edf0f4;
}

.news-cancel-button,
.news-submit-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0 20px;
border-radius: 10px;
font-family: inherit;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
transform 0.2s ease,
box-shadow 0.2s ease;
}

.news-cancel-button {
border: 1px solid #d9dee8;
background: #ffffff;
color: #4b5563;
}

.news-cancel-button:hover {
border-color: #cbd5e1;
background: #f8fafc;
color: #1f2937;
}

.news-submit-button {
border: 1px solid #2563eb;
background: #2563eb;
color: #ffffff;
}

.news-submit-button:hover {
border-color: #1d4ed8;
background: #1d4ed8;
color: #ffffff;
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.news-cancel-button:focus-visible,
.news-submit-button:focus-visible {
outline: 3px solid rgba(37, 99, 235, 0.25);
outline-offset: 2px;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width: 768px) {


.news-form-card {
    padding: 22px;
    border-radius: 16px;
}

.news-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.news-form .form-field-full {
    grid-column: auto;
}

.news-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
}

.news-cancel-button,
.news-submit-button {
    width: 100%;
}

}
.news-current-image {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 8px;
padding: 14px;
border: 1px solid #e8eaf0;
border-radius: 12px;
background: #f9fafb;
}

.news-current-image-label {
color: #6b7280;
font-size: 12px;
font-weight: 600;
}

.news-current-image img {
display: block;
width: 180px;
height: 110px;
object-fit: cover;
border-radius: 8px;
border: 1px solid #e5e7eb;
}
/* ================================
GESTION DES PROFILS
================================ */

.users-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 24px;
margin-bottom: 28px;
}

.users-page-title {
margin: 0 0 8px;
color: #1f2937;
font-size: 24px;
font-weight: 700;
}

.users-page-description {
margin: 0;
max-width: 700px;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

/* ================================
TABLEAU
================================ */

.users-table-card {
width: 100%;
overflow: hidden;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 18px;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.users-table-wrapper {
width: 100%;
overflow-x: auto;
}

.users-table {
width: 100%;
min-width: 720px;
border-collapse: collapse;
}

.users-table thead {
background: #f8fafc;
}

.users-table th {
padding: 16px 20px;
border-bottom: 1px solid #e8eaf0;
color: #6b7280;
font-size: 12px;
font-weight: 700;
text-align: left;
text-transform: uppercase;
letter-spacing: 0.03em;
}

.users-table td {
padding: 18px 20px;
border-bottom: 1px solid #edf0f4;
color: #4b5563;
font-size: 14px;
vertical-align: middle;
}

.users-table tbody tr:last-child td {
border-bottom: none;
}

.users-table tbody tr {
transition: background 0.2s ease;
}

.users-table tbody tr:hover {
background: #f9fafb;
}

/* ================================
PROFIL UTILISATEUR
================================ */

.user-profile-cell {
display: flex;
align-items: center;
gap: 12px;
}

.user-avatar {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 42px;
height: 42px;
border-radius: 50%;
background: #eff6ff;
color: #2563eb;
font-size: 15px;
font-weight: 700;
}

.user-profile-information {
display: flex;
flex-direction: column;
gap: 3px;
}

.user-profile-information strong {
color: #1f2937;
font-size: 14px;
font-weight: 600;
}

.user-profile-information span {
color: #9ca3af;
font-size: 12px;
}

/* ================================
RÔLES
================================ */

.user-role {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
}

.user-role-admin {
background: #fef2f2;
color: #dc2626;
}

.user-role-agent {
background: #fff7ed;
color: #ea580c;
}

.user-role-citizen {
background: #eff6ff;
color: #2563eb;
}

/* ================================
ACTIONS
================================ */

.user-actions {
display: flex;
align-items: center;
gap: 8px;
}

.user-edit-button,
.user-delete-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 36px;
padding: 0 12px;
border-radius: 8px;
font-family: inherit;
font-size: 12px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
}

.user-edit-button {
border: 1px solid #dbeafe;
background: #eff6ff;
color: #2563eb;
}

.user-edit-button:hover {
border-color: #bfdbfe;
background: #dbeafe;
color: #1d4ed8;
}

.user-delete-button {
border: 1px solid #fee2e2;
background: #fef2f2;
color: #dc2626;
}

.user-delete-button:hover:not(:disabled) {
border-color: #fecaca;
background: #fee2e2;
color: #b91c1c;
}

.user-delete-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}

.user-edit-button:focus-visible,
.user-delete-button:focus-visible {
outline: 3px solid rgba(37, 99, 235, 0.20);
outline-offset: 2px;
}

/* ================================
ÉTAT VIDE
================================ */

.users-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 280px;
padding: 40px;
background: #ffffff;
border: 1px solid #e8eaf0;
border-radius: 18px;
text-align: center;
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.users-empty-icon {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
margin-bottom: 20px;
border-radius: 16px;
background: #eff6ff;
color: #2563eb;
}

.users-empty-title {
margin: 0 0 8px;
color: #1f2937;
font-size: 18px;
font-weight: 700;
}

.users-empty-description {
margin: 0;
max-width: 500px;
color: #6b7280;
font-size: 14px;
line-height: 1.6;
}

/* ================================
RESPONSIVE
================================ */

@media (max-width: 768px) {


.users-page-title {
    font-size: 21px;
}

.users-table-card {
    border-radius: 14px;
}

.users-empty-state {
    padding: 30px 20px;
}

}
/* ================================
   FORMULAIRE DE MODIFICATION PROFIL
   ================================ */

.users-form-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.users-form-title {
    margin: 0 0 28px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.users-form {
    width: 100%;
}

.users-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field input::placeholder {
    color: #9ca3af;
}

/* Sélecteur des rôles */
.form-field select {
    cursor: pointer;
}

/* Messages d'erreur */
.form-field ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.form-field li {
    color: #dc2626;
    font-size: 13px;
}

/* Boutons */
.users-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.users-cancel-button,
.users-submit-button {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Annuler */
.users-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.users-cancel-button:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Enregistrer */
.users-submit-button {
    border: none;
    background: #2563eb;
    color: #ffffff;
}

.users-submit-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.users-submit-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {

    .users-form-card {
        padding: 22px;
        border-radius: 12px;
    }

    .users-form-title {
        font-size: 20px;
    }

    .users-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .users-cancel-button,
    .users-submit-button {
        width: 100%;
    }
}

     