/* =========================================================
CIVICGO GOVTECH DESIGN SYSTEM V2
UNIFIED CLEAN ARCHITECTURE (FINAL FIXED)
========================================================= */

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

/* BODY */
body{
   /* border:10px solid red !important; */
    border:none !important;

    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.6;
}

/* CONTAINER */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* =========================================================
HEADER
========================================================= */

.site-header{
    background:white;
    padding:18px 0;
    box-shadow:0 2px 12px rgba(0,0,0,0.05);
    position:sticky;
    top:0;
    z-index:1000;
}

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

.logo{
    font-size:28px;
    font-weight:700;
    color:#0d47a1;
    text-decoration:none;
}

.nav-links{
    display:flex;
    gap:20px;
}

.nav-links a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:0.3s;
}

.nav-links a:hover{
    color:#0d47a1;
}

/* =========================================================
HERO UNIFIED (INDEX + DEMARCHES)
========================================================= */

.demarches-hero,
.home-hero{
    background:linear-gradient(135deg,#0d47a1,#1565c0,#1b5e20);
    padding:100px 20px;
    color:white;
    border-bottom-left-radius:40px;
    border-bottom-right-radius:40px;
}

.hero-content{
    max-width:800px;
}

.hero-badge{
    display:inline-block;
    background:rgba(255,255,255,0.15);
    padding:10px 18px;
    border-radius:50px;
    margin-bottom:25px;
}

.demarches-hero h1,
.home-hero h1{
    font-size:55px;
    margin-bottom:15px;
}

/* .demarches-hero .container,
.home-hero .container{
    max-width:1200px;
    margin:0 auto;
    padding-left:20px;
    padding-right:20px;
}

 .demarches-hero,
.home-hero{
    margin:5px;
    border-radius:40px;
}
**/

/* =========================================================
SECTIONS GLOBAL
========================================================= */

.missions-section,
.examples-section,
.home-features-section,
.home-newsletter-section,
.navigation-section,
.commune-section{
    padding:50px 20px;
}

/* SECTION TITLE */
.section-title{
    text-align:center;
    margin-bottom:30px;
}

.section-title h2{
    color:#0d47a1;
    margin-bottom:10px;
}

/* =========================================================
GRID SYSTEM
========================================================= */

.missions-grid,
.features,
.examples-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

/* =========================================================
CARD SYSTEM
========================================================= */

.mission-card,
.feature,
.example-item{
    background:white;
    padding:30px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    transition:0.3s;
    text-decoration:none;
    color:#222;
}

.mission-card:hover,
.feature:hover,
.example-item:hover{
    transform:translateY(-5px);
}

/* SPECIAL HOVER FOR EXAMPLE */
.example-item:hover{
    background:#0d47a1;
    color:white;
}

/* ICON */
.mission-icon{
    font-size:40px;
    margin-bottom:15px;
}

/* =========================================================
COMMUNE CARD
========================================================= */

.commune-card{
    background:white;
    padding:40px;
    border-radius:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.06);
    max-width:700px;
    margin:auto;
}

/* INLINE LINKS */
.link-inline{
    color:inherit;
    font-weight:700;
    text-decoration:none;
}

.link-inline:hover{
    color:#0d47a1;
}

/* =========================================================
NAVIGATION BUTTONS
========================================================= */

.nav-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.nav-btn-primary{
    background:#0d47a1;
    color:white;
    padding:14px 25px;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
}

.nav-btn-secondary{
    border:2px solid #0d47a1;
    color:#0d47a1;
    padding:14px 25px;
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
}

/* =========================================================
NAVIGATION MENUS LINkS
========================================================= */
.nav-links a{
    position:relative;
    padding-bottom:6px;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0%;
    height:2px;
    background:#0d47a1;
    transition:0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width:100%;
}

/* =========================================================
FORM ELEMENTS
========================================================= */

input,
select,
textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border-radius:12px;
    border:1px solid #ddd;
    font-family:'Poppins',sans-serif;
    background:#fafafa;
    transition:0.3s;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#0d47a1;
    background:white;
    outline:none;
    box-shadow:0 0 0 4px rgba(13,71,161,0.08);
}

/* BUTTON */
button{
    width:100%;
    padding:16px;
    background:#0d47a1;
    color:white;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
}

button:hover{
    background:#1565c0;
    transform:translateY(-2px);
}

/* =========================================================
FOOTER
========================================================= */

.site-footer{
    background:#111827;
    color:white;
    margin-top:80px;
    padding:60px 20px;
}

.site-footer p{
    color:#bbb;
}

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

@media(max-width:768px){

    .demarches-hero,
    .home-hero{
        padding:70px 15px;
    }

    .demarches-hero h1,
    .home-hero h1{
        font-size:36px;
    }

    .missions-grid,
    .features,
    .examples-grid{
        grid-template-columns:1fr;
    }

    .nav{
        flex-direction:column;
        gap:15px;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .commune-card{
        padding:25px;
    }
}

html, body {
    border: none !important;
    outline: none !important;
}


/* =========================================================
LOGIN PAGE (GOVTECH PRODUCTION V1)
FILE : login.php
========================================================= */

body{
    overflow-x:hidden;
}

.login-section{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:80px 20px;
    background:
    linear-gradient(rgba(13,27,42,0.85),
    rgba(13,27,42,0.92)),
    url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?q=80&w=1200&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
}

.login-container{
    width:100%;
    max-width:1200px;
    display:grid;
    grid-template-columns:1fr 450px;
    gap:50px;
    align-items:center;
}

.login-card{
    background:white;
    padding:45px;
    border-radius:30px;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);
}

.login-card h2{
    font-size:34px;
    margin-bottom:10px;
    color:#0d1b2a;
}

.subtitle{
    color:#666;
    margin-bottom:35px;
}

.form-group{
    margin-bottom:22px;
}

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

.form-group input{
    width:100%;
    padding:16px;
    border:1px solid #ddd;
    border-radius:14px;
    font-size:15px;
}

.form-group input:focus{
    outline:none;
    border-color:#0d47a1;
}

.login-btn{
    width:100%;
    border:none;
    background:#0d47a1;
    color:white;
    padding:16px;
    border-radius:14px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-btn:hover{
    transform:translateY(-2px);
    background:#1565c0;
}

.alert{
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}

.error{
    background:#ffebee;
    color:#c62828;
}

.warning{
    background:#fff8e1;
    color:#ef6c00;
}

.login-links{
    margin-top:25px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

.login-links a{
    color:#0d47a1;
    text-decoration:none;
    font-weight:600;
}

@media(max-width:900px){

    .login-container{
        grid-template-columns:1fr;
    }

}

@media(max-width:600px){

    .login-card{
        padding:30px 22px;
    }

}