:root {
    --meeting: #2e7d32;
    --election: #b71c1c;
    --brand: #0f2b5c;
    --accent: #b71c1c;
    --bg: #ffffff;
    --ink: #0b1220;
    --muted: rgba(15, 43, 92, .70);
    --line: rgba(15, 43, 92, .12);
    --chip: rgba(15, 43, 92, .06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body {
    font-family: 'Proxima Nova', Arial, sans-serif;
    line-height: 1.6;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(180deg,
            #051020 0%,
            #081236 10%,
            #0c1e3e 20%,
            #1e4a73 35%,
            #3b7fb8 55%,
            #5a9bd3 70%,
            #87ceeb 80%,
            rgba(173, 216, 230, 0.8) 90%,
            rgba(225, 240, 250, 0.4) 95%,
            #ffffff 100%);
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

section {
    padding: 40px 20px;
}

.container {
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    overflow-x: hidden !important;
}

.header {
    padding: 0 28px;
    height: 38px;
    background: linear-gradient(90deg, #081236 0%, #1488cd 100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 4px 0;
}

.nav-left,
.nav-right {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-left {
    flex: 1;
}

.nav-right {
    flex: 1;
    justify-content: flex-end;
    gap: 20px;
}

.nav-left li,
.nav-right li {
    list-style: none !important;
    list-style-type: none !important;
}

.nav-left li::before,
.nav-right li::before,
.nav-left li::after,
.nav-right li::after {
    display: none !important;
    content: none !important;
}

.nav-left li::marker,
.nav-right li::marker {
    display: none !important;
    content: none !important;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    color: #f06a8a;
    font-weight: 700;
}

.logo {
    /* background: #1e4a73; */
    background: linear-gradient(90deg, #081236 0%, #1488cd 100%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
    padding: 0 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    top: 40px;
}

.logo-text {
    font-family: 'Proxima Nova', 'Arial Black', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #1e4a73;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1;
}

.social-link {
    color: white;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.8;
}

@keyframes scroll-left {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.footer {
    background: linear-gradient(135deg, #0c1e3e 0%, #1e4a73 50%, #3b7fb8 100%);
    color: white;
    padding: 60px 40px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    text-align: left;
    align-items: flex-start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-circle .logo-text {
    font-family: 'Proxima Nova', Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: white !important;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Proxima Nova', Arial, sans-serif;
    line-height: 1.5;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    margin: 0;
    padding: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Proxima Nova', Arial, sans-serif;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    list-style: none;
}

.footer-social li {
    list-style: none !important;
}

.footer-social li::before,
.footer-social li::marker {
    display: none !important;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer .footer-social-link i {
    color: white !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.title-blue {
    color: #3a73c4;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}


/* .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 9998;
} */

.mobile-menu {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #081236 0%, #1488cd 100%);
    padding: 60px 30px 30px;
    transition: left 0.3s ease;
}

/* .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
} */

.mobile-menu.active {
    left: 0;
}
/* 
.mobile-menu.active {
    transform: translateX(0);
} */


.mobile-menu-close {
    display: none;
    /* Supprime la croix à droite */
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Proxima Nova', Arial, sans-serif;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
    opacity: 0.8;
}

.mobile-social {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
}

.mobile-social-link {
    color: white;
    font-size: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.priorities-main-section {
    background: #f8f9fa;
    padding: 100px 40px;
}

.priorities-main-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.program-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.program-chapter-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #e91e63;
    text-align: left;
    cursor: pointer;
}

.program-chapter-card-noclick {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #6b6869;
    text-align: left;
    cursor: pointer;
}

.program-chapter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* En mode "carte" : on ne montre que le résumé */
.program-chapter-card .chapter-details {
    display: none;
}

/* Overlay plein écran */
.card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.card-overlay.open {
    display: flex;
}

.card-overlay-inner {
    width: min(900px, 95vw);
    max-height: 90vh;
}

/* Carte clonée dans l’overlay */
.card-overlay-inner .program-chapter-card {
    max-height: 90vh;
    overflow-y: auto;
    cursor: default;
    transform: none;
    text-align: left;
    color: #2c3e50;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card-overlay-inner .program-chapter-card .justify {
    text-align: justify;
    margin: 2px;
}

.card-overlay-inner .program-chapter-card h3 {
    margin: 30px 10px 20px 20px;
}

.card-overlay-inner .program-chapter-card ul {
    margin: 0px 0px 20px 40px;
}

.card-overlay-inner .program-chapter-card li {
    margin: 0px 0px 0px 40px;
}

/* En mode étendu : on masque la liste et on affiche les détails */
.card-overlay-inner .program-chapter-card .chapter-priorities {
    display: none;
}

.card-overlay-inner .program-chapter-card .chapter-details {
    display: block;
    margin-top: 1.5rem;
}

.chapter-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.chapter-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
    line-height: 1;
}

.chapter-icon.security {
    background: #e74c3c;
}

.chapter-icon.economy {
    background: #3498db;
}

.chapter-icon.tourism {
    background: #f312b0;
}

.chapter-icon.housing {
    background: #9b59b6;
}

.chapter-icon.environment {
    background: #27ae60;
}

.chapter-icon.mobility {
    background: #338be3;
}

.chapter-icon.health {
    background: #e91e63;
}

.chapter-icon.sports {
    background: #1abc9c;
}

.chapter-icon.education {
    background: #f1c40f;
}

.chapter-icon.culture {
    background: #8e44ad;
}

.chapter-icon.finances {
    background: #2c3e50;
}

.chapter-icon.solidarity {
    background: #e67e22;
}

.chapter-icon.animals {
    background: #16a085;
}

.chapter-icon.agriculture {
    background: #2ecc71;
}

.chapter-icon.prevention {
    background: #c0392b;
}

.chapter-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'Proxima Nova', Arial, sans-serif;
    line-height: 1.3;
}

/* Program Contact Section */
.program-contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 40px;
    text-align: center;
}

.program-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.program-contact-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.program-contact-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 40px;
    line-height: 1.6;
    font-family: 'Proxima Nova', Arial, sans-serif;
}

.program-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Proxima Nova', Arial, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    border: none;
    cursor: pointer;
}

.program-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.program-contact-btn i {
    margin-right: 10px;
    font-size: 1rem;
}

.chapter-link-dead {
    text-align: center;
    color: #6b696a;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Proxima Nova', Arial, sans-serif;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px 0;
}

.chapter-link {
    text-align: center;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Proxima Nova', Arial, sans-serif;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin: 30px 0 10px 0;
}

.chapter-link:hover {
    color: #c2185b;
}

.contact-content {
    min-height: calc(100vh - 48px);
}

.contact-hero {
    background: linear-gradient(135deg, #081236 0%, #0f2b5c 45%, #1b6fb4 100%);
    color: white;
    padding: 120px 40px 40px 40px;
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Proxima Nova', Arial, sans-serif;
    white-space: nowrap;
    display: inline-block;
}

.contact-hero-title .title-blue {
    display: inline;
    white-space: nowrap;
}

#toast {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    width: 432px !important;
    max-width: calc(100vw - 40px) !important;
    z-index: 99999 !important;

    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#toast img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
