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

html {
    scroll-behavior: smooth;
}

:root {
    --color-red: #e8355d;
    --color-green: #95c11f;
    --color-orange: #f7a323;
    --color-cyan: #5dbcc6;
    --color-pink: #f77d81;
    --color-red-orange: #ea4d35;
    --color-blue: #4d568f;
    --color-white: #ffffff;
    --color-bg: #f8f8f8;
    --color-text: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
    padding-top: 86px;
    /* Hauteur de la navbar (70px logo + 8px padding haut + 8px padding bas) */
}

/* Sticky Navbar */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.nav-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-cta,
.nav-cta-secondary,
.nav-cta-support {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-cta {
    background: var(--color-red);
    color: white;
}

.nav-cta-secondary {
    background: var(--color-green);
    color: white;
}

.nav-cta-support {
    background: var(--color-pink);
    color: white;
}

.nav-cta:hover {
    background: #c72950;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 53, 93, 0.3);
}

.nav-cta-secondary:hover {
    background: #7aa91a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 193, 31, 0.3);
}

.nav-cta-support:hover {
    background: #e06064;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 125, 129, 0.3);
}

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

/* Hero Banner */
.hero-banner {
    width: 100%;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Candidature Section */
.candidature {
    padding: 60px 20px;
    background-color: var(--color-white);
}

.candidature-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.candidature-full-img {
    width: 100%;
    height: auto;
    max-width: 800px;
}

/* Meetings Section */
.meetings {
    padding: 60px 20px;
    background-color: var(--color-bg);
}

.meetings-full-image {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.meetings-full-image:hover {
    transform: scale(1.02);
}

.meetings-full-image img {
    width: 100%;
    height: auto;
}

/* Styles pour la modale réunions */
.meetings-modal-content {
    max-width: 600px;
    width: 90%;
}

.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.meeting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid var(--color-red);
}

.meeting-info h3 {
    margin: 0 0 5px 0;
    color: var(--color-text);
    font-size: 1.1rem;
}

.meeting-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.meeting-info .location {
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 3px;
}

.calendar-btn {
    background-color: var(--color-red);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
}

.calendar-btn:hover {
    background-color: #cc2e2e;
}

@media (max-width: 600px) {
    .meeting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .calendar-btn {
        align-self: flex-end;
        margin-left: 0;
    }
}

/* Section Axes */
.axes {
    padding: 80px 20px;
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.axes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.axis-card {
    background: transparent;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease, min-height 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    min-height: 280px;
    cursor: pointer;
    position: relative;
}

.axis-card:hover {
    transform: translateY(-5px);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    padding: 40px;
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.modal-body p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-body .axis-logo-full {
    max-width: 300px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.modal-body .axis-content-hidden {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Couleurs pour la modale */
.modal-content[data-color="green"] {
    background-color: #80cc28;
}

.modal-content[data-color="orange"] {
    background-color: #f89c22;
}

.modal-content[data-color="cyan"] {
    background-color: #66ccce;
}

.modal-content[data-color="pink"] {
    background-color: #f35d8d;
}

.modal-content[data-color="red"] {
    background-color: #f04338;
}

.modal-content[data-color="blue"] {
    background-color: #4346a4;
}

.axis-content-hidden {
    display: none;
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.axis-card.expanded .axis-content-hidden {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    height: 100%;
    justify-content: space-between;
}

.axis-footer-logo {
    margin-top: auto;
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: -30px;
    padding: 0;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.axis-footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fonds colorés légers pour chaque axe */
.axis-card[data-color="green"] {
    background-color: rgba(149, 193, 31, 0.08);
}

.axis-card[data-color="green"]:hover {
    background-color: rgba(149, 193, 31, 0.15);
}

.axis-card[data-color="orange"] {
    background-color: rgba(247, 163, 35, 0.08);
}

.axis-card[data-color="orange"]:hover {
    background-color: rgba(247, 163, 35, 0.15);
}

.axis-card[data-color="cyan"] {
    background-color: rgba(93, 188, 198, 0.08);
}

.axis-card[data-color="cyan"]:hover {
    background-color: rgba(93, 188, 198, 0.15);
}

.axis-card[data-color="pink"] {
    background-color: rgba(247, 125, 129, 0.08);
}

.axis-card[data-color="pink"]:hover {
    background-color: rgba(247, 125, 129, 0.15);
}

.axis-card[data-color="red"] {
    background-color: rgba(234, 77, 53, 0.08);
}

.axis-card[data-color="red"]:hover {
    background-color: rgba(234, 77, 53, 0.15);
}

.axis-card[data-color="blue"] {
    background-color: rgba(77, 86, 143, 0.08);
}

.axis-card[data-color="blue"]:hover {
    background-color: rgba(77, 86, 143, 0.15);
}

.axis-logo-full {
    width: 100%;
    height: auto;
    max-height: none;
    transition: max-height 0.3s ease;
}

.propositions-cta {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-green) 0%, #7aa91a 100%);
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(149, 193, 31, 0.3);
}

.propositions-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(149, 193, 31, 0.5);
    background: linear-gradient(135deg, #7aa91a 0%, var(--color-green) 100%);
}

.axis-card.expanded .axis-logo-full {
    max-height: 150px;
    width: auto;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--color-red) 0%, #c72950 100%);
    padding: 80px 20px;
    color: var(--color-white);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.form-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="tel"] {
    flex: 1;
    min-width: 250px;
    padding: 16px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.form-separator {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.form-consent {
    width: 100%;
    text-align: left;
}

.consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: white;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.consent-label span {
    flex: 1;
}

.consent-label a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.consent-label a:hover {
    opacity: 0.8;
}

.newsletter-form button {
    padding: 16px 40px;
    background-color: var(--color-white);
    color: var(--color-red);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.newsletter-form button:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: none;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    color: var(--color-text);
    padding: 60px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-info h3 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.footer-info .union {
    font-size: 0.9rem;
    font-weight: 800;
    opacity: 0.7;
}

.footer-contact p {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-text);
}

.footer-partners {
    flex: 1;
    min-width: 250px;
}

.partners-label {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.party-logo {
    display: block;
    height: 45px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .partners-logos {
        gap: 20px;
        max-width: 100%;
    }

    .party-logo {
        height: 50px;
    }
}

.party-logo:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.party-logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Page Propositions */
.propositions-section {
    padding: 80px 20px;
    background-color: var(--color-bg);
    min-height: calc(100vh - 86px);
}

.propositions-header {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.propositions-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-red);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.propositions-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.propositions-subintro {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    font-weight: 500;
}

.propositions-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(232, 53, 93, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.char-counter {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: -5px;
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-red) 0%, #c72950 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 53, 93, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Override consent label colors for propositions form (white background) */
.propositions-form .consent-label {
    color: var(--color-text) !important;
}

.propositions-form .consent-label span {
    color: var(--color-text) !important;
}

.propositions-form .consent-label a {
    color: var(--color-red) !important;
    text-decoration: underline;
    font-weight: 700;
}

.propositions-form .consent-label a:hover {
    opacity: 0.8;
}

/* Mobile Menu & Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    /* Height of mobile navbar */
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu .nav-cta,
.mobile-menu .nav-cta-secondary,
.mobile-menu .nav-cta-support {
    text-align: center;
    width: 100%;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

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

    /* Navbar mobile */
    body {
        padding-top: 70px;
        /* Espace pour navbar compacte */
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav-logo {
        height: 50px;
        /* Logo plus petit sur mobile */
    }

    .nav-actions {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .axes {
        padding: 60px 20px;
    }

    .axes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .axis-card {
        padding: 40px 25px;
    }

    .axis-text {
        font-size: 1.5rem;
    }

    .axis-x {
        font-size: 2rem;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact,
    .footer-partners {
        text-align: center;
    }

    .partners-logos {
        justify-content: center;
        gap: 15px;
    }

    .party-logo {
        height: 40px;
    }

    .propositions-header h1 {
        font-size: 2.2rem;
    }

    .propositions-intro {
        font-size: 1.1rem;
    }

    .propositions-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .axis-text {
        font-size: 1.3rem;
    }

    .axis-x {
        font-size: 1.8rem;
    }

    .newsletter h2 {
        font-size: 1.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #c72950;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(232, 53, 93, 0.4);
}

/* Section Comité de Soutien (Homepage) */
.support-cta {
    padding: 60px 20px;
    background-color: var(--color-white);
    text-align: center;
}

.btn-support-large {
    display: inline-block;
    background-color: var(--color-pink);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 125, 129, 0.4);
}

.btn-support-large:hover {
    background-color: #e06064;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 125, 129, 0.6);
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}